Why I am getting different slope value while performing linear regression in excel and mat lab ?
2 次查看(过去 30 天)
显示 更早的评论
Hi, I have 58 years monthly rainfall data with size (58*12). I want to perform simple linear regression to calculate the value of slope. I am using mat lab function b= regress(Y,X). But there is difference between slope values calculated from excel and mat lab. My data set, results and mat lab code are attached. I will highly appreciate if someone can guide me whats error in my code. Regards
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 线性回归 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!