correlation coefficient for a non-linear fit
15 次查看(过去 30 天)
显示 更早的评论
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!
0 个评论
回答(4 个)
the cyclist
2011-2-1
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.)
0 个评论
Richard Willey
2011-2-2
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/
0 个评论
Mariana
2011-2-2
1 个评论
Ameen Bassam
2021-7-27
Is rsquare valid for nonlinear regression ??
It is invalid according to this
https://statisticsbyjim.com/regression/r-squared-invalid-nonlinear-regression/
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!