1.3.11 · D2Probability & Statistics

Visual walkthrough — Gaussian - Normal distribution properties

1,988 words9 min readBack to topic

Before symbols, some plain words:

  • A distribution is a way of sharing out "how likely" across all the values a number could take. Picture a fixed amount of sand (total = 1 bucket) sprinkled along a horizontal line. Tall piles = likely values.
  • The height of the sand at position is written and called the probability density. It is just "how deep is the sand here".
  • (Greek letter mu, say "mew") will be the center — where the pile is balanced.
  • (Greek sigma) will be the spread — how wide the pile is.
  • just means , the number raised to the power . We will meet it only when the maths demands it, and explain why then.

Step 1 — Sand on a line, with three rules

WHAT. We have a density : a curve whose height is the depth of sand at . We impose exactly three requirements and nothing else:

The symbol ("integral") means add up over every position on the line — think of sliding along and summing every sliver of sand. Term by term:

  • — the total sand is one full bucket. Nothing created, nothing lost.
  • — weigh each position by how much sand is there; the weighted center is .
  • is the squared distance from the center; averaged over the sand, it equals . This pins how far the sand typically wanders.

WHY. These are the only two facts we claim to know: where the pile balances and how wide it is. We refuse to sneak in any other assumption.

PICTURE.

Figure — Gaussian - Normal distribution properties

Step 2 — "Fairest" means maximum entropy

WHAT. Among the infinitely many sand-piles obeying those three rules, we pick the one that assumes the least. The measure of "assuming the least" is entropy:

Reading it: is the natural logarithm of the height; the minus sign makes flat, spread-out piles score high and sharp, opinionated spikes score low.

WHY this tool and not another? We need a single number that says "how non-committal is this pile?". A spike claims "I know the answer is right here" — that is a strong claim, low entropy. A gentle spread claims little — high entropy. Maximising therefore = making the fewest extra assumptions beyond our three rules. Any other choice would secretly smuggle in information we do not have.

PICTURE.

Figure — Gaussian - Normal distribution properties

Step 3 — Balancing slopes: Lagrange multipliers

WHAT. We want to maximise but we are chained by three constraints. The trick: build one combined quantity, the Lagrangian , that adds a "price tag" to each constraint:

Each (lambda) is an unknown price that we tune so its constraint is exactly obeyed.

WHY. At the best pile, you cannot increase entropy without breaking a rule — the "push" from entropy is perfectly cancelled by the "pull" of the constraints. Lagrange multipliers are the standard way to find that balance: raise entropy and pay the constraint prices simultaneously, then demand zero net movement.

PICTURE.

Figure — Gaussian - Normal distribution properties

Step 4 — Set the change to zero, solve for

WHAT. Nudge the height at one point by a hair and ask "did change?". At the maximum the answer must be no change for every point. That derivative (the functional derivative ) is:

Solve for , then exponentiate (undo the log) to free :

Here is just a positive constant, and appears because we undid a logarithm — that is the honest reason enters the story: solving forces .

WHY. "Every tiny nudge leaves unchanged" is exactly what maximum means. Writing that condition and unwrapping the log delivers the shape of the winner: an exponential of a quadratic.

PICTURE.

Figure — Gaussian - Normal distribution properties

Step 5 — The mean constraint kills the linear term

WHAT. We still have three unknowns . The mean rule ("balance at ") demands the pile be symmetric about : as much sand a step to the right as a step to the left. But the term tilts the pile — it makes one side heavier. The only way to stay balanced is

So the density collapses to , depending on only through the distance .

WHY. A nonzero would shift the balance point away from , contradicting our second rule. Symmetry is not assumed — it is forced by fixing the center.

PICTURE.

Figure — Gaussian - Normal distribution properties

Step 6 — The sign of : it must be negative

WHAT. Look at and test the sign of :

  • If : as runs far from , and . The sand piles up at the edges of the universe — total sand is infinite. Impossible (breaks rule 1).
  • If : , a flat line stretching forever — again infinite total sand. Impossible.
  • If : far from the exponent is a big negative number, so . The sand fades to nothing at the edges and the total can be finite. This is the only survivor.

Write the surviving constant as (negative, since ; the is chosen to make later algebra clean). Then

WHY. We covered all three sign cases and only one keeps the sand finite. The bell shape — high in the middle, decaying to zero on both sides — is the unavoidable outcome.

PICTURE.

Figure — Gaussian - Normal distribution properties

Step 7 — Fix so the sand totals exactly one bucket

WHAT. The last unknown is nailed by normalization . This uses one famous fact, the Gaussian integral:

So , which forces

The is not decoration — it is precisely the amount of area under , so dividing by it makes the total exactly one full bucket.

Assembling Steps 5–7:

The variance rule from Step 1 then confirms this same really is the spread — everything is consistent.

WHY. A density that does not total 1 is not a probability. is the single scaling knob that turns our shape into a legal distribution.

PICTURE.

Figure — Gaussian - Normal distribution properties

Step 8 — Degenerate edge: what happens as ?

WHAT. Push the spread to zero. The width so the peak height , while the curve away from is crushed to zero. The bell becomes an infinitely tall, infinitely thin spike at — a "certain" value. In the other extreme , the bell flattens toward a barely-there horizontal smear: total ignorance across the whole line.

WHY. These limits are the two boundaries of belief the Gaussian can express: = "I know it exactly", = "I know nothing". Every real Gaussian lives between them.

PICTURE.

Figure — Gaussian - Normal distribution properties

The one-picture summary

Figure — Gaussian - Normal distribution properties

The whole journey in one frame: three constraints (Step 1) → be maximally humble (Step 2) → balance humility against constraints with Lagrange (Step 3) → set the nudge to zero and undo the log, so appears (Step 4) → mean forces the tilt away (, Step 5) → finiteness forces a negative quadratic (Step 6) → total-one fixes the front constant (Step 7). Out drops the bell.

Recall Feynman retelling — say it back in plain words

Imagine one bucket of sand you must spread along a line. You only agree to two things: where it balances, and how far it typically strays from that balance point. Beyond that you want to be as un-opinionated as possible — you refuse to claim anything extra. "Un-opinionated" gets a score called entropy, and you make it as big as possible while still honouring your two agreements. Doing the balancing algebra (Lagrange multipliers, then setting every tiny nudge to zero) spits out a formula for the sand's height that involves raised to something. That "something" turns out to be a downward-bending parabola in : it must bend down or the sand would run off to infinity, and it must be centred (no sideways tilt) or the balance point would drift. Finally you scale the whole thing so the sand really does add to one bucket — that scaling is the out front. What falls out is the bell curve. Nothing was assumed about "bells"; the bell is simply the fairest pile with a fixed center and spread.

This is why the Gaussian shows up everywhere (see Central Limit Theorem), why standardizing works (see Maximum Likelihood Estimation), and why it is the workhorse noise model in Linear Regression, Kalman Filters and Bayesian Inference.

Recall

Which sign of survives, and why? ::: Negative — only makes at the edges so the total area stays finite. Why does the linear term vanish? ::: Fixing the mean at forces symmetry; any tilt would move the balance point, so . Where does the (the ) come from? ::: From undoing the logarithm: solving gives . What does do? ::: It rescales the shape so the total area (total probability) equals exactly 1. Why maximise entropy? ::: It is the least-assuming distribution consistent with the known mean and variance.