Statistics: data & averages · Lesson 3 of 3

Pie charts, bar charts and histograms

Drawing and reading the three charts WAEC asks for: pie-chart angles, bar charts with gaps, and histograms on class boundaries, including the mode from a histogram.

15 minYou should already know: Number foundations & fractions
  1. 1
  2. 2
  3. 3

Paper 2 often asks you to draw a chart, and Paper 1 asks you to read one. There are three to know, and the most common mistake is drawing the wrong one.

Pie chart, bar chart, histogramSwitch chart
Maize 144°Rice 108°Yam 72°Beans 36°
Each slice's angle is its share of 360°: frequency ÷ total × 360°. Maize: 12 ÷ 30 × 360° = 144°. Draw the angles with a protractor, and label the angles in degrees, not percentages.
ChartUse it forWhat it looks like
Pie chartparts of a whole (shares of money, of a population)a circle cut into sectors
Bar chartseparate categories, or separate whole-number values (scores on a die)bars of equal width with gaps
Histogramgrouped data on a continuous scale (marks 0–9, 10–19, …)bars touching, standing on the class boundaries

Pie charts

The whole circle is 360∘360^\circ, so each item gets its share of 360∘360^\circ:

angle=frequencytotal×360∘\text{angle} = \frac{\text{frequency}}{\text{total}} \times 360^\circ

With percentages, 1%=3.6∘1\% = 3.6^\circ, so multiply each percentage by 3.63.6.

Worked example · WAEC 2022

WAEC 2022 · Paper 2 · Q8 (a, b)

Item Food and drinks Fuel Rent Building project Education Savings
Percentage (%) 35 7.5 10 15 17.5

The table shows the monthly expenditure (in percentage) of Mr. Okafor's salary.

Calculate the percentage of Mr. Okafor's salary that was put into savings.

Illustrate the information on a pie chart.

  1. The missing percentage

    They add up to 100%100\%. The others total 35+7.5+10+15+17.5=8535 + 7.5 + 10 + 15 + 17.5 = 85, so savings are 100−85=15%100 - 85 = 15\%.

    Think first. The percentages must add up to what?

  2. The angles

    Multiply each by 3.63.6: food 35×3.6=126∘35 \times 3.6 = 126^\circ, fuel 27∘27^\circ, rent 36∘36^\circ, building 54∘54^\circ, education 63∘63^\circ, savings 54∘54^\circ.

    Check: 126+27+36+54+63+54=360126 + 27 + 36 + 54 + 63 + 54 = 360 ✓.

    Think first. What angle is 35%?

  3. Draw it

    Draw a circle with compasses and one radius as a starting line. Measure each angle with a protractor, going round in order. Write each item’s name and angle in its sector.

Reading a pie chart is the same formula backwards: frequency=angle360∘×total\text{frequency} = \frac{\text{angle}}{360^\circ} \times \text{total}.

More: pie charts

Bar charts

  • One bar for each category or value, all the same width, with equal gaps.
  • The height of each bar is the frequency. Label the axes and choose a scale that uses most of the graph paper.

Histograms

For grouped data, each bar covers its whole class, so the bars stand on the class boundaries and touch:

  • classes 10–19, 20–29, … have boundaries 9.5, 19.5, 29.5, …;
  • classes 1.0–1.9, 2.0–2.9, … have boundaries 0.95, 1.95, 2.95, ….

When all the classes are the same width, the height of each bar is its frequency.

The mode from a histogram

The mode is in the tallest bar. To estimate it, draw two lines: from the top-left corner of the tallest bar to the top-left corner of the bar after it, and from the top-right corner to the top-right corner of the bar before it. Where they cross, read down to the axis. Switch to the histogram on the board above to see the two lines.

Worked example · WAEC 2018

WAEC 2018 · Paper 2 · Q3

Price (₦1,000,000) 1.0–1.9 2.0–2.9 3.0–3.9 4.0–4.9 5.0–5.9
Number of vehicles 23 48 107 90 32

The frequency distribution shows the range of prices of a brand of car sold by a dealer and the corresponding quantity demanded.

Represent the information in a histogram.

Use the histogram to determine the most preferred selling price for the brand of car (in millions of naira).

  1. The boundaries

    Halfway between 1.9 and 2.0 is 1.95, so the boundaries are 0.95,1.95,2.95,3.95,4.95,5.950.95, 1.95, 2.95, 3.95, 4.95, 5.95. Each bar is 1 unit wide.

    Think first. The classes are 1.0–1.9, 2.0–2.9, …. Where do the bars start and end?

  2. Draw the bars

    Heights 23,48,107,90,3223, 48, 107, 90, 32, touching, on those boundaries. Label the axes “Price (₦ million)” and “Number of vehicles”.

  3. The most preferred price

    The price bought most often is the mode. The tallest bar is 2.95–3.95. Draw the crossed lines on it and read down: about 3.7, so about ₦3,700,000.

    As a check by formula, put the values into the mode formula (the class width is 1):

    2.95+107−48(107−48)+(107−90)=2.95+5976≈3.73\begin{aligned} & 2.95 + \frac{107 - 48}{(107 - 48) + (107 - 90)} \\ &= 2.95 + \frac{59}{76} \approx 3.73 \end{aligned}

    Think first. 'Most preferred' means which average?

Your turn

WAEC 2018 · Paper 2 · Q5

Score 1 2 3 4 5 6
Frequency 2 5 13 11 9 10

The table shows the distribution of scores obtained when a fair die was rolled 50 times.

  1. (a)

    Draw a bar chart for the distribution.

    Model answer
    1234562468101214ScoreFrequency

    Put the scores on the horizontal axis and the frequency on the vertical axis, with equal-width bars and equal gaps between them. The bar heights are 2,5,13,11,9,102, 5, 13, 11, 9, 10; the tallest bar is at score 3.

  2. (b)

    Calculate the mean score of the distribution.

Worked solution (try it first)

(a)

  1. The scores 1 to 6 are separate values, so draw a bar chart: six bars of equal width with equal gaps between them, of heights 2,5,13,11,9,102, 5, 13, 11, 9, 10.
  2. Label the axes "Score" and "Frequency", and state the scale.

(b)

  1. ∑fx=1(2)+2(5)+3(13)+4(11)+5(9)+6(10)\sum fx = 1(2) + 2(5) + 3(13) + 4(11) + 5(9) + 6(10)
    =2+10+39+44+45+60= 2 + 10 + 39 + 44 + 45 + 60
    =200= 200 and ∑f=50\sum f = 50, so the mean score is 20050=4\frac{200}{50} = 4.

Report a problem with this question

JAMB 2012 · UTME · Q41

The grades of 36 students in a class test are shown in the pie chart (Pass 120∘120^\circ, Credit 80∘80^\circ, Very good 90∘90^\circ). How many students have Excellent?

Pass 120°Credit 80°Very goodExcellent
Worked solution (try it first)
  1. The angles add up to 360∘360^\circ, so Excellent is 360∘−(120∘+80∘+90∘)=70∘360^\circ - (120^\circ + 80^\circ + 90^\circ) = 70^\circ.
  2. Its share of the 36 students: 70360×36=7\frac{70}{360} \times 36 = 7, option D.

Report a problem with this question

More past questions like this