Study design · 6 min read

Paired vs independent data: why it changes everything

The same numbers can give p = 0.60 or p = 0.0002 depending on one design question. Here is how to answer it.

Advertisement
Updated November 2026 · Worked example included

Before choosing any statistical test, you have to answer one design question: are the values in your groups independent of each other, or are they paired? Getting this wrong is one of the most common errors in published research, and it can make a very clear effect look like noise, or noise look like an effect. This guide explains how to tell the difference, shows with real numbers why it matters so much, and lists the right test for each case.

The difference in one sentence

Data is paired when every value in one group has a natural partner in the other group: the same person, animal, sample or location measured twice, or two subjects deliberately matched with each other.

Paired (dependent)Independent
Blood pressure of the same 20 patients before and after treatmentBlood pressure of 20 treated patients and 20 different untreated patients
Left eye vs right eye of each participantParticipants with vs without glasses
Two lab methods run on the same set of samplesSamples assigned randomly to one of two methods
Twins split between two conditionsUnrelated people in two conditions
Each cell culture plate split into treated and untreated wellsSeparate plates for treated and untreated

A useful test: could you draw a line connecting each value in group 1 to exactly one value in group 2, and would that line mean something? If yes, the data is paired.

Why it matters: a worked example

Five patients had their systolic blood pressure measured before and after a new treatment:

PatientBeforeAfterChange
1120116−4
2135131−4
3128125−3
4142137−5
5150146−4
Mean135.0131.0−4.0

Every single patient went down by 3 to 5 mmHg. The effect is obvious. Now compare the two ways to analyse it:

Independent t-test (wrong here)Paired t-test (correct)
What it comparesThe two group means, using the spread between patientsThe mean change within each patient
Relevant SD≈ 11.6 (patients differ a lot from each other)0.71 (the changes are very consistent)
t0.5512.6
Degrees of freedom84
p≈ 0.60≈ 0.0002

The independent test buries the 4 mmHg effect under the 30 mmHg differences between patients. The paired test removes those between-patient differences by looking only at each person's change, and the effect stands out clearly. This is the whole point of paired designs: each subject acts as their own control, which can make an experiment far more sensitive with the same number of participants.

The mistake can also go the other way. Treating repeated measurements as independent observations (for example, counting five measurements from each of four mice as n = 20) pretends you have more independent information than you do, which produces p-values that are too small. This error is called pseudoreplication.

Choosing the right test

DesignRoughly normal dataSkewed data, outliers, ordinal
2 independent groupsWelch's t-testMann-Whitney U
2 paired measurementsPaired t-testWilcoxon signed-rank test
3+ independent groupsOne-way ANOVAKruskal-Wallis
3+ measurements on the same subjectsRepeated-measures ANOVA (or a mixed model)Friedman test

For a paired t-test, the normality assumption applies to the differences, not to the raw values. Plotting a histogram of the differences is the quickest check.

Practical tips

Running a paired analysis in StatFlo

  1. Put the two measurements in two columns of the same sheet (for example Before and After), with one subject per row. StatFlo matches the values row by row, and a row missing either value is left out (the results say how many).
  2. Upload the file or paste the cells, and select exactly those two columns.
  3. Choose Before–after plot (paired data) as the graph type: each subject is drawn as a line from one condition to the other, with the mean change in bold. It shows at a glance whether most subjects moved in the same direction.
  4. Under Statistical Test, choose Paired t-test for roughly symmetric differences, or Wilcoxon signed-rank test for skewed differences, outliers or ordinal scores.

The paired t-test reports t, df, p, the mean difference with its 95% confidence interval, the SD of the differences and Cohen's dz. The Wilcoxon test reports W, p, the median difference and the matched-pairs rank-biserial r; for small samples it uses an exact p-value. Both are checked against SciPy reference results. Running the worked example above through StatFlo gives exactly the numbers in the table: t(4) = 12.65, p = 0.0002, mean difference 4.0 (95% CI 3.1 to 4.9).

Prefer a spreadsheet? =T.TEST(before_range, after_range, 2, 1) in Excel or Google Sheets returns the two-sided p-value of a paired t-test (the final 1 means paired).

Explore your data visually first.

Upload before/after columns or a column of differences and check their distribution in StatFlo.

Open StatFlo