Skip to content

Mathematics and Statistics · Ch 11 — Measures of Dispersion

Variance and Standard Deviation for Raw Data

5

Variance and Standard Deviation for Raw Data

The Standard Deviation is the most important and most widely used measure of dispersion. Instead of taking absolute values (as the mean deviation does), it squares each deviation from the mean — squaring also makes every term positive but, unlike the modulus, behaves smoothly in algebra.

Note

Variance and Standard Deviation (raw data)

The variance is the mean of the squared deviations:

σ2=∑(xi−xˉ)2n\sigma^2 = \frac{\sum (x_i - \bar{x})^2}{n}

The standard deviation σ\sigma (read "sigma") is the positive square root of the variance:

σ=∑(xi−xˉ)2n\sigma = \sqrt{\frac{\sum (x_i - \bar{x})^2}{n}}

Taking the square root returns the measure to the original units of the data (the variance is in squared units, e.g. rupees², which is why the standard deviation, not the variance, is the reported measure of spread).

Note

Short-cut formula (avoids the mean inside the sum)

σ2=∑xi2n−(∑xin)2=∑xi2n−xˉ 2\sigma^2 = \frac{\sum x_i^{2}}{n} - \left(\frac{\sum x_i}{n}\right)^{2} = \frac{\sum x_i^{2}}{n} - \bar{x}^{\,2}

This form needs only ∑xi\sum x_i and ∑xi2\sum x_i^2, so it avoids computing each (xi−xˉ)(x_i - \bar{x}) separately — much quicker, and it is the standard cross-check for a variance found the long way.

Example. For 2,4,6,8,102, 4, 6, 8, 10: xˉ=305=6\bar{x} = \dfrac{30}{5} = 6. The squared deviations are 16,4,0,4,1616, 4, 0, 4, 16, summing to 4040, so σ2=405=8\sigma^2 = \dfrac{40}{5} = 8 and σ=8≈2.83\sigma = \sqrt{8} \approx 2.83. Short-cut check: ∑x2=4+16+36+64+100=220\sum x^2 = 4+16+36+64+100 = 220, so σ2=2205−62=44−36=8\sigma^2 = \dfrac{220}{5} - 6^2 = 44 - 36 = 8 — the same.

Note

Key properties of the standard deviation

  • σ≥0\sigma \ge 0 always, and σ=0\sigma = 0 only when every value is identical (no spread at all). …
Definition 10Variance

σ2=∑(xi−xˉ)2n\sigma^2 = \dfrac{\sum (x_i - \bar{x})^2}{n}, the mean of the squared deviations from the mean; expressed in squar …

Definition 11Standard deviation

σ=∑(xi−xˉ)2n\sigma = \sqrt{\dfrac{\sum (x_i - \bar{x})^2}{n}}, the positive square root of the variance; the most widely used absolute measure of dispersion, expressed in the original units. Short-cut: $\sigma^2 = \d …