Statistical difference between population and sample
Ältere Kommentare anzeigen
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 Kommentare
dpb
am 29 Okt. 2016
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
am 29 Okt. 2016
Antworten (0)
Kategorien
Mehr zu Noncentral t Distribution finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


