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.
CDF
mean 1.25 · variance 1.354 · sd 1.164 · mode 0.5
Formulas
| Parameters |
|
|---|---|
| Support | |
| 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
- Transformation← Chi-squared: If are independent Chi-squared() and Chi-squared(), is F().
- Transformation← Student's t: If is , is F(). checked by code
- Transformation→ Beta: If is F(), is Beta(). checked by code
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?