Two Samples: Independent or Paired?
AP Statistics · Unit 4 — Inference for Quantitative Data: Means
The decision that comes first
Before any formula, answer one question: are the two sets of measurements linked case by case?
- Paired — same subject measured twice (before/after), or matched pairs. Compute the differences and run a one-sample $t$-procedure on them, $df=n-1$ where $n$ is the number of pairs.
- Two independent samples — separate groups with no pairing. Use the two-sample $t$:
Choosing the wrong one is not a small error: paired data analysed as independent throws away the pairing that made the design powerful, and usually hides a real effect.
Worked example: recognizing the design
Blood pressure is measured in $30$ patients before and after taking a drug. Which procedure should be used?
Solution
Each patient is measured twice — before and after. The two sets of numbers are linked patient by patient ⇒ paired.
Method: compute $d_i=\text{before}_i-\text{after}_i$ for each person, giving $30$ differences. Then run a one-sample $t$ on those $30$ differences with $df=29$, testing $H_0:\mu_d=0$.
If you treated them as two independent samples, the variability between patients (people whose blood pressure is naturally high or low) would mix in and mask the effect of the drug.