Distribution · Statistics Library

F distribution

The F distribution describes the ratio of two independent, scaled chi-square variables, and is the reference distribution used in ANOVA and other tests that compare variances.

Topic indexA reference reading outside the guided chapter sequence

Understand the idea

ANOVA works by comparing two kinds of variation: how much the group averages differ from each other (between-group variation) and how much individual measurements scatter within each group (within-group variation). The F statistic is the ratio of these two: between divided by within.

If the groups are all really the same, that ratio should hover around 1: both quantities are just estimating the same underlying noise. If the groups genuinely differ, the between-group variation grows much larger than the within-group noise, and the ratio climbs well above 1.

The F distribution has TWO degrees-of-freedom settings, not one: one for the numerator (how many groups, roughly) and one for the denominator (how much data went into estimating the within-group noise), because it is a ratio of two separately-varying quantities.

An F-test compares two variances by their ratio, called the F ratio; ANOVA and regression both use one. The F distribution is also called the Fisher-Snedecor distribution, after the two statisticians behind it.

Practitioner explanation

If U ~ chi-square_{d1} and V ~ chi-square_{d2} are independent, then F = (U/d1)/(V/d2) ~ F_{d1,d2}; ANOVA's F = MS_between/MS_within follows this exactly under the null of equal group means and normally-distributed, equal-variance errors, with d1 = k-1 (groups minus one) and d2 = N-k (total observations minus groups).

F is right-skewed and its shape depends on both degrees-of-freedom parameters; as d2 grows large, F_{d1, d2} converges to a chi-square_{d1}/d1 distribution. The square of a t-distributed statistic with nu degrees of freedom is exactly F_{1,nu}, the algebraic link between the two-group t-test and one-way ANOVA with exactly two groups, which is why they give identical p-values in that special case.

KernelStats' one-way and two-way ANOVA, ANCOVA, MANOVA and the overall regression F-test all report F alongside both degrees-of-freedom values and the p-value, and the one-way ANOVA card additionally reports eta-squared and omega-squared as effect sizes, since the F statistic (like chi-square) is not itself a normalized measure of how much of the outcome's variance the grouping factor explains.

When to use it

Consider it when

As the reference distribution whenever a test statistic is a ratio of two independently estimated variances: ANOVA, the overall significance of a regression, and tests comparing two variances directly.

Use caution when

As a measure of effect size on its own: F, like chi-square, depends on sample size and the number of groups, and needs eta-squared or omega-squared alongside it to communicate how much variance is actually explained.

Formulas and symbols

One-way ANOVA F statistic

F=MSbetweenMSwithinF = \frac{MS_{\text{between}}}{MS_{\text{within}}}

MS_between = SS_between/(k-1), MS_within = SS_within/(N-k), for k groups and N total observations.

References

  1. NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6.6.5 F distribution, NIST/SEMATECH (2012), §1.3.6.6.5.