Checking if error in data is normally distributed or not
10 次查看(过去 30 天)
显示 更早的评论
I have two datasets (x) and (y). How could I know if the error in both data is normally distributed or not? Thank you, Amb
0 个评论
采纳的回答
Star Strider
2016-4-11
One option is the Anderson-Darling test. See the documentation for the adtest function for details. Tare links to others in and at the end of that page.
4 个评论
Star Strider
2016-4-11
My pleasure.
You are correct. The fit does not have to be linear (you can do a nonlinear fit to your data if that is appropriate). That aside, you would be checking to see if the residuals — the difference between the regression at every value of your independent variable and your dependent variable at those points — are normally distributed.
更多回答(1 个)
Walter Roberson
2016-4-11
kstest() each of them individually.
If you want to know whether they come from the same normal distribution, see kstest2()
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!