Chip Foundry Services Request Assessment

F-Test

An F-test compares two estimates of variance by dividing one by the other. If both estimates measure the same underlying noise, their ratio should land near $1$; a ratio far above $1$ says the numerator is picking up something beyond noise. The same ratio sits behind three everyday tools: comparing two variances, ANOVA, and deciding whether extra terms improve a regression. This page walks through all three.

The question changes, but the reasoning follows one path:

Two scaled variance estimates
numerator over denominator, each divided by its degrees of freedom
Which comparison are you making?the formula changes, the logic does not
Two sample variances
s1 squared over s2 squared, df n1 − 1 and n2 − 1
Between vs within groups
MS between over MS within, df k − 1 and N − k
Full vs reduced model
extra fit per added term over leftover noise
Compare F with the upper tail of F(d1, d2)
a large F means more structure than noise predicts
F near or below 1
no evidence of structure beyond noise
F beyond the critical value
reject the null; then ask which term or group

The F distribution. If $\chi^2_{d_1}$ and $\chi^2_{d_2}$ are independent chi-square variables, then the ratio of each divided by its degrees of freedom follows an F distribution with numerator degrees of freedom $d_1$ and denominator degrees of freedom $d_2$. Because a ratio of variances cannot be negative and is only large when the numerator is large, F-tests usually use the upper tail.

$$F=\frac{\chi^2_{d_1}/d_1}{\chi^2_{d_2}/d_2}\sim F_{d_1,d_2}$$

Use 1: comparing two variances. For independent normal samples with sizes $n_1,n_2$ and sample variances $s_1^2,s_2^2$, the test of $H_0:\sigma_1^2=\sigma_2^2$ uses the ratio of sample variances, and the same distribution gives a confidence interval for the true ratio:

$$F=\frac{s_1^2}{s_2^2},\qquad d_1=n_1-1,\; d_2=n_2-1$$
$$\frac{s_1^2/s_2^2}{F_{1-\alpha/2,\,d_1,\,d_2}}\;\le\;\frac{\sigma_1^2}{\sigma_2^2}\;\le\;\frac{s_1^2/s_2^2}{F_{\alpha/2,\,d_1,\,d_2}}$$

Suppose one chamber has $s_1=4$ over $n_1=11$ wafers and another has $s_2=2.5$ over $n_2=9$ wafers. Then $F=16/6.25=2.56$ on $(10,8)$ degrees of freedom. The upper-tail probability is about $0.098$, so the two-sided p-value is about $0.196$, and the $95\%$ interval for $\sigma_1^2/\sigma_2^2$ is roughly $[0.596,\,9.869]$. An interval that includes $1$ means the data cannot rule out equal variances. It is also wide, because $9$ and $11$ wafers say little about variance. This test is sensitive to non-normal data, so check the data first, and use Levene or Brown-Forsythe tests when normality is doubtful.

Use 2: ANOVA. The F-statistic in one-way and two-way ANOVA is the ratio of two mean squares, where the numerator measures spread among group means and the denominator measures spread within groups. With two groups it collapses to a squared t-statistic, so the F-test and the pooled two-sample t-test agree exactly:

$$F=\frac{MS_B}{MS_W}\ \text{on}\ (k-1,\,N-k)\ \text{degrees of freedom},\qquad F_{1,\nu}=t_\nu^2$$

For example, the $95\%$ critical value of $F_{1,10}$ is $4.965$, and the two-sided $5\%$ critical value of $t_{10}$ is $2.228$, whose square is $4.965$. The one-way ANOVA example on three etch recipes gives $F=(126/2)/(17/9)\approx33.35$ on $(2,9)$ degrees of freedom, and a p-value near $6.9\times10^{-5}$.

Use 3: does the bigger model earn its extra terms? Compare a reduced regression with $p_r$ parameters against a full regression with $p_f$ parameters that contains it, both fit to $n$ observations. The numerator is the improvement in residual sum of squares per extra parameter, and the denominator is the leftover noise per degree of freedom in the full model:

$$F=\frac{(RSS_r-RSS_f)/(p_f-p_r)}{RSS_f/(n-p_f)}\ \text{on}\ (p_f-p_r,\,n-p_f)\ \text{degrees of freedom}$$

With $RSS_r=240$, $RSS_f=180$, $n=30$, $p_r=2$ and $p_f=4$, the numerator is $(240-180)/2=30$ and the denominator is $180/26\approx6.923$. So $F=4.333$ on $(2,26)$ degrees of freedom. The $5\%$ critical value is $3.369$ and the p-value is about $0.0238$, so the two added terms improve the fit by more than chance would. The curve below shows where this statistic lands:

The F-test reads only the upper tail F(2, 26): does adding 2 predictors to a regression explain more than noise would? 0 2 4 6 8 F statistic = explained variation per term / leftover variance critical value 3.37 (5% in the tail) observed F = 4.33 p = 0.0238: reject H0 orange tail beyond 3.37 = 5% of the area

Reading the result. An F-test answers one narrow question: is there more structure than noise? It does not say which group differs, which added term helped, or whether the improvement is large enough to matter in practice.

  • Direction: the numerator and denominator are not interchangeable. Swapping them turns $F$ into $1/F$ and uses the lower tail, with the degrees of freedom reversed.
  • Follow-up: after a significant ANOVA F-test, use planned contrasts or adjusted pairwise comparisons. After a significant nested-model F-test, inspect the individual coefficients and the effect sizes.
  • Assumptions: independent observations, roughly normal errors, and for ANOVA and regression a similar error variance across groups. The two-variance test is especially fragile when data are not normal.
  • Size and nesting: report the estimate and its interval, not only the p-value. Nested-model F-tests require the smaller model to be a special case of the larger one; use AIC or cross-validation to compare non-nested models.

Read an F-test as a ratio of two variance estimates: a value near $1$ says nothing beyond noise, and a value well beyond the upper-tail critical value says the explained structure is real enough to investigate.