---
title: "Organizing Data"
book: "Primary & Middle School Mathematics"
subject: math
language: en
chapter: 50
exercises: 11
source: https://one-course.com/books/math/1/en/chapter/50-organizing-data
---

# Chapter 50 — Organizing Data

Before computing anything, data must be collected, counted and displayed. This chapter is about turning a messy list of observations into a clear table or picture: counts, frequencies, grouped data, bar charts and pie charts. Summarizing data by a single number (mean, median) is the subject of [Chapter 71](https://one-course.com/books/math/1/en/chapter/71-statistics-and-probability#ch-g9-statproba).

## 50.1 Counts and frequencies

**Definition 50.1 (Count and frequency).**

For each possible value of a survey, its *count* is the number of times it appears; its *frequency* is the count divided by the total number of observations:

$$
\text{frequency} = \frac{\text{count}}{\text{total}} .
$$

Frequencies can be written as [fractions](https://one-course.com/books/math/1/en/chapter/39-fractions-first-steps#def-g6-fractions-def), decimals or percentages, and they always add up to $1$ (i.e. $100\,\%$).

**Example 50.2.**

Favorite sport of the $25$ students of a class, from the raw list to the table:

| sport | football | swimming | tennis | judo | total |
| --- | --- | --- | --- | --- | --- |
| count | $10$ | $6$ | $5$ | $4$ | $25$ |
| [frequency](#def-g7-stats-frequency) | $0.40$ | $0.24$ | $0.20$ | $0.16$ | $1$ |

For football: $\frac{10}{25} = \frac{40}{100} = 0.40 = 40\,\%$. The [frequency](#def-g7-stats-frequency) row must sum to $1$ — a permanent, free check.

**Remark 50.3 (Why frequencies?).**

Counts cannot be compared across groups of different sizes: $10$ football fans in a class of $25$ (that is $40\,\%$) show more enthusiasm than $12$ in a school year of $120$ ($10\,\%$). Frequencies put everything on the same [scale](https://one-course.com/books/math/1/en/chapter/49-proportionality#def-g7-prop-scale).

## 50.2 Grouping data in classes

**Example 50.4 (Classes).**

The heights (in cm) of $20$ students range from $148$ to $172$. Listing every height separately would give a table with almost as many columns as students; instead, group into *classes*:

| height (cm) | $\intco{145}{155}$ | $\intco{155}{165}$ | $\intco{165}{175}$ | total |
| --- | --- | --- | --- | --- |
| count | $5$ | $9$ | $6$ | $20$ |
| [frequency](#def-g7-stats-frequency) | $0.25$ | $0.45$ | $0.30$ | $1$ |

Each height is counted in exactly one class ($155$ goes in $\intco{155}{165}$, not in both — that is why the intervals are half-open). Grouping loses detail but gains readability.

## 50.3 Charts

**Method 50.5 (Choosing and drawing a chart).**

1. *Bar chart* : one bar per value or class, height [proportional](https://one-course.com/books/math/1/en/chapter/44-proportionality-and-data#def-g6-propdata-def) to the count (or the [frequency](#def-g7-stats-frequency) ). Good for comparing values.
2. *Pie chart*: one sector per value, angle [proportional](https://one-course.com/books/math/1/en/chapter/44-proportionality-and-data#def-g6-propdata-def) to the [frequency](#def-g7-stats-frequency) — the full circle ($360^\circ$) represents the total, so $$\text{angle} = \text{frequency} \times 360^\circ .$$ Good for showing shares of a whole.
3. In both cases: title, labels, and a graduation or the percentages written on the chart.

**Example 50.6.**

Angles for the sports of [Example 50.2](#ex-g7-stats-frequency): football $0.40 \times 360 = 144^\circ$; swimming $0.24 \times 360 =
86.4^\circ$; tennis $72^\circ$; judo $57.6^\circ$. Check: $144 + 86.4 + 72 + 57.6 = 360$.

![The same data as a bar chart (compare heights) and as a pie chart (compare shares of the class). Football takes 144, i.e. 40\,\% of the circle.](https://one-course.com/images/onecourse/chapters/math-1/g7-stats/fig-87d0ac93cfaa.svg)

![The same data as a bar chart (compare heights) and as a pie chart (compare shares of the class). Football takes 144, i.e. 40\,\% of the circle.](https://one-course.com/images/onecourse/chapters/math-1/g7-stats/fig-a74921775701.svg)

*The same data as a bar chart (compare heights) and as a pie chart (compare shares of the class). Football takes $144^\circ$, i.e. $40\,\%$ of the circle.*

**Example 50.7 (Reading critically).**

A chart whose vertical axis starts at $9$ instead of $0$ makes a bar of $10$ look ten times taller than a bar of $9.1$ — visually misleading, although the numbers are honest. First reflex in front of any chart: check where the axis starts and what one graduation is worth ([Method 44.8](https://one-course.com/books/math/1/en/chapter/44-proportionality-and-data#met-g6-propdata-read)).

## 50.4 Exercises

**Exercise 50.1 ★.**

Here are the marks of $20$ students: $12$, $15$, $9$, $12$, $14$, $9$, $12$, $15$, $11$, $12$, $9$, $14$, $12$, $11$, $15$, $9$, $12$, $14$, $11$, $12$. Build the table of counts (one column per mark).

**Solution of Exercise 50.1.**

Counting each mark:

| mark | $9$ | $11$ | $12$ | $14$ | $15$ | total |
| --- | --- | --- | --- | --- | --- | --- |
| count | $4$ | $3$ | $7$ | $3$ | $3$ | $20$ |

**Exercise 50.2 ★.**

Complete the table of [Exercise 50.1](#exo-g7-stats-1) with a [frequency](#def-g7-stats-frequency) row (as [fractions](https://one-course.com/books/math/1/en/chapter/39-fractions-first-steps#def-g6-fractions-def) of $20$, then as percentages). Check the [sum](https://one-course.com/books/math/1/en/chapter/2-addition-first-steps#def-g1-addition-def).

**Solution of Exercise 50.2.**

Frequencies: $\frac{4}{20} = 20\,\%$, $\frac{3}{20} = 15\,\%$, $\frac{7}{20} = 35\,\%$, $15\,\%$, $15\,\%$. [Sum](https://one-course.com/books/math/1/en/chapter/2-addition-first-steps#def-g1-addition-def): $20 + 15 + 35 + 15 + 15 = 100\,\%$. ✓

**Exercise 50.3 ★.**

In a survey of $50$ families, $30$ have one car. What is the [frequency](#def-g7-stats-frequency) of “one car”, as a decimal and as a percentage? In another survey, $45$ families out of $90$ have one car: which survey shows the higher proportion?

**Solution of Exercise 50.3.**

First survey: $\frac{30}{50} = 0.6 = 60\,\%$. Second: $\frac{45}{90} = 0.5 = 50\,\%$. The first survey shows the higher proportion, although it has fewer families with one car in absolute count.

**Exercise 50.4 ★.**

The masses (kg) of $15$ dogs: $8$, $23$, $31$, $12$, $9$, $27$, $35$, $14$, $22$, $18$, $29$, $11$, $25$, $33$, $16$. Group them into the classes $\intco{5}{15}$, $\intco{15}{25}$, $\intco{25}{35}$, $\intco{35}{45}$ and give the counts.

**Solution of Exercise 50.4.**

$\intco{5}{15}$: $8, 12, 9, 14, 11$ — count $5$. $\intco{15}{25}$: $23, 22, 18, 16$ — count $4$. $\intco{25}{35}$: $31, 27, 29, 25, 33$ — count $5$. $\intco{35}{45}$: $35$ — count $1$. Total $15$. ✓

**Exercise 50.5 ★.**

Draw the bar chart of the table:

| pets | $0$ | $1$ | $2$ | $3$ |
| --- | --- | --- | --- | --- |
| families | $8$ | $12$ | $6$ | $4$ |

**Solution of Exercise 50.5.**

Four bars of heights $8$, $12$, $6$, $4$ over the values $0$, $1$, $2$, $3$ (graduation every $2$ works well).

**Exercise 50.6 ★.**

For the table of [Exercise 50.5](#exo-g7-stats-5), compute the frequencies and the pie-chart angles of each value (check: total $360^\circ$).

**Solution of Exercise 50.6.**

Total $30$ families. Frequencies: $\frac{8}{30}$, $\frac{12}{30}$, $\frac{6}{30}$, $\frac{4}{30}$. Angles ($\times 360^\circ$): $96^\circ$, $144^\circ$, $72^\circ$, $48^\circ$; [sum](https://one-course.com/books/math/1/en/chapter/2-addition-first-steps#def-g1-addition-def) $96 + 144 + 72 + 48 = 360^\circ$. ✓

**Exercise 50.7 ★.**

A pie chart about favorite seasons shows: summer $162^\circ$, spring $90^\circ$, autumn $54^\circ$, winter $54^\circ$. What percentage chose each season? If $60$ people answered, how many chose summer?

**Solution of Exercise 50.7.**

Percentages: summer $\frac{162}{360} = 45\,\%$; spring $\frac{90}{360} = 25\,\%$; autumn and winter $\frac{54}{360} = 15\,\%$ each. Out of $60$ people, summer was chosen by $0.45 \times 60 = 27$ of them.

**Exercise 50.8 ★★.**

In class A, $12$ students out of $30$ walk to school; in class B, $14$ out of $40$. Which class has the higher proportion of walkers? Justify with frequencies, not counts.

**Solution of Exercise 50.8.**

Class A: $\frac{12}{30} = 40\,\%$. Class B: $\frac{14}{40} = 35\,\%$. Class A has the higher proportion of walkers, even though class B has more walkers in count.

**Exercise 50.9 ★★.**

A magazine prints a bar chart of monthly sales: $9\,800$, then $10\,000$, then $10\,100$, with the vertical axis starting at $9\,700$. Describe what the reader sees, and what an honest axis starting at $0$ would show instead.

**Solution of Exercise 50.9.**

With the axis starting at $9\,700$, the three bars have visible heights $100$, $300$ and $400$ units: the last looks four times the first, suggesting sales quadrupled. With an axis from $0$, the bars are nearly equal ($9\,800$ to $10\,100$ is a rise of about $3\,\%$): the honest picture shows almost flat sales.

**Exercise 50.10 ★★.**

A [frequency](#def-g7-stats-frequency) table has three values with frequencies $0.35$, $0.4$ and $f$. Find $f$. If the total count is $80$, give the three counts.

**Solution of Exercise 50.10.**

Frequencies sum to $1$: $f = 1 - 0.35 - 0.4 = 0.25$. Counts (total $80$): $0.35 \times 80 = 28$; $0.4 \times 80 = 32$; $0.25 \times 80 = 20$. Check: $28 + 32 + 20 = 80$.

**Exercise 50.11 ★★★.**

In a school, $55\,\%$ of the students are girls. Among the girls, $40\,\%$ eat at the cafeteria; among the boys, $60\,\%$ do. Out of $400$ students, how many eat at the cafeteria? (Compute the four group sizes step by step.) What overall percentage is that?

**Solution of Exercise 50.11.**

Girls: $55\,\%$ of $400 = 220$; boys: $180$. Cafeteria-going girls: $0.4 \times 220 = 88$; boys: $0.6 \times 180 = 108$. Total: $88 + 108 = 196$ students, i.e. $\frac{196}{400} = 49\,\%$ of the school — between $40\,\%$ and $60\,\%$, closer to the girls’ rate because girls are more numerous.

## 50.5 Problem: How data lies — and how to catch it

**Problem 50.1.**

Weekend problem — counts against frequencies, the poll that fooled a country, and the paradox of the two hospitals

Numbers do not lie, but they can be made to mislead: a huge count can hide a small [frequency](#def-g7-stats-frequency), a gigantic survey can be worthless, and — strangest of all — a hospital can beat its rival on *every* category of patients and still lose on the overall figures. All three traps are sprung in this problem, armed only with the counts and frequencies of this chapter ([Definition 50.1](#def-g7-stats-frequency)).

**Part I — Counts are not frequencies.**

1. School A recycles $120$ of its $400$ juice cartons; school B, $90$ of its $250$ . Which school has the larger *count* of recycled cartons? The larger *[frequency](#def-g7-stats-frequency)* ? Which school deserves the recycling prize?
2. A new timetable is surveyed: $18$ of the $30$ teachers like it, and $210$ of the $600$ students do. Compute the two frequencies, then the [frequency](#def-g7-stats-frequency) among all $630$ people together. Why does the combined figure sit so close to the students’ one?
3. A published pie chart shows sectors labelled $45\,\%$ , $30\,\%$ , $20\,\%$ and $10\,\%$ . Without any further information, how do you know a mistake was made?
4. A [frequency](#def-g7-stats-frequency) table over $40$ observations is half-erased: counts $14$ , $10$ , $?$ , $?$ and frequencies $0.35$ , $0.25$ , $0.15$ , $?$ . Rebuild the missing entries.
5. A survey ends with frequencies $0.40$ , $0.35$ and $0.25$ . Compute the three pie-chart angles ( [Method 50.5](#met-g7-stats-charts) ) and check they close the circle.

**Part II — The poll that fooled a country.** In 1936, an American magazine mailed ten million ballots to addresses taken from telephone directories and car registration lists, received $2.4$ million answers, and predicted a crushing victory for candidate Landon. A young statistician, George Gallup, questioned only about fifty thousand people — chosen to resemble the whole population — and predicted the opposite. Roosevelt won by a landslide.

6. What [frequency](#def-g7-stats-frequency) of the mailed ballots came back?
7. In 1936 telephones and cars were luxuries. Explain in one or two sentences why the magazine’s sample, though enormous, was doomed — and which lesson of question 1 it repeats at national [scale](https://one-course.com/books/math/1/en/chapter/49-proportionality#def-g7-prop-scale) .
8. A toy model. A town has $1\,000$ wealthy voters, of whom $70\,\%$ support L, and $9\,000$ modest voters, of whom $30\,\%$ support L. Compute L’s true support in the town. A “telephone-book poll” reaches $500$ wealthy and $500$ modest voters: what support does it predict?
9. The silent trap: a company has $200$ unhappy customers and $800$ happy ones. It surveys everyone; $40\,\%$ of the unhappy reply, but only $10\,\%$ of the happy do. Compute the number of replies of each kind, and the [frequency](#def-g7-stats-frequency) of unhappiness *among the replies* . Compare with the true [frequency](#def-g7-stats-frequency) .
10. Repair the poll of question 8: keep $1\,000$ interviews, but distribute them in the town’s true proportions. What does the repaired poll predict?

**Part III — The paradox of the two hospitals.** Two hospitals publish their cure counts, split by severity:

|  | mild cases | severe cases |
| --- | --- | --- |
| hospital A | $90$ cured of $100$ | $280$ cured of $400$ |
| hospital B | $340$ cured of $400$ | $65$ cured of $100$ |

11. Compute hospital A’s cure [frequency](#def-g7-stats-frequency) for mild cases, for severe cases, and overall (all $500$ patients).
12. Same three computations for hospital B. Which hospital wins on mild cases? On severe cases?
13. Compare the two overall frequencies. State plainly the strange thing that has happened.
14. Explain the trick: compare the two hospitals’ *mixes* of patients, and say why the overall [frequency](#def-g7-stats-frequency) can betray both category frequencies. If you had a severe case, which hospital should you choose?
15. A newspaper headline reads: “Hospital B has the better cure rate: $81\,\%$ against $74\,\%$ .” Write the two-sentence letter to the editor that this whole problem has taught you to write — one sentence on what the headline ignores, one on the general moral (compare like with like, and mind the weights).

**Solution of Problem 50.1.**

**1.** Counts: $120 > 90$, school A wins. Frequencies: $\frac{120}{400} = 0.30 = 30\,\%$ against $\frac{90}{250} = 0.36 = 36\,\%$: school B wins. The prize should follow the [frequency](#def-g7-stats-frequency) — school B recycles a larger share of what it uses; school A merely drinks more juice.

**2.** Teachers: $\frac{18}{30} = 0.60 = 60\,\%$. Students: $\frac{210}{600} = 0.35 = 35\,\%$. Together: $\frac{18 + 210}{630} = \frac{228}{630} \approx 0.36 =
36\,\%$. The students are twenty times more numerous, so the combined [frequency](#def-g7-stats-frequency) is pulled almost entirely to their side — the big group carries the big weight.

**3.** Frequencies must add up to $100\,\%$ ([Definition 50.1](#def-g7-stats-frequency)), but $45 + 30 + 20 + 10 = 105$: at least one sector is wrong.

**4.** Count for [frequency](#def-g7-stats-frequency) $0.15$: $0.15 \times 40 = 6$. The counts so far: $14 + 10 + 6 = 30$, so the last count is $40 - 30 = 10$, with [frequency](#def-g7-stats-frequency) $\frac{10}{40} = 0.25$. (Check: $0.35 + 0.25 + 0.15 + 0.25 =
1$.)

**5.** Angles: $0.40 \times 360 = 144^\circ$, $0.35 \times 360 = 126^\circ$, $0.25 \times 360 = 90^\circ$; and $144 + 126 + 90 = 360^\circ$: the pie closes.

**6.** $\frac{2.4}{10} = 0.24 = 24\,\%$ of the ballots came back.

**7.** Telephone directories and car registries listed mostly wealthy households, whose vote differed from the country’s; the $2.4$ million answers were a giant count drawn from the wrong population. As in question 1: what matters is not how many you count, but whom — a [frequency](#def-g7-stats-frequency) computed on a distorted sample describes the sample, not the country.

**8.** True support: $0.7 \times 1\,000 + 0.3 \times 9\,000 = 700 + 2\,700 = 3\,400$ supporters out of $10\,000$: $34\,\%$. The poll: $0.7 \times 500 + 0.3 \times 500 = 350 + 150 = 500$ out of $1\,000$: $50\,\%$ — sixteen points too high, because the wealthy are [half](https://one-course.com/books/math/1/en/chapter/17-sharing-and-division#def-g3-division-half) the sample but a tenth of the town.

**9.** Replies: $0.4 \times 200 = 80$ unhappy and $0.1 \times 800 = 80$ happy, so $160$ replies of which $80$ unhappy: measured unhappiness $\frac{80}{160} = 50\,\%$. True unhappiness: $\frac{200}{1\,000} = 20\,\%$. Nobody lied — the unhappy simply reply more, and the survey hears them louder.

**10.** True proportions: one tenth wealthy, so $100$ wealthy and $900$ modest interviews: $0.7 \times 100 + 0.3 \times 900 = 70 + 270 = 340$ out of $1\,000$: the repaired poll predicts $34\,\%$ — the truth of question 8. Fifty thousand well-chosen interviews beat two million badly chosen ones.

**11.** Hospital A: mild $\frac{90}{100} = 90\,\%$; severe $\frac{280}{400} = 70\,\%$; overall $\frac{90 + 280}{500} = \frac{370}{500} = 74\,\%$.

**12.** Hospital B: mild $\frac{340}{400} = 85\,\%$; severe $\frac{65}{100} = 65\,\%$; overall $\frac{340 + 65}{500} = \frac{405}{500} = 81\,\%$. Hospital A wins on mild cases ($90 > 85$) *and* on severe cases ($70 > 65$).

**13.** Overall, B shows $81\,\%$ against A’s $74\,\%$: the hospital that loses in *every* category wins the total. (This reversal has a name: Simpson’s paradox.)

**14.** The mixes are opposite: A’s patients are mostly severe ($400$ of $500$), B’s mostly mild ($400$ of $500$). Severe cases cure less often wherever they are treated, so A’s overall figure is dragged down by the hard cases it accepts — the overall is a weighted blend, and the weights differ between hospitals. A severe patient should choose hospital A: $70\,\%$ beats $65\,\%$ in the only row that concerns them.

**15.** For instance: “Your comparison blends mild and severe patients, and the two hospitals treat opposite mixes — split by severity, hospital A cures a higher share of *both* kinds. Overall figures may only be compared when the groups behind them are alike; otherwise the weights, not the quality, decide the winner.”
