Computing the p-Value for a t-Test
Finding the p-value:
- Right-tailed (Ha:μ>μ0): p=P(tdf≥tobs)
- Left-tailed (Ha:μ<μ0): p=P(tdf≤tobs)
- Two-tailed (Ha:μ=μ0): p=2⋅P(tdf≥∣tobs∣)
On a TI calculator: tcdf(lower, upper, df)
Example: tobs=2.31, df=24, right-tailed:
p = P(t24 ≥ 2.31) = tcdf(2.31, 999, 24) ≈0.015
Example: tobs=−1.80, df=15, two-tailed:
p=2⋅P(t15≤−1.80)=2⋅ tcdf(-999, -1.80, 15) ≈2(0.046)=0.092