The step deviation method · Mathematics Class 9–10 | StemPy Lab
Course 16.1·Lesson 3 of 3
The step deviation method
When all the classes have the same width, the deviations from a class mark are multiples of that width. Dividing by the width gives small whole numbers, the step deviations. The mean is then a plus h times the sum of f times u, divided by the sum of f.
about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
find the step deviation of each class;
find the mean by the step deviation method;
choose between the direct, assumed mean and step deviation methods.
Smaller still
Sixty delivery vans drove these distances in one day. The classes are 20 km wide.
Distance (km)
Number of vans f
Class mark x
60-80
5
70
80-100
9
90
100-120
18
110
120-140
14
130
140-160
9
150
160-180
5
170
Take the assumed mean a=110. The deviations are −40,−20,0,20,40,60. They are all multiples of 20, which is the class width h. This always happens when the classes have equal width and a is a class mark, because neighbouring class marks are exactly h apart. So divide each deviation by h. The result is the step deviation:
u=hx−a.
Three number lines, one under the other, with the same six dots lined up vertically. The top line shows the class marks x: 70, 90, 110, 130, 150 and 170 kilometres. The middle line shows the deviations d from the assumed mean 110: minus 40, minus 20, 0, 20, 40 and 60. The bottom line shows the step deviations u, which are d divided by 20: minus 2, minus 1, 0, 1, 2 and 3.
The step deviations here are −2,−1,0,1,2,3. They count how many classes a class is away from the class of a.
The formula
Write x=a+hu and add up as before. Then ∑fx=aN+h∑fu, and
xˉ=a+h×N∑fu.
The class width h comes back at the end, because we divided by h at the start.
Distance (km)
f
x
u=20x−110
fu
60-80
5
70
-2
-10
80-100
9
90
-1
-9
100-120
18
110
0
0
120-140
14
130
1
14
140-160
9
150
2
18
160-180
5
170
3
15
Total
60
28
xˉ=110+20×6028=110+9.33=119.33km.
Check with the direct method: ∑fx=350+810+1980+1820+1350+850=7160, and 607160=119.33 km. The two agree.
Which method should I use?
All three methods give the same mean. They differ in how much work each needs.
Method
You compute
Best when
Direct
fx
the class marks are small numbers and there are few classes
Assumed mean
d=x−a and fd
the class marks are large
Step deviation
u=hx−a and fu
the classes are equal in width and the class marks are large
A warning. The step deviation method needs equal class widths. If the widths differ, the numbers hx−a are not whole numbers, and the method loses its advantage. Use the assumed mean method or the direct method then.
Another warning: keep the factor h. After finding N∑fu you must multiply by h and add a.
Practise with new numbers
Try it in Python
This program finds the mean of the van table by all three methods and compares the answers. It also asks NumPy and the statistics module, as a fourth and a fifth check.
Common mistakes
Forgetting the class width at the end. The mean is a+hN∑fu, not a+N∑fu.
Using the method with unequal classes. The step deviation method needs the same width for all classes.
Dividing by h in the wrong place. Divide each deviation by h before multiplying by the frequency, not after the sum.
Mixing up d and u. The deviation d=x−a has the unit of the data. The step deviation u=hd has no unit.
Remember these
u=hx−a, and the step deviations are small whole numbers when the classes have equal width.
xˉ=a+h∑f∑fu.
Direct, assumed mean and step deviation always give the same mean. Choose by the size of the numbers.
The step deviation method needs equal class widths.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
The class marks are 30,40,50,60,70 with a=50 and h=10. Find the step deviations.
For N=60, a=45, h=5 and ∑fu=−12, find the mean.
Why does the step deviation method need all classes to have the same width?
Class marks such as 1005,1015,1025,… are very large. Which method would you choose?
With a=25, h=10, N=30 and ∑fu=18, find the mean.
References
NCERT, Mathematics for Class 10, the chapter Statistics: the step deviation method.
OpenStax, Introductory Statistics, Chapter 2 Descriptive Statistics. A-Level texts call the same idea coding.
Enroll free in The Mean of Grouped Data
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.