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!