Hypothesis Testing: T-Test

April 12, 2026

Problem

Test if a tutoring program improved scores. Before: mean 65, After: mean 72, n = 15, s = 10.

Explanation

When to use the t-test (vs z-test)

Use the t-test when the population standard deviation σ\sigma is unknown and you use the sample standard deviation ss instead. The t-distribution has heavier tails than the normal, especially for small samples.

Step-by-step: paired t-test

Step 1 — Hypotheses:

H0:μd=0H_0: \mu_d = 0 (no improvement)

Ha:μd>0H_a: \mu_d > 0 (improvement — one-tailed)

Step 2 — Test statistic:

t=dˉ0sd/n=726510/15=72.582=2.711t = \frac{\bar{d} - 0}{s_d / \sqrt{n}} = \frac{72 - 65}{10 / \sqrt{15}} = \frac{7}{2.582} = 2.711

Step 3 — Degrees of freedom: df=n1=14df = n - 1 = 14.

Step 4 — Critical value: For one-tailed α=0.05\alpha = 0.05, df=14df = 14: tcrit=1.761t_{\text{crit}} = 1.761.

Step 5 — Decision: t=2.711>1.761t = 2.711 > 1.761. Reject H0H_0.

The tutoring program produced a statistically significant improvement.\boxed{\text{The tutoring program produced a statistically significant improvement.}}

t-distribution vs normal

The t-distribution is wider (heavier tails) than the normal, reflecting extra uncertainty from estimating σ\sigma. As nn increases, tt approaches the normal.

Try it in the visualization

The t-distribution with the appropriate df is drawn. The test statistic and critical value are marked. The rejection region is shaded.

Interactive Visualization

Parameters

65.00
72.00
10.00
15.00
0.05
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Hypothesis Testing: T-Test | MathSpin