After visualising the data, we summarise them with a few numbers: measures of location (where the centre is) and measures of dispersion (how spread out they are).

Definition — Measures of location and dispersion

Given a sample x1,x2,,xnx_1,x_2,\ldots,x_n:

  • sample mean: xˉ=1ni=1nxi\bar x=\dfrac{1}{n}\sum_{i=1}^n x_i — the “centre of mass” of the data.
  • median: the central value after ordering (nn odd) or the mean of the two central ones (nn even). Robust to outliers.
  • sample variance: s2=1n1i=1n(xixˉ)2s^2=\dfrac{1}{n-1}\sum_{i=1}^n (x_i-\bar x)^2.
  • sample standard deviation: s=s2s=\sqrt{s^2} (same unit of measurement as the data).

Observation — Why " n1n-1" and not "nn"

In the sample variance one divides by n1n-1 instead of nn (Bessel’s correction): it is the number of residual degrees of freedom after spending one degree in computing xˉ\bar x. It guarantees that E[s2]=σ2E[s^2]=\sigma^2 (unbiased estimator). Dividing by nn would give a systematic underestimate. Reading the denominator n1n-1 as “residual degrees of freedom” is taken from Esty (Ch. 14).

Example — Test marks

Marks of a class of 1010 pupils: 4,5,6,6,7,7,7,8,9,104,5,6,6,7,7,7,8,9,10. Mean: xˉ=69/10=6,9\bar x=69/10=6,9. Median: mean of the two central ones (7+7)/2=7(7+7)/2=7. Variance: sum of (xi6,9)2=26,9(x_i-6,9)^2 = 26,9, divided by 99: s22,99s^2\approx 2,99; s1,73s\approx 1,73.

Topics: Probabilita
Concepts: Deviazione standard · Media campionaria · Mediana · Varianza campionaria
Skills: Calcolare · Stimare