Regressing through the origin doesn't give the R^2 you expect.
negative r squared
5 次查看(过去 30 天)
显示 更早的评论
I have fitted the line y=x which passes through origin to a bunch of data by using cftool. I got a negative r squared for the coefficient of determination. Could someone shed light on what that means? I know that y=x is not the best fit but I want to see how much is the determination coefficient if I force the data to be fitted to y=x.
Thanks.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!