By the end of this lesson, you should be able to
- Recognize a paired design.
- Use within-pair differences for inference.
- Identify causal limitations of simple before-and-after studies.
Five people each take one assessment before training and another after training. We have ten scores. Do we have ten independent observations?
No. We have five people, each observed twice. That relationship is the important part of the data.
Subtract first, infer second
Suppose the fictional scores are:
| Person | Before | After | Change |
|---|---|---|---|
| A | 60 | 64 | 4 |
| B | 65 | 70 | 5 |
| C | 70 | 71 | 1 |
| D | 75 | 81 | 6 |
| E | 80 | 85 | 5 |
The differences are , with mean . A paired t test is simply a one-sample t procedure on those five differences:
where is the mean change hypothesized under the null.
The variability between people at baseline cancels from each individual’s difference. That can improve precision substantially.
Not everything can be paired
Two unrelated groups of five people cannot be made into matched pairs by sorting the data and placing the rows side by side. Pairing is a property of the design: repeated measures on the same unit, or legitimately matched units chosen under a specified method.
The differences also need their own assumptions. In a small paired t test, we care about the distribution of the differences, not separately about the distributions of before and after scores.
Causality is still hiding in the hallway
Even if every student improves, we cannot immediately attribute improvement to the training. Practice on the test, aging, concurrent instruction, or ordinary fluctuation could explain some of the change.
An appropriately randomized comparative design can support stronger attribution. A before-and-after contrast on its own mainly describes change.
In R
before <- c(60,65,70,75,80)
after <- c(64,70,71,81,85)
t.test(after, before, paired = TRUE)
Compare this with a one-sample test on after - before; they are algebraically equivalent.
Check your understanding
- What is the observational unit and sample size in the paired analysis?
- What is the sample mean change?
- Why can a valid paired comparison still fail to identify a causal training effect?
Worked responses
-
One person contributes one difference; .
-
4.2 points.
-
Other changes through time may influence the results without a credible comparative design.
The covariance that pairing preserves
For paired measurements , define . Then . Positive within-person covariance can make differences much less variable than the raw measurements. Negative covariance can have the opposite effect. Pairing does not guarantee a smaller standard error; its justification is the actual matching structure.
For synthetic differences , the mean is . Squared deviations sum to , so and . A 95% t interval with four degrees of freedom is
The target is the mean within-pair change in the population represented by the pairs. The normality condition for an exact small-sample paired t procedure concerns the distribution of differences, not separate normality of before and after measurements. Missing one member of a pair removes that difference from a complete-pair analysis and can introduce selection bias if completeness depends on outcomes.
A before-and-after increase is still not a randomized treatment effect. Practice effects, time trends, regression to the mean, and cointerventions may explain change. A randomized comparison of changes can address a different question than testing change in one treated group alone.
Additional practice
- For differences , calculate their mean, sample variance, and estimated standard error.
- If all differences are zero, what happens to the usual t statistic for a zero null?
- Why must changing the direction of subtraction reverse the estimate and interval signs consistently?
Worked additional solutions
- Mean , squared deviations sum , variance , and standard error .
- Both numerator and estimated standard error are zero; the displayed t ratio is undefined. Do not report a computed ratio or claim the finite sample proves a population equality.
- Replacing by changes the mean sign and preserves its standard error. An interval becomes ; the estimand’s direction has changed.
Keep your place
Mark this lesson complete after you've read it, attempted its exercises, and explained its central idea in your own words.
Progress is not saved unless you choose to mark the lesson complete.
Saved only in this browser's local storage. No required account, server transmission, or analytics. You can reset your saved progress on the course page. Clearing browser data also clears the record.