ExamSaathi learning library · Government exams · SSC CGL quantitative foundations; published syllabus labelled 2024 · Quantitative aptitude
Spread of grouped data: mean deviation and standard deviation by step deviation
Measure the spread of a frequency table: the mean deviation about the mean and about the median from class marks, and the variance, standard deviation and coefficient of variation of grouped data by the direct and step-deviation methods.
Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.
You will learn to
- Find the mean deviation of grouped data about the mean and about the median, and explain why the median gives the smallest value in a discrete table.
- Calculate the variance and standard deviation of grouped data by the direct formula, dividing the sum of f x d^2 by N.
- Use the step-deviation method, with u = (class mark - A) / h, to find the standard deviation of grouped data and check it against the direct method.
- Work out the coefficient of variation of grouped data from its mean and standard deviation.
Before you start
A frequency table is discrete when it lists single values, such as homes with 1, 2 or 3 phones, and continuous when it lists classes, such as daily wages of Rs. 200-300, each with a frequency. Here f is a frequency and N is the total of all the frequencies. The letter m stands for the value itself in a discrete table and for the class mark, (lower limit + upper limit) / 2, in a continuous one. The mean of a table is (sum of f x m) / N, as in the grouped mean lesson, and the median of a continuous table comes from the median-class formula of the grouped median lesson; both are used here without being taught again. Every formula treats the table as a whole population and divides by N. The letter x always means multiply, and |m - a| means the gap between m and a with any minus sign dropped.
Mean deviation about the mean and about the median
Pick a central value a, either the mean or the median. Write the gap |m - a| on each row, multiply it by that row's frequency and add the column: mean deviation about a = (sum of f x |m - a|) / N. The signs must go, because the signed gaps from the mean always total 0. In a continuous table every value in a class is treated as if it sat at the class mark, so the result is an estimate. A useful fact: for any list of values or any discrete table, the total of f x |m - a| is smallest when a is the median. If a moves away from the median, at least as many gaps grow as shrink, so the total cannot fall. Hence the mean deviation about the median is never larger than the one about the mean. In a continuous table the class marks stand in for the real values and the median comes from a formula, so the two worked figures usually keep this order but can occasionally come out the other way round.
Variance and standard deviation: the direct formula
For the variance the gaps are squared instead of losing their signs. With d = m - mean on each row, variance = (sum of f x d^2) / N, and the standard deviation is its positive square root, which is back in the unit of the data. Lay out the columns m, f, d, d^2 and f x d^2. Two quick checks keep the table honest: the products f x d must add up to 0, and no entry f x d^2 can be negative. The direct formula is pleasant when the mean is a whole number, best of all one of the class marks, because then every d is a whole number too. When the mean is something like 43.7, every d carries decimals and the squaring becomes slow, which is where the short-cut below helps.
The step-deviation (short-cut) method
When all the classes have the same width h, choose an assumed mean A, a class mark near the middle of the table, and code each row as u = (m - A) / h. The u values are small whole numbers such as -2, -1, 0, 1 and 2. Add the columns f x u and f x u^2. Then mean = A + h x (sum of f x u) / N, and variance = h^2 x [(sum of f x u^2) / N - ((sum of f x u) / N)^2], so the standard deviation is h x sqrt of the bracket. Why it works: sliding every value along by A leaves the spread unchanged, while dividing every value by h divides the standard deviation by h and the variance by h^2, so h^2 puts that back. The square of (sum of f x u) / N is taken off because the u values are measured from A rather than from the true mean, which sits (sum of f x u) / N steps away from A. A discrete table whose values rise in equal steps can be coded the same way, with h equal to the step.
Coefficient of variation and a cross-check
With the mean and standard deviation of a table in hand, the coefficient of variation is CV = (standard deviation / mean) x 100, a percentage with no unit. It compares two frequency tables whose means differ, such as daily wages at two brick kilns: the table with the smaller CV is the steadier one. Use it only when the mean is positive. The step-deviation formula has several places to slip, so test it on any small table by the direct method: find the mean, list d = m - mean, and confirm that (sum of f x d^2) / N gives the same variance. The two methods must agree exactly, since they are one calculation written in different units; a mismatch points to a wrong u value, a wrong product or a missing h^2.
Common mistakes
Using a lower or upper class limit in place of the class mark. Dividing by the number of rows instead of by N. Forgetting to multiply each gap, or each squared gap, by its frequency. Keeping the minus signs in a mean deviation, which pushes it towards 0. Picking the median class of a continuous table by the largest frequency, which finds the modal class instead. In the step method, multiplying by h instead of h^2 for the variance, or leaving out the square of (sum of f x u) / N. Quoting the variance when the question asks for the standard deviation. Dividing the standard deviation by A rather than by the true mean when finding a CV.
A routine for grouped spread
1. Write the class marks m and check that the frequencies add up to N. 2. Mean deviation: find the mean or the median, list |m - a|, form f x |m - a|, add, and divide by N. 3. Standard deviation by step deviations: take A from the middle class marks, set u = (m - A) / h, total f x u and f x u^2, and use variance = h^2 x [(sum of f x u^2) / N - ((sum of f x u) / N)^2]. 4. Take the square root for the standard deviation, and test a small table by the direct method. 5. CV = standard deviation / mean x 100. 6. Sense-check: in a discrete table the mean deviation about the median does not exceed the one about the mean; the mean deviation about the mean never exceeds the standard deviation; and the standard deviation is at most half the gap between the lowest and highest class marks.
Worked examples
A survey of 20 homes in a Jaipur lane counted the mobile phones in each: 1 phone in 2 homes, 2 phones in 2 homes, 3 phones in 3 homes, 4 phones in 10 homes and 5 phones in 3 homes. Find the mean deviation about the mean and about the median.
- N = 2 + 2 + 3 + 10 + 3 = 20, and sum of f x m = 2 + 4 + 9 + 40 + 15 = 70, so the mean = 70 / 20 = 3.5 phones.
- Cumulative frequencies are 2, 4, 7, 17 and 20. The 10th and 11th homes both lie in the row for 4 phones, so the median = 4 phones.
- Gaps from the mean, |m - 3.5|: 2.5, 1.5, 0.5, 0.5, 1.5. Times f: 5, 3, 1.5, 5, 4.5, which total 19. Mean deviation about the mean = 19 / 20 = 0.95.
- Gaps from the median, |m - 4|: 3, 2, 1, 0, 1. Times f: 6, 4, 3, 0, 3, which total 16. Mean deviation about the median = 16 / 20 = 0.8.
- As the rule for a discrete table says, measuring from the median gives the smaller figure.
Answer: Mean deviation about the mean = 0.95 phone; mean deviation about the median = 0.8 phone.
The daily wages of 20 workers at a brick kiln near Kanpur are grouped as Rs. 200-300: 3 workers, 300-400: 10, 400-500: 4, 500-600: 2 and 600-700: 1. Find the mean deviation about the median and compare it with the mean deviation about the mean.
- Class marks: 250, 350, 450, 550 and 650. Cumulative frequencies: 3, 13, 17, 19, 20, and N / 2 = 10, so the median class is 300-400 with L = 300, cf = 3, f = 10 and h = 100.
- Median = 300 + ((10 - 3) / 10) x 100 = Rs. 370, by the grouped median formula.
- Gaps |m - 370|: 120, 20, 80, 180, 280. Times f: 360, 200, 320, 360, 280, which total 1,520. Mean deviation about the median = 1520 / 20 = Rs. 76.
- Mean = (750 + 3500 + 1800 + 1100 + 650) / 20 = 7800 / 20 = Rs. 390. Gaps |m - 390|: 140, 40, 60, 160, 260; times f: 420, 400, 240, 320, 260, total 1,640, so the mean deviation about the mean = 1640 / 20 = Rs. 82.
- The median gives the smaller spread figure here, Rs. 76 against Rs. 82.
Answer: Median = Rs. 370, and the mean deviation about the median = Rs. 76; about the mean (Rs. 390) it is Rs. 82.
The marks (out of 60) of 40 students in a unit test in Patna are grouped as 10-20: 2 students, 20-30: 3, 30-40: 14, 40-50: 15 and 50-60: 6. Find the standard deviation by the step-deviation method, check it by the direct method, and find the coefficient of variation.
- Class marks m: 15, 25, 35, 45, 55, with h = 10. Take A = 35, so u = (m - 35) / 10 gives -2, -1, 0, 1, 2.
- f x u: -4, -3, 0, 15, 12, total 20. f x u^2: 8, 3, 0, 15, 24, total 50. N = 40.
- Mean = 35 + 10 x 20 / 40 = 40 marks.
- Variance = 10^2 x [50 / 40 - (20 / 40)^2] = 100 x (1.25 - 0.25) = 100, so the standard deviation = sqrt(100) = 10 marks.
- Direct check: d = m - 40 gives -25, -15, -5, 5, 15, and f x d^2 gives 1250, 675, 350, 375, 1350, total 4,000. Then 4000 / 40 = 100, the same variance.
- CV = 10 / 40 x 100 = 25 percent.
Answer: Standard deviation = 10 marks (variance 100, mean 40 marks), and the coefficient of variation = 25 percent.
Practice checks
- In a village survey, 20 families gave their number of children: 0 children: 3 families, 1: 5, 2: 6, 3: 5 and 4: 1. The mean is 1.8 children. What is the mean deviation about the mean?
- The speeds (km/h) of 40 cars on a Pune bypass are grouped as 20-30: 1, 30-40: 3, 40-50: 10, 50-60: 15 and 60-70: 11. The grouped median formula gives a median of 54 km/h. What is the mean deviation about the median?
- A grouped table has N = 50 and class width h = 10. With A = 35 and u = (class mark - 35) / 10, the totals are sum of f x u = 25 and sum of f x u^2 = 73. What is the standard deviation?
- The monthly electricity bills of 20 flats in a Nagpur housing society are grouped as Rs. 200-300: 1 flat, 300-400: 2, 400-500: 8, 500-600: 8 and 600-700: 1. Using step deviations with A = 450 and h = 100, what is the coefficient of variation of the bills?
- For a discrete table of the days absent of 25 pupils in a month, the mean is 2.6 days and the median is 2 days. Which statement must be true?
Sources checked
- SSC CGL Scheme and Syllabus, labelled 2024 — Tier-II Paper-II Statistics (Measures of Dispersion: mean deviation and standard deviation); not verified as the full 2026-cycle syllabus
- NCERT, Mathematics, Textbook for Class XI — Chapter 13, Statistics: mean deviation about the mean and about the median for grouped data, and the variance and standard deviation of discrete and continuous frequency distributions, including the shortcut (step-deviation) method; mathematical relationships only