Obtaining the P values for the t stat
113 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ahmed Abdulla
am 10 Jun. 2020
Kommentiert: Km Shraddha
am 14 Jan. 2025
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
Akzeptierte Antwort
dpb
am 10 Jun. 2020
p = 1-tcdf(t,n-1) % Probability of larger t-statistic
requires Statistics Toolbox...
2 Kommentare
O.Hubert
am 24 Okt. 2022
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).
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!