1. Within-Pair Difference & Paired t-Statistic
\[ d_i = y_{\text{After},i} - y_{\text{Before},i}, \qquad \bar{d} = \frac{1}{n}\sum_{i=1}^{n} d_i, \qquad t = \frac{\bar{d} - \Delta_0}{s_d / \sqrt{n}} \]
💬 Read it in plain English: We first subtract each unit's baseline score from its follow-up score to get a single column of changes d_i, then divide the average change d̄ by its standard error s_d / √n.
yBefore,i, yAfter,i
Observed metric values for unit i under the two conditions or time points.
di
Within-pair change for unit i: y_{After,i} − y_{Before,i}.
n
Total count of complete paired observations (degrees of freedom df = n − 1).
d̄, sd
Sample mean and sample standard deviation of the n within-pair differences.
Δ0
Null benchmark difference under H₀ (defaults to 0).
t
Test statistic compared against Student’s t distribution with df = n − 1.
2. Confidence Interval & Standardized Effect Sizes (Cohen's d_z, Hedges' g_z)
\[ \text{CI}_{1-\alpha} = \bar{d} \pm t_{\alpha/2,\,n-1}\,\frac{s_d}{\sqrt{n}}, \qquad d_z = \frac{\bar{d}}{s_d}, \qquad g_z = d_z \cdot \left(1 - \frac{3}{4(n - 1) - 1}\right) \]
💬 Read it in plain English: The confidence interval gives the plausible range for the true average change, while Cohen's d_z expresses the average shift as a multiple of the standard deviation of changes.
tα/2, n−1
Two-tailed critical value from Student’s t distribution at significance level α.
CI1−α
Plausible range for the population mean within-pair difference.
dz
Standardized mean change relative to the variability of pair differences.
gz
Small-sample corrected standardized effect size for paired designs.