2.7.3 · D3Statistics & Probability — Intermediate

Worked examples — Measures of dispersion — variance, standard deviation

2,320 words11 min readBack to topic

We only use two engines the parent gave us. Let me restate them in plain words so nothing here is a mystery symbol.


The scenario matrix

Below is the full list of "case classes." Every cell is covered by at least one example — the tag in each [!example] tells you which cell it hits.

Case class What makes it tricky Covered by
A. Definition, plain data just follow steps Ex 1
B. Shortcut on same data must match A exactly Ex 2
C. Degenerate — all equal should be Ex 3
D. Shift invariance () variance must not move Ex 4
E. Scaling (, incl. negative ) variance , SD $\times c
F. Sample vs population ( vs ) which divisor? Ex 6
G. Frequency / grouped data weights, not raw list Ex 7
H. Word problem, real units interpret SD in context Ex 8
I. Exam twist — combine sets derive from summary stats Ex 9
J. Limiting behaviour (, one outlier grows) how reacts Ex 10
Figure — Measures of dispersion — variance, standard deviation

The figure above is the mental map: every example is a dart-scatter picture, and measures how wide the scatter is.


A & B — definition vs shortcut agree


C — the degenerate case (all values equal)


D & E — shifting and scaling

These two are the workhorses of exam questions: they let you re-use a variance you already computed.

Figure — Measures of dispersion — variance, standard deviation

F — sample vs population divisor


G — frequency / grouped data


H — real-world word problem


I — exam twist: combine two datasets from summaries

Sometimes you're not given the raw numbers, only summary sums. The shortcut engine shines here.


J — limiting behaviour


Recall Self-test: name the case, then solve

For each mini-prompt, first say which matrix cell (A–J) it is. Data population variance ::: Case C — degenerate, . You already found ; now every value is multiplied by . New variance? ::: Case E — . Same data, but now add to every value. New variance? ::: Case D — unchanged, still . sample, sum of squared deviations . Sample variance? ::: Case F — . Merge: , , . Variance? ::: Case I — .

Connections