Obtaining the P values for the t stat

조회 수: 167 (최근 30일)
Ahmed Abdulla
Ahmed Abdulla 2020년 6월 10일
댓글: O.Hubert 2022년 10월 24일
I have both the tstat and the degrees of freedom, is there a quick way to find the P value of a two tailed hypothesis at a significance of 0.05

채택된 답변

dpb
dpb 2020년 6월 10일
p = 1-tcdf(t,n-1) % Probability of larger t-statistic
requires Statistics Toolbox...
  댓글 수: 2
Jamol Bahromov
Jamol Bahromov 2021년 9월 17일
Shouldn't p multiplied by two for a two-tailed p-value?
O.Hubert
O.Hubert 2022년 10월 24일
It should be noted that t should be positive to obtain sensible results and yes, p should be multiplied by 2 to get a two-tailed test.
To have t positive, replace it by abs(t).

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Testing Frameworks에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by