필터 지우기
필터 지우기

Statistical test for difference between means

조회 수: 6 (최근 30일)
Aviram Shemen
Aviram Shemen 2020년 12월 24일
댓글: Aviram Shemen 2020년 12월 29일
Hi,
I have two mean values and standard errors (se) of two unknown distributions.
I would like to check whether the difference between these two means is statistically significant.
mean1=1.2545, se1=0.0145
mean2=1.6913, se2=0.0172
Thanks,
Aviram.

채택된 답변

Walter Roberson
Walter Roberson 2020년 12월 24일
mean1=1.2545; se1=0.0145;
mean2=1.6913; se2=0.0172;
rho = 0.01;
s = 2*normcdf(-abs(mean1-mean2), 0, min(se1,se2))
s = 2.3405e-199
s < rho
ans = logical
1
  댓글 수: 7
Walter Roberson
Walter Roberson 2020년 12월 27일
mean1=1.2545; se1=0.0145;
mean2=1.6913; se2=0.0172;
rho = 0.01;
minse = min(se1,se2);
s = 2*normcdf(-abs(mean1-mean2)/minse, 0, 1)
s = 2.3405e-199
A small modification to the above that perhaps might make it marginally clearer based upon common statistics: we effectively normalize back to mean 0 and standard deviation 1, and then it is just a cdf calculation
Aviram Shemen
Aviram Shemen 2020년 12월 28일
Thanks!

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

추가 답변 (1개)

Image Analyst
Image Analyst 2020년 12월 28일
Wouldn't you use ttest()?
  댓글 수: 11
Paul
Paul 2020년 12월 29일
편집: Paul 2020년 12월 29일
You've posed an interesting question, but I'm afraid that I can't be of any more help.
Aviram Shemen
Aviram Shemen 2020년 12월 29일
Thanks!

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

카테고리

Help CenterFile Exchange에서 Hypothesis Tests에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by