The t, Chi-Squared, and F Distributions
Suppose you draw a small sample from a normal population. You want to know how far the sample mean can plausibly be from the true mean. This must be done without ever knowing the true variance. This is the single most common inferential situation in statistics. It forces a question: what is the exact distribution of a mean-like quantity? This applies once you replace the unknown population standard deviation by its sample estimate. The three distributions treated here — Chi-Squared, Student's , and Fisher's — are the precise answer. They are derived directly from the normal distribution's algebraic structure rather than approximated asymptotically. These distributions matter because normal-theory inference is not a single trick. It is a family of exact results built from one another. The Chi-Squared distribution captures the randomness in a sum of squared normal deviations. This is exactly what a sample variance is made of. Student's -distribution then answers the motivating question above. It is what you get when you standardize a normal mean using an estimated, rather than known, standard deviation. Fisher's -distribution extends this further. It gives the exact distribution of a ratio of two independent variance estimates. This ratio is the engine behind comparing variances and behind the analysis of variance. The big picture is a chain of derivations, each theorem resting on the last. Standard normal random variables generate Chi-Squared variables via sums of squares. A standard normal divided by an independent, rescaled Chi-Squared square root generates a -variable. A ratio of two independent, rescaled Chi-Squared variables generates an -variable. Every step is exact for finite samples under normality. There is no asymptotics, no approximation. This exactness is precisely why these distributions, discovered between 1900 and 1925, still anchor the standard tests and confidence intervals taught in every introductory course. This article builds all three distributions from first principles. It proves the key structural theorem connecting the sample mean and sample variance under normality (Cochran-type independence). It derives the density and moments of each distribution. It also works two fully explicit numerical examples. It closes by showing precisely where each distribution is used in modern statistics. Examples include t-tests, regression diagnostics, and variance-ratio tests. It also shows what breaks when normality is dropped.
- The Chi-Squared distribution with degrees of freedom is the law of a sum of independent squared standard normals.
- Student's arises from a standard normal divided by an independent ; it has heavier tails than the normal.
- The distribution arises from the ratio of two independent, scaled Chi-Squared variables; .
- Under normal sampling, the sample mean and sample variance are independent, which is the linchpin fact making exact.
- All three densities are derived explicitly here via change-of-variables and Jacobian computations, not merely quoted.
- Key idea: replacing a known standard deviation by an estimated one converts an exact normal pivot into an exact -pivot, at the cost of heavier tails governed by degrees of freedom.
Where this lives today
The -distribution underlies the ordinary one-sample and two-sample -tests, regression coefficient tests (each coefficient estimate divided by its standard error is exactly -distributed under normal errors), and -based confidence intervals throughout applied statistics, medicine, and engineering quality control. The Chi-Squared distribution governs goodness-of-fit and independence tests in categorical data analysis, likelihood-ratio test asymptotics (Wilks' theorem), and confidence intervals for variances as in Worked Example 2. The -distribution is the backbone of the analysis of variance (ANOVA), nested-model comparison tests in regression (the overall -test and partial -tests), and variance-homogeneity tests preceding pooled -procedures, as in Worked Example 1. In machine learning and statistics more broadly, these exact finite-sample distributions serve as the calibration benchmark against which asymptotic and resampling-based (bootstrap, permutation) methods are checked when normality is doubtful. In physics and signal processing, Chi-Squared statistics quantify goodness-of-fit for measurement models with Gaussian noise, and -tests compare the residual variance of nested physical models. In cryptography and random number testing, Chi-Squared statistics assess whether generated bit streams deviate from a uniform/independent null model.
Ask the tutor: How does Cochran's theorem generalize the independence of and to the sums of squares used in full ANOVA decompositions?
Let denote independent standard normal random variables, .
Chi-Squared. For a positive integer , the Chi-Squared distribution with degrees of freedom, written , is the distribution of
Student's . Let and with and independent, a positive integer. The Student's -distribution with degrees of freedom, written , is the distribution of
Fisher's . Let and be independent, with positive integers. The -distribution with degrees of freedom, written , is the distribution of
These are purely distributional definitions on independent standard normals; their connection to sample means and sample variances is established in the theorem below.
Intuition
Think of independent standard normal "errors" as coordinates of a random point in . The squared Euclidean distance of that point from the origin is exactly a variable. As grows, this squared distance concentrates around (its mean), by the law of large numbers applied to the sum of squares — this is why shifts rightward and becomes more symmetric as increases. Student's arises from a very concrete practical problem. If are i.i.d. , the quantity is exactly standard normal, but it requires knowing . Replacing by the sample standard deviation introduces extra randomness from the estimation. The resulting pivot is no longer normal; it is a standard normal divided by an independent estimate of spread, and this division is precisely what a -distribution formalizes. Because is itself random and can be small by chance, has heavier tails than : extreme values are more likely because an unlucky small inflates . The -distribution generalizes this comparison idea from "normal vs. estimated spread" to "spread vs. spread": it is the exact distribution of the ratio of two independent variance estimates, each built from a scaled by its own degrees of freedom. This is the natural object when comparing the variability of two independent normal samples, or when comparing nested sums of squares in regression and ANOVA.
Let be i.i.d. with . Define
Then: 1. and are independent random variables. 2. . 3. . Moreover, if are i.i.d. , independent of i.i.d. , with sample variances , then
We prove each part in turn, building on the previous parts. The technique throughout is orthogonal transformation of jointly normal vectors, together with the change-of-variables (Jacobian) formula for densities.
Step 0: reduction to . Write with i.i.d. . Then and , so
Independence of and is equivalent to independence of and (since the map is a bijection with the affine part not affecting independence). So it suffices to prove the theorem for i.i.d. standard normal ; we drop subscripts and write for the vector.
Step 1: an orthogonal change of variables. Let . Choose an orthogonal matrix (i.e. ) whose first row is ; the remaining rows are chosen (e.g. by Gram–Schmidt) to extend this unit vector to an orthonormal basis of . Such exists because any unit vector extends to an orthonormal basis. Define , so and are the remaining coordinates. Claim: , i.e. are i.i.d. standard normal. Proof of claim: has density , a function of alone. Since is orthogonal, , and the Jacobian of the linear map has absolute value . By the multivariate change-of-variables formula, the density of at is
using (orthogonality again). This is exactly the density of , proving the claim. (claim)
Step 2: expressing and via . Because is orthogonal it preserves norms: , i.e.
Also, a standard algebraic identity (the "ANOVA decomposition") gives
Since , we have , so combining the two displays,
Hence
(The middle expression is literally ; we have shown it equals .)
Step 3: independence (Part 1). By Step 1, are independent. Therefore is independent of the vector , hence independent of any function of that vector, in particular of . By Step 2, is a function of alone, and is a function of alone. Functions of independent random elements are independent, so . By Step 0's reduction, . This proves Part 1.
Step 4: the Chi-Squared law (Part 2). By Step 1, are i.i.d. ( of them). By the definition of as the law of a sum of independent squared standard normals,
Undoing Step 0's scaling, . This proves Part 2.
Step 5: the law (Part 3). Consider
where by standard normal-sample theory, and the denominator's inner quantity by Part 2. It remains to check and are independent: is a function of alone (given fixed constants) and is a function of alone, and by Part 1; hence these functions are independent. This matches exactly the definition of as a standard normal divided by an independent . So
proving Part 3.
Step 6: the law (Part 4). By Part 2 applied separately to each sample, and . Since the two samples are independent of each other, and is a function of the first sample only while is a function of the second sample only, . Then
matches exactly the definition of as the ratio of two independent Chi-Squared variables each divided by its own degrees of freedom. This proves Part 4.
∎Explicit densities (for completeness). From the definitions, one can derive by direct change-of-variables:
(Derivation sketch.) The density follows from , differentiated to give , matching the formula with using . The general density then follows by induction: a variable is a plus an independent , and the sum's density is the convolution of the two, which one can verify by direct integration reproduces the stated Gamma-family form (indeed ). The density is obtained by writing , conditioning on (so ), and integrating the conditional normal density against the density of :
which is a Gamma-type integral in evaluating to the stated closed form. The density follows analogously from the joint density of via the transformation , , computing the Jacobian and integrating out .
Worked examples
Example 1 (asymmetric two-sample and , unequal sizes). A quality engineer measures the tensile strength (in MPa) of steel rods from two production lines. Line A: rods, sample mean , sample standard deviation . Line B: rods, sample mean , sample standard deviation . Assume both populations are normal with unknown, possibly unequal, variances , and the two samples are independent. (a) Test whether the variances are equal. Under , Part 4 of the theorem (with roles matched to the larger sample variance on top by convention) gives
since we put the larger-variance sample (B) in the numerator, using and degrees of freedom respectively. Numerically,
Consulting (or computing) the distribution, the upper critical value is approximately ; since , we do not reject equality of variances at the level — the observed ratio is compatible with even though looks noticeably larger than . (b) Test equality of means using a pooled -statistic, justified by the variance test in (a). The pooled variance estimator is
So . The pooled two-sample statistic is
using the fact (an extension of Part 3, provable by the same independence argument applied to the pooled sum of squares, which is itself by summing two independent and variables) that the pooled sum of squares over is , independent of . Plugging in:
Comparing to (two-sided critical value ), , so we do not reject at the level: the observed 3.6 MPa mean difference is not statistically significant given the sample sizes and variability.
Example 2 (single-sample and with an odd sample size, ). A pharmacologist records the potency (mg/mL) of vials from a single batch, assumed :
Step 1 — compute . Sum . So . Step 2 — compute . Deviations : (each rounded to 4 dp). Squares: . Summing: ; ; ; ; ; ; ; . So , and
Step 3 — a -based confidence interval for . By Part 2 of the theorem, . Using critical values and , a confidence interval for is
Numerically: and . So the CI for is approximately , i.e. for roughly . Step 4 — a -based confidence interval for . By Part 3, . The two-sided critical value is . Then
So the confidence interval for is approximately mg/mL. Note that this interval is noticeably wider than the naive one would (incorrectly) get by treating as if it were the known and using the normal critical value — the extra width, vs , is exactly the price of estimating from only observations, and it is precisely quantified by the distribution rather than .
The entire derivation above rests on Step 1: the orthogonal transformation of a jointly normal vector is again jointly normal with independent, identically distributed coordinates. This step uses the specific algebraic fact that the multivariate normal density depends on only through — a property that is essentially unique to the Gaussian among distributions with independent coordinates (this is the content of the Maxwell–Herschel / Bernstein characterization). If the are i.i.d. but not normal, this rotational invariance fails, and need not be independent. Concretely, take and let be i.i.d. with the (non-normal) density
(the standard Laplace/double-exponential distribution, mean , variance ). Here and . A direct computation shows (by symmetry, since the Laplace distribution is symmetric about and all relevant odd moments vanish), yet and are not independent: for instance,
but conditional on near (i.e. ), the distribution of is stochastically different from its distribution conditional on far from : heavy Laplace tails make large (hence large ) more likely to co-occur with far from than normal theory would predict. This can be verified by computing the fourth conditional moment , which is not constant in as it would be for normal data (a calculation using the joint density transformed to coordinates shows the conditional density of given genuinely depends on ). Consequently is not exactly for Laplace data, and is not exactly -distributed — the entire exact finite-sample machinery collapses, and one must fall back on asymptotic (central-limit-theorem based) approximations instead. This shows normality is not a decorative hypothesis: it is load-bearing at the exact step where the orthogonal transformation argument is invoked.
Scope, edge cases & common traps
| Situation | What holds | What fails / must be checked |
|---|---|---|
| i.i.d. , finite | ; exact , , results hold exactly | Nothing — this is the theorem's exact setting |
| i.i.d. non-normal, finite | CLT gives approximately as | Exact // distributions do not apply for finite (see counterexample) |
| Two-sample -test for variances | Exact under independent normal samples | Extremely sensitive to non-normality — heavier or lighter tails badly distort size |
| Degrees of freedom | ; (LLN); as | Do not use normal critical values for small ; the tails of remain heavier |
| Ordering in -ratio | relation; numerator/denominator degrees of freedom matter | Swapping numerator and denominator changes the distribution — always match d.f. to position |
The mathematician behind it
Origins · 1 minWilliam Sealy Gosset and how this was discovered
Gosset was a chemist and statistician employed by the Guinness brewery in Dublin, where strict small-sample constraints on brewing experiments (batches of barley, yeast strains, and hop varieties could not be resampled indefinitely) forced him to confront a problem existing large-sample normal theory could not solve: how to draw exact inferences about a mean when the sample size was tiny, perhaps or . Guinness's confidentiality policy barred employees from publishing under their own names, so Gosset published his 1908 paper "The Probable Error of a Mean" under the pseudonym "Student," which is why the distribution bears that name rather than his own. Ronald A. Fisher later supplied a fully rigorous derivation of Gosset's distribution (including the correct degrees-of-freedom parametrization) and, in the 1920s, introduced the variance-ratio distribution that Snedecor subsequently named in Fisher's honor.
Why does the -distribution have heavier tails than the normal distribution?
The variable is a standard normal divided by an independent random quantity that estimates a standard deviation. When happens to be small by chance, the denominator shrinks and becomes unusually large in magnitude, an effect that has no counterpart in the fixed-denominator normal case. This extra source of variability, averaged over all possible values of , produces a distribution whose tails decay polynomially (like ) rather than the normal's much faster exponential-in- decay. As , in probability by the law of large numbers, the denominator stabilizes near , and in distribution — recovering the normal case in the limit.
Is the independence of and true for any distribution, or only the normal?
It is a genuinely special property of the normal distribution. A classical theorem (related to results of Lukacs and Geary) shows that if () are i.i.d. with finite variance and is independent of , then the must be normally distributed. So the independence is not just sufficient under normality, it essentially characterizes the normal distribution among distributions with i.i.d. samples. The counterexample above with Laplace-distributed data illustrates concretely how this independence can fail once normality is dropped, even though the sample is still i.i.d.
How do degrees of freedom in the -distribution affect its shape?
The distribution is always supported on and right-skewed, but its concentration depends on both parameters. Increasing (denominator degrees of freedom) makes concentrate more tightly around by the law of large numbers, so behaves increasingly like . Increasing (numerator degrees of freedom) similarly stabilizes the numerator and, combined with large , drives the whole distribution to concentrate near . The mean of is for (it does not depend on at all), which is a common surprise, and the variance formula involves both and and decreases as either grows.
Why is the Chi-Squared distribution always right-skewed, and does that change with more degrees of freedom?
is the sum of nonnegative squared normal terms, so it is bounded below by but unbounded above, producing an inherently right-skewed shape for small . Its skewness coefficient is , which decreases toward as grows, so the distribution becomes progressively more symmetric and, by the Central Limit Theorem applied to the sum of i.i.d. squared normals, approaches a normal shape (specifically after standardizing) for large . For small , particularly or , the skewness is severe and the density is strictly decreasing (for ) or has a mode strictly greater than zero only when .
Can the -distribution be used when the data are only approximately normal?
In practice yes, with caveats. The -procedures are known to be reasonably robust to mild departures from normality, especially for the one-sample and two-sample mean comparisons, because the Central Limit Theorem ensures is approximately normal even when individual observations are not, and the -distribution's extra heavy-tailedness partially compensates for the added uncertainty in . Robustness degrades for strongly skewed data or in the presence of outliers, and it degrades faster for very small . When normality is seriously in doubt, alternatives include nonparametric tests (e.g. the Wilcoxon signed-rank test) or bootstrap-based confidence intervals, both of which avoid the distributional assumption at the cost of some statistical efficiency under normality.
What is the practical difference between a one-sample -test and an -test for variances?
The one-sample (or two-sample) -test addresses questions about means — is the average outcome different from a hypothesized value, or between two groups — while treating any nuisance variance as estimated but not itself of primary interest. The -test for variances instead directly targets the spread of the data: is one population more variable than another, which matters, for instance, in manufacturing quality control (was Line B's process more erratic than Line A's) or in deciding whether a pooled-variance -test is appropriate in the first place, as in Worked Example 1. They are complementary exact procedures built from the same underlying machinery, applied to different linear or quadratic functions of the same normal sample.
Why does the -distribution appear in the analysis of variance (ANOVA), and how does it connect to the definitions here?
In ANOVA, the total sum of squared deviations from the grand mean is decomposed into a "between-groups" sum of squares and a "within-groups" (residual) sum of squares. Under the null hypothesis of equal group means and shared normal errors, each of these sums of squares, when divided by , is exactly Chi-Squared with degrees of freedom equal to its associated dimension, and the two are independent by a multivariate generalization of the orthogonal-decomposition argument used in the main theorem (Cochran's theorem). The ratio of the two mean squares is then exactly -distributed by the very definition given here, which is precisely why the -statistic is the standard test statistic for comparing several group means simultaneously.