A brief note on Centre and Spread of Data . Read it before a test. Try each question at the end before you open its answer.
The three averages Mean: x ˉ = ∑ f x N \bar{x} = \dfrac{\sum f x}{N} x ˉ = N ∑ f x . For grouped data use the class marks. Median: the middle value of the ordered data. For grouped data, l + N 2 − C f h l + \dfrac{\frac{N}{2} - C}{f}\,h l + f 2 N − C h . Mode: the most common value. For grouped data, l + f 1 − f 0 2 f 1 − f 0 − f 2 h l + \dfrac{f_1 - f_0}{2f_1 - f_0 - f_2}\,h l + 2 f 1 − f 0 − f 2 f 1 − f 0 h . Rule of thumb: mode ≈ 3 median − 2 mean \text{mode} \approx 3\,\text{median} - 2\,\text{mean} mode ≈ 3 median − 2 mean for slightly skewed data. Step deviation: with u = x − A h u = \dfrac{x - A}{h} u = h x − A , the mean is A + h u ˉ A + h\,\bar{u} A + h u ˉ . Choice: an extreme value pulls the mean. The median is steady. Measures of spread Range: largest − - − smallest. Coefficient of range: largest − smallest largest + smallest \dfrac{\text{largest} - \text{smallest}}{\text{largest} + \text{smallest}} largest + smallest largest − smallest . Mean deviation about a a a : ∑ f ∣ x − a ∣ N \dfrac{\sum f \lvert x - a \rvert}{N} N ∑ f ∣ x − a ∣ . It is smallest when a a a is the median. Variance: σ 2 = ∑ f ( x − x ˉ ) 2 N = ∑ f x 2 N − x ˉ 2 \sigma^2 = \dfrac{\sum f (x - \bar{x})^2}{N} = \dfrac{\sum f x^2}{N} - \bar{x}^2 σ 2 = N ∑ f ( x − x ˉ ) 2 = N ∑ f x 2 − x ˉ 2 . Standard deviation: σ = σ 2 \sigma = \sqrt{\sigma^2} σ = σ 2 , in the unit of the data. Step deviation: σ 2 = h 2 [ ∑ f u 2 N − ( ∑ f u N ) 2 ] \sigma^2 = h^2\left[\dfrac{\sum f u^2}{N} - \left(\dfrac{\sum f u}{N}\right)^2\right] σ 2 = h 2 [ N ∑ f u 2 − ( N ∑ f u ) 2 ] . Sample: A-Level, IB and AP divide by n − 1 n - 1 n − 1 to estimate the population variance. A worked example Find the mean, the median, the variance and the standard deviation of 3 , 8 , 5 , 10 , 14 3, 8, 5, 10, 14 3 , 8 , 5 , 10 , 14 .
The mean. x ˉ = 40 5 = 8 \bar{x} = \dfrac{40}{5} = 8 x ˉ = 5 40 = 8 . The median. The ordered values are 3 , 5 , 8 , 10 , 14 3, 5, 8, 10, 14 3 , 5 , 8 , 10 , 14 , so the median is 8 8 8 . The squared distances. 25 , 0 , 9 , 4 , 36 25, 0, 9, 4, 36 25 , 0 , 9 , 4 , 36 , which add to 74 74 74 . The variance. σ 2 = 74 5 = 14.8 \sigma^2 = \dfrac{74}{5} = 14.8 σ 2 = 5 74 = 14.8 , and σ = 14.8 = 3.85 \sigma = \sqrt{14.8} = 3.85 σ = 14.8 = 3.85 . As a sample. s 2 = 74 4 = 18.5 s^2 = \dfrac{74}{4} = 18.5 s 2 = 4 74 = 18.5 . Practice with new numbers
A program to try The program finds the mean, the median, the variance and the standard deviation of the list in the worked example. It also prints the sample variance.
Run it. Do the printed values match the worked example?
1. Change the list to [3, 8, 5, 10, 140]. Which of the mean and the median moves more?
Mistakes to avoid Dividing by the number of classes. Divide by N N N . Dropping the absolute value in the mean deviation. Forgetting the square root for the standard deviation. Forgetting h 2 h^2 h 2 in the step-deviation variance. Using n n n for a sample. A question that says sample wants n − 1 n - 1 n − 1 . Check yourself Find the mean and the median of 6 , 9 , 4 , 12 , 9 6, 9, 4, 12, 9 6 , 9 , 4 , 12 , 9 . Stuck? Show a hint Show the answerFind the range and the coefficient of range of 10 , 25 , 18 , 40 10, 25, 18, 40 10 , 25 , 18 , 40 . Stuck? Show a hint Show the answerFind the mean deviation about the mean of 4 , 6 , 8 , 10 , 12 4, 6, 8, 10, 12 4 , 6 , 8 , 10 , 12 . Stuck? Show a hint Show the answerFor 10 10 10 values, ∑ x = 50 \sum x = 50 ∑ x = 50 and ∑ x 2 = 300 \sum x^2 = 300 ∑ x 2 = 300 . Find the standard deviation. Stuck? Show a hint Show the answerWhich average would you quote for incomes, when a few are very large, and why? Stuck? Show a hint Show the answerSources OpenStax, Introductory Statistics , Chapter 2, sections on measures of the centre and the spread of the data. NCERT, Mathematics for Class XI, Chapter 13 (Statistics).