girgit.org

Statistics

Mean deviation for class intervals

The big ideaFor data in class intervals, pretend every observation in a class sits at the class's mid-point, then treat the mid-points like a discrete frequency table; step deviations make the arithmetic small.

In simple words

Sometimes we only know that 15 children take between 20 and 30 minutes to get to school, not the exact minutes. So we guess that each of them takes 25, the number in the middle. Then every group has one number standing for it, and we work just as we did with a plain table.

Continuous frequency distributions

A continuous frequency distribution sorts the data into class intervals that follow on with no gaps, such as 0–10, 10–20, 20–30, each with its frequency. We no longer know each exact value, only which class it falls in.

The working assumption, the same one used for the mean in earlier classes, is that all the observations in a class sit at its mid-point:

\[ x_i = \frac{\text{lower limit} + \text{upper limit}}{2} \]

so the class 20–30 is represented by 25. After that, everything is done exactly as for a discrete distribution:

\[ \bar{x} = \frac{1}{N}\sum f_i x_i \]

\[ \text{M.D.}(\bar{x}) = \frac{1}{N}\sum f_i\,|x_i - \bar{x}| \]

Worked example 1: travel time to school

50 students recorded how long (in minutes) they take to reach school. Find the mean deviation about the mean.

Minutes\( f_i \)Mid-point \( x_i \)\( f_i x_i \)\( |x_i - \bar{x}| \)\( f_i |x_i - \bar{x}| \)
0–1045202288
10–20111516512132
20–301525375230
30–4013354558104
40–505452251890
50–602551102856
Total501350500
  1. \( \bar{x} = \frac{1350}{50} = 27 \) minutes.
  2. Distances of the mid-points from 27 give the fifth column; weight by \( f_i \) for the last one.
  3. M.D.\( (\bar{x}) = \frac{500}{50} = 10 \) minutes.

The shortcut: step deviations

Multiplying 13 by 35 and 15 by 25 is slow, and with mid-points like 1250 or 97.5 it gets worse. The step-deviation method makes the numbers tiny.

  1. Shift the origin. Choose an assumed mean \( a \), a mid-point in or near the middle of the data. Measure every mid-point from it: \( x_i - a \). On the number line, this just moves zero to \( a \).
  2. Change the scale. If all these deviations share a common factor \( h \) (usually the class width), divide by it. This is like counting in steps of \( h \) instead of in ones. The new values are the step deviations:

\[ d_i = \frac{x_i - a}{h} \]

\[ \bar{x} = a + h \times \frac{\sum f_i d_i}{N} \]

Worked example 2: the same mean, the short way

Take \( a = 25 \) and \( h = 10 \) for the travel-time data.

Mid-point \( x_i \)\( f_i \)\( d_i = \frac{x_i - 25}{10} \)\( f_i d_i \)
54−2−8
1511−1−11
251500
3513113
455210
55236
Total5010

\( \bar{x} = 25 + 10 \times \frac{10}{50} = 25 + 2 = 27 \), the same as before. The rest of the mean deviation is then found exactly as in Worked example 1.

Try it: put the zero anywhere you like and watch Σfd change while the mean stays put.

The step-deviation method only speeds up finding \( \bar{x} \). The distances \( |x_i - \bar{x}| \) are still taken from the true mean, in the original units.

Don't mix these up

  • Use the mid-point of each class, not its lower or upper limit.
  • Any assumed mean gives the same \( \bar{x} \); a central one just keeps the numbers small.

Try it. Classes 10–20, 20–30, 30–40, 40–50, 50–60 have frequencies 4, 10, 18, 12, 6. Find the mean by step deviations (take \( a = 35 \), \( h = 10 \)), then the mean deviation about the mean.

Answer
\( d_i \): −2, −1, 0, 1, 2; \( f_i d_i \): −8, −10, 0, 12, 12, total 6. \( \bar{x} = 35 + 10 \times \frac{6}{50} = 36.2 \). Distances of 15, 25, 35, 45, 55 from 36.2: 21.2, 11.2, 1.2, 8.8, 18.8. Weighted: 84.8 + 112 + 21.6 + 105.6 + 112.8 = 436.8. M.D. \( = \frac{436.8}{50} \approx 8.74 \).

Words to know

Class interval
A range of values, like 20–30, that groups the data.
Mid-point
Half-way between a class's lower and upper limits; it stands for the whole class.
Assumed mean \( a \)
A convenient central value we measure from, to keep numbers small.
Step deviation \( d_i \)
\( \frac{x_i - a}{h} \): the deviation counted in steps of \( h \).

Which value stands for the class 40–60 when finding the mean deviation?

  1. 40
  2. 50
  3. 20

With \( a = 50 \), \( h = 10 \), \( N = 60 \) and \( \sum f_i d_i = -15 \), what is \( \bar{x} \)?

  1. 47.5
  2. 52.5
  3. 35
  4. 49.75