Skip to main content
BetaLucidstat is in beta. Results are checked against R, but always verify them against your source data.Send feedback via EZY Research

Paired-samples t-test

Compare two measurements from the same people, such as pre-test and post-test scores.

7 min read

Try it

One click opens the “Teaching-method study” sample dataset with this test selected and the variables filled in. Or use your own data.

The paired-samples t-test compares two measurements from the same people, such as pre-test and post-test scores, or stress before and after a programme. Because both sets of data come from the same people, they are not independent, and the independent t-test does not apply.

When to use it

  • You have two numeric columns measured on the same people (or on matched pairs, such as twins).
  • You want to know whether the mean of the two measurements differs.

In Lucidstat, put the first and second measurement in separate columns, with one row per person.

The idea

The paired t-test computes each person's difference (first − second) and tests whether the mean difference is 0. Working with within-person differences removes the differences between people, so the test is more powerful than comparing two groups of different people.

t = d̄ ÷ (s ÷ √n)
d̄ = mean difference, s = SD of the differences, n = number of pairs

The effect size is Cohen's dz = d̄ ÷ s.

Assumptions

  • The differences are normally distributed (not each measurement). Lucidstat checks this with Shapiro–Wilk.
  • If the differences are not normal and there are fewer than 30 pairs, Lucidstat suggests the Wilcoxon signed-rank test.

Worked example

The "Teaching-method study" sample has 90 students with pre-test and post-test scores. One student has no post-test score, leaving 89 pairs.

Checking assumptions: the differences are not normal (Shapiro–Wilk W = .955, p = .004), but with 89 pairs (more than 30) the paired t-test is fairly robust. Lucidstat shows this as a grey note.

Means and standard deviations
MeasurementnMSD
Pre-test8954.537.86
Post-test8968.1212.15
Test result (pre-test − post-test)
Mean differenceSD of differencestdfp95% CIdz
−13.608.71−14.7288< .001[−15.43, −11.76]−1.56

How to read it

  • p < .001: pre-test and post-test scores differ significantly.
  • The minus signs on t, the difference and dz come from the order of subtraction (pre − post). They mean post-test scores were higher, by 13.60 points on average. Swap the columns and the numbers turn positive; the meaning is the same.
  • |dz| = 1.56 is far above the "large" benchmark of 0.80: scores rose a lot.
Reporting example (APA 7)

A paired-samples t-test showed that Pre-test (M = 54.53, SD = 7.86) differed significantly from Post-test (M = 68.12, SD = 12.15), t(88) = −14.72, p < .001, mean difference = −13.60, 95% CI [−15.43, −11.76], dz = −1.56, a large effect. Post-test was higher.

Reporting example (Thai thesis style)

ผลการทดสอบค่าที (Paired-samples t-test) พบว่า คะแนนก่อนเรียน (x̄ = 54.53, S.D. = 7.86) และคะแนนหลังเรียน (x̄ = 68.12, S.D. = 12.15) แตกต่างกันอย่างมีนัยสำคัญทางสถิติที่ระดับ .05 (t(88) = −14.72, p < .001) โดยคะแนนหลังเรียนมีค่าเฉลี่ยสูงกว่า และขนาดอิทธิพลอยู่ในระดับใหญ่ (dz = −1.56)

Common mistakes

  • Entering data in long format (separate rows for pre and post). Use two columns, one row per person.
  • Checking the normality of each measurement instead of the differences.
  • Reading a minus sign as a decrease without checking the order of subtraction.

References

  • Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Lawrence Erlbaum.
  • Lakens, D. (2013). Calculating and reporting effect sizes to facilitate cumulative science: A practical primer for t-tests and ANOVAs. Frontiers in Psychology, 4, 863.

Try it

One click opens the “Teaching-method study” sample dataset with this test selected and the variables filled in. Or use your own data.

Related lessons