Paired t-Test Formula

Paired t-test is a hypothesis test for the mean difference in a paired (matched) data design, where each subject provides two related measurements.

The Formula

t=dˉ−μd0sd/n

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

Quick example

5 students' scores before and after tutoring: differences d=+8,+3,+12,+5,+7. dˉ=7,sd=3.39,t=7−03.39/5=71.52≈4.61(df=4) Strong evidence that tutoring improved scores (p<0.01).

Notation

dˉ = mean of differences, sd = standard deviation of differences, n = number of pairs, df=n−1. Usually H0:μd=0.

What this formula means

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−x2i as a single sample.

A paired t-test is like weighing yourself on the same bathroom scale before and after a holiday. Even if that scale reads 2 kg heavy, the error cancels when you subtract, so the change is trustworthy. Comparing your weight with a friend's on a different scale would mix the change up with two different errors.

Formal view

t=dˉ−μd0sd/n with df=n−1 where di=x1i−x2i and dˉ=1n∑di

Worked examples

Example 1

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

Answer

t≈6.51>2.132. Reject H0. Tutoring significantly improved scores.

First step

1.
Differences di=After−Before: 5,5,5,5,10

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

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

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}. Compute dˉ and state the null hypothesis for a paired t-test.

Common mistakes

  • Treating paired data as two independent samples - form the per-pair differences and run a one-sample test on them.
  • Using df=n1+n2−2 - the paired test uses df=n−1 where n is the number of PAIRS.
  • Using s of one group instead of sd - the test uses the standard deviation of the differences, not of either original column.

Why this formula matters

People differ from each other far more than they change from one week to the next. Pairing removes those person-to-person differences, so a small but steady change becomes visible: in the find-the-mistake example below, the same 3.75-point gain gives t≈0.42 when treated as two independent groups and t≈7.83 when paired. Without the paired test, well-designed before-and-after studies would look like failures.

Frequently asked questions

What is the Paired t-Test formula?

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−x2i as a single sample.

How do you use the Paired t-Test formula?

Use it when every value has a partner: before and after on the same subjects, two measurements on the same object (left eye and right eye), or matched pairs such as twins. The question asks about the mean difference. If the groups are different, unlinked people, use a two-sample t-test instead; if the data are yes/no answers rather than measurements, use a test for proportions.

What do the symbols mean in the Paired t-Test formula?

dˉ = mean of differences, sd = standard deviation of differences, n = number of pairs, df=n−1. Usually H0:μd=0.

Why is the Paired t-Test formula important in Math?

People differ from each other far more than they change from one week to the next. Pairing removes those person-to-person differences, so a small but steady change becomes visible: in the find-the-mistake example below, the same 3.75-point gain gives t≈0.42 when treated as two independent groups and t≈7.83 when paired. Without the paired test, well-designed before-and-after studies would look like failures.

What do students get wrong about Paired t-Test?

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.

What should I learn before the Paired t-Test formula?

Before studying the Paired t-Test formula, you should understand: hypothesis testing, confidence interval, sampling distribution, mean, standard deviation.