Statistical difference between population and sample
이전 댓글 표시
Hey folks, I'm not sure what MATLAB function to use for this problem:
I've got one test-measurement that I chopped in two sets of data (unequal in size), one before triggering something and one after.
Now I want to know if there is a statistical difference between those two. Tried ttest (didnt work) and ttest2, but the results were confusing (subjectively there should be no difference but the ttest2 returns results like h=1 with p=3e-69). Is this the wrong function for my application or am I using it wrong?
댓글 수: 3
dpb
2016년 10월 29일
Well, would need to know how you applied ttest2 but the result h=1 indicates that the the null hypothesis was rejected; the extremely small p value indicates "it ain't even close!". Of course, the null hypothesis with default inputs is "samples from normal distributions with equal means and equal but unknown variances, against the alternative that the means are not equal" so besides the simple fact the means may not be the same the underlying normality assumption may be violated.
You can try the two-sample Kolmogorov-Smirnov test which has as its null hypothesis that x1, x2 are from the same continuous distribution...
Show the two sample cdfs on a single plot would be one visual sanity check.
Riados
2016년 10월 29일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Noncentral t Distribution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


