ExamSaathi learning library · Government exams · SSC CGL quantitative foundations; published syllabus labelled 2024 · Quantitative aptitude

Spread of data: range, mean deviation and standard deviation

Measure how widely data are spread: find the range and the mean deviation about the mean, work out the variance and standard deviation of ungrouped data by dividing by n, and compare consistency with the coefficient of variation.

Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.

You will learn to

Before you start

Two vegetable stalls can each sell a mean of 40 kg of onions a day, yet one sells close to 40 kg every day while the other swings between 15 kg and 65 kg. The mean alone cannot show this difference; a measure of dispersion, or spread, can. You need the mean of ungrouped data: mean = sum of the values / n, where n is the number of values. The deviation of a value is value - mean, so a value below the mean has a negative deviation. For every data set the deviations from the mean add up to exactly 0, which makes a handy check. This lesson treats each data set as a whole population and divides by n in every formula.

Range and mean deviation

The range is the quickest measure of spread: range = largest value - smallest value. It uses only the two extreme values, so a single unusual value can stretch it a lot, and it says nothing about the values in between. The mean deviation about the mean uses every value. Find the mean, work out each deviation, drop the minus signs and average what is left: mean deviation = (sum of the deviations without their signs) / n. The signs have to go, because the signed deviations always cancel to 0. Some books also measure deviations from the median, but in this lesson the mean deviation is always taken about the mean. The range and the mean deviation are in the same unit as the data.

Variance and standard deviation

Squaring is the other way to remove the signs. The variance is the mean of the squared deviations: variance = sum of (value - mean)^2 / n. Its unit is the square of the data's unit, such as kg^2 for weights, which is hard to picture, so take the positive square root: standard deviation = sqrt(variance), which is back in the unit of the data. When the mean is not a whole number, a shortcut avoids working with each deviation: variance = (sum of the squares of the values) / n - mean^2. Both routes give the same result. Many statistics books divide by n - 1 when the data are a sample from a larger group, which gives a bigger answer whenever the values are not all equal. This lesson uses the population formulas, which divide by n, so check which one a question asks for.

Shifting, scaling and the coefficient of variation

Adding the same number to every value slides the whole data set along without stretching it, so the range, the mean deviation, the variance and the standard deviation stay the same. Multiplying every value by a number k multiplies the range, the mean deviation and the standard deviation by the size of k, ignoring any minus sign, and multiplies the variance by k^2. To compare the spread of groups with different means or units, use the coefficient of variation: CV = (standard deviation / mean) x 100. It is a percentage with no unit, and the group with the smaller CV is the more consistent one, as it varies less compared with its own mean. Use the CV only for data with a positive mean, such as marks, runs, weights or prices.

Common mistakes

Stopping at the variance is the most frequent slip; the standard deviation is its square root. Keeping the minus signs in the mean deviation gives 0 every time, because the deviations cancel. In the shortcut, square the mean before subtracting it. Divide by n, the number of values, and not by n - 1, unless a question asks for the sample formula. Adding a fixed amount to every value leaves the spread unchanged, so do not add it to the standard deviation. Finally, a larger standard deviation does not always mean a less consistent group: when the means differ, compare the CVs, and remember that the larger CV marks the less consistent group.

A routine for spread questions

1. Count the values to get n, then find the mean. 2. List the deviations, value - mean, and check that they add up to 0. 3. Range: subtract the smallest value from the largest. 4. Mean deviation: add the deviations without their signs and divide by n. 5. Variance: add the squared deviations and divide by n, or use the shortcut; the standard deviation is its square root. 6. To compare groups, find each CV. Then test the answers: the standard deviation is never negative and is 0 only when all the values are equal; with the divide-by-n formulas it is never more than half the range, and the mean deviation is never larger than the standard deviation.

Worked examples

  1. A tea stall sold these numbers of cups on six mornings: 42, 55, 35, 62, 48 and 46. Find the range and the mean deviation about the mean.

    1. Range = largest - smallest = 62 - 35 = 27 cups.
    2. Mean = (42 + 55 + 35 + 62 + 48 + 46) / 6 = 288 / 6 = 48 cups.
    3. Deviations from 48: -6, 7, -13, 14, 0 and -2. They add up to 0, as they must.
    4. Without their signs they add up to 6 + 7 + 13 + 14 + 0 + 2 = 42, so the mean deviation = 42 / 6 = 7 cups.

    Answer: The range is 27 cups and the mean deviation about the mean is 7 cups.

  2. Meera's scores out of 30 in five weekly tests were 19, 25, 13, 22 and 21. Find the variance and the standard deviation of her scores.

    1. Mean = (19 + 25 + 13 + 22 + 21) / 5 = 100 / 5 = 20.
    2. Deviations: -1, 5, -7, 2 and 1, which add up to 0. Their squares are 1, 25, 49, 4 and 1, which add up to 80.
    3. Variance = 80 / 5 = 16, dividing by n = 5.
    4. Standard deviation = sqrt(16) = 4 marks.
    5. Check with the shortcut: the squares of the scores add up to 361 + 625 + 169 + 484 + 441 = 2080, and 2080 / 5 - 20^2 = 416 - 400 = 16.

    Answer: The variance is 16 and the standard deviation is 4 marks.

  3. Machine A fills 200 g packets of tea: its mean fill is 200 g with a standard deviation of 4 g. Machine B fills 1 kg packets: its mean fill is 1000 g with a standard deviation of 15 g. Use the coefficient of variation to decide which machine fills more consistently for its packet size.

    1. The means are very different, so compare the coefficients of variation rather than the standard deviations.
    2. CV of A = (4 / 200) x 100 = 2 percent.
    3. CV of B = (15 / 1000) x 100 = 1.5 percent.
    4. B has the larger standard deviation in grams, but compared with its mean fill its spread is smaller, so B is the more consistent machine.

    Answer: Machine B is more consistent, with a CV of 1.5 percent against 2 percent for machine A.

Practice checks

  1. What is the mean deviation about the mean of 3, 7, 8, 12 and 15?
  2. Using the divide-by-n formula, what is the standard deviation of 11, 13, 17, 19, 23 and 25?
  3. Eight values have a sum of 96, and the sum of their squares is 1224. Using the divide-by-n formula, their standard deviation is:
  4. The standard deviation of the monthly salaries in an office is Rs. 1,500. Every salary is raised by 10 percent, and then Rs. 200 is added to each. The new standard deviation is:
  5. In one season, batter P's scores had a mean of 48 runs per innings and a standard deviation of 12 runs. Batter Q's scores had a mean of 30 runs and a standard deviation of 9 runs. Judged by the coefficient of variation, which statement is correct?

Sources checked