Why Pool Two Sample Variances?
When two independent groups are sampled from normal populations with the same variance, each group provides information about that shared variance. Pooling uses both groups’ residual sums of squares to estimate it. The resulting two-sample t ratio has an exact finite-sample distribution, not merely an approximation.
The exact result depends on the model: the samples must be independent, each population must be normal, and the two population variances must be equal. We derive the distribution under those conditions and distinguish the null case from the case of a nonzero difference in population means.
The weights in \(S_p^2\) are the respective residual degrees of freedom, not the sample sizes. Each sample mean uses one degree of freedom, leaving \(n_1-1\) and \(n_2-1\) residual degrees of freedom. Their total is \(\nu=n_1+n_2-2\).
The Exact Distribution
A noncentral t distribution with degrees of freedom \(\nu\) and noncentrality parameter \(\delta\) is the distribution of \((Z+\delta)/\sqrt{U/\nu}\), where \(Z\sim N(0,1)\), \(U\) has a chi-square distribution with \(\nu\) degrees of freedom, and \(Z\) and \(U\) are independent. Thus the theorem requires establishing both the chi-square law of the pooled residual sum of squares and its independence from the sample-mean contrast.
Deriving the Residual and Contrast Laws
Let \(Z\) be the vector formed by standardizing each observation by its population mean and standard deviation: \[ Z=\left(\frac{X_1-\mu_1}{\sigma},\ldots,\frac{X_{n_1}-\mu_1}{\sigma}, \frac{Y_1-\mu_2}{\sigma},\ldots,\frac{Y_{n_2}-\mu_2}{\sigma}\right)^T. \] Its \(n_1+n_2\) entries are independent standard normal variables. Let \(P\) be the block diagonal matrix with blocks \(I_{n_1}-J_{n_1}/n_1\) and \(I_{n_2}-J_{n_2}/n_2\), where \(I_m\) is the \(m\)-dimensional identity matrix and \(J_m\) is the \(m\)-by-\(m\) matrix of ones. Each block removes the sample mean of its group.
To verify the residual distribution, note that \(P\) is symmetric and idempotent: each block \(I_m-J_m/m\) has both properties. Its rank is \((n_1-1)+(n_2-1)=\nu\). The sum of the squared deviations within the two samples, divided by \(\sigma^2\), is \(Z^TPZ\). By choosing an orthonormal basis of eigenvectors for \(P\), its quadratic form becomes the sum of squares of \(\nu\) independent standard normal coordinates: the eigenvalues are \(\nu\) ones and the remaining eigenvalues are zero. Therefore
For independence, define \(W=(\bar X-\bar Y-(\mu_1-\mu_2))/[\sigma\sqrt{1/n_1+1/n_2}]\). This is a linear combination \(c^TZ\) for a unit vector \(c\): its entries are \(1/n_1\) in the first group, \(-1/n_2\) in the second, with all entries divided by \(\sqrt{1/n_1+1/n_2}\). The entries of \(c\) sum to zero within each group, so \(Pc=0\). Consequently \(c\) is orthogonal to the range of \(P\).
Extend \(c\) and an orthonormal basis for the range of \(P\) to an orthonormal basis of the whole space. In these coordinates, the standard normal vector \(Z\) still has independent standard normal coordinates: its density is proportional to \(\exp(-z^Tz/2)\), which is unchanged by an orthogonal transformation and factors into the coordinate densities. The contrast \(W=c^TZ\) is one such coordinate. The quadratic form \(Z^TPZ\) depends only on the \(\nu\) coordinates for the range of \(P\). Those coordinates are independent of \(W\), proving the claimed independence. \(\square\)
A related consequence checks the scale of the pooled estimator. Since a chi-square variable with \(\nu\) degrees of freedom has expectation \(\nu\), the displayed quadratic-form identity gives \(E[\nu S_p^2/\sigma^2]=\nu\), and hence \(E[S_p^2]=\sigma^2\). Thus pooling preserves unbiasedness under the common-variance model.
From the Components to a t Ratio
The sample means are linear combinations of independent normal observations. Their difference is therefore normal, with mean \(\mu_1-\mu_2\) and variance \(\sigma^2(1/n_1+1/n_2)\). It follows that
The preceding result shows that this standardized contrast is independent of \(U=\nu S_p^2/\sigma^2\), where \(U\sim\chi^2_\nu\). Substituting \(S_p^2=\sigma^2 U/\nu\) into the statistic gives
The numerator is normal with mean \(\delta\) and variance one, and is independent of \(U\). This is precisely the defining representation of a noncentral t variable with degrees of freedom \(\nu\) and noncentrality parameter \(\delta\). When \(\mu_1=\mu_2\), \(\delta=0\), giving the central Student t law. \(\square\)
Worked Calculations
Worked Example: Degrees of Freedom Under Equal Means
Suppose independent normal samples have sizes \(n_1=8\) and \(n_2=12\), with a common variance, and suppose their population means are equal. Identify the exact distribution of the pooled t statistic.
The pooled degrees of freedom are \(\nu=8+12-2=18\). The equal-means assumption makes \(\delta=0/[\sigma\sqrt{1/8+1/12}]=0\). Therefore \(T_p\sim t_{18}\), the central Student t distribution with 18 degrees of freedom. The standard-error factor in the denominator is \(\sqrt{1/8+1/12}=\sqrt{3/24+2/24}=\sqrt{5/24}\), multiplied by \(S_p\).
Worked Example: A Nonzero Difference in Population Means
Let \(n_1=10\), \(n_2=15\), \(\mu_1-\mu_2=2\), and \(\sigma=4\). Find the exact distribution of \(T_p\).
The degrees of freedom are \(10+15-2=23\). The standard deviation of the difference between sample means is \(4\sqrt{1/10+1/15}=4\sqrt{1/6}=4/\sqrt{6}\). Thus \[ \delta=\frac{2}{4/\sqrt{6}}=\frac{\sqrt{6}}{2}. \] The statistic has a noncentral t distribution with 23 degrees of freedom and noncentrality parameter \(\sqrt{6}/2\). If the difference in population means were instead zero, the same sample sizes and variance would give the central \(t_{23}\) distribution.
Worked Example: Computing a Pooled t Statistic from Summary Values
Suppose the first sample has \(n_1=4\), \(\bar X=5\), and \(S_X^2=20/3\). The second has \(n_2=5\), \(\bar Y=8\), and \(S_Y^2=10\). Compute the pooled statistic and state its null distribution under equal population means.
The within-group residual sums of squares are \((4-1)(20/3)=20\) and \((5-1)(10)=40\). Hence \[ S_p^2=\frac{20+40}{4+5-2}=\frac{60}{7}. \] The squared standard-error factor is \[ S_p^2(1/4+1/5)=\frac{60}{7}\left(\frac{9}{20}\right)=\frac{27}{7}. \] The observed mean difference is \(5-8=-3\), so \[ T_p=\frac{-3}{\sqrt{27/7}}=-\sqrt{\frac{7}{3}}\approx -1.528. \] There are \(4+5-2=7\) degrees of freedom. Under the model’s equal-means null hypothesis, the statistic has a central \(t_7\) distribution. The computed value itself does not change the reference distribution; the null hypothesis sets the noncentrality parameter to zero.
Assumptions and a Common Pitfall
The exact t result is useful because it supplies a finite-sample reference law for a standardized difference in means. Its denominator estimates the shared variance using all available within-group residual information, while its numerator measures the difference in sample means. The two components are independent under the stated normal model, which is what makes the exact ratio law possible.
A common mistake is to pool the variances even when the populations have different variances and then claim the same exact t distribution. The proof above uses one common \(\sigma^2\) both to standardize the two samples and to express the pooled residual sum of squares as a single scaled chi-square variable independent of the contrast. If the population variances differ, those steps do not yield the stated ratio representation in general. Independence and normality also matter; the theorem is not a distribution-free guarantee.
Another frequent error is to use \(n_1+n_2\) degrees of freedom. Each sample loses one degree of freedom when its sample mean is estimated, so the residual degrees of freedom add to \((n_1-1)+(n_2-1)=n_1+n_2-2\). The weighted pooled variance uses these same degrees of freedom.
Check Your Understanding
Use the assumptions and derivation above to answer these questions.
- For sample sizes \(n_1=7\) and \(n_2=9\), what are the pooled degrees of freedom?
- What is the noncentrality parameter when \(\mu_1=\mu_2\), and what does that imply for the distribution?
- Why are the two sample residual degrees of freedom added when forming the pooled variance?
- Which independence fact is needed to express the pooled statistic as a noncentral t ratio?
- Why does the exact pooled t result not automatically apply when the two population variances differ?