Can three codes, −1, 0 and 1, help you find your class's average test mark?
Your maths teacher has grouped the class's test marks into bands. You could multiply each band's midpoint by its frequency. Can you use the gap between the midpoints to make the arithmetic easier with just three codes: minus one, zero and one?
Each band's midpoint is halfway between its endpoints. For thirty to forty, that's thirty-five. The frequency is two, so two students are in that band. The next midpoints are forty-five and fifty-five, with three and five students. In the direct method, you use each midpoint once for every student in its band.
Start at forty-five. Each class is ten marks wide, so its midpoint is ten marks from the next one. One jump left takes you to thirty-five, so its code is minus one. At forty-five you take zero jumps. One jump right takes you to fifty-five, so its code is one.
Try a new set of marks. Start at an assumed mean of sixty-five and use steps of ten marks. What code would you give the midpoint fifty-five? Pick the answer.
This code is called a step deviation, written u sub i. Take the class midpoint, x sub i, subtract the assumed mean, a, and divide by the common class width, h. That division turns the difference in marks into a count of steps.
Use forty-five and width ten. The codes are minus one, zero and one. Multiply each code by its frequency and add, giving three. The frequencies total ten. Divide three by ten, then multiply by the width to get three marks. Add that to forty-five for a grouped mean of forty-eight marks.
Keep the same midpoints, thirty-five, forty-five and fifty-five, but change the frequencies to five, three and two in that order. Start at forty-five and use steps of ten again. What is the new grouped mean? Pick an answer.
The direct method weights the midpoints and divides by ten. The assumed mean method subtracts forty-five from each midpoint, then adds it back after averaging the deviations. Step deviation also divides each deviation by ten, so you multiply the average code by ten before adding forty-five. Each method gives forty-eight marks.
A common slip is to add zero point three straight to forty-five. Look at the units. Zero point three is the average shift in steps, and forty-five is in marks. Multiply by ten marks per step first. Then you can add three marks to forty-five.
A CBSE question can ask you to find the mean of a frequency distribution using the step deviation method. Show each midpoint, code and frequency times code. Write the two totals and use the formula with the class width. Here, forty-eight marks is an estimate of the class average because you used midpoints.