Tutorials › VEE Mathematical Statistics › Why Independent Samples Are Required for the Exact F Test

VEE Mathematical Statistics · F Distribution and Sampling Results · Tutorial 426 of 880

Why Independent Samples Are Required for the Exact F Test

Understand the assumptions behind the exact F test and recognize when dependent or paired data make its usual reference law invalid.

Intermediate 11 min read

What You'll Learn

  • Identify the independence and normality assumptions needed for the exact F reference distribution.
  • Explain how independent normal samples yield independent chi-square statistics for their sample variances.
  • Relate a ratio of scaled sample variances to an F distribution, including its degrees of freedom.
  • See how within-pair dependence can make sample variances dependent even when all observations are normal.
  • Distinguish a numerical variance ratio from a ratio that is validly compared with an exact F distribution.

Why the Exact F Test Needs Independent Samples

A ratio of two sample variances may look like an F statistic, but its distribution is not determined by the ratio alone. For the classical exact F reference law, each sample must come from a normal population, and the two samples must be independent. Pairing observations or sharing a source of variation can make the two sample variances dependent. In that case, the usual F table does not give an exact reference distribution for their ratio.

The distinction matters in variance comparisons because a test’s reference distribution is what calibrates its tail probabilities. A statistic can be calculated perfectly and still be compared with the wrong distribution if the sampling design violates independence. The results below are aligned with the SOA VEE Mathematical Statistics syllabus.

Definition: Two samples are independent if the random observations in one sample are independent of the random observations in the other sample. A paired design instead records observations in linked pairs; observations within a pair may be dependent. The exact classical F law for a ratio of sample variances requires independent samples from normal populations.

How Independence Produces the F Distribution

Let \(X_1,\ldots,X_{n_1}\) be an independent random sample from \(N(\mu_1,\sigma_1^2)\), and let \(Y_1,\ldots,Y_{n_2}\) be an independent random sample from \(N(\mu_2,\sigma_2^2)\). Assume, in addition, that the entire \(X\) sample is independent of the entire \(Y\) sample. Write \(S_X^2\) and \(S_Y^2\) for their usual unbiased sample variances, each calculated with its own sample mean and divisor \(n_j-1\).

For a normal sample, the scaled sample variance has a chi-square distribution. Specifically, \((n_1-1)S_X^2/\sigma_1^2\) has a chi-square distribution with \(n_1-1\) degrees of freedom, and the corresponding result holds for the \(Y\) sample. Since each statistic is a function of its own sample, independence of the two samples makes these two chi-square statistics independent.

$$ \frac{(n_1-1)S_X^2}{\sigma_1^2}\sim\chi^2_{n_1-1}, \qquad \frac{(n_2-1)S_Y^2}{\sigma_2^2}\sim\chi^2_{n_2-1}, \qquad \frac{(n_1-1)S_X^2}{\sigma_1^2} \ \perp\ \frac{(n_2-1)S_Y^2}{\sigma_2^2}. $$

The F distribution is defined as the ratio of two independent chi-square variables after each is divided by its degrees of freedom. Applying that definition gives the variance-scaled ratio below. Under the null hypothesis of equal population variances, the population-variance ratio is one, so the unscaled sample-variance ratio itself has the stated F law.

Theorem: Under the independent-normal-samples assumptions above,
$$ \frac{S_X^2/\sigma_1^2}{S_Y^2/\sigma_2^2} = \frac{(n_1-1)S_X^2/\sigma_1^2}{n_1-1} \bigg/ \frac{(n_2-1)S_Y^2/\sigma_2^2}{n_2-1} \sim F_{n_1-1,n_2-1}. $$

If \(H_0:\sigma_1^2=\sigma_2^2\), this reduces to \(S_X^2/S_Y^2\sim F_{n_1-1,n_2-1}\). If the population variances are not equal, the raw ratio \(S_X^2/S_Y^2\) does not have this standard F law; it is the ratio scaled by \(\sigma_1^2/\sigma_2^2\) that has the stated distribution.

Justification: Why the Two Variance Estimates Are Independent

The reasoning has two separate parts. Normality supplies a chi-square distribution for each scaled sample variance. Independence of the samples supplies independence between those two statistics. For the second part, no special distribution calculation is needed: a statistic computed only from the \(X\) sample is independent of a statistic computed only from the independent \(Y\) sample.

1
Separate the data.
The full \(X\) sample and full \(Y\) sample are independent by assumption.
2
Compute each variance within its sample.
\(S_X^2\) is a function only of the \(X\) observations, and \(S_Y^2\) is a function only of the \(Y\) observations.
3
Use normal-sample results.
Each sample variance, scaled by its population variance and degrees of freedom, has the corresponding chi-square distribution.
4
Form the ratio.
The chi-square variables are independent, so dividing each by its degrees of freedom and taking their ratio gives the F law.

This also shows precisely where a paired design can break the argument. If \(X_i\) and \(Y_i\) are linked within each pair, then \(S_X^2\) and \(S_Y^2\) are functions of dependent data. Their individual scaled distributions may still be chi-square when the marginal samples are normal, but that fact alone does not make the two chi-square variables independent. The defining independent-ratio step for the exact F law is then unavailable.

Worked Example: Checking the F Construction Under the Null

Two independent normal populations are sampled, with sizes \(n_1=7\) and \(n_2=9\). Under the null hypothesis, both population variances are \(16\). The observed sample variances are \(S_X^2=12\) and \(S_Y^2=8\). Identify the exact null reference distribution, calculate the observed ratio, and check the degrees of freedom.

Method. Check the design assumptions, then form the sample-variance ratio. The samples are independent and normal, and the null sets the population variances equal. Thus the ratio has an exact F distribution under the null.

The numerator degrees of freedom are \(n_1-1=7-1=6\), and the denominator degrees of freedom are \(n_2-1=9-1=8\). Therefore the null reference distribution is \(F_{6,8}\).

$$ F_{\mathrm{obs}}=\frac{S_X^2}{S_Y^2} =\frac{12}{8}=1.5. $$

As a check using the chi-square construction, the scaled quantities are \(6(12)/16=4.5\) and \(8(8)/16=4\). Their ratio after division by degrees of freedom is \((4.5/6)/(4/8)=0.75/0.5=1.5\), the same statistic. The answer is \(F_{\mathrm{obs}}=1.5\) on \(6\) and \(8\) degrees of freedom. The common mistake avoided here is assigning degrees of freedom \(n_1,n_2\) rather than \(n_1-1,n_2-1\).

What Pairing Does to Sample Variances

A simple normal model makes the dependence visible. Suppose each pair has observations \(X_i=U_i+\epsilon_i\) and \(Y_i=U_i+\eta_i\), where all components are normal, the components are independent, and their variances are \(\operatorname{Var}(U_i)=2\), \(\operatorname{Var}(\epsilon_i)=2\), and \(\operatorname{Var}(\eta_i)=2\). The common component \(U_i\) is shared by the two observations in pair \(i\). Consequently, \(\operatorname{Var}(X_i)=4\), \(\operatorname{Var}(Y_i)=4\), and \(\operatorname{Cov}(X_i,Y_i)=2\), so the within-pair correlation is \(2/\sqrt{4\cdot4}=0.5\).

For independent pairs from a bivariate normal distribution with marginal variances \(\sigma_X^2,\sigma_Y^2\) and within-pair covariance \(\sigma_{XY}\), the covariance of the usual sample variances is \(\operatorname{Cov}(S_X^2,S_Y^2)=2\sigma_{XY}^2/(n-1)\). One way to see the factor is to express each centered sample as \(n-1\) orthogonal normal contrasts. Corresponding contrasts in the two samples have covariance \(\sigma_{XY}\); for a jointly normal pair of contrasts \(A,B\), \(\operatorname{Cov}(A^2,B^2)=2\operatorname{Cov}(A,B)^2\). Summing over the \(n-1\) contrasts and dividing by \((n-1)^2\) gives the formula.

Worked Example: Dependence Between Variances in Matched Pairs

Use the shared-component model just described with \(n=5\) pairs. Calculate the correlation between the two sample variances. Then decide whether their ratio has the standard exact F reference law.

Method. Compute the marginal variances and covariance first, then use the normal paired-sample formula. From the model, \(\sigma_X^2=4\), \(\sigma_Y^2=4\), and \(\sigma_{XY}=2\).

Since \(n-1=4\), the covariance of the sample variances is \(\operatorname{Cov}(S_X^2,S_Y^2)=2(2^2)/4=2\). For a normal sample, the variance of a sample variance is \(2\sigma^4/(n-1)\). Thus \(\operatorname{Var}(S_X^2)=2(4^2)/4=8\), and likewise \(\operatorname{Var}(S_Y^2)=8\).

$$ \operatorname{Corr}(S_X^2,S_Y^2) =\frac{2}{\sqrt{8\cdot8}} =\frac{2}{8} =0.25. $$

The sample variances are positively correlated, so the independent-chi-square ratio argument does not apply. Although the marginal observations are normal and each scaled variance separately has a chi-square distribution, the ratio does not have the standard exact F reference law. The answer is a sample-variance correlation of \(0.25\), not an independent pair of variance estimates. The common mistake avoided is treating normal marginal samples as sufficient while overlooking their pairing.

When a Numerical Ratio Is Not an Exact F Statistic

A variance ratio can always be calculated from observed data. Whether it can be assessed against an exact F distribution depends on the sampling model, not on the arithmetic. For example, two treatments measured on the same subjects produce paired observations. If treatment responses are dependent within subjects, the two sample variances are generally dependent as well. Merely inserting the two sample sizes into F degrees of freedom does not fix that problem.

Worked Example: A Paired Design With Normal Margins

A hypothetical study records two measurements on each of six subjects. The paired observations are jointly normal, each has variance \(9\), and their within-subject correlation is \(0.6\). The observed sample variances are \(S_X^2=18\) and \(S_Y^2=12\). Calculate their ratio and the correlation of the sample variances, and assess whether an \(F_{5,5}\) reference law is justified.

Method. Calculate the covariance from the stated marginal variances and correlation, then evaluate the sample-variance dependence. The within-pair covariance is \(0.6\sqrt{9\cdot9}=5.4\), and \(n-1=5\).

The correlation between the sample variances is the square of the within-pair correlation for this bivariate normal model: \(\operatorname{Corr}(S_X^2,S_Y^2)=0.6^2=0.36\). Equivalently, their covariance is \(2(5.4^2)/5=58.32/5=11.664\), while each sample-variance variance is \(2(9^2)/5=162/5=32.4\); hence \(11.664/\sqrt{32.4\cdot32.4}=0.36\).

$$ \frac{S_X^2}{S_Y^2}=\frac{18}{12}=1.5. $$

The numerical ratio is \(1.5\), and the nominal degrees of freedom would each be \(6-1=5\). But the sample variances have correlation \(0.36\), so \(F_{5,5}\) is not justified as an exact reference distribution. Normality of the paired observations does not remove the dependence created by the design. The common mistake avoided is calculating the right ratio and degrees of freedom but assigning an exact F law without checking independence.

Common Exam Trap: Normal Does Not Mean Independent

The incorrect argument is: “Both populations are normal, so \(S_X^2/\sigma_X^2\) and \(S_Y^2/\sigma_Y^2\) are scaled chi-square variables; therefore their ratio is F.” The final inference does not follow unless the two chi-square variables are independent. In a paired design, each marginal variance result can be valid while the independence condition fails.

The correction is to check the design before selecting the reference distribution. Confirm that the samples are separately collected and mutually independent, and that each population is normal. Only then use the exact classical F law. In particular, a paired comparison is not converted into an independent-samples comparison by treating the two columns as separate lists.

Key takeaway: The exact F law for the classical variance ratio comes from two independent scaled chi-square sample variances. Independent normal samples provide both ingredients. Paired or otherwise dependent samples can preserve normal marginal distributions but generally destroy independence between the variance estimates, so the usual exact F reference law does not apply.

Check Your Understanding

For each problem, check both the calculation and the assumptions needed for an exact F reference distribution.

  1. Two independent normal samples have sizes \(n_1=8\) and \(n_2=11\). Under equal population variances, the observed sample variances are \(S_X^2=15\) and \(S_Y^2=10\). Give the observed ratio and its null F degrees of freedom. (Answer: \(1.5\), with \(F_{7,10}\) reference degrees of freedom.)
  2. Independent normal samples have sizes \(n_1=6\), \(n_2=9\), and population variances \(\sigma_1^2=25\), \(\sigma_2^2=16\). State the distribution and degrees of freedom of \((S_X^2/\sigma_1^2)/(S_Y^2/\sigma_2^2)\). (Answer: \(F_{5,8}\).)
  3. In a bivariate normal paired sample, the within-pair correlation is \(-0.4\), and there are \(n=7\) pairs. What is the correlation between the two sample variances? (Answer: \(0.16\).)
  4. Two normal measurements are taken on each of 12 people, with a nonzero within-person correlation. A candidate calculates the ratio of the sample variances and proposes an exact \(F_{11,11}\) test. Is that reference law justified by the stated design? (Answer: No; pairing makes the samples dependent, so the independent-chi-square ratio argument does not establish an exact \(F_{11,11}\) law.)
  5. Two independent normal samples have sizes 5 and 10 and observed sample variances 20 and 8. The population variances are not assumed equal. Calculate the observed raw ratio and state which scaled ratio has an exact F law. (Answer: The raw ratio is \(20/8=2.5\); \((S_X^2/\sigma_1^2)/(S_Y^2/\sigma_2^2)\sim F_{4,9}\).)
Clinical Biostats