2.7.3 · D1Statistics & Probability — Intermediate

Foundations — Measures of dispersion — variance, standard deviation

1,964 words9 min readBack to topic

Before you can understand variance, you have to be able to read it. The parent note throws a lot of little symbols at you very fast: , , , , , , . If any one of them is a blur, the derivations become spellcasting. This page defines each one from absolute zero, anchors it to a picture, and says why the topic can't live without it.


The raw material: a dataset

Everything starts with a list of numbers you actually measured — test marks, dart distances, heights, whatever.

Figure — Measures of dispersion — variance, standard deviation

Look at the figure. Each dot on the number line is one . The subscript is nothing scary — it is exactly like numbering the students in a row: "student 1, student 2, ..." The tells you what kind of thing, the subscript tells you which specific one.


Adding them all: the sigma symbol

Writing is fine for five numbers, but painful for five hundred. Mathematicians invented a single symbol that means "add up a whole sequence."

Figure — Measures of dispersion — variance, standard deviation

Look at the figure. The counter walks along the bottom: Each step it picks up the value and drops it into a running total. When the counter passes , it stops and hands you the final sum.


The centre: mean (and its cousin )

To ask "how far do numbers stray from the middle?" we first need the middle.

Figure — Measures of dispersion — variance, standard deviation

Look at the figure. Imagine the number line is a see-saw and each data value is a weight sitting where it lands. The mean is the exact balance point — the pivot where the plank tips neither left nor right. Values far to the right are counterweighted by values far to the left.


The gap: deviation

Now that we have a centre, we can ask each value: how far are you from it?

Figure — Measures of dispersion — variance, standard deviation

Look at the figure. Each coloured arrow runs from the mean to a data point. Arrows pointing right are positive deviations (orange), arrows pointing left are negative (blue). The length of the arrow is how far off that value is; the direction is the sign.


The two easy-to-confuse averages: vs

The shortcut formula in the parent note lives or dies on telling these apart.


The final symbols: and


How it all feeds the topic

data values x sub i

count n

sum symbol sigma

mean x-bar = total over n

deviation = value minus mean

square the deviation to kill signs

variance = average squared deviation

mean of squares vs square of mean

standard deviation = square root of variance

Coefficient of Variation, Normal Distribution

Read it top to bottom: raw data need a count and a sum to build the mean; the mean lets us measure deviations; squaring and summing them gives variance; a square root gives standard deviation, which then powers Coefficient of Variation and the Normal Distribution.


Equipment checklist

Reveal each and check you can answer instantly before tackling the parent note.

What does the subscript in mean?
A name tag saying which data value — the -th one; slide from 1 to to visit every value.
What does instruct you to do?
Start a counter at 1, add the term each step, stop after — i.e. total every value.
Is the same as ?
No. squares each term first then adds; adds first then squares once.
What is ?
The count — how many data values you have.
Give the formula for the mean .
— the total divided by the count.
What picture is the mean?
The balance point of a see-saw with a weight at each data value.
Difference between and ?
= mean of the whole population; = mean of a sample. Same formula, different source of data.
Define the deviation and its sign.
; positive if the value is right of the mean, negative if left, zero if on it.
What does always equal, and why?
Exactly 0 — the mean is the balance point, so rightward and leftward deviations cancel.
vs — which squares first?
squares each value first then averages; averages first then squares once. They are equal only if all values are identical.
Variance vs standard deviation — units and relation?
is in squared units; restores the original units.