how can i find R2 (Rsquared) for regression problem in matlab?
4 次查看(过去 30 天)
显示 更早的评论
how can i find R2 (Rsquared) for regression problem in matlab?I have my forecasted outputs and targets .How can i write code for plotting R2 for this?
Kindly advice
0 个评论
回答(1 个)
Sulaymon Eshkabilov
2021-6-12
R-squared can be computed easily from your derived fit model vs. your original data. Moreover, R-square can be computed in Statistics, Curve fitting and a few other toolboxes of matlab, as well.
Here is a nice doc of mathworks on it:
https://www.mathworks.com/help/stats/coefficient-of-determination-r-squared.html
0 个评论
另请参阅
类别
在 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!