EZ Tuitions Logo
EZ Tuitions

Histograms with unequal widths: area tells the frequency

The axis here is true frequency density: frequency divided by class width. Its bar area in axis units equals the frequency. A height measured in centimetres on paper is not a density unless the vertical scale tells you how to convert it.

This is original written practice with invented quantities, not collected measurements or an exam answer key. The intervals below describe continuous grouped quantities with adjoining class boundaries. No graph is drawn to scale on this page; the supplied widths and densities are the inputs.

One rule, two directions

  1. Class width = upper class limit − lower class limit.
  2. Frequency density = frequency / class width. This is the bar height, in items per unit of the x-axis quantity.
  3. Frequency = frequency density × class width. This is the bar area, and it recovers the count.

Frequency density exists so that classes of different widths can be compared fairly: a count spread over a wide class reads lower per unit than the same count packed into a narrow one. With equal class widths the bars are proportional to the counts anyway; the density rule matters most when the widths differ.

From counts to bar heights

A practice table groups journey times: 18 journeys in 0 ≤ t < 20 minutes, 16 in 20 ≤ t < 30, and 24 in 30 ≤ t < 60. Class widths are 20, 10 and 30 minutes. Frequency densities are 18 / 20 = 0.9, 16 / 10 = 1.6 and 24 / 30 = 0.8 journeys per minute, so the bar heights are 0.9, 1.6 and 0.8.

Check: Area check: 20 × 0.9 = 18, 10 × 1.6 = 16 and 30 × 0.8 = 24. Each bar area returns its class frequency. The middle bar is tallest at 1.6, even though the widest class holds the most journeys.

Recover counts from frequency density

A drawn histogram shows frequency densities of 2.5, 1.2 and 0.6 for classes of width 4, 10 and 25. Frequency = frequency density × class width, so the counts are 2.5 × 4 = 10, 1.2 × 10 = 12 and 0.6 × 25 = 15.

Check: Each count is the area of its bar: height times width. The total is 10 + 12 + 15 = 37 items. The shortest bar (0.6 over a width of 25) still holds the most items, 15.

Fill a mixed table both ways

A practice table has two gaps. For 10 ≤ x < 20 the frequency is 8: frequency density = 8 / 10 = 0.8. For 20 ≤ x < 50 the frequency density is 1.1: frequency = 1.1 × 30 = 33.

Check: Both gaps close with the same area rule. First bar area: 10 × 0.8 = 8. Second bar area: 30 × 1.1 = 33. The wider second bar is taller and holds more items, so here height and frequency agree; the counterexample below shows when they do not.

Counterexample: the tallest bin is not the greatest frequency

Take two classes from a practice table: 0 ≤ x < 5 holds 20 items, and 5 ≤ x < 25 holds 30 items. The second class clearly has the greater frequency. Now compute the heights: 20 / 5 = 4 for the first class, and 30 / 20 = 1.5 for the second. The first bar is much taller, 4 against 1.5, yet it holds fewer items.

The areas settle it: 5 × 4 = 20 and 20 × 1.5 = 30. Whoever reads the tallest bar as the largest group has confused height with area. On an unequal-width histogram the only safe way to compare class sizes is to compare areas, and the only safe way to compare densities is to compare heights.

Try one: work both directions

A practice histogram has two classes. The first, 0 ≤ w < 10, is drawn with a frequency density of 1.4. The second, 10 ≤ w < 40, has a frequency of 21. Find the frequency of the first class and the frequency density of the second.

Show the worked self-check

First class: frequency = frequency density × width = 1.4 × 10 = 14. Second class: frequency density = frequency / width = 21 / 30 = 0.7. Area check: 10 × 1.4 = 14 and 30 × 0.7 = 21. The first bar is taller, 1.4 against 0.7, yet it holds 14 items while the shorter second bar holds 21: another case where the tallest bar does not hold the most items.

Scope and limits

  • Every example uses continuous quantities and adjoining classes. Their histogram bars touch along shared boundaries and keep their numerical order. Do not insert decorative gaps as in a category bar chart. A class with zero frequency has zero height, so it can leave a genuine empty interval.
  • The quantities are invented for practice. Nothing here is collected data, and no real group of people or journeys was measured.
  • Class width is the upper limit minus the lower limit of each class, as stated in the tables.
  • This page covers reading and completing tables and bars. Cumulative frequency and estimating the median from a histogram are separate topics.

Common questions

Why does the area of a bar show the frequency, not its height?

Because the classes can have different widths. The height shows frequency density, meaning frequency per unit of the data. Multiplying height by the class width gives the area, and frequency density × class width = frequency, so the area is the count.

What units does frequency density have?

Items per one unit of the quantity on the x-axis. If the x-axis shows journey time in minutes, the frequency density is journeys per minute; if it shows age in years, it is people per year of age.

Can the tallest bar fail to hold the most items?

Yes, whenever class widths differ. A narrow class packs its count into a small width, so its density and bar height can beat a wide class that holds more items. Always compare areas for counts, heights for densities.

Do the bars of a histogram touch each other?

For adjoining classes with positive frequency, the bars meet at their shared boundary. Keep the classes in numerical order, with no decorative gaps. A zero-frequency class has zero height, so an empty interval can still occur in a histogram.

Sources and scope

Sources checked . They support the frequency density definition, the area-equals-frequency rule and the touching-bars convention. The tables, worked examples and self-check above are original EZT practice.

Practise successive percentage changesCalculate marks as a percentageRectangle area bounds