Skip to content

Presenting and interpreting data

Good statistical diagrams do more than display numbers. They reveal the shape, centre, spread and unusual features of a distribution. The correct display depends on what the variable means and how the data were recorded.

You should be able to:

  • order positive and negative numbers;
  • read scales and plot coordinates;
  • calculate percentages;
  • find a midpoint and interpret inequalities such as 10x<2010\leq x<20.

This lesson introduces the representations needed before averages and measures of spread and histograms.

A variable is a characteristic recorded for each individual or item.

TypeMeaningExamples
Qualitativelabels or categorieseye colour, method of travel
Quantitativenumerical values with meaningful arithmeticheight, number of calls
Discreteseparate, usually countable valuesnumber of siblings, shoe size
Continuousany value in an interval is possiblemass, time, temperature

Quantitative data may be discrete or continuous. Qualitative data are not continuous merely because their categories have been assigned numbers. For example, coding bus, car and walk as 1,2,31,2,3 does not make the mean code meaningful.

Data can also be described by their source:

  • primary data are collected first hand for the investigation;
  • secondary data were collected previously by somebody else.

And by how observations are paired:

  • univariate data record one variable per individual;
  • bivariate data record two variables on the same individual, such as height and arm span.

The pairing in bivariate data matters. A scatter diagram must use matched pairs (x,y)(x,y), not two independently sorted lists. See correlation and regression for bivariate displays.

Classify each variable as qualitative, discrete quantitative or continuous quantitative.

  1. The time taken to complete a race.
  2. The number of emails received in a day.
  3. A customer’s satisfaction category: poor, fair, good or excellent.
Answer
  1. Continuous quantitative. Time can, in principle, take any value in an interval, even if the stopwatch rounds it.
  2. Discrete quantitative. Emails are counted in whole numbers.
  3. Qualitative. The categories are ordered, but the gaps between them have no numerical size.

The display must preserve the feature you want to study.

SituationSuitable presentationMain strength
Categoriesbar chartcompares category frequencies
Small numerical data setordered list or stem and leaf diagramretains every value
Discrete values with repetitionsfrequency table or vertical line chartshows exact frequencies
Grouped continuous datahistogramcompares frequency density
Ordered numerical datacumulative frequency graphestimates median, quartiles and percentiles
Comparing distributionsbox plots on a common scalecompares centre, spread and skewness

In a bar chart, bars are separated because categories are distinct. In a histogram, class intervals form a continuous scale, so bars touch and area, not height alone, represents frequency. That distinction is developed in histograms.

A frequency table compresses repeated observations. Its frequencies must satisfy

f=n,\sum f=n,

where nn is the total number of observations. The relative frequency of a class is

fn,\frac{f}{n},

and its percentage frequency is 100f/n100f/n.

The journey times, in minutes, are

7,12,16,18,21,23,25,28,31,34,37,42.7, 12, 16, 18, 21, 23, 25, 28, 31, 34, 37, 42.

Using classes of width 1010 gives:

Time tt in minutesFrequencyCumulative frequency
0t<100\leq t<101111
10t<2010\leq t<203344
20t<3020\leq t<304488
30t<4030\leq t<40331111
40t<5040\leq t<50111212

The convention 10t<2010\leq t<20 includes 1010 but excludes 2020. Every possible value belongs to exactly one class, so there are no gaps or overlaps.

The cumulative frequency 88 means that 88 journeys took less than 3030 minutes. It does not mean that 88 journeys lie in the class 20t<3020\leq t<30.

Grouping loses detail. From the table we can tell that one journey took between 4040 and 5050 minutes, but not that its time was 4242 minutes.

A stem and leaf diagram is a compact ordered list. It shows the distribution while retaining each observation. It needs:

  1. leaves in ascending order;
  2. every observation, including repeated values;
  3. a key that fixes the place value.

Worked example 2: constructing a stem and leaf diagram

Section titled “Worked example 2: constructing a stem and leaf diagram”

For the data

18,22,27,21,35,30,22,41,39,26,18, 22, 27, 21, 35, 30, 22, 41, 39, 26,

use the tens digits as stems and sort the units digits within each row:

1 | 8
2 | 1 2 2 6 7
3 | 0 5 9
4 | 1

Key: 262\mid 6 represents 2626.

There are 1010 leaves, confirming that all 1010 observations are present. The repeated leaf 22 on stem 22 is essential because 2222 occurs twice.

The ordered values can now be read directly. The fifth and sixth are 2222 and 2626, so the median is

22+262=24.\frac{22+26}{2}=24.

Two small data sets can share stems. Leaves for one set appear on the left and leaves for the other on the right. Left hand leaves are written so that values increase away from the stem to the left, while right hand leaves increase away from the stem to the right.

Group A Group B
8 4 1 | 1 | 2 5 9
9 7 3 0 | 2 | 1 1 6 8
5 2 | 3 | 0 4

Key: 1211\mid 2\mid 1 represents 2121 in Group A and 2121 in Group B.

Always make the key unambiguous. A key such as 37=3.73\mid 7=3.7 differs by a factor of 1010 from 37=373\mid 7=37.

The leaves on stem 44 are 0,3,3,80,3,3,8, and the key says 434\mid3 represents 4.34.3. Write the four values and state their mode.

Answer

The values are 4.0,4.3,4.3,4.84.0,4.3,4.3,4.8. The mode is 4.34.3.

For grouped data, cumulative frequency is plotted against the upper class boundary. The points represent statements of the form

number of observations below x.\text{number of observations below }x.

Include the lower boundary of the first class with cumulative frequency 00, then join the points with a smooth increasing curve or straight segments, according to the expected convention.

Worked example 3: plotting cumulative frequency

Section titled “Worked example 3: plotting cumulative frequency”

For the table in Worked example 1, plot

(0,0),(10,1),(20,4),(30,8),(40,11),(50,12).(0,0), (10,1), (20,4), (30,8), (40,11), (50,12).

Notice that (30,8)(30,8) uses the upper boundary 3030 and cumulative frequency 88. Plotting the class midpoint 2525 would change the meaning and give incorrect quartile estimates.

For nn observations, common A level graph estimates use cumulative frequency levels

Q1:n4,qquadQ2:n2,qquadQ3:3n4.Q_1:\frac n4,qquad Q_2:\frac n2,qquad Q_3:\frac{3n}{4}.

Draw horizontally from each frequency level to the curve, then vertically to the data axis. Because grouped data do not reveal the positions within a class, graphically read quartiles are estimates.

Suppose 4040 values are grouped and the cumulative frequencies at x=20x=20 and x=30x=30 are 1414 and 2626. The median is at cumulative frequency

402=20.\frac{40}{2}=20.

Assuming values are evenly distributed through this class, the required fraction across it is

20142614=612=12.\frac{20-14}{26-14}=\frac{6}{12}=\frac12.

Therefore the estimated median is

20+12(3020)=25.20+\frac12(30-20)=25.

This is linear interpolation. It is an estimate based on an even spread within the class, not a claim that an observed value was exactly 2525.

The ppth percentile is the value below which approximately p%p\% of observations lie. For n=200n=200, the 8585th percentile is read at cumulative frequency

0.85×200=170.0.85\times200=170.

To estimate the number above a value aa, read the cumulative frequency F(a)F(a) and calculate

nF(a).n-F(a).

A cumulative frequency curve represents 8080 measurements. At x=15x=15, the cumulative frequency is approximately 5252.

  1. Estimate how many measurements are below 1515.
  2. Estimate how many are at least 1515.
  3. At what cumulative frequency should Q3Q_3 be read?
Answer
  1. Approximately 5252.
  2. Approximately 8052=2880-52=28.
  3. At 3(80)/4=603(80)/4=60.

A box plot displays the five number summary:

minimum,quadQ1,quadmedian,quadQ3,quadmaximum.\text{minimum},quad Q_1,quad \text{median},quad Q_3,quad \text{maximum}.

The box runs from Q1Q_1 to Q3Q_3, with a line at the median. Whiskers extend to the extremes, unless a question uses a stated outlier convention. The box length is the interquartile range

IQR=Q3Q1.\operatorname{IQR}=Q_3-Q_1.

Worked example 5: drawing and interpreting a box plot

Section titled “Worked example 5: drawing and interpreting a box plot”

A data set has

min=4,qquadQ1=11,qquadQ2=15,qquadQ3=23,qquadmax=30.\min=4,qquad Q_1=11,qquad Q_2=15,qquad Q_3=23,qquad \max=30.

Draw all five values on one linear scale. The box extends from 1111 to 2323, its median line is at 1515, and the whiskers end at 44 and 3030.

The IQR is

2311=12.23-11=12.

Each interval from the minimum to Q1Q_1, from Q1Q_1 to the median, from the median to Q3Q_3, and from Q3Q_3 to the maximum contains approximately 25%25\% of the data. Their unequal physical lengths show differing concentration. The interval 1515 to 2323 is relatively long, so that quarter of the observations is more spread out.

The longer upper half of the box and longer upper whisker suggest positive skew. This is evidence about shape, not a proof of an exact model.

A common rule labels values as outliers if

x<Q11.5IQRorx>Q3+1.5IQR.x<Q_1-1.5\operatorname{IQR} \quad\text{or}\quad x>Q_3+1.5\operatorname{IQR}.

If this rule is specified, whiskers usually end at the most extreme non-outlying observations and outliers are plotted separately. Do not assume a convention that the question has not given. Learn how to investigate suspicious observations in outliers and cleaning data.

For the values above, the fences are

111.5(12)=7,qquad23+1.5(12)=41.11-1.5(12)=-7,qquad 23+1.5(12)=41.

Neither 44 nor 3030 is an outlier under this rule.

A complete comparison uses context and normally addresses both:

  1. location, usually the median;
  2. spread, usually the IQR or range.

Shape and outliers may add useful evidence. Use comparative language such as greater, smaller, more consistent or more positively skewed.

Two delivery services have these summaries, in minutes:

ServiceMedianIQRRange
A2828883131
B3131551818

A strong interpretation is:

Service A is typically faster because its median delivery time is 33 minutes lower. Service B is more consistent because both its IQR and range are smaller.

Do not write only “A is better”. Faster and more consistent are different properties, and the data do not say which matters more to a customer.

If two box plots are being compared, they must use the same scale. Otherwise physical box lengths are not comparable.

  • A cumulative frequency point goes at the midpoint. It goes at the upper class boundary because it counts all observations below that boundary.
  • The four quarters of a box plot have equal lengths. They contain roughly equal numbers of observations, but their lengths show spread.
  • A large range proves most data are variable. The range may be caused by one extreme value. The IQR describes the middle 50%50\%.
  • Joining bar chart bars makes a histogram. A histogram uses a continuous scale and frequency density, particularly when class widths differ.
  • A precise calculator answer makes grouped data exact. Grouped representations have already lost information, so interpolated statistics remain estimates.

The five number summaries for test scores are:

minQ1medianQ3maxClass P1842566891Class Q2548536182\begin{array}{c|ccccc} &\min&Q_1&\text{median}&Q_3&\max\\ \hline \text{Class P}&18&42&56&68&91\\ \text{Class Q}&25&48&53&61&82 \end{array}
  1. Find the IQR for each class.
  2. Which class has the higher typical score?
  3. Which class is more consistent by IQR?
  4. What proportion of Class P scored between 4242 and 6868?
Answer
  1. Class P: 6842=2668-42=26. Class Q: 6148=1361-48=13.
  2. Class P, because its median is 5656, compared with 5353 for Class Q.
  3. Class Q, because its IQR is smaller.
  4. Approximately 50%50\%, because 42=Q142=Q_1 and 68=Q368=Q_3.

A concise comparison is: Class P achieved a slightly higher typical score, but Class Q’s scores were more consistent.