Paired t-Test Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Paired t-Test.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

A hypothesis test for the mean difference in a paired (matched) data design, where each subject provides two related measurements. The test analyzes the differences di=x1iโˆ’x2id_i = x_{1i} - x_{2i} as a single sample.

You want to know if a tutoring program improves math scores. Instead of comparing two separate groups, you test the SAME students before and after tutoring. Each student is their own control. By looking at the difference (after โˆ’- before) for each student, you eliminate individual variation and focus purely on the change.

Read the full concept explanation โ†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: The paired t-test reduces matched before/after pairs to a single column of differences and tests whether their mean is zero.

Common stuck point: The procedure for paired t-test is the easy part; the trap is treating paired data as two independent samples. Asking "Is every value in one group paired with exactly one specific value in the other (so I can form a difference per pair)?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Is every value in one group paired with exactly one specific value in the other (so I can form a difference per pair)?

Worked Examples

Example 1

medium
Students' scores before and after tutoring: Before: {70,65,80,75,60}\{70, 65, 80, 75, 60\}, After: {75,70,85,80,70}\{75, 70, 85, 80, 70\}. Conduct a paired t-test at ฮฑ=0.05\alpha=0.05 to test if tutoring improved scores.

Answer

tโ‰ˆ6.51>2.132t \approx 6.51 > 2.132. Reject H0H_0. Tutoring significantly improved scores.

First step

1
Differences di=Afterโˆ’Befored_i = \text{After} - \text{Before}: 5,5,5,5,105, 5, 5, 5, 10

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Unlock answer keys One Family plan โ€” every worked solution, all subjects

Example 2

hard
Explain when to use a paired t-test vs. a two-sample t-test. If shoe comfort is measured on the same subjects wearing Brand A and Brand B, which test is appropriate and why?

Example 3

easy
Five pairs give differences {0,2,0,4,4}\{0, 2, 0, 4, 4\}. Compute dห‰\bar{d} and state the null hypothesis for a paired t-test.

Example 4

medium
Four pairs give differences {2,4,6,8}\{2, 4, 6, 8\}. Find dห‰\bar{d}, sds_d, and the paired t-statistic.

Example 5

medium
Six pairs of weights (before/after a diet, in kg) are: before {80,85,90,75,82,88}\{80, 85, 90, 75, 82, 88\}, after {77,82,86,73,79,84}\{77, 82, 86, 73, 79, 84\}. Compute the mean difference (after โˆ’- before).

Example 6

medium
Build a 95%95\% CI for ฮผd\mu_d when dห‰=10\bar{d} = 10, sd=4s_d = 4, n=16n = 16. Use tโˆ—=2.131t^* = 2.131.

Example 7

medium
Three twins' weights are recorded: twin A in group 1, twin B in group 2. The 10 pairs give differences with dห‰=1.5\bar{d} = 1.5 kg, sd=2s_d = 2 kg. Compute tt and decide at ฮฑ=0.05\alpha = 0.05 two-sided (tโˆ—=2.262t^* = 2.262).

Example 8

medium
Five pairs give differences {โˆ’1,0,2,1,3}\{-1, 0, 2, 1, 3\}. Find dห‰\bar{d} and sds_d.

Example 9

hard
A paired study has dห‰=3\bar{d} = 3, sd=6s_d = 6, n=36n = 36. Compute tt, and find the two-sided p-value using P(โˆฃT35โˆฃ>3)โ‰ˆ0.005P(|T_{35}| > 3) \approx 0.005.

Example 10

hard
Twelve patients' cholesterol before and after a drug have dห‰=โˆ’8\bar{d} = -8 mg/dL, sd=12s_d = 12. Construct a 90%90\% CI for ฮผd\mu_d using tโˆ—=1.796t^* = 1.796.

Example 11

hard
A study reports a paired test result as 'significant, p<0.05p < 0.05', but doesn't report the effect size. Critique this reporting.

Example 12

hard
In a paired study, the correlation between before and after measurements is ฯ\rho. How does ฯ\rho affect the paired test's standard error relative to a two-sample test?

Example 13

challenge
Derive: if X1i,X2iX_{1i}, X_{2i} are paired observations with Var(X1i)=Var(X2i)=ฯƒ2\text{Var}(X_{1i}) = \text{Var}(X_{2i}) = \sigma^2 and Cor(X1i,X2i)=ฯ\text{Cor}(X_{1i}, X_{2i}) = \rho, show that Var(di)=2ฯƒ2(1โˆ’ฯ)\text{Var}(d_i) = 2\sigma^2(1-\rho).

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
Five paired differences are: {2,โˆ’1,3,0,4}\{2, -1, 3, 0, 4\}. Calculate dห‰\bar{d} and sds_d, then set up the t-test statistic formula.

Example 2

hard
A paired t-test for blood pressure before and after medication: dห‰=โˆ’8\bar{d}=-8 mmHg, sd=5s_d=5 mmHg, n=16n=16. Construct a 95% CI for the true mean difference and interpret.

Example 3

easy
A paired design records each subject's before and after scores. What single quantity does the paired t-test analyze for each subject?

Example 4

easy
Subject scores before/after: 10โ†’1310 \to 13. Compute the difference d=afterโˆ’befored = \text{after} - \text{before}.

Example 5

easy
For paired data, the null hypothesis is usually that the mean difference equals what value?

Example 6

easy
Differences are 2,4,62, 4, 6. Compute the mean difference dห‰\bar{d}.

Example 7

easy
With n=16n = 16 pairs, how many degrees of freedom does the paired t-test use?

Example 8

easy
The paired t-statistic is t=dห‰sd/nt = \frac{\bar{d}}{s_d / \sqrt{n}}. If dห‰=6\bar{d} = 6, sd=4s_d = 4, n=16n = 16, compute tt.

Example 9

easy
Which condition must be checked for a paired t-test: normality of the differences, or normality of each original group?

Example 10

easy
Why does a paired design often have more power than using two independent groups for the same subjects?

Example 11

medium
Differences from a before/after study are 3,5,7,53, 5, 7, 5. Compute dห‰\bar{d}.

Example 12

medium
A paired t-test gives t=3.2t = 3.2 on df=9df = 9, p-value =0.011= 0.011, at ฮฑ=0.05\alpha = 0.05. Conclude about the mean difference.

Example 13

medium
A study measures the SAME 30 students before and after a course. Is a paired or two-sample t-test appropriate, and why?

Example 14

medium
Build a CI for the mean difference: dห‰=8\bar{d} = 8, sd/n=1.5s_d/\sqrt{n} = 1.5, tโˆ—=2.0t^* = 2.0.

Example 15

medium
A student computes the mean of the before group (7272) and the after group (7878) and tests the difference 66 with a two-sample test. Why is this wrong for paired data?

Example 16

medium
Differences dd have dห‰=0\bar{d} = 0. Without computing further, what is the paired t-statistic and the likely conclusion?

Example 17

medium
Twins are matched and one of each pair gets a treatment. Each pair gives one difference. Is this a paired or two-sample design?

Example 18

medium
A one-sided paired test (Ha:ฮผd>0H_a: \mu_d > 0) has t=2.1t = 2.1 on df=14df = 14. The two-sided p-value would be 0.0540.054. What is the one-sided p-value (effect in predicted direction)?

Example 19

medium
Before/after pairs give differences 1,2,0,11, 2, 0, 1. Compute the mean difference dห‰\bar{d}.

Example 20

challenge
Paired differences: 4,6,5,54, 6, 5, 5. Compute dห‰\bar{d}, sds_d, and the t-statistic.

Example 21

challenge
A researcher uses a two-sample t-test on paired data and gets p-value 0.080.08; the correct paired test gives 0.020.02. Explain why the paired test found significance when the two-sample test did not.

Example 22

challenge
Design A measures 20 people twice (before/after). Design B uses 20 different people in each of two groups (40 total). For detecting a within-person change, which is generally more efficient and why?

Example 23

easy
A subject scores 4040 before and 4545 after training. Compute the difference d=afterโˆ’befored = \text{after} - \text{before}.

Example 24

easy
Differences are {1,2,3,4,5}\{1, 2, 3, 4, 5\}. Compute dห‰\bar{d}.

Example 25

easy
Why is matching subjects (e.g., before/after on the same person) called a paired design?

Example 26

easy
What is the standard error of dห‰\bar{d} when sd=3s_d = 3 and n=9n = 9?

Example 27

medium
A paired t-test with dห‰=1.2\bar{d} = 1.2, sd=3s_d = 3, n=36n = 36 produces what t-statistic?

Example 28

medium
A paired test gives t=2.5t = 2.5 on df=10df = 10. The critical value for ฮฑ=0.05\alpha = 0.05 two-sided is tโˆ—=2.228t^* = 2.228. Decide.

Example 29

medium
A study tests systolic BP before and after a drug. Why is a paired t-test better than a two-sample test here?

Example 30

medium
A paired t-test gives t=1.0t = 1.0 on df=9df = 9, p-value =0.343= 0.343. At ฮฑ=0.05\alpha = 0.05, decide.

Example 31

hard
A researcher inadvertently uses a two-sample t-test on paired before/after data and gets p=0.20p = 0.20. A paired test on the same data gives p=0.01p = 0.01. Which p-value is correct, and why is the other wrong?

Example 32

hard
For a paired study with dห‰=0.5\bar{d} = 0.5, sd=2s_d = 2, what minimum sample size nn achieves โˆฃtโˆฃโ‰ฅ2|t| \ge 2?

Example 33

hard
What happens to the paired t-test if you accidentally enter the data as beforeโˆ’after\text{before} - \text{after} instead of afterโˆ’before\text{after} - \text{before}?

Example 34

hard
A paired t-test reveals dห‰=0.3\bar{d} = 0.3 standard deviations (Cohen's dz=0.3d_z = 0.3) with p=0.001p = 0.001 from n=200n = 200 pairs. Is this practically large?

Background Knowledge

These ideas may be useful before you work through the harder examples.

hypothesis testingconfidence intervalsampling distributionmeanstandard deviation