Statistical difference between population and sample

조회 수: 4 (최근 30일)
Riados
Riados 2016년 10월 28일
편집: Riados 2016년 10월 29일
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
Riados
Riados 2016년 10월 29일
First of all, thank you dpb for responding so quickly.
I used [h,p]=ttest2(blue,orange,'Vartype','unequal'), but as you can see the samplesize is too different and so produces completely different means.
Then I tried comparing blue with blue+orange, but still got h=1.
Any ideas on what I am doing wrong here?
Riados
Riados 2016년 10월 29일
편집: Riados 2016년 10월 29일
Ok I got it now! The issue was that I picked an outlier sample. 95% of the other samples return h=0 as expected, when I use ttest2 or even better when kstest2 (as dpb suggested) is used.
Thanks for your help!

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by