Visual walkthrough — Measures of dispersion — variance, standard deviation
We use one running dataset the whole way: the marks (out of 10). Watch these five dots move through the whole story.
Step 1 — Put the data on a line
WHAT. We take five numbers and place each as a dot on a horizontal line (an axis). The axis is just a ruler: position = value.
WHY. Before we can talk about "spread," we need to see the raw data. Spread is a fact about how these dots are arranged — you cannot measure it in your head from a list, but you can see it on a line.
PICTURE. Five dots. Some are close together (the two 5s sit on top of each other), one straggler sits far out at 10.

Step 2 — Find the centre (the mean)
WHAT. We compute one special number, the mean, and mark it on the same line.
Reading it term by term: is "add up all the dots" ; the divides by how many there are; (read "x-bar") is the result, .
WHY. Spread means "spread around something." The mean is that something — it is the balance point, the spot where the line would balance if each dot were a coin of equal weight. (See Mean, Median, Mode — measures of central tendency for why it balances.)
PICTURE. A downward triangle (a see-saw pivot) sits at . The far dot at tugs the balance rightward exactly as much as the two low dots at and tug left.

Step 3 — Measure each dot's distance from the centre
WHAT. For every dot we draw the arrow from the centre out to that dot. Its signed length is the deviation:
Here , so the deviations are
Each symbol: is where the dot is, is the centre, and their difference is "how far, and which way." A minus means the dot sits left of centre; a plus means right.
WHY. Distance-from-centre is the raw material of spread. A dot far from centre (the ) contributes a lot; a dot near centre (the s) contributes little.
PICTURE. Orange arrows point left (negative) from the low dots, teal arrows point right (positive) from the high dots. Length = how far.

Step 4 — Why we can't just average the arrows
WHAT. Naive idea: "average the deviations." Let's try:
WHY this fails. The left-pointing arrows and the right-pointing arrows have equal total length — that is exactly what "balance point" means from Step 2. So they cancel to zero every single time, no matter how scattered the data is. A spread measure that is always tells us nothing.
PICTURE. The orange (left) arrows stacked end-to-end reach the same total length as the teal (right) arrows — a visual tug-of-war ending in a perfect tie at .

Step 5 — Square each deviation to kill the signs
WHAT. Replace each arrow by a square built on it. A square needs a positive side length, so we take the side to be the absolute deviation (the arrow's length, sign discarded). Its area is then and numerically
Why is the same as ? Because — squaring a length already erases the sign, so the side length and the raw give the same area. The little means "multiply the number by itself," and and are both : squaring throws away the sign but keeps the size.
WHY squaring and not absolute value? Two ways kill signs: and . We pick squaring because (a) it is smooth — a square's area changes gently, so we can do calculus on it later (this is why Least Squares Regression uses squares); (b) it punishes big misses harder — the becomes a whopping , dwarfing the s that become just ; (c) squared distance is the geometry that the Normal Distribution is built from.
PICTURE. Each arrow of length grows into a literal square of that side. The deviation's square () visibly dominates the tiny unit squares.

Step 6 — Average the squares → variance
WHAT. Add all the square-areas and divide by how many there are:
Term by term: is one square's area; adds all five areas ; turns the total area into the average area; (read "sigma-squared") is that average, .
WHY average, not just sum? A plain sum grows if you add more data points, even data that's equally spread — that's not fair. Dividing by gives the typical square-area per point, a number that describes the spread itself, not the sample size.
PICTURE. All five squares are melted together and re-poured into one big square whose area is the average, — the "typical square" that stands in for the whole dataset.

Step 7 — Square-root back to real units (standard deviation)
WHAT. Variance is marks² — a squared unit, awkward to talk about. Take the square root:
The undoes the squaring of Step 5: it turns an area back into a length.
WHY. We want to answer "how far, typically, is a mark from the average, in marks?" Only a length can answer that. means: on average the marks sit about away from . That is a sentence a human can use.
PICTURE. The big "average square" of area has its side length drawn back onto the original number line: a band of width on each side of the centre , catching the typical dots.

Step 8 — The degenerate case: no spread at all
WHAT. Suppose every mark is the same: . Then , every deviation , every square is , so
WHY it matters. This is the only way variance can hit zero, and it's the sanity floor: variance is never negative (it's an average of squares, and squares are ), and it equals exactly when all values are identical. No spread ⇒ no arrows ⇒ no squares ⇒ zero.
PICTURE. All five dots pile onto the single point . Every arrow has length ; there are no squares to draw.

Recall Check the edge case yourself
Data : mean is 4, all deviations are 0, so the variance equals , and the SD too.
The one-picture summary
Every step in a single frame: dots → centre → arrows → squares → average square → square-root band. Follow the numbers .

Recall Feynman: tell the whole walk in plain words
Line up your five test scores on a ruler. Find the balance point — that's the average, 6. From the balance point, draw an arrow to each score: some point left, some right. If you just added those arrows they'd cancel to nothing (that's what "balance point" means), so instead you turn each arrow into a square tile whose side is the arrow's length — now left and right can't cancel, and the far-out score makes a huge tile. Average all the tiles into one "typical tile"; that average area is the variance (5.6). Its side length — take the square root — is the standard deviation (about 2.37), which finally answers in plain marks: "a typical score sits about 2.37 away from 6." And if all your scores were identical, there'd be no arrows, no tiles, and the spread would be exactly zero.
Connections
- Measures of Dispersion — variance, standard deviation — the parent note this walkthrough builds.
- Mean, Median, Mode — measures of central tendency — why the mean is the balance point of Step 2.
- Normal Distribution — the squares-of-distances idea powers the 68-95-99.7 rule.
- Coefficient of Variation — divides by for a unitless spread.
- Covariance and Correlation — the same arrows-and-products idea, but for two variables at once.
- Least Squares Regression — "minimise the sum of squared arrows," exactly Step 5's tiles.