← Vijayastra विजयास्त्रElementary Statistics

Chapter 32

Elementary Statistics

Mean, median, mode, range and standard deviation. A small chapter in which every formula turns straight into marks.

Look, Statistics sounds like a heavy subject, but what SSC asks from it is quite friendly. You are given a few numbers or a small table, and you have to tell where their centre is (mean, median, mode) or how spread out they are (range, deviation, standard deviation).

You already know half of this chapter. The mean is the same Average you studied in the Average chapter, and reading a frequency table is the skill you used in Data Interpretation. What is new is a handful of definitions (median, mode, variance, standard deviation) and a few neat results, such as Mode = 3 Median − 2 Mean, and what happens to each measure when every value is increased or multiplied.

The easier papers ask one-step questions: find the median, find the mode, find k when the mode is given. The graduate-level papers take the same ideas further, with grouped data, sample variance, the coefficient of mean deviation, quartiles and skewness. We will build all of it from the first definition onwards.

One habit will help you here more than any formula: before finding a median, mode or quartile, arrange the data in ascending order and count the values. Most wrong answers in this chapter come from skipping this step.

Data, observations and frequency

Every number in a data set is called an observation, and the total count of observations is written as n. If Radhika's marks in five weekly tests are 14, 18, 11, 18, 19, then there are n = 5 observations.

When some values repeat, we don't write them again and again. We write each value once, along with the number of times it occurs. This count is its frequency (f), and such a table is a frequency table.

Marks (x)11141819
Frequency (f)1121

[[fig:0]]

Here 18 occurs twice, so its frequency is 2. The total of all frequencies is the total number of observations: N = Σf = 5. (Σ is read "sigma" and means "add all of them".)

Many easy questions only test whether you can read such a table. How many students scored 14 or more? Add the frequencies of 14, 18 and 19: 1 + 2 + 1 = 4. Read the condition carefully: more than 14 leaves out 14, while *14 or more* includes it.

Cumulative frequency (cf) is the running total of the frequencies. For the table above, the cf column is 1, 2, 4, 5, and the last cf is always N. We will need cf for the median.

[[fig:1]]

Grouped data: class interval, class mark and class width

When the data is large, the values are put into groups such as 0–10, 10–20, 20–30. Each group is a class interval. In 10–20, 10 is the lower limit and 20 is the upper limit.

  • Class width (h) = upper limit − lower limit. For 10–20, h = 10.
  • Class mark (mid-value) = lower limit + upper limit2. For 10–20 it is 15.

[[fig:0]]

In grouped data we don't know the exact values inside a class, so we treat every value of a class as if it were the class mark. That is why the mean of grouped data is worked out with class marks.

In SSC tables the classes are usually written as 0–10, 10–20, … (the exclusive form). A value of exactly 10 goes into 10–20, not 0–10, so the upper limit of one class is the lower limit of the next.

[[fig:1]]

Say Radhika's school recorded the heights of children as 120–130 (4 children), 130–140 (9) and 140–150 (7). The class marks are 125, 135 and 145, the class width is 10, and N = 4 + 9 + 7 = 20.

The map of this chapter: centre and spread

Everything in this chapter answers one of two questions.

1. Where is the centre of the data? These are the measures of central tendency:

  • Mean: the average (sum ÷ count).
  • Median: the middle value after arranging the data in order.
  • Mode: the value that occurs most often.

2. How spread out is the data? These are the measures of dispersion:

  • Range: largest − smallest.
  • Quartile deviation: half the gap between the upper and lower quartiles.
  • Mean deviation: the average distance of the values from the mean (or median).
  • Variance and standard deviation: based on the squares of the distances from the mean.

[[fig:0]]

Two data sets can have the same centre and a very different spread. Both 49, 50, 51 and 10, 50, 90 have mean 50 and median 50, but the second set is far more spread out. So a centre alone does not describe data; we need a measure of spread as well.

[[fig:1]]

MeasureUsesChanges if one extreme value changes?
Meanall valuesyes
Medianmiddle position onlyusually no
Modemost frequent valueusually no
Rangeonly the two extremesyes

Type 1

Mean of raw, frequency and grouped data

The arithmetic mean (simply "the mean", written x̄) is the Average you already know: add all the observations and divide by how many there are.

x̄ = Σxn

Frequency table (discrete data). If a value x occurs f times, it contributes f × x to the sum. So multiply each value by its frequency, add the products, and divide by the total frequency.

x̄ = ΣfxΣf

In a quiz, 4 students scored 2 marks, 5 scored 3 marks and 1 scored 8 marks. Σf = 10 and Σfx = 8 + 15 + 8 = 31, so the mean is 3.1 marks.

[[fig:0]]

Grouped data. Take the class mark of each class as its x and use the same formula, x̄ = ΣfxΣf. This is the direct method.

Formula: Frequency / grouped data: x̄ = ΣfxΣf (x = class mark for grouped data)

Assumed mean method. When the class marks are large, the products f × x become heavy. Pick a class mark from the middle as the assumed mean A, find each deviation d = x − A, and use

Formula: Assumed mean: x̄ = A + ΣfdΣf, d = x − A

x̄ = A + ΣfdΣf

Why does this work? Every x is A + d, so the mean is A plus the mean of the d's. The answer is the same; only the numbers are smaller.

Step-deviation method. If all classes have the same width h, divide the deviations by h as well: u = x − Ah, and x̄ = A + ΣfuΣf × h. Now u becomes −2, −1, 0, 1, 2 …, and the calculation is almost mental.

Formula: Step deviation: x̄ = A + ΣfuΣf × h, u = x − Ah

[[fig:1]]

Two properties you must know.

  • The sum of the deviations of all observations from their mean is always zero: Σ(x − x̄) = 0. The values above the mean exactly balance the values below it.
  • If a few values were read wrongly, correct the sum, not the mean: correct sum = wrong sum − wrong values + correct values. Then divide by n again.

Formula: Correct mean = wrong sum − wrong values + correct valuesn

[[fig:2]]

Weighted and combined mean. If n1 items have mean x̄1 and n2 items have mean x̄2, the combined mean is n1x̄1 + n2x̄2n1 + n2. A frequency table is really a weighted mean, with the frequencies acting as the weights.

Formula: Σ(x − x̄) = 0; Combined mean = n1x̄1 + n2x̄2n1 + n2

When the data comes as a bar graph or a pie chart. Nothing new is needed, only a careful first step: turn the picture back into a frequency table. In a bar graph, the value is written under each bar and the height of the bar is its frequency. In a pie chart, each sector gives the share of a value. If the shares are percentages, the mean = Σ(x × percent)100; if they are central angles, the mean = Σ(x × angle)360. The total number of people is not needed at all, because the shares act as the weights. Say a pie chart shows that 25% of Radhika's classmates walk 1 km to school, 50% walk 2 km and 25% walk 4 km. The mean distance = 25 × 1 + 50 × 2 + 25 × 4100 = 225100 = 2.25 km. Read the picture into a table first; then it is the same Σfx ÷ Σf.

Formula: Raw data: x̄ = Σxn

Type 2

Median of raw, frequency and grouped data

The median is the middle value of the data after it is arranged in ascending (or descending) order. Half the observations lie below it and half lie above it. The mean depends on the size of every value; the median depends only on position.

Raw data. Step 1: arrange in order. Step 2: count n.

  • If n is odd, median = the n + 12th observation.
  • If n is even, median = the average of the n2th and (n2 + 1)th observations.

Formula: n odd: Median = (n + 12)th value; n even: Median = average of (n2)th and (n2 + 1)th values

Take Radhika's marks in seven tests: 12, 7, 15, 9, 18, 11, 9. In order they are 7, 9, 9, 11, 12, 15, 18. n = 7 is odd, so the median is the 4th value, 11. If an eighth test with 20 marks is added, n = 8 and the median = 11 + 122 = 11.5.

[[fig:0]]

Frequency table (discrete data). Write the values in ascending order, make the cumulative frequency (cf) column, and find the position as above using N = Σf. The median is the first value whose cf reaches that position.

Formula: Median class = first class whose cumulative frequency ≥ N2

Grouped data. Find N2. The class in which the cf first reaches or crosses N2 is the median class. Then

Formula: Grouped data: Median = l + N2 − cff × h

Median = l + N2 − cff × h

where l = lower limit of the median class, cf = cumulative frequency of the class before it, f = frequency of the median class and h = class width. The reasoning is simple: we need (N2 − cf) more observations from inside the median class, and we assume its f values are spread evenly over its width h.

[[fig:1]]

Unknowns in ordered data. When the data is already written in ascending order with x in it, write the middle term (or terms) in terms of x and equate it to the given median. Then check that your x keeps the data in order.

Median of an AP. For values in arithmetic progression (such as x + 2, x + 4, x + 6, …), the median equals the mean, because the values sit symmetrically around the centre.

Formula: For values in AP: Median = Mean = average of the first and last values

Type 3

Mode and Range (and questions mixing mean, median, mode, range)

The mode is the value that occurs the maximum number of times. For raw data no formula is needed; you only count.

Radhika noted the shoe sizes of her friends: 5, 6, 6, 7, 6, 5, 8. Size 6 appears three times, more than any other, so the mode is 6. A shopkeeper needs exactly this number, because it tells him which size to stock the most.

[[fig:0]]

  • A data set can have two modes (bimodal) if two values share the highest frequency, or no mode if every value occurs equally often. SSC questions are usually set so that there is one clear mode.
  • In a frequency table, the mode is the value with the highest frequency. Don't confuse it with the largest value.
  • Finding k from a given mode. If the mode is given as 13, then 13 must occur more times than any other value. Count how often each value already appears, and choose k so that the unknown term becomes 13 (or makes 13 the clear winner).

Formula: Mode = value with the highest frequency

Mode of grouped data. The class with the highest frequency is the modal class. Then

Formula: Grouped data: Mode = l + f1 − f02f1 − f0 − f2 × h

where l = lower limit of the modal class, f1 = its frequency, f0 = frequency of the class before it, f2 = frequency of the class after it and h = class width. The mode is pulled towards whichever neighbouring class is heavier.

[[fig:1]]

Range is the simplest measure of spread:

Range = Largest value − Smallest value

For grouped data, range = upper limit of the last class − lower limit of the first class. The coefficient of range is H − LH + L. It has no unit, so it can compare two data sets measured in different units.

Formula: Range = H − L; Coefficient of range = H − LH + L
Grouped data: Range = upper limit of last class − lower limit of first class

[[fig:2]]

Many questions combine these, for example find 2 × median + mode − range or the mean of the median and the mode. There is nothing new in them. Sort once, and read the median, mode and range from the same sorted list.

Type 4

Empirical relation: Mode = 3 Median − 2 Mean

In a perfectly symmetrical distribution (a neat bell shape), the mean, median and mode all sit at the same point: Mean = Median = Mode.

Formula: Symmetrical data: Mean = Median = Mode

Most real data is a little lopsided, because a few very high (or very low) values pull the mean to one side. Such data is called skewed. Karl Pearson observed that for a moderately skewed (moderately asymmetrical) distribution the three measures keep a steady pattern. The median lies between the mean and the mode, and the gap between the mean and the mode is about three times the gap between the mean and the median. As a formula:

Formula: Mode ≈ 3 Median − 2 Mean (moderately skewed data, empirical approximation)

[[fig:0]]

Mode ≈ 3 Median − 2 Mean

Formula: Mean = 3 Median − Mode2; Median = Mode + 2 Mean3
Mean − Mode = 3(Mean − Median)

This is called the empirical relation. Empirical means it comes from observation, not from a proof, so it is an approximation. In SSC questions, however, calculate with it as if it were exact (and read the answer as an estimate) whenever the question says moderately skewed or moderately asymmetrical, or gives two of the three measures and asks for the third.

Rearrange it as needed:

  • Mean = 3 Median − Mode2
  • Median = Mode + 2 Mean3
  • Mean − Mode = 3(Mean − Median)

In Radhika's class the mean height is 140 cm and the median is 138 cm. Then mode = 3 × 138 − 2 × 140 = 414 − 280 = 134 cm. Look at the order: mean 140 > median 138 > mode 134. This is the pattern of a positively skewed distribution, where a few tall students pull the mean up. For negative skew the order reverses: mean < median < mode.

[[fig:1]]

Ratio questions. If the ratio of two measures is given, write them as, say, 7k and 6k, find the third in terms of k with the formula, and then form the required ratio. The k cancels.

Type 5

Mean deviation, variance, standard deviation and coefficient of variation

Range uses only two values. To measure spread properly, we look at how far every value is from the centre. That distance is the deviation: d = x − x̄.

But we already know that Σ(x − x̄) = 0, because the positive and negative deviations cancel. So we need a way to stop the cancelling. There are two ways, and they give the two important measures.

[[fig:0]]

1. Ignore the sign: Mean Deviation (MD).
MD about the mean = Σ|x − x̄|n, and MD about the median = Σ|x − M|n.
The coefficient of mean deviation = MDmean (or MDmedian, if the MD was taken about the median). It has no unit.

Formula: MD = Σ|x − x̄|n (or about median M); Coefficient of MD = MDx̄ (or MDM)

2. Square the deviations: Variance and Standard Deviation (SD).
Variance σ2 = Σ(x − x̄)2n, and standard deviation σ = √variance.
A shorter form of the same thing is σ2 = Σx2n − x̄2, that is, the mean of the squares minus the square of the mean.

Formula: Variance σ2 = Σ(x − x̄)2n = Σx2n − x̄2; SD σ = √variance

Take Radhika's numbers 2, 4, 6, 8, 10. Mean = 6, and the deviations are −4, −2, 0, 2, 4.

  • MD = 4 + 2 + 0 + 2 + 45 = 125 = 2.4
  • Squares: 16, 4, 0, 4, 16, with sum 40. Variance = 405 = 8, and SD = √8 ≈ 2.83

[[fig:1]]

Population or sample. The formula above (divide by n) gives the population variance. When the question says sample variance or sample standard deviation, divide by (n − 1) instead: s2 = Σ(x − x̄)2n − 1. For the five numbers above, the sample variance = 404 = 10. Look for the word sample in the question; it decides whether you divide by n or by n − 1.

Formula: Sample variance s2 = Σ(x − x̄)2n − 1; sample SD s = √s2

Coefficient of Variation (CV) = σx̄ × 100. It expresses the SD as a percentage of the mean, so it can compare the spread of data sets that have different means, or even different units. A lower CV means more consistent data.

Formula: Coefficient of variation CV = σx̄ × 100

[[fig:2]]

Facts to remember.

  • SD is never negative, and SD = 0 only when all the values are equal.
  • Σ(x − x̄) = 0, and Σ(x − A)2 is the least when A is the mean.
  • Mean deviation is the least when taken about the median.
  • The variance of the first n natural numbers is n2 − 112. For n terms of an AP with common difference d, variance = n2 − 112 × d2.

Formula: Variance of 1, 2, …, n = n2 − 112; AP with difference d: n2 − 112 × d2

Working back from the mean and the SD. Many questions do not give the data at all. They give n, the mean and the SD, then change something: one value was read wrongly, or a new value joins the set. Recover the two sums first:

  • Σx = n × x̄
  • Σx2 = n(σ2 + x̄2), which is just σ2 = Σx2n − x̄2 turned round.

Correct both sums (remove the wrong value and add the right one, in Σx and in Σx2), then find the new mean and the new variance from the corrected sums. Take Radhika's 8 readings with mean 5 and SD 2. Then Σx = 40 and Σx2 = 8 × (4 + 25) = 232. Never correct the SD directly; always correct Σx and Σx2.

Type 6

Effect of adding, subtracting or multiplying every value

This type has no new formula, only one clear idea. Some measures tell you where the data is, and some tell you how spread out it is. When you shift every value by the same amount, the data moves but its spread does not change. When you stretch every value, both change.

Adding or subtracting a constant k to every value (change of origin).

  • Mean, median, mode, quartiles: all increase (or decrease) by k.
  • Range, mean deviation, quartile deviation, SD, variance: no change.

Formula: x → x + k: mean, median, mode + k; range, MD, SD, variance unchanged

Picture the whole class getting 5 grace marks. Everyone moves up by 5, so the average moves up by 5. The gap between the topper and the last student stays the same, so the spread is unchanged.

[[fig:0]]

Multiplying every value by k (change of scale).

  • Mean, median, mode, quartiles: all get multiplied by k.
  • Range, mean deviation, QD, SD: get multiplied by |k|.
  • Variance: gets multiplied by k2.

Formula: x → kx: mean, median, mode × k; range, MD, SD × |k|; variance × k2

Dividing by k is the same as multiplying by 1k.

[[fig:1]]

Both together: y = ax + b. New mean = a × old mean + b, and new SD = |a| × old SD. The b has no effect on the SD. New variance = a2 × old variance.

Formula: y = ax + b: ȳ = ax̄ + b, σy = |a|σx, σy2 = a2σx2

Say Radhika's five test scores have mean 12 and SD 3. If the teacher adds 2 marks to every score, the new mean is 14 and the SD stays 3. If instead every score is doubled, the new mean is 24, the SD is 6, and the variance becomes 36 (it was 9).

When only some values change. The mean changes whenever the total changes, because it uses every value. The median, however, depends only on the middle position. If the values that change stay on the same side of the middle (for example, the largest few values become even larger), the median does not change at all.

[[fig:2]]

Type 7

Quartiles, percentiles, quartile deviation and skewness

This type takes the idea of the median one step further.

The median cuts the sorted data into two halves. Quartiles cut it into four equal parts:

  • Q1 (lower quartile): the n + 14th value. A quarter of the data lies below it.
  • Q2 = the median: the n + 12th value.
  • Q3 (upper quartile): the 3(n + 1)4th value. Three quarters of the data lie below it.

Formula: Q1 = (n + 14)th value; Q3 = (3(n + 1)4)th value; Pk = (k(n + 1)100)th value

[[fig:0]]

In the same way, percentiles cut the data into 100 parts: Pk = the k(n + 1)100th value. (Deciles cut it into 10 parts: Dk = the k(n + 1)10th value.) Textbooks use slightly different conventions for quartiles, but SSC answers follow this (n + 1) method.

When the position is not a whole number, go that fraction of the way between the two neighbouring values. Position 2.75 means 2nd value + 0.75 × (3rd value − 2nd value).

Take Radhika's data 4, 7, 9, 10, 12, 15, 18 (n = 7). Q1 = the 84 = 2nd value = 7, and Q3 = the 6th value = 15. If the data were 4, 7, 9, 10, 12, 15, 18, 21 (n = 8), Q1 would be the 2.25th value = 7 + 0.25 × (9 − 7) = 7.5.

Measures built on quartiles.

  • Inter-quartile range (IQR) = Q3 − Q1
  • Quartile deviation (QD, the semi-inter-quartile range) = Q3 − Q12
  • Coefficient of QD = Q3 − Q1Q3 + Q1

Formula: IQR = Q3 − Q1; QD = Q3 − Q12; Coefficient of QD = Q3 − Q1Q3 + Q1

[[fig:1]]

These measures ignore the lowest and the highest quarters, so a single extreme value (like 2 in a list of numbers near 50) does not disturb them.

Skewness tells you which way the data leans. Karl Pearson's coefficient of skewness is

Sk = Mean − ModeSD, or, when the mode is not clear, using the empirical relation, Sk = 3(Mean − Median)SD

Formula: Karl Pearson: Sk = Mean − ModeSD; using the empirical relation, Sk = 3(Mean − Median)SD

  • Sk = 0: symmetrical (mean = mode).
  • Sk > 0: positively skewed (mean > mode, with a long tail of high values).
  • Sk < 0: negatively skewed (mean < mode).

[[fig:2]]

Whenever the mean equals the mode, the coefficient of skewness is 0, and you don't even need the SD.

Type 8

Histogram, frequency polygon, ogive and cumulative frequency tables

Look, every graph in this type is only a frequency table drawn as a picture. Your first job is always the same: read the picture back into a table. After that you already know the mean, median and mode formulas from the earlier types.

Histogram. Bars stand on the class intervals with no gaps between them, and the height of a bar is the frequency of that class (when all classes have the same width). The tallest bar is the modal class. The mode can even be found on the graph itself: join the top-left corner of the tallest bar to the top-left corner of the next bar, and its top-right corner to the top-right corner of the previous bar. The two lines cross right above the mode.

Formula: Mode from histogram: l + f1 − f02f1 − f0 − f2 × h (modal class = tallest bar)

[[fig:0]]

In the figure, the modal class is 20–30 with f1 = 18, f0 = 10 and f2 = 12. The formula gives 20 + 18 − 1036 − 10 − 12 × 10 = 20 + 8014 ≈ 25.7, the same point where the red lines cross.

Frequency polygon. Mark the point (class mark, frequency) for every class and join the points with straight lines. To close the shape, the polygon comes down to zero at the class marks of an empty class just before the first and just after the last. So the corners of the polygon give the values x and f directly: x̄ = ΣfxΣf with x = the class marks you read.

Formula: Frequency polygon: x = class mark = lower + upper2; mean = ΣfxΣf

Cumulative frequency (cf). The less-than cf of a class is the number of observations below its upper limit; it keeps rising and ends at N. The more-than cf is the number of observations at or above a lower limit; it starts at N and falls to 0. To get back the frequency of a class, subtract two neighbouring cf values: f = cf(upper) − cf(lower) for a less-than table, f = cf(this) − cf(next) for a more-than table.

Formula: Less-than table: f = cf(this class) − cf(previous class); more-than table: f = cf(this) − cf(next)

Ogive. Plot the cumulative frequencies against the class limits and join the points: the less-than ogive uses the upper limits and rises, the more-than ogive uses the lower limits and falls. The two curves cross at the point where cf = N2, so the x-value of the point where the two ogives meet is the median, and its y-value is N2.

Formula: Ogive: median at cf = N2; Q1 at N4; Q3 at 3N4; less-than and more-than ogives meet at (median, N2)

[[fig:1]]

Here N = 40. The rising curve and the falling curve meet at cf = 20, and below that point the x-axis reads 25. The formula agrees: median = 20 + 20 − 1412 × 10 = 25. In the same way, Q1 is read at cf = N4 and Q3 at cf = 3N4 on the less-than ogive.