4.2 · SLPaper 1Paper 2

Data presentation

In a minute

A long list of numbers says little until you organise it. You sort data into frequency tables, draw , read the , and off a graph, and use to compare two data sets and judge whether data may be normal.

You'll be able to

  • Present and in frequency tables, with written as inequalities that leave no gaps.
  • Draw and read a frequency histogram with equal class widths, and describe its shape in context.
  • Use a cumulative frequency graph to estimate the median, quartiles, percentiles, range and IQR, and interpret them.
  • Draw and read a box and whisker diagram, with each marked by a cross.
  • Compare two distributions using their box plots, and judge from symmetry whether data may be normally distributed.
Before you start3 quick questions on what this builds on
Check yourself
Which of these is continuous data?
Check yourself
For the ages of the members of a sports club, Q1=15Q_{1} = 15 and Q3=27Q_{3} = 27. Find the upper fence, Q3+1.5×IQRQ_{3} + 1.5 \times \mathrm{IQR}.
Check yourself
The upper fence for the club's ages is 4545. Is a member aged exactly 4545 an outlier?

Revise first: 4.1 Sampling, data quality and outliers

Frequency tables

Thirty numbers in a row are hard to take in. Count how often each value occurs, and the pattern jumps out.

For with only a few different values, give each value its own row or column. Tally the list once, then count the tally marks.

Worked exampleAt a checkpoint, an officer counts the people in each of 3030 cars: 2,1,1,3,2,1,4,1,2,5,1,3,2,1,1,2,3,4,1,2,1,5,2,3,1,2,4,1,3,22, 1, 1, 3, 2, 1, 4, 1, 2, 5, 1, 3, 2, 1, 1, 2, 3, 4, 1, 2, 1, 5, 2, 3, 1, 2, 4, 1, 3, 2. (a) Present the data in a frequency table. (b) A carpool lane may only be used by cars carrying at least 22 people. Find the percentage of these cars that could use it.

Try it first, then reveal one step at a time.

  1. (a) The values run from 11 to 55, so the table needs a column for each of them.

is different. Measured values are rarely equal, so you group them into classes.

The classes must leave no gaps and must not overlap. With 150150–174174 and 175175–199199, a mass of 174.6174.6 g fits nowhere. With 150≤m<175150 \le m < 175 and 175≤m<200175 \le m < 200, every mass fits exactly one class.

A value on a boundary goes in the class whose inequality it satisfies. Some tables use the other form, such as 10<t≤2010 < t \le 20, so read the signs every time.

Worked exampleA greengrocer weighs 2424 avocados, in grams: 162.4,183.6,200.0,231.5,175.0,190.2,212.7,171.8,199.6,205.4,224.9,158.3,178.4,218.3,240.2,187.1,209.6,168.9,194.5,203.8,181.9,227.7,196.3,215.2162.4, 183.6, 200.0, 231.5, 175.0, 190.2, 212.7, 171.8, 199.6, 205.4, 224.9, 158.3, 178.4, 218.3, 240.2, 187.1, 209.6, 168.9, 194.5, 203.8, 181.9, 227.7, 196.3, 215.2. (a) Present the data in a frequency table with classes 150≤m<175150 \le m < 175, 175≤m<200175 \le m < 200, 200≤m<225200 \le m < 225 and 225≤m<250225 \le m < 250. (b) Avocados of 200200 g or more are sold as “large”. How many of these are large?

Try it first, then reveal one step at a time.

  1. (a) Place the awkward values first. 175.0175.0 satisfies 175≤m<200175 \le m < 200, and 200.0200.0 satisfies 200≤m<225200 \le m < 225.
Check yourself
A botanist measures leaf lengths, LL mm, to the nearest 0.10.1 mm. Which set of classes is suitable? Set A: 3535–4444, 4545–5454, 5555–6464. Set B: 35≤L≤4535 \le L \le 45, 45≤L≤5545 \le L \le 55, 55≤L≤6555 \le L \le 65. Set C: 35≤L<4535 \le L < 45, 45≤L<5545 \le L < 55, 55≤L<6555 \le L < 65.
Check yourself
The heights of 4040 sunflowers are grouped into the classes 100<h≤120100 < h \le 120, 120<h≤140120 < h \le 140, 140<h≤160140 < h \le 160 and 160<h≤180160 < h \le 180 cm. The frequencies are 66, 1313, kk and 77. Find kk.

Histograms

A table gives you the numbers. A picture shows at a glance where the data bunches up, and whether it trails off to one side.

In this course every class in a histogram has the same width. Then each bar's height is simply its frequency, and a taller bar always means more values.

Worked exampleDraw a frequency histogram for the 2424 avocado masses. mass, m gramsfrequency150≤m<1754175≤m<2009200≤m<2258225≤m<2503\begin{array}{c|c} \text{mass, } m \text{ grams} & \text{frequency} \\ \hline 150 \le m < 175 & 4 \\ 175 \le m < 200 & 9 \\ 200 \le m < 225 & 8 \\ 225 \le m < 250 & 3 \end{array}

Try it first, then reveal one step at a time.

  1. Horizontal axis: mass, mm grams, from 150150 to 250250, marked at each class boundary.
Frequency histogram of the masses of 24 avocados: four touching bars of height 4, 9, 8 and 3 over the classes 150 to 175, 175 to 200, 200 to 225 and 225 to 250 grams 150 175 200 225 250 0 2 4 6 8 10 Mass, m grams Frequency
The bars touch: 175≤m<200175 \le m < 200 starts exactly where 150≤m<175150 \le m < 175 ends.

Now look at the shape. If the two sides roughly mirror each other, the data is symmetric. If one side trails off in a long tail, the data is skewed: positively if the tail is on the right, negatively if it is on the left.

Frequency histogram of the homework times of 80 students: six touching bars of height 6, 18, 24, 16, 10 and 6 over classes of 20 minutes from 0 to 120 minutes 0 20 40 60 80 100 120 0 5 10 15 20 25 Homework time, t minutes Frequency
Homework times of 8080 students. The tail on the right is longer.
Worked exampleThe histogram shows the time, tt minutes, that each of 8080 students spent on homework one evening. The classes are 0≤t<200 \le t < 20, 20≤t<4020 \le t < 40, …\ldots, 100≤t<120100 \le t < 120. (a) Find the percentage of these students who spent at least an hour on homework. (b) Describe the shape of the distribution, and interpret it in context.

Try it first, then reveal one step at a time.

  1. (a) “At least an hour” is t≥60t \ge 60: the three bars from 6060 to 120120. Their heights are 1616, 1010 and 66.
Check yourself
Use the homework histogram. How many students spent less than 4040 minutes on homework?
Check yourself
A histogram shows the ages of the 4848 residents of a retirement village, in six equal classes from 6060 to 9090 years. From left to right, the bar heights are 33, 55, 99, 1111, 1414 and 66. Which describes the shape?

Cumulative frequency graphs

A helpline logs the length of 200200 calls. How many ended within 1010 minutes? Add the frequencies of every class up to 1010: a running total.

1. Add a cumulative frequency column to the table, adding each class's frequency to the total so far.

2. Plot each cumulative frequency above the upper boundary of its class, because only there has the whole class been counted. Start with a point at the first lower boundary, with cumulative frequency 00.

3. Join the points with straight lines or a smooth curve. This lesson uses straight lines; a curve gives slightly different readings, and both are accepted as estimates.

Worked exampleThe lengths of 200200 calls to a helpline are shown in the table. length, t minutesfrequency0<t≤5185<t≤103210<t≤155015<t≤203020<t≤255025<t≤3020\begin{array}{c|c} \text{length, } t \text{ minutes} & \text{frequency} \\ \hline 0 < t \le 5 & 18 \\ 5 < t \le 10 & 32 \\ 10 < t \le 15 & 50 \\ 15 < t \le 20 & 30 \\ 20 < t \le 25 & 50 \\ 25 < t \le 30 & 20 \end{array} Find the cumulative frequencies, and write down the points to plot.

Try it first, then reveal one step at a time.

  1. Keep a running total, adding the next frequency each time.
Cumulative frequency graph of 200 call lengths, with dashed reading lines from 50, 100 and 150 calls meeting the time axis at 10, 15 and 22 minutes 0 5 10 15 20 25 30 0 40 80 120 160 200 Call length, t minutes Cumulative frequency Q1 median Q3
Read across from the cumulative frequency to the graph, then down to the time axis.

Now read the graph the other way. The has half the data below it. The lower quartile Q1Q_{1} has a quarter below it, and the upper quartile Q3Q_{3} three quarters. With nn values, read across from these heights:

Learn this
Q1 at n4,median at n2,Q3 at 3n4Q_{1} \text{ at } \tfrac{n}{4}, \qquad \text{median at } \tfrac{n}{2}, \qquad Q_{3} \text{ at } \tfrac{3n}{4}

The measures the spread of the middle half of the data. It is in the formula booklet.

In the formula booklet
IQR=Q3−Q1\mathrm{IQR} = Q_{3} - Q_{1}

The is the largest value minus the smallest. A grouped graph hides the actual values, so estimate it from where the graph starts and ends: here 30−0=3030 - 0 = 30 minutes. The true range can't be larger than this.

Worked exampleUse the cumulative frequency graph of the 200200 call lengths. (a) Estimate the median and the interquartile range. (b) The helpline wants a time TT within which 90%90\% of calls finish. Estimate TT, and interpret it.

Try it first, then reveal one step at a time.

  1. (a) The median is at 2002=100\frac{200}{2} = 100. Read across and down: 1515 minutes.
Check yourself
Use the call-length graph to estimate the 3030th percentile, in minutes.
Check yourself
Use the call-length graph. Estimate how many calls lasted more than 1212 minutes.
Check yourself
Use the call-length graph. How many calls lasted more than 1010 minutes but no more than 2020 minutes?

Box and whisker diagrams

A box and whisker diagram, or box plot, draws five key values to scale. You see at once where the data starts and ends, and where its middle half lies.

1. Draw a scale. Draw the box from Q1Q_{1} to Q3Q_{3}, with a line across it at the median.

2. Find the fences Q1−1.5×IQRQ_{1} - 1.5 \times \mathrm{IQR} and Q3+1.5×IQRQ_{3} + 1.5 \times \mathrm{IQR} from 4.1. Any value strictly beyond a fence is an .

3. Draw each whisker to the most extreme value that is not an outlier. Mark each outlier with a cross.

Worked exampleA hotel records the number of nights each of 5050 guests stayed. nights123456713guests9141075311\begin{array}{c|cccccccc} \text{nights} & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 13 \\ \hline \text{guests} & 9 & 14 & 10 & 7 & 5 & 3 & 1 & 1 \end{array} (a) Use your GDC to find Q1Q_{1}, the median Q2Q_{2} and Q3Q_{3}. (b) Determine which values are outliers. (c) Draw the box and whisker diagram, and comment on whether the outlier should be kept.

Try it first, then reveal one step at a time.

  1. (a) Enter the nights in one list and the guests in a second, and run one-variable statistics with the second list as the frequency list. Check that n=50n = 50.
Box and whisker diagram of the nights stayed by 50 hotel guests, on a scale from 0 to 14 nights. The left whisker runs from 1 to 2, the box spans 2 to 4 with the median at 3, the right whisker runs from 4 to 7, and a cross marks the outlier at 13 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Nights stayed
The whisker stops at 77, the longest stay that is not an outlier. The cross at 1313 is the outlier.

Reading a box plot: about a quarter of the data lies in each of the four parts, from the smallest value to Q1Q_{1}, Q1Q_{1} to the median, the median to Q3Q_{3}, and Q3Q_{3} to the largest.

To compare two data sets, draw their box plots on one scale. Make two comparisons, each with numbers and in context: the medians for a typical value, and the IQRs or ranges for spread. A box plot doesn't show the mean, so don't compare means.

Shape matters too. If the median sits in the middle of the box and the two whiskers are about the same length, the data is roughly symmetric, so it may be normally distributed (4.9). A lopsided box or one long whisker means skewed data, which is unlikely to be normal.

Two box and whisker diagrams of battery life on one scale from 20 to 50 hours. Model P: whiskers from 21.5 to 43.5, box from 28.5 to 36.5, median 32.5, symmetric. Model Q: whiskers from 22.5 to 46.5, box from 25.5 to 39.5, median 28.5, with the median near the left of the box. Neither model has an outlier Model P Model Q 20 25 30 35 40 45 50 Battery life, hours
Model P is symmetric. Model Q's median sits near the left of its box.
Worked exampleA reviewer tests the battery life, in hours, of 6060 phones of model P and 6060 of model Q. The five values (smallest, Q1Q_{1}, median, Q3Q_{3}, largest) are 21.5,28.5,32.5,36.5,43.521.5, 28.5, 32.5, 36.5, 43.5 for model P and 22.5,25.5,28.5,39.5,46.522.5, 25.5, 28.5, 39.5, 46.5 for model Q, as in the box plots. (a) Compare the two distributions. (b) State which model's battery life may be normally distributed, with a reason.

Try it first, then reveal one step at a time.

  1. First check for outliers. Model P: IQR=36.5−28.5=8\mathrm{IQR} = 36.5 - 28.5 = 8, fences 28.5−12=16.528.5 - 12 = 16.5 and 36.5+12=48.536.5 + 12 = 48.5. Model Q: IQR=39.5−25.5=14\mathrm{IQR} = 39.5 - 25.5 = 14, fences 25.5−21=4.525.5 - 21 = 4.5 and 39.5+21=60.539.5 + 21 = 60.5. Every value is inside its fences.
Check yourself
Use the box plots. About what percentage of model P phones had a battery life of more than 28.528.5 hours?
Check yourself
The commuting distances of a company's staff have Q1=6Q_{1} = 6 km and Q3=14Q_{3} = 14 km. The four longest are 2222, 2424, 2727 and 3131 km. Where does the right whisker end, in km?
Check yourself
Each data set below has no outliers, and gives the smallest value, Q1Q_{1}, median, Q3Q_{3} and largest value. Which may be normally distributed? Set A: 40,44,47,58,7540, 44, 47, 58, 75. Set B: 40,50,55,60,7040, 50, 55, 60, 70. Set C: 30,46,56,60,6430, 46, 56, 60, 64.

Common mistakes

  • Writing classes with gaps, such as 5050–5959 and 6060–6969, for measured data. Use inequalities such as 50≤t<6050 \le t < 60 and 60≤t<7060 \le t < 70.
  • Plotting cumulative frequency at class mid-points. Plot it at each upper class boundary.
  • Reading “more than” straight off a cumulative frequency graph. The graph counts values at or below, so subtract the reading from nn.
  • Drawing a whisker out to an outlier, or leaving the outlier off. The whisker stops at the most extreme value that is not an outlier, and the outlier gets a cross.
  • Leaving out the frequency list when you enter a frequency table on the GDC. Each value then counts once, and the quartiles are wrong.
  • Comparing means when asked to use box plots. A box plot shows medians, quartiles and the range, so compare those.

Exam tips

  • Estimate from a cumulative frequency graph: write down the height you read across from, such as 3n4\frac{3n}{4} for Q3Q_{3}, and draw the reading lines on the graph. That earns the method mark.
  • Draw a box plot: plot all five values accurately on the given scale, with whiskers to the most extreme non-outliers and a cross for each outlier. The mark needs both whiskers and every outlier right.
  • Compare two distributions: write one sentence on the medians and one on the IQRs or ranges, each with the values and in the context of the question.

Key takeaways

Learn thisClass intervals are inequalities with no gaps and no overlaps, such as 150≤m<175150 \le m < 175 and 175≤m<200175 \le m < 200. A boundary value goes in the class whose inequality it satisfies.
Learn thisIn a histogram with equal class widths, each bar's height is its frequency and neighbouring bars touch.
Learn thisPlot cumulative frequency at each upper class boundary, starting from 00 at the first lower boundary. It counts values at or below a point, so for “more than” subtract the reading from nn.
Learn thisOn a cumulative frequency graph of nn values, read across from n4\frac{n}{4} for Q1Q_{1}, n2\frac{n}{2} for the median, 3n4\frac{3n}{4} for Q3Q_{3} and k100×n\frac{k}{100} \times n for the kkth percentile.
In bookletIQR=Q3−Q1\mathrm{IQR} = Q_{3} - Q_{1}
Learn thisBox plot: box from Q1Q_{1} to Q3Q_{3}, a line at the median, whiskers to the most extreme values that are not outliers, and a cross for each outlier.
Learn thisCompare two box plots by their medians and their IQRs or ranges, with numbers and in context. A symmetric box with equal whiskers means the data may be normal; a skewed one is unlikely to be.

Practise this

16 past-paper questions on Statistical measures and frequency tables in the AI HL bank, each with a mark scheme and a worked explanation.

Practise Statistical measures and frequency tables →