13. Statistics
13. About this chapter
Big idea: Grouped data summarises a distribution, but its calculated averages are estimates.
Read one small part at a time. Try each example on paper. Then cover the answers and do the practice. Use the diagrams to explain your thinking.
| Word | Meaning |
|---|---|
| Frequency | How many observations occur. |
| Class | An interval grouping measurements. |
| Cumulative | Built by adding successive amounts. |
13.1 Introduction
Grouping replaces individual observations with intervals and counts. You know how many observations fall in an interval, but not their exact locations within it.
That is why calculations using class midpoints estimate the original mean. A frequency counts observations; a class mark represents an interval.
Keep these roles separate when building a calculation table.
Frequency means how many times something occurs. A grouped table puts measurements into intervals, called classes.
Here – includes but not . The value goes into the next class. This rule makes sure each measurement is counted once.
The mean is an average using all the values. The median is the middle value after sorting. The mode is the most common value.
A grouped table hides the individual measurements. We use estimates for where the values lie inside each class. That is why grouped answers can differ from exact raw-data answers.
Raw data is the original list of measurements. For , the mean is . The sorted middle value is , so median is . The value also occurs most often, so mode is .
For an even number of observations, the raw-data median is the mean of the two middle values. For , it is . Sort first.
| Raw values | Class | Frequency | Class mark |
|---|---|---|---|
| 2, 4, 4 | 0–5 | 3 | 2.5 |
| 7, 8 | 5–10 | 2 | 7.5 |
After grouping, estimate mean as . It differs from , the exact mean. The midpoint stands in for several different values. Grouping saves space but loses detail.
13.2 Mean of Grouped Data
An interval containing more observations should affect the mean more strongly. Multiplying its class mark by its frequency gives it that larger contribution.
The denominator is the number of observations, found by adding frequencies. Assumed mean and step deviation reorganise this same weighted calculation.
Choose them to simplify arithmetic, not because they define different averages. Show the table columns so another reader can trace each total.
A class mark is the midpoint of a class: . Here and are its lower and upper limits.
Pretend each measurement in the class equals this midpoint. Multiply the midpoint by its frequency. Add these products, then divide by the total frequency: . The symbol means “add all these terms”.
| Time (minutes) | Frequency f | Class mark x | fx |
|---|---|---|---|
| 0–10 | 2 | 5 | 10 |
| 10–20 | 6 | 15 | 90 |
| 20–30 | 8 | 25 | 200 |
| 30–40 | 4 | 35 | 140 |
The total frequency is and the weighted sum is . The estimated mean is minutes. The sum of class marks alone is not the total of the observations; frequencies are the weights.
Choose a convenient assumed mean and set . Since , the formula becomes . Choose . The weighted deviations are , which sum to . Hence the mean is minutes.
With equal class width , set . The formula becomes . Here , so . The weighted sum is , giving . All three methods agree because they rearrange the same weighted sum.
Three class marks are . Their frequencies are . The mean is . Put the unknown frequency into both the numerator and denominator.
Then . Multiply: . So , giving .
Check the result: . A frequency must be a whole number that is zero or positive.
A grouped distribution has class intervals 0 to 10, 10 to 20, and 20 to 30, with frequencies 2, 5 and 3. Estimate its mean.
- Use class marks as representative values. The marks are , and , each midway between the interval boundaries.
- Multiply by frequency: , and .
- The weighted total is . Total frequency is .
- Estimated mean . It is an estimate because the individual observations inside each class are unknown.
Use the same intervals with frequencies 4, 4 and 2. Estimate the mean.
Answers
- Products are , and , giving total . Divide by frequency total to get . More observations in the lowest class pull the mean down.
13.3 Mode of Grouped Data
The modal class has the greatest frequency when using the usual equal-width grouped-data table. Its neighbouring frequencies help estimate where the most common value lies inside that interval.
Identify the lower boundary and width from the modal interval itself. The frequency before and frequency after must come from its actual neighbours.
The modal class is an interval; the estimated mode is a value.
For equal-width classes, the class with the highest frequency is the modal class. The estimated mode lies inside it.
Let be its lower boundary and its width. Let be its frequency. Let and be the frequencies just before and after it. Then
For the time table, the modal class is –. Use . Then mode , approximately minutes. It is a location inside the class, not the frequency eight.
The formula estimates where the peak lies inside the modal class. It uses the heights of the two neighbouring classes.
We use it here for one clear peak. Tied peaks may not give one useful answer. With unequal widths, frequencies alone can mislead. Compare frequency per unit width before studying a peak.
The equal-width time distribution has its modal class at 20–30 minutes.
13.4 Median of Grouped Data
Cumulative frequency is a running count of observations up to a class. Find half the total frequency and locate the class where the cumulative count first passes that position.
The cumulative frequency before that class tells you how many observations have already been accounted for. The median formula estimates how far into the class the middle observation lies.
Keep a before-class cumulative count separate from the class frequency.
Add frequencies from the lowest class upwards. These running totals are cumulative frequencies.
Find the halfway position . The class containing it is the median class. Let be the running total before that class, its frequency, its lower boundary and its width.
Then This spreads the observations evenly inside the class to estimate the middle position.
| Class | Frequency | Cumulative frequency |
|---|---|---|
| 0–10 | 2 | 2 |
| 10–20 | 6 | 8 |
| 20–30 | 8 | 16 |
| 30–40 | 4 | 20 |
Here , so the median class is –. Use , the cumulative count before the class, not . Median minutes.
Some integer classes include both ends, such as – and –. Where the measurement calls for continuous classes, use boundaries – and –.
The boundary halfway across the gap belongs to the continuous model. Use these boundaries in the grouped median and mode formulas.
For our table, mean is , median is and estimated mode is about . These describe different features of the same distribution. The empirical relation is only an approximate pattern for some distributions; it is not an identity.
A less-than cumulative table adds from the lowest class upwards. A more-than table counts from each lower boundary upwards. Start with the total, then subtract completed classes.
| Boundary | Number below it | Number at or above it |
|---|---|---|
| 0 | 0 | 20 |
| 10 | 2 | 18 |
| 20 | 8 | 12 |
| 30 | 16 | 4 |
| 40 | 20 | 0 |
For example, measurements are at least . At least means remove both lower classes: .
To use the usual median formula, you need , the number before the median class. If a more-than table is given, subtract successive entries to recover each class frequency. Then build the less-than totals.
An ogive is a cumulative-frequency graph. Plot less-than totals at upper class boundaries. Our first point is and the last is . Joining the points gives an estimate between boundaries.
Less-than and more-than cumulative totals for the time classes. Their crossing is near the grouped median.
At half the total frequency, , the less-than line reaches about minutes. This agrees with the grouped median. The graph uses straight-line estimates within classes, just like the median formula.
A grouped table has intervals 0 to 10, 10 to 20, and 20 to 30, with frequencies 4, 8 and 8. Estimate the median.
- Total frequency is . Half the total is .
- The cumulative frequencies are 4, 12 and 20. The halfway position falls in the second interval, so 10 to 20 is the median class.
- Use lower boundary , previous cumulative frequency , class frequency , and class width .
- Median . The estimate lies inside the chosen interval.
Use frequencies 6, 10 and 4 for the same intervals. Estimate the median.
Answers
- The total remains . The cumulative counts are , and , so the median class is still the second. Median . The changed frequencies move the estimate within that class.
Exercise 13.1 — Grouped mean
Exercise 13.2 — Grouped mode
Exercise 13.3 — Grouped median
13.5 Summary
- Mean is a frequency-weighted average of class marks.
- Assumed mean and step deviation rearrange the same calculation.
- Mode estimates the peak from the modal class and its neighbours.
- Median uses the halfway position and the cumulative count before its class.
- Grouped summaries estimate information lost through grouping.