Representation of Data
Why collect, display & analyse data?
- Collect by counting, surveys, questionnaires, measuring.
- Display + analyse to describe what we see, find answers that are not obvious, and spot questions for further investigation.
- Also trains us to judge inaccurate / misleading ways data can be shown, and to check the validity of other people's research (media, adverts, weather, stock reports…).
Prerequisite check (from /)
1. Plot 20 m × 12 m, each to the nearest metre ⇒ length ∈ [19.5, 20.5), width ∈ [11.5, 12.5).
2. Histogram columns: widths 3, 4 and heights 8, 6 ⇒ areas 24 and 24 ⇒ the two frequencies are equal (area ∝ frequency).
3. 50 trees: 17 below 3 m, 44 below 4 m, all below 5 m.
1. Types of Data
Qualitative (categorical): described by words, non-numerical — e.g. blood types, colours.
Quantitative: takes numerical values; either discrete or continuous.
Discrete data: can take only certain values; usually counted and can't be made more precise.
- No. of letters in the words of a book: 1, 2, 3, 4… — never 3⅓ or 4.75.
- Discrete does not have to be whole numbers! US coins $0.01, 0.05, 0.10, 0.25, 0.50, 1.00; shoe sizes 6½, 7, 7½ (UK, Canada…).
Continuous data: can take any value (possibly within a limited range); measurements given to a chosen degree of accuracy.
- Times of athletes in a 100 m race: to nearest second, 0.1 s, or more accurately if equipment allows. Range limited to positive real numbers.
2. Stem-and-Leaf Diagrams (discrete data)
Stem-and-leaf diagram: a table best suited to small amounts of discrete data.
- Leaf = last digit of each value. Stem = all the other digits.
- Stem digits ordered vertically; leaves ordered horizontally, smallest nearest the stem.
- Each row = a class; rows must have equal-width intervals.
- A key with units is compulsory (e.g. Key: 5 | 3 means 53%).
- Big advantage: raw data can still be seen; two related sets go back-to-back for comparison.
Steps — Physics scores of 15 students
Raw data (%): 58, 55, 58, 61, 72, 79, 97, 67, 61, 77, 92, 64, 69, 62, 53
- Group into equal-width classes (width 10 here ⇒ stems 5, 6, 7, 8, 9).
- Write leaves in the order they appear (draft).
- Re-write with each row in ascending order.
- Add the key.
| unordered (draft) | |
|---|---|
| 5 | 8 5 8 3 |
| 6 | 1 7 1 4 9 2 |
| 7 | 2 9 7 |
| 8 | |
| 9 | 7 2 |
| ordered ✓ | |
|---|---|
| 5 | 3 5 8 8 |
| 6 | 1 1 2 4 7 9 |
| 7 | 2 7 9 |
| 8 | |
| 9 | 2 7 |
Back-to-back & long rows
- Back-to-back: right leaves ascend left → right; left leaves ascend right → left (both increase as you move away from the stem).
- Key for back-to-back names both sides, e.g. Key: 3 | 5 | 0 = 53 passengers on A and 50 on Z.
- Rows too long (say 30 leaves in one row)? Repeat the stem with narrower classes 0–4, 5–9, 10–14, 15–19, 20–24 ⇒ stems 0, 0, 1, 1, 2.
Days of rain per month in a town. 2016: 17, 20, 13, 12, 10, 8, 0, 1, 5, 11, 16, 9. 2017: 9, 13, 11, 8, 6, 3, 1, 2, 2, 4, 8, 7. Display back-to-back and compare.
Group into classes 0–9, 10–19, 20–29 ⇒ stems 0, 1, 2; order each side; add key.
| 2016 | 2017 | |
|---|---|---|
| 9 8 5 1 0 | 0 | 1 2 2 3 4 6 7 8 8 9 |
| 7 6 3 2 1 0 | 1 | 1 3 |
| 0 | 2 |
⇒ It rained on more days in 2016 than 2017.
3. Histograms (continuous data)
① Rounding, gaps and class boundaries
Continuous data are given to some accuracy (3 s.f., 2 d.p., nearest 10…) = rounding. Written classes show gaps that do not really exist.
e.g. heights to the nearest cm: 146–150, 151–155, 156–160 (gap of 1 cm between classes). Using h for height, the true classes are:
upper: 150.5, 155.5, 160.5
Mid-value = lower + upper2 = 148, 153, 158
② Frequency diagram vs histogram — area ∝ frequency
A histogram suits continuous data best (also OK for discrete). Data may be given in a grouped frequency table. Ages of 100 students — three classes of equal width 2:
| Age (A years) | 16 ≤ A < 18 | 18 ≤ A < 20 | 20 ≤ A < 22 |
|---|---|---|---|
| No. students (f) | 34 | 46 | 20 |
| Column area | 2 × 34 = 68 | 2 × 46 = 92 | 2 × 20 = 40 |
Area ratio = frequency ratio even when widths are unequal. So area ∝ frequency
- No gaps between columns (upper boundary = next lower boundary). A gap only when a class has zero frequency.
- Horizontal axis = continuous number line; column width = class width.
- Unequal widths ⇒ height is not the frequency; calculate it so that area ∝ frequency.
③ Frequency density
The vertical axis is labelled frequency density = frequency per standard interval (simplest: 1 unit of measurement).
Frequency density = class frequencyclass width ⇒ Class frequency = class width × frequency density
How to draw a histogram
- Find class boundaries (half-gap rule); widths = upper − lower.
- fd = f ÷ width for each class (label what it measures, e.g. children per kg).
- Pick sensible scales (1 cm for 1, 5, 10, 20, 50 units — never 3, 7, 23); use most of the page; check it fits first.
- Draw axes and columns with a ruler — never freehand; columns touch; label axes ("Frequency density", variable + units).
Masses m kg of 100 children: 40 ≤ m < 50: 40 children, 50 ≤ m < 70: 60 children. (a) Draw the histogram. (b) Estimate the number with masses between 45 and 63 kg.
| Mass (m kg) | 40 ≤ m < 50 | 50 ≤ m < 70 |
|---|---|---|
| No. children (f) | 40 | 60 |
| Class width (kg) | 10 | 20 |
| Frequency density | 40 ÷ 10 = 4 | 60 ÷ 20 = 3 |
Another example — 36 athletes, race times (nearest minute)
| Time (min) | 13 | 14–15 | 16–18 |
|---|---|---|---|
| No. athletes (f) | 4 | 14 | 18 |
| Boundaries | 12.5 ≤ t < 13.5 | 13.5 ≤ t < 15.5 | 15.5 ≤ t < 18.5 |
| Class width (min) | 1 | 2 | 3 |
| Frequency density | 4 ÷ 1 = 4 | 14 ÷ 2 = 7 | 18 ÷ 3 = 6 |
Use the race-time histogram to estimate the number of athletes who took: (a) less than 13.0 min (b) between 14.5 and 17.5 min (c) the slowest three — find their time range.
Trick: 2 squares = 1 athlete, so count squares ÷ 2 instead of using fd each time.
Same via areas: (b) 1 × 7 (14.5–15.5) + 2 × 6 (15.5–17.5) = 7 + 12 = 19 ✓
Explore 1.1 — what if the table has gaps? (scores of 100 students)
| Score (%) | 10–29 | 30–59 | 60–79 | 80–99 |
|---|---|---|---|---|
| No. students (f) | 6 | 21 | 60 | 13 |
| Width | 20 | 30 | 20 | 20 |
| Freq. density | 0.3 | 0.7 | 3 | 0.65 |
Close the gaps by choosing boundaries: whole-number scores ⇒ 9.5, 29.5, 59.5, 79.5, 99.5 (half-gap rule); if scores were rounded down ⇒ 10, 30, 60, 80, 100. More than one way — but the widths and fd are the same either way; only the position of the columns moves.
4. Cumulative Frequency Graphs
Cumulative frequency (cf): the total frequency of all values less than a given value. Used for continuous data.
- Join points with straight lines ⇒ cumulative frequency polygon; join with a smooth curve ⇒ cf curve.
- e.g. 100 values below 7.5 and 200 below 9.5 ⇒ plot (7.5, 100) and (9.5, 200).
- Use it to estimate the number/proportion of values above, below, or between given values.
- Polygon: no uncertainty (we know exactly where the segments go). Curve: two people never draw the same one. No rule for which is better.
A polygon makes exactly the same assumption as a histogram (even spread within each class) ⇒ polygon estimates = histogram estimates, exactly.
How to draw one
- List upper boundaries and the running total of frequencies (cf).
- Include the lowest lower boundary with cf = 0 and plot it.
- Sensible scales; plot points with crosses; join in order with a ruler (polygon) / smooth curve.
- Read estimates with dotted lines: value → up to graph → across to cf (or the reverse).
Lengths (cm, nearest cm): 1–2 (8), 3–4 (20), 5–7 (38), 8–9 (10), 10–11 (4). Draw cf curve + polygon; estimate (a) the number of leaves shorter than 3.7 cm (b) the lower boundary of the longest 22 leaves.
| Length (l cm) | l < 0.5 | l < 2.5 | l < 4.5 | l < 7.5 | l < 9.5 | l < 11.5 |
|---|---|---|---|---|---|---|
| Running total | 0 | 0+8 | 0+8+20 | 28+38 | 66+10 | 76+4 |
| cf | 0 | 8 | 28 | 66 | 76 | 80 |
Reading a cf graph without drawing it — interpolation (Explore 1.3)
150 objects: m < 0: 0 · m < 12: 24 · m < 30: 60 · m < 53: 106 · m < 70: 138 · m < 80: 150. Polygon estimates: fewer than 20 g = 40 objects; the 100th object = 50 g. Same answers by proportion along a straight segment (similar triangles):
Histogram shape ⇄ cf graph shape (Explore 1.2)
Gradient of the cf graph = frequency density (column height). Taller columns ⇒ cf rises steeper; the cf graph never goes down.
5. Choosing & Comparing Representations
- Pictograms, vertical line graphs, bar charts, pie charts = easy ways to show qualitative and ungrouped quantitative data.
- Small grouped sets ⇒ stem-and-leaf (raw values still visible).
- Large data sets ⇒ individual values lose significance; group them in a frequency table, then use a histogram (absolute/relative frequencies) or cf graph (cumulative). Both allow classes of any and varied widths (some detail lost by grouping).
- The choice depends on: type + quantity of data · audience · objectives. Above all it must show the data clearly and not be misleading.
Misleading or poor representations — watch for
- Broken / truncated axis: Tom's cf graph has a vertical scale starting at 49 (not 0), so the rise from 49 to 52 weeks looks dramatic — and it hides that most of the year is already counted by the first point.
- Wrong conclusion from the data: rain days ≠ amount of rain (WE 1.1). Say only what the data support.
- No key / no labels or units: the reader cannot interpret the diagram (a key with units is compulsory in stem-and-leaf).
- Absolute vs relative: compare using counts and proportions (below).
People in poverty (× 10⁵) and population (× 10⁶), World Bank 2011/12:
| Country | Chile | Sri Lanka | Malaysia | Georgia | Mongolia |
|---|---|---|---|---|---|
| In poverty (× 10⁵) | 24.8 | 18.4 | 10.8 | 7.91 | 7.50 |
| Population (× 10⁶) | 17.25 | 20.65 | 28.33 | 4.47 | 2.74 |
| Poverty rate | 14.4% | 8.9% | 3.8% | 17.7% | 27.4% |
Counts: Chile highest … Mongolia lowest. Rates: Mongolia highest, then Georgia, Chile, Sri Lanka, Malaysia — the order almost reverses! Rates are fairer for countries of very different size; show both (e.g. bar chart of counts with the % marked on each bar).
6. Exam-Style Questions Worked
220 sausages: cf — <20: 0 · <30: 20 · <40: 50 · <45: 100 · <50: 160 · <60: 210 · <70: 220. (i) How many weighed between 50 g and 60 g? (ii) Draw a histogram.
(ii) Subtract consecutive cf to get f, then divide by width:
| Weight (g) | 20–30 | 30–40 | 40–45 | 45–50 | 50–60 | 60–70 |
|---|---|---|---|---|---|---|
| Frequency | 20 | 30 | 50 | 60 | 50 | 10 |
| Width | 10 | 10 | 5 | 5 | 10 | 10 |
| Freq. density | 2 | 3 | 10 | 12 | 5 | 1 |
Histogram with 3 columns, widths in ratio 1 : 2 : 4, frequency densities in ratio 16 : 12 : 3, total frequency 390. (a) Find each frequency. (b) The two classes with the highest frequencies are merged; the merged column is 30 cm high. Find the correct height of the remaining column.
frequency = width × fd ⇒ frequency ratio = (1×16) : (2×12) : (4×3).
(b) Highest two = 120 and 180 (classes 1 and 2, widths 1 + 2 = 3 units):
Hotel has 90 rooms; rooms occupied per day over 200 days: 1–20 (10), 21–40 (32), 41–50 (62), 51–60 (50), 61–70 (28), 71–90 (18). (i) Draw a cf graph. (ii) Estimate days with more than 30 rooms occupied. (iii) On 75% of days at most n rooms were occupied — estimate n.
Boundaries (half-gap rule): 0.5, 20.5, 40.5, 50.5, 60.5, 70.5, 90.5.
| Rooms < | 0.5 | 20.5 | 40.5 | 50.5 | 60.5 | 70.5 | 90.5 |
|---|---|---|---|---|---|---|---|
| cf | 0 | 10 | 42 | 104 | 154 | 182 | 200 |
Quick Recap — Full Chapter Cheat-Sheet
- Qualitative (categorical) = words. Quantitative = numbers: discrete (counted, certain values only) or continuous (measured, any value in a range).
- Small amounts of discrete data · rows of equal width · leaves ascending away from the stem · always a key with units.
- Back-to-back for comparing two sets. Long rows ⇒ repeat stems (0–4, 5–9…). Keep empty rows.
- Rounded data ⇒ gaps are fake. Boundary = ± half the gap. Width = upper − lower. Mid-value = (lower + upper) ÷ 2.
- Area ∝ frequency; vertical axis = frequency density.
-
fd = class frequencyclass widthfrequency = width × fd
- No gaps (except zero-frequency); ruler; sensible scales; axis zigzag if scale omitted; label units.
- Estimates for part of a class: part-width × fd (values assumed evenly spread). Highest frequency ≠ highest fd.
- Ratios: frequency ratio = width ratio × fd ratio.
- cf = total frequency below a value. Plot at UPPER boundaries + (lowest lower boundary, 0). Polygon = straight lines; curve = smooth.
- Number between a and b = cf(b) − cf(a). Value for a given cf: read across then down.
- Interpolation: x = x₁ + target − cf₁cf₂ − cf₁ × (x₂ − x₁). Polygon estimates = histogram estimates.
- Gradient of cf graph = fd; cf never decreases. Mid-values are the common mistake.
- Qualitative / ungrouped: pictogram, line graph, bar chart, pie chart · small grouped: stem-and-leaf · large grouped / continuous: histogram, cf graph.
- Must be clear, fit the audience/objective, and not be misleading (truncated axes, wrong comparisons, counts vs proportions).