Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 4.2 · SL and HL
Presenting data
A list of eighty numbers tells you almost nothing at a glance, so which pictures of it show the centre, the spread and the shape, and how do you read values back off them?
What you will learn
- Know how to organise discrete and continuous data in frequency tables and equal-width histograms
- Understand how a cumulative frequency graph is built and how medians, quartiles and percentiles are read from it
- Know how to draw and read a box-and-whisker diagram, with outliers marked separately
- Understand how box plots show centre, spread and symmetry, and when data may be normal
You must be able to
- Draw a box-and-whisker diagram from data, marking any outlier with a cross
- Estimate the median, quartiles and percentiles from a cumulative frequency graph
- Compare two distributions from box plots on centre and spread, with values and context
- Draw a cumulative frequency graph and use it to count values above or below a point
- Draw a frequency histogram with equal class widths and write down the modal class
- Explain from a box plot whether data could be normally distributed
In the exam. both papers. Paper 1 gives a table or graph: complete a cumulative frequency column, read a median or quartile off a printed graph, or draw a box plot from five values (2 to 6 marks). Paper 2 adds a GDC and comparisons (2 to 4 marks). Box plots also open questions that go on to the normal distribution (4.9).
1Frequency tables
Discrete data get one column per value.
Example (invented): thirty students said how many books they read last month.
| Books read, | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| Frequency, | 3 | 7 | 9 | 6 | 3 | 2 |
- The frequencies add to 30. Check that first in any table.
- Figure 1 draws it. The bars are separate, with gaps, because 2.5 books is not a possible answer.
Continuous data are grouped into class intervals. They are given as inequalities without gaps, so every value has exactly one class.
Example (invented): eighty park-run times.
| Time (minutes) | Frequency |
|---|---|
| 4 | |
| 11 | |
| 22 | |
| 19 | |
| 13 | |
| 7 | |
| 4 |
- A time of exactly 25.00 minutes goes in , because the class below stops at "".
- The class width is 5 minutes.
- The third class has lower and upper boundaries 25 and 30.
- If a paper writes , exactly 25.00 drops to the class below. Check which end carries the "".
- Once grouped, a time is known only by its class. Everything read from grouped data is an estimate.
Discrete data can have a cumulative column too.
For the book table the running totals are 3, 10, 19, 25, 28, 30. They count students who read that many books or fewer.
- The median of 30 values lies between the 15th and 16th. Values 11 to 19 are all 2, so the median is 2.
- The 8th value is the middle of the lower half (block 4 to 10), so .
- The 23rd is the middle of the upper half (block 20 to 25), so .
Find the position, then see which running total it falls under. No graph needed.
Example (invented): exam tables often hide one entry and give the total. Forty patients' waits at a clinic, third frequency unknown:
| Wait (minutes) | |||||
|---|---|---|---|---|---|
| Frequency | 5 | 12 | 9 | 4 | |
| Cumulative frequency | 5 | 17 | 27 | 36 | 40 |
| Cumulative percentage | 12.5% | 42.5% | 67.5% | 90% | 100% |
- The frequencies add to 40, so and .
- A cumulative percentage is the running total as a percentage of . It gives percentiles at class boundaries straight off the table.
- Example: 90% waited less than 40 minutes, so 40 minutes is the 90th percentile.
- The median is about the th value. puts it in .
2Histograms
- In a frequency histogram each class is a bar spanning the class, as tall as its frequency. The data are continuous, so the bars touch. Nothing separates 24.99 minutes from 25.00.
- Figure 2 is the histogram of the park-run times.
- Read it for shape. The times pile up in , the modal class: the class with the highest frequency. Give the class, not its midpoint 27.5.
The times trail further right than left, because a few runners walked it.
- A longer right tail is positive skew.
- A longer left tail is negative skew.
- A rough mirror image about the peak is symmetric.
A histogram with one clear peak is unimodal. Two separate peaks (bimodal) often mean two groups were mixed in one sample, such as the shoe sizes of a primary class and their parents.
A histogram you draw needs:
- frequency up the vertical axis, with a scale
- the variable and units along the horizontal
- bars from boundary to boundary, equal widths, no gaps, ruled edges
3Cumulative frequency
- Cumulative frequency = a running total of the frequencies. For each class it is the number of data items less than its upper boundary. For continuous data, that is the number up to that boundary.
- That is why the rows below are headed , and so on.
| Time (minutes) | Frequency | Cumulative frequency |
|---|---|---|
| 4 | 4 | |
| 11 | 15 | |
| 22 | 37 | |
| 19 | 56 | |
| 13 | 69 | |
| 7 | 76 | |
| 4 | 80 |
- The last entry must be the total, 80.
- Each running total belongs to an upper boundary. By 20 minutes 4 runners had finished, by 25 minutes 15. So the cumulative frequency graph plots , , and so on. It starts at , because no one finished in under 15 minutes.
- IB papers usually draw a smooth curve. Figures 3 and 4 use straight segments, so expect small differences from the readings below.
- A running total never goes down. A dip in the graph is an error.
Plot cumulative frequency at the upper class boundary, and start the graph at the lower boundary of the first class with frequency 0.
4Reading median, quartiles and percentiles
Go across from the cumulative frequency you want, then down to the axis.
- The median is the middle value: go across from .
- The lower quartile has a quarter of the data below it: go across from .
- The upper quartile has three quarters below it: go across from .
- The th percentile has of the data below it: go across from . The median is the 50th percentile, the 25th and the 75th.
For the 80 runners (Figure 3):
- On a graph use , not . The graph is not accurate enough for the difference to matter. Give readings to the accuracy the scale allows.
- Without a graph, given only the table and asked to estimate, do the straight-line reading by arithmetic. Find the class holding the target position. Then go into it by the fraction of its frequency still needed.
- Example: for the clinic, 17 values come before , which holds 10. The median is the 20th:
- For the park run, the 40th value lies in : , the graph's reading. It assumes the values are spread evenly through the class, so it is an estimate.
- The range from a grouped table is only a bound. The graph runs from 15 to 50, so the range is at most minutes.
- The true extremes might be 16.2 and 48.9. Say "at most".
- The graph also answers counting questions (Figure 4).
The trap is stopping at 64. The graph counts values below a point, so "more than" needs the subtraction from the total.
Other wordings, same 80 runners:
- "At least 38 minutes". Same as "more than" for continuous data: .
- "Between 30 and 40 minutes". Read both values and subtract. The table gives them exactly, because 30 and 40 are class boundaries: runners.
- "The slowest 10%". 90% finished before , so is the 90th percentile, about 42.1 minutes. Always turn the wording into "how many are below", then read.
- Scaling up. 16 of 80 is 20%. If the 80 were a random sample of a club of 300, about members would be that slow.
5Quartiles of a list and the five-number summary
Order a plain list first. The median cuts it into two halves.
- is the median of the lower half.
- is the median of the upper half.
- With odd, the median itself joins neither half.
The five-number summary is the minimum, , the median, and the maximum. The range is maximum minus minimum.
Example (invented): twelve courier deliveries took these minutes, in order:
23, 25, 26, 28, 28, 31, 33, 34, 37, 40, 41, 58.
- The 58 is an outlier. The upper fence is (section 6).
- On Paper 2 a GDC finds the five numbers from a list or a frequency table. It can also draw the box plot. Pick the plot that marks outliers separately, or the whisker reaches them.
- Other quartile methods exist, so a GDC and a hand method can differ slightly (4.3). On Paper 1 you halve by hand.
6Box-and-whisker diagrams
A box-and-whisker diagram (box plot) puts the summary on a scale.
- The box runs from to , split by a line at the median.
- A whisker leaves each end and stops at the most extreme value that is not an outlier.
- Each outlier gets its own cross.
An outlier = a value less than or greater than . The two limits are called fences. A value exactly on a fence is not an outlier.
Keeping an outlier is a judgement about context:
- A school bag logged at 65 kg among bags of 4 to 9 kg is a typing slip for 6.5. It is corrected or removed.
- A commuter whose trip really takes 95 minutes, because she lives in the next town, is genuine. She stays, since deleting her would change what the data say.
Example (invented): nineteen apples from one orchard, masses in grams, in order:
142, 148, 151, 153, 155, 156, 158, 160, 161, 163, 164, 166, 168, 170, 171, 174, 177, 181, 212
- So the left whisker runs to the minimum, 142. The right one stops at 181, the largest value inside the fences. 212 gets a cross (Figure 5).
- To draw one, add a labelled scale with units, then the box and median line, the whiskers, the crosses. Without a scale it shows nothing.
- The four parts hold equal counts. About 25% of the data lies from the minimum to , 25% in each half of the box, and 25% from to the maximum (outliers included).
- Length shows spread, not number. A long whisker holds no more values than a short one, only more widely spaced.
- Example: for a box plot of 360 values, about 90 lie between and the maximum and about 180 inside the box.
- Example: working backwards. A box plot has , its right whisker ends at 90, and there are no outliers.
- Nothing lies above , so . Then , and .
- The other way: if and , the largest non-outlier is exactly 90 (the fence), not 89.
7Comparing two distributions
- To compare, draw box plots on the same scale, one above the other.
- Example: Orchard B's apples have minimum 138, 150, median 157, 162 and maximum 175, with no outliers. Figure 6 draws both orchards.
A full comparison makes two points, each with numbers and in context:
- Centre. Orchard A's median () is higher than Orchard B's (), so A's apples are typically heavier.
- Spread. Orchard B's IQR () is smaller than A's (). The middle half of B's apples are more consistent. The ranges ( against ) agree, but one outlier inflates A's. Quote the IQR.
Comparing only the medians is not enough.
A third point can be symmetry. Both medians sit near the centre of their boxes, so neither middle half is strongly skewed.
Proportions from the quarters also work. About 75% of B's apples weigh less than 162 g (B's ), but fewer than half of A's do, since A's median is 163 g.
Keep the claims modest. A box plot of a small sample is evidence, not proof, and cannot show cause. Never write that one orchard "is" better or that a difference "proves" anything.
"A is bigger than B" is not a comparison.
"A has a higher median, against , so A's apples are typically heavier" is.
8Shape, and whether the data could be normal
Where the median sits in the box and how long the whiskers are give the shape (Figure 7).
- Symmetric. The median is near the middle of the box. The two whiskers are about equal in length.
- Positively skewed. The right whisker is longer. The median sits nearer the left of the box, because the values above the median are spread over a wider range.
- Negatively skewed. The mirror image.
Skew also places the mean. A few large values pull it above the median in a positively skewed set, and below it in a negatively skewed one.
A box plot shows no mean. If asked why the mean "appears" greater than the median, the reason is the shape. The median is nearer , or the upper data are more spread out.
The normal distribution (4.9) is symmetric and bell-shaped. The guide asks you to judge from a box plot whether data may be normal. The test is symmetry: median near the centre of the box, whiskers roughly equal.
A clearly skewed plot counts against it. A symmetric one only makes it plausible, since many non-normal distributions are symmetric too. Say "may be", not "is".
Practice questions
65 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.