correlation coefficient for a non-linear fit
Mostra commenti meno recenti
Does anyone know how to compute the correlation coefficient between two vectors, which are not linearly correlated? At the moment, I use a polynomial fit (order 3) between two vectors. It seems that corrcoeff compute it only for linear fits. Thanks a lot!
Risposte (4)
the cyclist
il 1 Feb 2011
1 voto
There are several options for correlation coefficients besides Pearson's (which is probably the most commonly used). Did you want to compute Kendall's tau or Spearman's rho? If so, then you can use the function CORR, and set the appropriate parameter. If that's not what you want, you'll need to supply some more details. (You might try searching the File Exchange, as well.)
Richard Willey
il 2 Feb 2011
1 voto
Hi Marina
You might find the following blog posting of interest. (It shows some interesting ways to use Curve Fitting Toolbox)
http://blogs.mathworks.com/loren/2011/01/13/data-driven-fitting/
Mariana
il 2 Feb 2011
0 voti
Mariana
il 2 Feb 2011
0 voti
1 Commento
Ameen Bassam
il 27 Lug 2021
Is rsquare valid for nonlinear regression ??
It is invalid according to this
https://statisticsbyjim.com/regression/r-squared-invalid-nonlinear-regression/
Categorie
Scopri di più su Linear and Nonlinear Regression in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!