Histograms, stem and leaf diagrams and box plots

Histograms, stem and leaf diagrams and box plots

Spec 2.1 · Edexcel International A Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • In a histogram the area of a bar is the frequency, so plot frequency density =frequencyclass width=\dfrac{\text{frequency}}{\text{class width}}.
  • A stem and leaf diagram needs ordered leaves and a key; the median is the n+12\frac{n+1}{2}th value.
  • A box plot shows the minimum, Q1Q_1, median, Q3Q_3 and maximum; IQR =Q3−Q1=Q_3-Q_1.
  • If Q3−Q2>Q2−Q1Q_3-Q_2>Q_2-Q_1 the data are positively skewed; if less, negatively skewed.
  • Compare distributions with a measure of location and a measure of spread, in context.

Histograms and frequency density

A histogram shows continuous grouped data: the area of each bar is the frequency, so the vertical axis shows frequency density.

A histogram displays continuous grouped data. Because class widths can differ, the area of each bar (not its height) is proportional to the frequency, so the vertical axis shows frequency density.

Bar heights are in proportion to frequency densities.

To estimate a frequency in part of a class, assume the data are evenly spread within the class.

02460–22–55–1010–20Call length (minutes)Frequency density
Frequency density for call lengths. Each bar's area gives its frequency.
  • Frequency densityfrequencyclass width\dfrac{\text{frequency}}{\text{class width}}

Worked example

60 calls have classes 0 to 2 (12 calls), 2 to 5 (21), 5 to 10 (15) and 10 to 20 (12). Find the frequency densities and estimate the number of calls between 5 and 8 minutes.

In a histogram, what is proportional to the frequency of a class?

Stem and leaf diagrams

A stem and leaf diagram shows every data value in order; the median and quartiles are read from positions.

A stem and leaf diagram shows every data value. The stem is the leading digit(s) and each leaf is the last digit.

Leaves are written in order and a key is always given, for example 4|2 means 42.

For nn values: the median is the n+12\frac{n+1}{2}th value; Q1Q_1 is at position n4\frac n4 and Q3Q_3 at 3n4\frac{3n}{4}.

If the position is a whole number take the mean of that value and the next; otherwise round up.

0246810121416Q₁: 4th valueMedian: 8th valueQ₃: 12th value
  • Median positionn+12\dfrac{n+1}{2}
  • Lower quartile Q1Q_1 positionn4\dfrac n4
  • Upper quartile Q3Q_3 position3n4\dfrac{3n}{4}

Worked example

A stem and leaf diagram shows 15 scores. Find the positions of the median and quartiles.

Which of these must a stem and leaf diagram always have?

Back-to-back stem and leaf diagrams

A back-to-back diagram puts two data sets on one stem, with leaves outwards on each side; find each side's median and quartiles separately.

A back-to-back diagram compares two data sets on one common stem, with leaves of one set to the left (reading outwards from the stem) and the other to the right.

Each side is ordered with its own key. You find the median and quartiles of each side separately.

Check both keys and read each side outwards from the stem.

  1. 1

    Check both keys

    each side has its own

  2. 2

    Read outwards

    leaves run away from the stem

  3. 3

    Order each side

    leaves in increasing order

  4. 4

    Summarise each side

    median, quartiles, IQR

Reading a back-to-back diagram.

Worked example

12 girls' times are 38, 40, 42, 44, 45, 46, 49, 51, 53, 55, 57, 62. Find the median, quartiles and IQR.

12 values are in order. How do you find Q1Q_1?

Box plots and skewness

A box plot shows the five-number summary; comparing Q3−Q2Q_3-Q_2 with Q2−Q1Q_2-Q_1 tells you the skew.

A box plot shows the five-number summary: minimum, Q1Q_1, median (Q2Q_2), Q3Q_3 and maximum.

The box spans Q1Q_1 to Q3Q_3 with a line at the median, and whiskers extend to the extremes. The interquartile range is Q3−Q1Q_3-Q_1 and the range is maximum −- minimum. Outliers, where identified, are plotted separately as crosses.

Roughly 25% of values lie in each of the four sections, so in a sample of 40, about 10 values are above Q3Q_3.

Q₂ABCD
Illustrative box plot: min 10, Q₁ 20, median 26, Q₃ 40, max 55. Q₃ − Q₂ (14) is more than Q₂ − Q₁ (6), so the distribution has positive skew.

Positive skew

  • Q3−Q2>Q2−Q1Q_3-Q_2>Q_2-Q_1

Symmetrical

  • Q3−Q2=Q2−Q1Q_3-Q_2=Q_2-Q_1

Negative skew

  • Q3−Q2<Q2−Q1Q_3-Q_2<Q_2-Q_1
  • Interquartile rangeQ3−Q1Q_3-Q_1
  • Rangemaximum −- minimum

A distribution has Q1=10Q_1=10, Q2=14Q_2=14 and Q3=30Q_3=30. How is it skewed?

Comparing distributions

Make at least two comments in context: one about location (median) and one about spread (IQR or range), using numbers from both.

To compare two distributions, make at least two comments, each in the context of the question: one about location (median) and one about spread (IQR or range). Use numbers from both distributions.

For example, YY has median 47 and IQR 14; XX has median 45 and IQR 25. So YY's typical mark is slightly higher and its marks are more consistent.

Finish with a conclusion if asked which performed better, and avoid vague words such as 'better' without evidence.

XYXAXBXCXDYAYBYCYD
Illustrative box plots: X has median 45, IQR 25; Y has median 47, IQR 14. Y's box is narrower, so its marks are more consistent.

Distribution X

Median (location):
45
IQR (spread):
25

Distribution Y

Median (location):
47
IQR (spread):
14

Which pair of measures should you use to compare two distributions?

Try an exam question

The lengths of 5050 phone calls are summarised: 00–44 minutes, 1212 calls; 44–66 minutes, 1818 calls; 66–1010 minutes, 1616 calls; 1010–2020 minutes, 44 calls. A histogram is drawn. (a) Find the frequency density for the 44–66 minute class. (b) Estimate the number of calls between 88 and 1010 minutes, stating an assumption.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the frequency density of the class 5 to 10 minutes.

1 mark, marked against the mark scheme

Revision notes