For n < 30, go to "Student's" t Distribution.
Take Degrees Of Freedom or df as (25 − 1) or 24.
Decide between:
H0 : μ = 40
H1 : μ < 40.
The Alternative Hypothesis H1 : μ < 40 (as opposed to H1 : μ ≠ 40)
dictates a left-tailed test instead of a two-tailed test.
Build the t-Test Statistic as T = (Xbar − μ)/S, here equal to (31 − 40)/12 or -0.75.
Accept (H0 : μ = 40) if T is greater than -t(1 − 0.05). For df = 24, a t-Table intersecting
at t0.95 and df = 24 gives T > -1.71.
For this problem, T at -0.75 exceeds -1.71, so (H0 : μ = 40) is not rejected at Significance
Level α = 0.05.
To gain the P-Value, perform an interpolation with values from the t-Table as shown below:
-------------------------------t(1 − 0.8 = 0.2)-------------P-Value-------------------t(1 − 0.75 = 0.25)
(df = 24)-----------------------0.857---------------------0.75----------------------------0.685
Then analyze (0.75 − 0.857) ÷ (0.685 − 0.857) equals (P-Value − 0.2) ÷ (0.25 − 0.2)
which reduces to P-Value = 0.2311046512 equivalent to 0.2311.
The P-Value is the probability of obtaining a sample statistic as extreme as (or more extreme than)
the sample statistic gained if one assumes that the null hypothesis is true.
The P-Value is also defined as the smallest significance level at which the null hypothesis would be rejected.