The three distributions that fill the tables at the back of an inference course are not three new ideas. They are one idea, the standard normal, squared, divided, and divided again. This page builds each from that single ingredient, so the degrees of freedom stop being a number you look up and become a count of the squares that went in.
Tap a symbol.
Start with Z, a standard normal. From it you can make three things, and each is one of the standard tables.
Why would anyone build these? Because a sample gives you only estimates. A sample variance is a sum of squares, so it is chi-square. A sample mean standardised by an estimated spread is a normal over a chi-square, so it is t. And two sample variances compared with each other are a chi-square over a chi-square, so they are F.
Let Z be standard normal and Y = Z². Squaring wipes out the sign, so Y is never negative, and Y is small when Z is near 0. We want the density of Y.
For y > 0, Y ≤ y exactly when −√y ≤ Z ≤ √y, so
The density is the slope. The slope of Φ is φ, and the slope of √y is 1 ÷ (2√y), so
The gamma density with shape α and rate λ is λαyα−1e−λy ÷ Γ(α). With α = ½ and λ = ½, and Γ(½) = √π, this is (½)½ y−½ e−y/2 ÷ √π = y−½ e−y/2 ÷ √(2π). That is exactly f(y). So a squared normal is a gamma with shape ½ and rate ½.
Gamma variables with the same rate add by adding their shapes, the same additivity that made the gamma a sum of exponentials. Adding k of them gives shape k ÷ 2 and rate ½. This is the chi-square distribution with k degrees of freedom, and the mean and variance follow from the gamma formulas:
A direct check: E[Z²] = 1, and Var(Z²) = E[Z⁴] − 1 = 3 − 1 = 2. Add k independent copies and you get k and 2k. The lab simulates sums of squared normals and sets them under the curve.
For a normal sample, each (xi − μ) ÷ σ is a standard normal, so Σ(xi − μ)² ÷ σ² is chi-square with n degrees of freedom. Split the sum around the sample mean:
Divide by σ². The last term is Z², where Z = (x̄ − μ) ÷ (σ ÷ √n) is standard normal, so it is chi-square with 1 degree of freedom, and for normal samples it is independent of the first term. Degrees of freedom add, so the first term has n − 1:
That is the “n − 1” of the sample variance, seen as one degree of freedom spent on estimating the mean.
With n = 16 and s² = 25, the quantity 15 s² ÷ σ² is chi-square with 15 degrees of freedom. Its 2.5% and 97.5% points are 6.262 and 27.488. Solve the inequality for σ²:
That is 13.64 to 59.88. The interval is not symmetric about s² = 25, and the larger chi-square value gives the lower limit, because σ² sits in the denominator.
For a normal sample the mean standardises to a standard normal: Z = (x̄ − μ) ÷ (σ ÷ √n). But σ is rarely known. Replace it with the sample standard deviation s and the ratio is no longer exactly normal, because s changes from sample to sample.
Divide the top and bottom of (x̄ − μ) ÷ (s ÷ √n) by σ ÷ √n:
For a normal sample x̄ and S² are independent, so Z and V are independent. The definition above, with k = n − 1, is exactly this ratio.
T² = Z² · k ÷ V, and Z and V are independent, so E[T²] = E[Z²] · k · E[1 ÷ V] = k · E[1 ÷ V]. For the chi-square, a gamma with shape k ÷ 2 and rate ½, the gamma integral gives E[1 ÷ V] = (½) ÷ (k ÷ 2 − 1) = 1 ÷ (k − 2), for k > 2. So
The variance is above 1 because the denominator is itself random: when V happens to be small, the ratio is large. With k = 4 the variance is 2; with k = 30 it is 1.071. Test it in the lab.
V is a sum of k squares with mean 1 each, so V ÷ k settles at 1 as k grows, and √(V ÷ k) goes to 1. Then T goes to Z. The 97.5th percentile of t shows the closing-in: 2.571 for 5 degrees of freedom, 2.228 for 10, 2.042 for 30, and 1.960 for the normal. At the other end, with k = 1 the ratio is a normal over the absolute value of another, a Cauchy distribution, whose tails are so heavy that the mean does not exist.
A sample of 10 has mean 50 and standard deviation 6. With 9 degrees of freedom, t0.975 = 2.262, so the 95% interval is 50 ± 2.262 × 6 ÷ √10 = 50 ± 4.29. With the normal value 1.96 it would be 50 ± 3.72: too narrow, because it ignores that s is itself an estimate.
Two independent normal samples have sample variances S₁² and S₂², with d₁ = n₁ − 1 and d₂ = n₂ − 1. From the chi-square derivation, S₁² ÷ σ₁² = V₁ ÷ d₁ and S₂² ÷ σ₂² = V₂ ÷ d₂, each with V a chi-square. Divide one by the other:
If the two population variances are equal, the σ² cancel and the plain ratio S₁² ÷ S₂² has this distribution. That is the variance-ratio test.
Each of V₁ ÷ d₁ and V₂ ÷ d₂ is an average of squared normals, so it is near 1. Their ratio is usually near 1 too, never negative, and can be large when the denominator is small: a hump close to 1 with a long right tail. The lab simulates the ratio from sums of squared normals.
V₁ and V₂ are independent, so the mean of the ratio is the product of the means: E[V₁ ÷ d₁] = d₁ ÷ d₁ = 1, and E[d₂ ÷ V₂] = d₂ · E[1 ÷ V₂] = d₂ ÷ (d₂ − 2), using the same E[1 ÷ V] = 1 ÷ (d₂ − 2) as in the t derivation. So
The mean depends only on the denominator’s degrees of freedom, and is a little above 1.
1 ÷ F = (V₂ ÷ d₂) ÷ (V₁ ÷ d₁), which is the same construction with the roles swapped, so it is F(d₂, d₁). It follows that P(F < c) = P(1 ÷ F > 1 ÷ c), and the lower cut-off of F(d₁, d₂) is the reciprocal of the upper cut-off of F(d₂, d₁). Tables list only upper points for this reason. For F(10, 8) the 95% point is 3.347.
Square a t variable: T² = Z² ÷ (V ÷ k) = (Z² ÷ 1) ÷ (V ÷ k). Here Z² is a chi-square with 1 degree of freedom, so T² is F(1, k). The numbers agree: t₀.₉₇₅ for 10 degrees of freedom is 2.228, whose square 4.965 is the 95% point of F(1, 10) = 4.965. A two-sided t test and a one-sided F test with one numerator degree of freedom are the same test.
| Distribution | Built as | Mean | Variance | Where it is used |
|---|---|---|---|---|
| Chi-square, k | Z₁² + … + Zk² | k | 2k | Interval and test for a variance, goodness of fit, independence in a table |
| t, k | Z ÷ √(V ÷ k) | 0 (k > 1) | k ÷ (k − 2) (k > 2) | Mean with unknown σ, a regression coefficient, a difference of means |
| F, d₁ and d₂ | (V₁ ÷ d₁) ÷ (V₂ ÷ d₂) | d₂ ÷ (d₂ − 2) (d₂ > 2) | depends on both | Ratio of variances, ANOVA, the overall F test of a regression |
A quick decision rule. Testing or estimating a variance: chi-square. Testing or estimating a mean with σ unknown: t. Comparing two variances, or comparing the variation between groups with the variation within them: F. The lessons that use them are confidence intervals and tests in practice. The normal derivation gives the ingredient, and the gamma derivation explains why chi-square is a gamma.
For chi-square, degrees of freedom count the independent squares added. For t, they are those of the chi-square in the denominator. For F, there are two sets, one for the top and one for the bottom, and the order matters.
Use the values quoted on this page for the percentage points.
Definitions, directions and one-step sums. Most CUET, UGC NET and Hyderabad questions sit here.
Classification traps, multi-step numericals and statement questions, up to the hardest JNU, JAM and GATE items.
The Delhi School entrance asks this topic harder than any other exam. These questions are kept apart from the ordinary sets.
These are questions from the TestStop bank. A free account answers 10 a day, each with its worked solution; All-Access opens every set with no daily limit.
The chi-square distribution with k degrees of freedom is the distribution of the sum of k independent squared standard normal variables. It has mean k and variance 2k, and it is a gamma distribution with shape k/2 and rate 1/2.
The sum of squares Σ(xᵢ − μ)²/σ² around the true mean is chi-square with n degrees of freedom. It splits into Σ(xᵢ − x̄)²/σ² plus n(x̄ − μ)²/σ², and the second piece is a single squared standard normal, independent of the first. Degrees of freedom add, so the first piece has n − 1.
A t variable with k degrees of freedom is a standard normal Z divided by the square root of an independent chi-square V over its degrees of freedom: T = Z / √(V/k). It arises when a sample mean is standardised with the sample standard deviation instead of the unknown population value.
Its denominator is random. When the sample standard deviation happens to come out small, the ratio is large. The variance of t is k/(k − 2), which exceeds 1 and falls to 1 as k grows, so t approaches the standard normal for large k.
An F variable with d₁ and d₂ degrees of freedom is the ratio (V₁/d₁) / (V₂/d₂) of two independent chi-square variables, each divided by its degrees of freedom. The ratio of two sample variances from independent normal samples, scaled by the population variances, has this distribution.
The square of a t variable with k degrees of freedom is an F variable with 1 and k degrees of freedom. So the two-sided t test and the F test with one numerator degree of freedom give the same answer.