Sub topic 7
Comparing Two Means: Independent and Paired Samples
Assume you know how to calculate a mean, variance, standard deviation, and t-statistic. You should also understand null and alternative hypotheses and the difference between a one-tailed and two-tailed test.
A two-sample test asks whether two population means differ. The correct test depends on how the observations were collected.
Independent samples
Independent samples come from separate groups. For example, you might compare the mean annual return of two unrelated investment strategies.
The hypotheses are:
- H0: μ1 − μ2 = 0
- Ha: μ1 − μ2 ≠ 0
For large samples, or when population variances are known, a z-test may be appropriate. In CFA problems, population variances are usually unknown, so use a t-test.
If the two population variances can be treated as equal, use the pooled estimate:
s²p = [(n1 − 1)s1² + (n2 − 1)s2²] / (n1 + n2 − 2)
The test statistic is:
t = [(x̄1 − x̄2) − 0] / [sp √(1/n1 + 1/n2)]
The degrees of freedom are n1 + n2 − 2. Reject H0 when the absolute test statistic exceeds the critical t-value, or when the p-value is below the significance level.
| Situation | Test structure | Degrees of freedom |
|---|---|---|
| Independent groups, equal variances | Pooled two-sample t-test | n1 + n2 − 2 |
| Matched observations | Paired t-test | n − 1 |
Paired samples
Paired samples contain linked observations. Examples include a fund's return before and after a portfolio change, or the same analysts' forecasts under two methods.
First calculate each pair's difference:
di = X1i − X2i
Then test whether the mean difference is zero:
t = (d̄ − 0) / (sd / √n)
The degrees of freedom are n − 1. This test is mathematically a one-sample t-test applied to the differences. Pairing can reduce noise caused by differences between subjects or entities.
Common errors
- Using an independent test when observations are paired wastes information.
- Treating two groups as paired without a real matching relationship can create misleading results.
- A significant difference does not show that one variable caused the other.
- “Fail to reject H0” does not prove that the means are equal.
Exercise
Ten analysts provide forecasts using two methods. Each analyst uses both methods. Which test should compare the methods' mean forecasts, and what degrees of freedom apply?
Show answer
Use a paired t-test because each analyst supplies a matched pair. The degrees of freedom are 10 − 1 = 9.