• Practice
  • About 16 min
  • 5 practice questions

Histograms with equal class widths

Draw a histogram for a grouped frequency distribution with continuous classes of equal size, mark a break on the axis, make discontinuous classes continuous, and read a histogram correctly.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Explain how a histogram differs from a bar graph.
  • Draw a histogram for continuous classes of equal width, using a kink (break) on the axis when needed.
  • Convert classes such as 21-25, 26-30 into continuous classes before drawing.

When data is grouped into continuous class intervals, such as heights 140-145 cm, 145-150 cm and so on, there is no gap between one class and the next. A graph for such data should have no gaps either. That graph is the histogram.

Drawing a histogram

Here are the heights of 40 students (made-up data for practice).

Heights of 40 students (made-up data for practice)
Height (cm)140-145145-150150-155155-160160-165165-170Total
Number of students471295340

Steps for the histogram

  1. Horizontal axis: heights Scale 1 cm = 5 cm of height. The first class starts at 140, not 0, so draw a kink (break) near the origin.
  2. Vertical axis: frequency Largest frequency is 12, so a scale of 1 cm = 2 students fits.
  3. Draw rectangles Width = class size (5 cm of height); height = frequency. 150-155 gets height 12 ÷ 2 = 6 cm on the paper.
  4. No gaps Each rectangle touches the next, so the graph looks like one solid figure.

Because the class 150-155 has the tallest rectangle, most students (12) have heights from 150 cm up to 155 cm. A student whose height is exactly 150 cm is counted in 150-155: in a continuous class the lower limit is included and the upper limit belongs to the next class.

Why a histogram's rectangles touch

In a histogram the area of each rectangle is proportional to the frequency of its class. When all the widths are equal, the areas are proportional to the heights, so we can simply draw heights equal to the frequencies. This is why the width of a histogram's bar, unlike a bar graph's, is important.

Bar graph and histogram

  • Bar graph
    • Separate items
    • Gaps between bars
    • Width has no meaning
    • Height shows the value
  • Histogram
    • Continuous class intervals
    • No gaps
    • Width = class size
    • Area shows the frequency

Worked example: making classes continuous

Marks of 25 students are grouped as 21-25: 4, 26-30: 7, 31-35: 9 and 36-40: 5 (made-up data for practice). There is a gap of 1 between 25 and 26. Half of this gap is 0.5, so subtract 0.5 from each lower limit and add 0.5 to each upper limit:

Making the classes continuous (made-up data for practice)
Given classContinuous classFrequency
21-2520.5-25.54
26-3025.5-30.57
31-3530.5-35.59
36-4035.5-40.55

Now the classes meet with no gaps, each has width 5, and a histogram can be drawn. The kink on the horizontal axis shows that the scale starts at 20.5, not 0.

Histogram: continuous classes, no gaps, width = class size, area ∝ frequency. If classes have gaps, first make them continuous by moving each limit by half the gap.

— Histogram rule

Reading a histogram carefully

A histogram tells you how many values lie in each class, not the exact values. From the height table you cannot say that most students are exactly 152 cm tall; you can only say the class 150-155 has the most students. Adding frequencies of neighbouring classes answers questions like 'how many students are at least 155 cm tall?': 9 + 5 + 3 = 17.

Key takeaways: a histogram shows grouped data with continuous classes as touching rectangles. Width is the class size and, when widths are equal, height is the frequency. Use a kink if the axis does not start at 0, and make discontinuous classes continuous first.

Check your understanding

  1. 1. What is the class size of the class 30.5-35.5?

    1. 30.5
    2. 5
    3. 35.5
    4. 33
    Show answer

    Answer: B. Class size = upper limit − lower limit = 35.5 − 30.5 = 5. 33 is the class mark (mid-point), not the size.

  2. 2. In the heights table (4, 7, 12, 9, 5, 3 for 140-145 up to 165-170), how many students are from 150 cm up to 160 cm tall?

    1. 12
    2. 9
    3. 21
    4. 28
    Show answer

    Answer: C. The classes 150-155 and 155-160 have 12 and 9 students: 12 + 9 = 21.

  3. 3. Classes 10-19, 20-29, 30-39 are to be made continuous. What does 10-19 become?

    1. 9.5-19.5
    2. 10-20
    3. 10.5-19.5
    4. 9-19
    Show answer

    Answer: A. The gap between 19 and 20 is 1; half of it is 0.5. Subtract 0.5 from the lower limit and add 0.5 to the upper limit: 9.5-19.5.

  4. 4. Why is a kink (break) drawn on the horizontal axis of a histogram for heights 140-170 cm?

    1. To show that some data is missing
    2. To show the tallest class
    3. Because the classes are not continuous
    4. Because the axis does not start from 0
    Show answer

    Answer: D. The first class starts at 140, so the axis jumps from 0 to 140. The kink shows this break in the scale.

  5. 5. The tallest rectangle of a histogram of leaf lengths is for the class 150-160 mm. What can you conclude?

    1. Most leaves are exactly 160 mm long
    2. More leaves lie in this class than in any other class
    3. No leaf is shorter than 150 mm
    4. All leaves are between 150 and 160 mm
    Show answer

    Answer: B. A histogram shows how many values fall in each class, not the exact values. The tallest rectangle only tells you that this class has the greatest frequency.

Sign in to keep track of the lessons you finish.

Next lesson → Histograms with varying class widths

Privacy · Terms · Refunds · Delivery