Maths · Ch 13 · Topic 3 of 6Mean: step deviation
Topic 3 of 6

Mean: the step-deviation method and missing frequencies

About 50 minutes · 3 things to learn
By the end you can…
  • Find the mean by the step-deviation method, including classes of unequal size (h a common divisor of the deviations) and decimal classes.
  • Choose a suitable method for finding the mean of a given table.
  • Find one or two missing frequencies when the mean (and the total frequency) is given.

Weekly wages of ₹3250, ₹3750, ₹4250 … are awkward to multiply by 6, 11 and 17 without a calculator. But look: they all differ by ₹500. Shift them so the middle one is 0, then divide by 500, and they become −2, −1, 0, 1, 2. Multiplying by those is easy. That is the step-deviation method — and the same idea lets you work backwards to a missing frequency.

  1. The step-deviation method

When all the deviations di=xi−ad_i = x_i - a have a common factor h (usually the class size), divide by it:

ui=xi−ah,xˉ=a+h×ΣfiuiΣfiu_i = \frac{x_i - a}{h}, \qquad \bar{x} = a + h \times \frac{\Sigma f_i u_i}{\Sigma f_i}

Why it works. Dividing every deviation by h divides their mean by h; so ΣfiuiΣfi=xˉ−ah\dfrac{\Sigma f_i u_i}{\Sigma f_i} = \dfrac{\bar{x} - a}{h}. Multiply by h and add a.

The table: Class | fif_i | xix_i | uiu_i | fiuif_i u_i. With equal classes and a in the middle, the uiu_i are …, −2, −1, 0, 1, 2, … — you can often write them down without working out did_i.

Undo both steps at the end: multiply by h, then add a. Forgetting either is the commonest slip.

  1. Classes of unequal size

If the classes are not all the same size, the uiu_i are not neat integers when you divide by one class size. Choose h as a common divisor of all the did_i instead. The formula is the same. (NCERT notes that the formula xˉ=a+huˉ\bar{x} = a + h\bar{u} holds for any non-zero h and any a with ui=xi−ahu_i = \dfrac{x_i - a}{h} — h is chosen only to keep the numbers whole.)

  1. Decimal classes

Classes such as 1.5 – 2.0 kg work in the same way: with h=0.5h = 0.5, the uiu_i are again whole numbers.

  1. Choosing a method

Situation Best method
Small class marks and small frequencies Direct
Large class marks, deviations with no common factor Assumed mean
Large class marks; equal classes (or deviations with a common factor) Step deviation

All three give the same mean; the choice only changes the amount of arithmetic. If a question asks "which method did you use, and why?", name the method and give the reason from this table.

  1. Missing frequencies

If the mean is given and one frequency is unknown (say p), write Σfi\Sigma f_i and Σfiui\Sigma f_i u_i (or Σfixi\Sigma f_i x_i) with p in them, put them into the formula, and solve the equation for p. If two frequencies x and y are unknown, the question also gives the total Σfi\Sigma f_i; that gives a second equation, and you solve the pair (Chapter 3).

Visuals

Shift and shrink Three number lines with the same six dots straight below one another. Line 1, the class marks x: 700, 900, 1100, 1300, 1500, 1700. Shift: subtract a = 1100 to get the deviations d = x − a: −400, −200, 0, 200, 400, 600. Shrink: divide by h = 200 to get the step deviations u = d ÷ h: −2, −1, 0, 1, 2, 3. The return path: from d, add a back (mean = a + mean of d); from u, multiply by h, then add a back (mean = a + h × mean of u). d_i = x_i − a, u_i = (x_i − a) ÷ h, mean = a + Σf_i d_i ÷ Σf_i = a + h × Σf_i u_i ÷ Σf_i. Shift and shrink class marks x 700 900 1100 1300 1500 1700 deviations d = x − a −400 −200 0 200 400 600 step deviations u = d ÷ h −2 −1 0 1 2 3 shift subtract a = 1100 shrink divide by h = 200 add a back:  mean = a + (mean of d ) multiply by h , then add a back: mean = a + h × (mean of u ) di = xi − a ui = xi − a h x = a + Σ fi di Σ fi x = a + h × Σ fi ui Σ fi
Shift and shrinkShift and shrink the numbers to make the arithmetic small — then undo both at the end.

Try it yourself — the grouped-data explorer. Change one frequency and watch the fiuif_i u_i column and the mean change.

Grouped-data explorer Grouped-data explorer (static view): a frequency table with the columns Class, f, x, f × x and cf and a Total row; the modal class and the median class are tinted and named; below it the mean (Σfx ÷ Σf), the median class and median, and the modal class and mode. With JavaScript the table can be edited: the first lower limit, the class size, the number of classes and each frequency. Grouped-data explorer Topic 2, Worked example 1 Class f x f × x c f 0 – 20 4 10 40 4 20 – 40 9 30 270 13 40 – 60 15 50 750 28 60 – 80 8 70 560 36 80 – 100 4 90 360 40 Total 40 1980 modal median Mean Σ f x ÷ Σ f = 1980 ÷ 40 = 49.5 Median class 40 – 60, median ≈ 49.33 Mode class 40 – 60, mode ≈ 49.23 Grouped-data explorer Topic 3, Worked example 1 Class f x f × x c f 3000 – 3500 6 3250 19500 6 3500 – 4000 11 3750 41250 17 4000 – 4500 17 4250 72250 34 4500 – 5000 10 4750 47500 44 5000 – 5500 6 5250 31500 50 Total 50 212000 modal median Mean Σ f x ÷ Σ f = 212000 ÷ 50 = 4240 Median class 4000 – 4500, median ≈ 4235.29 Mode class 4000 – 4500, mode ≈ 4230.77 Grouped-data explorer Topic 4, Worked example 1 Class f x f × x c f 0 – 5 6 2.5 15 6 5 – 10 11 7.5 82.5 17 10 – 15 18 12.5 225 35 15 – 20 13 17.5 227.5 48 20 – 25 7 22.5 157.5 55 25 – 30 5 27.5 137.5 60 Total 60 845 modal median Mean Σ f x ÷ Σ f = 845 ÷ 60 ≈ 14.08 Median class 10 – 15, median ≈ 13.61 Mode class 10 – 15, mode ≈ 12.92 Grouped-data explorer Topic 5, Worked example 1 Class f x f × x c f 0 – 5 5 2.5 12.5 5 5 – 10 8 7.5 60 13 10 – 15 16 12.5 200 29 15 – 20 11 17.5 192.5 40 20 – 25 4 22.5 90 44 25 – 30 6 27.5 165 50 Total 50 720 modal median Mean Σ f x ÷ Σ f = 720 ÷ 50 = 14.4 Median class 10 – 15, median = 13.75 Mode class 10 – 15, mode ≈ 13.08
Grouped-data explorerSee how each column comes from the one before, and that every method gives the same mean.

Worked examples

Worked example 1

The step-deviation method

Question. The weekly wages of 50 workers in a workshop are: ₹3000 – 3500: 6 workers; ₹3500 – 4000: 11; ₹4000 – 4500: 17; ₹4500 – 5000: 10; ₹5000 – 5500: 6. Find the mean weekly wage by the step-deviation method.

Given: five equal classes of size ₹500; Σfi=50\Sigma f_i = 50. Asked: the mean wage.

Concept used: xˉ=a+h×ΣfiuiΣfi\bar{x} = a + h \times \dfrac{\Sigma f_i u_i}{\Sigma f_i}, ui=xi−ahu_i = \dfrac{x_i - a}{h}. Why it applies: the class marks are large and all differ by 500.

  1. 1

    Class marks: 3250, 3750, 4250, 4750, 5250. Take a=4250a = 4250 (the middle) and h=500h = 500.

  2. 2

    Then ui=−2,−1,0,1,2u_i = -2, -1, 0, 1, 2.

    Wage (₹) fif_i xix_i ui=xi−4250500u_i = \dfrac{x_i - 4250}{500} fiuif_i u_i
    3000 – 3500 6 3250 −2 −12
    3500 – 4000 11 3750 −1 −11
    4000 – 4500 17 4250 0 0
    4500 – 5000 10 4750 1 10
    5000 – 5500 6 5250 2 12
    Total Σfi=50\Sigma f_i = 50 Σfiui=−1\Sigma f_i u_i = -1
  3. 3

    xˉ=4250+500×−150=4250−10=4240\bar{x} = 4250 + 500 \times \dfrac{-1}{50} = 4250 - 10 = 4240

  4. Check: another assumed mean, a=4750a = 4750: ui=−3,−2,−1,0,1u_i = -3, -2, -1, 0, 1; Σfiui=−18−22−17+0+6=−51\Sigma f_i u_i = -18 - 22 - 17 + 0 + 6 = -51; xˉ=4750+500×−5150=4750−510=4240\bar{x} = 4750 + 500 \times \dfrac{-51}{50} = 4750 - 510 = 4240 ✔.

  5. Answer The mean weekly wage is ₹4240.

    Common trap: Writing 4250+−150=4249.984250 + \dfrac{-1}{50} = 4249.98 — the factor h=500h = 500 has been forgotten.

Worked example 2

Classes of unequal size

Question. The distances (in km) that 50 students travel to school are: 0 – 4: 6 students; 4 – 8: 13; 8 – 16: 17; 16 – 24: 9; 24 – 40: 5. Find the mean distance.

Given: classes of sizes 4, 4, 8, 8, 16. Asked: the mean distance.

Concept used: step-deviation method with h a common divisor of the deviations. Why it applies: the classes are unequal, so the class size cannot be used as h.

  1. 1

    Class marks: 2, 6, 12, 20, 32. Take a=12a = 12: di=−10,−6,0,8,20d_i = -10, -6, 0, 8, 20.

  2. 2

    Every did_i is even, so take h=2h = 2: ui=−5,−3,0,4,10u_i = -5, -3, 0, 4, 10.

    Distance (km) fif_i xix_i ui=xi−122u_i = \dfrac{x_i - 12}{2} fiuif_i u_i
    0 – 4 6 2 −5 −30
    4 – 8 13 6 −3 −39
    8 – 16 17 12 0 0
    16 – 24 9 20 4 36
    24 – 40 5 32 10 50
    Total Σfi=50\Sigma f_i = 50 Σfiui=17\Sigma f_i u_i = 17
  3. 3

    xˉ=12+2×1750=12+0.68=12.68\bar{x} = 12 + 2 \times \dfrac{17}{50} = 12 + 0.68 = 12.68 km.

  4. Check: the direct method: Σfixi=12+78+204+180+160=634\Sigma f_i x_i = 12 + 78 + 204 + 180 + 160 = 634, and 63450=12.68\dfrac{634}{50} = 12.68 ✔.

  5. Answer The mean distance is 12.68 km.

    Common trap: Taking h=4h = 4 (the size of the first class): then ui=−2.5,−1.5,0,2,5u_i = -2.5, -1.5, 0, 2, 5 — not whole numbers, and a slip is likely. Choose h to divide every did_i.

Worked example 3

Decimal classes

Question. The weights (in kg) of 50 babies born in a hospital in one month are: 1.5 – 2.0: 3; 2.0 – 2.5: 8; 2.5 – 3.0: 17; 3.0 – 3.5: 15; 3.5 – 4.0: 7. Find the mean weight.

Given: five classes of size 0.5 kg. Asked: the mean weight.

Concept used: step deviation with h=0.5h = 0.5. Why it applies: the decimal class marks would make fixif_i x_i awkward; the uiu_i become whole numbers.

  1. 1

    Class marks: 1.75, 2.25, 2.75, 3.25, 3.75. Take a=2.75a = 2.75, h=0.5h = 0.5.

    Weight (kg) fif_i xix_i ui=xi−2.750.5u_i = \dfrac{x_i - 2.75}{0.5} fiuif_i u_i
    1.5 – 2 3 1.75 −2 −6
    2 – 2.5 8 2.25 −1 −8
    2.5 – 3 17 2.75 0 0
    3 – 3.5 15 3.25 1 15
    3.5 – 4 7 3.75 2 14
    Total Σfi=50\Sigma f_i = 50 Σfiui=15\Sigma f_i u_i = 15
  2. 2

    xˉ=2.75+0.5×1550=2.75+0.15=2.9\bar{x} = 2.75 + 0.5 \times \dfrac{15}{50} = 2.75 + 0.15 = 2.9 kg.

  3. Check: the direct method: Σfixi=5.25+18+46.75+48.75+26.25=145\Sigma f_i x_i = 5.25 + 18 + 46.75 + 48.75 + 26.25 = 145, and 14550=2.9\dfrac{145}{50} = 2.9 ✔.

  4. Answer The mean weight is 2.9 kg.

    Common trap: Using h=5h = 5 (as if the classes were 15 – 20, 20 – 25) gives 2.75+1.5=4.252.75 + 1.5 = 4.25 kg — heavier than every baby in the table.

Worked example 4

One missing frequency

Question. The numbers of books read in a year by some students are: 0 – 10: 5 students; 10 – 20: 8; 20 – 30: p; 30 – 40: 9; 40 – 50: 4. The mean is 24.75. Find p.

Given: one unknown frequency p; mean 24.75. Asked: p.

Concept used: step-deviation formula with p kept in Σfi\Sigma f_i. Why it applies: the mean is known, so the formula becomes an equation in p.

  1. 1

    Class marks 5, 15, 25, 35, 45; take a=25a = 25, h=10h = 10: ui=−2,−1,0,1,2u_i = -2, -1, 0, 1, 2.

  2. 2

    Σfi=5+8+p+9+4=26+p\Sigma f_i = 5 + 8 + p + 9 + 4 = 26 + p

  3. 3

    Σfiui=−10−8+0+9+8=−1\Sigma f_i u_i = -10 - 8 + 0 + 9 + 8 = -1 (the class with p has ui=0u_i = 0).

  4. 4

    24.75=25+10×−126+p24.75 = 25 + 10 \times \dfrac{-1}{26 + p}, so −1026+p=−0.25\dfrac{-10}{26 + p} = -0.25.

  5. 5

    26+p=100.25=4026 + p = \dfrac{10}{0.25} = 40, so p=14p = 14.

  6. Check: put p=14p = 14 back with the direct method: Σfi=40\Sigma f_i = 40; Σfixi=25+120+350+315+180=990\Sigma f_i x_i = 25 + 120 + 350 + 315 + 180 = 990; 99040=24.75\dfrac{990}{40} = 24.75 ✔.

  7. Answer p=14p = 14

    Common trap: Writing Σfi=26\Sigma f_i = 26 (leaving out p) — the unknown class is part of the total.

Worked example 5

Two missing frequencies

Question. The distribution below has total frequency 50 and mean 50.8. Find x and y. Classes: 0 – 20: 6; 20 – 40: x; 40 – 60: 15; 60 – 80: y; 80 – 100: 5.

Given: Σfi=50\Sigma f_i = 50; mean 50.8; unknowns x and y. Asked: x and y.

Concept used: the total gives one equation; the mean formula gives a second. Why it applies: two unknowns need two equations.

  1. 1

    Total: 6+x+15+y+5=506 + x + 15 + y + 5 = 50, so x+y=24x + y = 24 … (1)

  2. 2

    Class marks 10, 30, 50, 70, 90; take a=50a = 50, h=20h = 20: ui=−2,−1,0,1,2u_i = -2, -1, 0, 1, 2.

  3. 3

    Σfiui=−12−x+0+y+10=y−x−2\Sigma f_i u_i = -12 - x + 0 + y + 10 = y - x - 2

  4. 4

    50.8=50+20×y−x−25050.8 = 50 + 20 \times \dfrac{y - x - 2}{50}, so 2(y−x−2)5=0.8\dfrac{2(y - x - 2)}{5} = 0.8 and y−x−2=2y - x - 2 = 2, that is, y−x=4y - x = 4 … (2)

  5. 5

    Add (1) and (2): 2y=282y = 28, so y=14y = 14; then x=24−14=10x = 24 - 14 = 10.

  6. Check: put the values back: Σfixi=60+300+750+980+450=2540\Sigma f_i x_i = 60 + 300 + 750 + 980 + 450 = 2540 and 254050=50.8\dfrac{2540}{50} = 50.8 ✔.

  7. Answer x=10x = 10, y=14y = 14

    Common trap: Trying to solve with the mean alone — one equation cannot fix two unknowns; the total is the second equation.

5 examples · they get harder as you go

Quick check

Answer without scrolling up
Quick check · 1 of 4MCQ1 mark

In the step-deviation method, a=55a = 55, h=10h = 10, Σfiui=12\Sigma f_i u_i = 12 and Σfi=40\Sigma f_i = 40. The mean is:

Quick check · 2 of 4Short answer2 marks

Find the mean by the step-deviation method: 100 – 120: 4; 120 – 140: 7; 140 – 160: 10; 160 – 180: 6; 180 – 200: 3.

Quick check · 3 of 4MCQ1 mark

For a table with unequal classes, the deviations from a are di=−30,−15,0,45,90d_i = -30, -15, 0, 45, 90. The largest h that makes every uiu_i a whole number is:

Quick check · 4 of 4Short answer3 marks

The mean of 0 – 10: 2; 10 – 20: k; 20 – 30: 6; 30 – 40: 4 is 21. Find k.

Key points

  • Step deviation: ui=xi−ahu_i = \dfrac{x_i - a}{h} and xˉ=a+h×ΣfiuiΣfi\bar{x} = a + h \times \dfrac{\Sigma f_i u_i}{\Sigma f_i} — multiply by h, then add a.
  • Equal classes with a in the middle: ui=…,−2,−1,0,1,2,…u_i = \ldots, -2, -1, 0, 1, 2, \ldots
  • Unequal classes: choose h to divide every did_i; decimal classes: h can be a decimal such as 0.5.
  • All three methods give the same mean; choose the one with the least arithmetic, and say why.
  • Missing frequency: keep the unknown in Σfi\Sigma f_i and Σfiui\Sigma f_i u_i; use the total as a second equation when there are two unknowns.
My notesComing soon