4.9.9 · D2Probability Theory & Statistics

Visual walkthrough — Chi-squared, t, F distributions — definition, degrees of freedom

1,696 words8 min readBack to topic

Step 1 — One bell curve, and what "squaring" does to it

WHAT. We begin with a single random number . The symbol just means "a number drawn from the standard bell curve": most draws land near , big draws (far from ) are rare. We then look at — the number squared.

WHY. Squaring throws away the sign. A miss of and a miss of are equally bad if we only care about distance from the centre. Squaring turns "how far off, left or right?" into "how much wobble, period?". That is the seed of everything: will be nothing but added-up squared wobble.

PICTURE. Look at the figure. The blue bell is . The two yellow points at and both map (red arrows) to the same height on the squared axis — sign erased. Notice small barely moves, large explodes: squaring magnifies rare far draws, which is why the total will have a long right tail.

Figure — Chi-squared, t, F distributions — definition, degrees of freedom

Step 2 — Stacking independent wobbles → the shape

WHAT. Take independent bell-draws , square each, and add them:

WHY. Independent means each draw ignores the others — they are separate directions of variation, i.e. degrees of freedom. Adding squared distances is exactly the squared length of a point in -dimensional space (Pythagoras). So = "how far a random -dimensional dart lands from the origin, squared".

PICTURE. The figure shows the curve for . For it piles up near (one small wobble is usually tiny). As grows the peak slides right to about and the curve fattens — more wobbles to add means a bigger, more spread total.

Figure — Chi-squared, t, F distributions — definition, degrees of freedom

Step 3 — The df constraint: why , not

WHAT. In real data we don't know the true centre ; we use the sample mean . The deviations then obey a hidden rule:

WHY. Once you know of the deviations, the last one is forced — it must be whatever makes the sum zero. One piece of freedom has been spent to pin down . So the wobble lives in only free directions → .

PICTURE. With the three deviations must sum to : that is a flat plane through the origin (green) inside 3D space. The point is trapped on that plane — free to move in directions, not . That trapped dimension count is the degrees of freedom.

Figure — Chi-squared, t, F distributions — definition, degrees of freedom

Step 4 — Standardise the mean: a clean appears

WHAT. The sample mean itself has a bell curve, narrower than the data by . Standardising it gives an exact :

WHY. is an average of normals, so it's normal with centre and spread (averaging cancels wobble). Subtracting its centre and dividing by its spread rescales it to the standard bell — the numerator we need for .

PICTURE. Two bells: the wide data bell (width ) and the narrow sample-mean bell (width ). The arrow shows subtracting (shift to centre) then dividing by (rescale to width ) collapsing it onto the unit bell.

Figure — Chi-squared, t, F distributions — definition, degrees of freedom

Step 5 — Kill the unknown : the ratio is born

WHAT. We don't know , so we can't use the of Step 4 directly. Replace by its estimate . Watch cancel:

WHY. Dividing top and bottom by makes the top exactly the from Step 4 and the bottom exactly a from Step 3, divided by its df and square-rooted. That bottom is a random estimate of — it wobbles.

PICTURE. Split screen. Left: fixed denominator gives the crisp normal. Right: the denominator is a rattling value; when it happens to be small, dividing blows the ratio up — the red spikes far out in the tails. That randomness in the denominator is the fat tail.

Figure — Chi-squared, t, F distributions — definition, degrees of freedom

Step 6 — Limiting case: why as

WHAT. As the df grows, the denominator stops rattling and locks onto , so becomes an ordinary .

WHY. is an average of squared normals, each with mean . By the law of large numbers (kin to the Central Limit Theorem), averaging many of them pins , so and the ratio's denominator is effectively fixed — no more fat tails.

PICTURE. The curves for over the standard normal (dashed). Small : visibly fat tails and a lower peak. : almost perfectly on the normal. The tails deflate as climbs.

Figure — Chi-squared, t, F distributions — definition, degrees of freedom

Step 7 — Two wobbles compared: the ratio

WHAT. Take two independent chi-squareds and . Normalise each to "per degree of freedom", then divide:

WHY. A raw has mean — bigger groups look "bigger" for free. Dividing each by its own df resets both to mean , so the ratio measures how many times more wobbly group 1 is than group 2, fairly. If the two populations truly share a variance, both parts sit near and .

PICTURE. Two normalised chi-squared bars, each hovering near height . The ratio dial points near under equal variance; when group 1 is genuinely more spread, the numerator swells and the dial swings above . This is the engine inside ANOVA and Hypothesis Testing for variances.

Figure — Chi-squared, t, F distributions — definition, degrees of freedom

The one-picture summary

Square → Sum (with a constraint) → Scale & Split. One bell curve , squared and stacked, becomes ; a lone over a scaled becomes ; two scaled 's divided become . Every arrow below is one step you just walked.

Figure — Chi-squared, t, F distributions — definition, degrees of freedom
Recall Feynman: the whole walkthrough in plain words

Start with one shaky number from the bell curve. Square it so left-and-right misses count the same — that's a wobble score. Add up independent wobbles and you get chi-squared; its typical size is just , because each wobble averages . If you first had to compute an average from your data, one wobble-direction gets used up, so you count free ones, not . Now, to test a mean when you don't know your true steadiness, you estimate it — and because that estimate itself rattles, dividing by it makes crazy answers more common: fat-tailed . Throw enough data at it and the estimate stops rattling, so quietly becomes the plain bell again. Finally, to ask "is player A wobblier than player B?", make each player's average wobble about by dividing by its own free-count, then take the ratio: , which sits near when they're equally shaky. Square, sum, scale, split — that's the entire family.

Recall Quick self-check

Why do we square instead of using ? ::: Squaring gives a smooth, differentiable "distance²" that is exactly a Pythagorean squared length in dimensions and has clean mean/variance ( and ). Why does the sample-variance chi-squared have df? ::: Estimating forces , trapping the deviations on an -dimensional plane — one free direction lost. What makes 's tails fat? ::: Its denominator is a random estimate of ; when it's small by chance the ratio blows up. What is ? ::: .