The short answer
The study design chooses the test—not the appearance of two columns.
Use a paired t test when each value in one condition has a meaningful one-to-one partner in the other condition: the same patient measured twice, matched specimens, or deliberately paired experimental units. Use an unpaired test when observations in the two groups come from independent units.
The canonical sleep experiment
R's sleep dataset records the increase in sleep,
relative to control, produced by two soporific drugs in the same
ten patients. The R documentation explicitly warns that the
group labels can be misleading: these are repeated measurements
on ten people, not two independent groups.
What changes when pairing is ignored?
Mean drug 1 − drug 2 difference: −1.58 h; 95% CI −2.46 to −0.70 h.
The same 20 numbers are treated as if they came from 20 independent people.
The mean difference is identical in both calculations. The uncertainty is not. The paired calculation works on ten within-patient differences, removing stable between-patient variation from the error term. This is not permission to choose the test that produces a smaller P value; the pairing must come from the design.
What the paired t test assumes
- Pairs are defined before looking at the outcome.
- Different pairs are independent of one another.
- The outcome is continuous and the pair differences are meaningfully numeric.
- The distribution of the pair differences is sufficiently compatible with the t model.
A compact reporting template
“Sleep increase was compared within the same ten patients using a two-sided paired t test. The mean drug 1 − drug 2 difference was −1.58 hours (95% CI −2.46 to −0.70), t(9) = −4.06, P = 0.00283. Individual paired observations and the distribution of differences were inspected.”
Adapt that text to the actual design, analysis plan, diagnostics and reporting standard for your study. Software cannot establish whether observations were truly paired.
Sources and reproducibility
- R documentation: Student's sleep data—dataset structure, provenance and paired t-test example.
- NIST/SEMATECH handbook: analysis of paired observations—definition and paired-test formulation.
- Plotwright statistical validation—the executable reference tolerance for this result is |Δt| ≤ 5×10⁻⁴ and |ΔP| ≤ 1×10⁻⁵.