The
paired t-test compares the means of two
dependent groups (e.g., ``Before and After'' measurements on the
same subject or matched pairs).
It is used when:
- The data consist of matched pairs \((x_1, x_2)\).
- The differences \(d = x_2 - x_1\) (or \(x_1 - x_2\)) are calculated.
- The differences follow a normal distribution.
The test is essentially a
one-sample t-test performed on the differences \(d\), testing if the mean difference \(\mu_d\) is zero.The test statistic is:$$ t = \frac{\bar{d} - 0}{s_d / \sqrt{n}} $$