Continuous distribution · also called Fisher–Snedecor

F distribution

The ratio of two independent chi-squared variables, each divided by its degrees of freedom. It is the reference distribution for comparing two variances, for analysis of variance, and for testing groups of coefficients in a regression.

F probability calculator

P(X ≤ 0.93) = 0.498975

At the parameters set by the sliders. The shaded region on the plot is the probability; the dots on the CDF mark F at its ends.

PDF

00.20.40.6012345f(x)mean

CDF

00.250.50.751012345F(x)

mean 1.25 · variance 1.354 · sd 1.164 · mode 0.5

Formulas

Parameters
  • , numerator degrees of freedom
  • , denominator degrees of freedom
Support
PDF
CDF
Mean
Variance
Mode
MGF

Worked example

Two machines fill bottles. A sample of 11 from the first has variance 12.5; a sample of 16 from the second has variance 5.0. Is the first machine more variable?

on degrees of freedom. The one-sided p-value is , just above 5%. answer checked by code

How it relates to others

All the relationships, as a diagram →

In Python

from scipy import stats
import numpy as np

X = stats.f(dfn=5, dfd=10)
X.pdf(1)  # f(1) = 0.4955
X.cdf(1)  # P(X ≤ 1) = 0.5349
X.mean(), X.var()  # 1.25, 1.354
X.ppf(0.95)  # 95th percentile
X.rvs(size=10, random_state=0)

rng = np.random.default_rng(0)
rng.f(dfnum=5, dfden=10, size=10)

Choosing between this and its neighbours? Which distribution for measurements and errors?

← Student's tCauchy →