HS4 - Histograms and frequency density

HS4 - Histograms and frequency density

Can a shorter histogram bar contain more observations than a taller one? HS4 makes frequency proportional to area, so class width matters as much as height. Use that relationship to construct fair diagrams, recover frequencies and estimate portions of groups.

Area represents frequency

A histogram represents grouped numerical data, including continuous measurements. Each bar spans its actual class interval along a numerical scale; adjacent intervals have touching bars. It is not a categorical bar chart with arbitrary equal widths and gaps.

Frequency density

In a histogram, bar area represents frequency. Use

frequency density=frequencyclass width,frequency=class width×frequency density.\text{frequency density}=\frac{\text{frequency}}{\text{class width}}, \qquad \text{frequency}=\text{class width}\times\text{frequency density}.

Class width is upper boundary minus lower boundary. The vertical height is frequency per unit of the measured variable, rather than frequency itself.

Equal-width classes make heights proportional to frequencies, but the area rule remains the reason. If waiting time is measured in minutes, density has units people per minute of class width; this describes how observations are spread across waiting times, not the rate at which people arrive.

Worked example 1: construct equal-width bars

Question. Draw a histogram for these waiting times, using frequency density on the vertical axis.

Waiting time tt (minutes)Frequency
0<t≤50<t\le51010
5<t≤105<t\le102020
10<t≤1510<t\le151515

Plan. Calculate each width and density, then draw touching rectangles over the actual intervals.

All widths are five minutes, so the bar heights are

10/5=2,20/5=4,15/5=3.10/5=2,\qquad20/5=4,\qquad15/5=3.

Use a uniform horizontal time scale and a vertical density scale starting at zero. The left equal-width diagram shows the resulting bars.

Answer. Heights 2,4,32,4,3 people per minute over intervals zero–five, five–ten and ten–fifteen minutes.

Check. The areas are 5(2)=105(2)=10, 5(4)=205(4)=20, 5(3)=155(3)=15, matching every frequency and total 4545.

Reverse the same area relationship when bar heights are already known.

Worked example 2: read frequencies from equal-width bars

Question. A histogram of seedling growth has classes 0<L≤40<L\le4, 4<L≤84<L\le8, 8<L≤128<L\le12 centimetres. Their density heights are 3,1.5,2.53,1.5,2.5 plants per centimetre. Find each frequency and the total.

Plan. Multiply every height by its four-centimetre width.

4(3)=12,4(1.5)=6,4(2.5)=10.4(3)=12,\qquad4(1.5)=6,\qquad4(2.5)=10.

Answer. Frequencies 12,6,1012,6,10, total 2828 plants.

Check. Dividing those counts by four recovers the three displayed heights. A density such as 1.51.5 need not be a whole number, even though the complete class contains a whole number of plants.

The two operations undo each other: divide by width to draw the height, multiply by width to recover the count.

[DIAGRAM: asset_name: Equal-width histogram areas; asset_slug: equal-width-histograms; caption: Density is the height; multiplying by class width recovers each frequency.; description: Two exact histograms show the waiting-time classes of width five with heights 2,4,3 and growth classes of width four with heights 3,1.5,2.5. Every bar's area is labelled with its frequency.]
Density is the height

Watch out

Do not swap the ratio: density is frequency divided by width, not width divided by frequency. Check by multiplying the proposed height back by the width.

Read a fresh histogram from self-contained bar data.

Unequal classes

A wider class covers more of the measurement scale. Using frequency directly as height would give it extra area simply because it is wider, misrepresenting the data.

Unequal class intervals

For unequal classes, calculate density separately for each actual class width. Horizontal widths must use one consistent numerical scale. Bar area, rather than height, compares class frequencies. A taller bar shows a greater concentration per unit, which need not mean a larger total count.

Calculate the widths before choosing any heights, so each bar contributes exactly its class frequency as area.

Worked example 3: continuous data with unequal widths

Question. Construct a histogram for these journey times. Which class contains most people?

Journey time tt (minutes)FrequencyWidthDensity
0<t≤100<t\le102020101022
10<t≤1510<t\le1525255555
15<t≤3015<t\le303030151522
30<t≤5030<t\le502020202011

Plan. Divide frequency by the correct width, then draw each rectangle from its own lower to upper boundary.

For example, the narrow ten–fifteen-minute class has height 25/5=525/5=5; the wider fifteen–thirty-minute class has height 30/15=230/15=2. Use heights 2,5,2,12,5,2,1, with the widths shown by the horizontal scale.

Answer. The 15<t≤3015<t\le30 class contains most people: thirty, despite having a shorter bar than the ten–fifteen-minute class.

Check. Areas 10(2),5(5),15(2),20(1)10(2),5(5),15(2),20(1) give 20,25,30,2020,25,30,20, total 9595. The tallest bar has area twenty-five, not the largest area.

Grouped discrete data can also be displayed with histograms. When adjacent groups use whole-number limits, first identify continuous plotting boundaries halfway between the possible integer values.

Worked example 4: integer marks and class boundaries

Question. Marks are whole numbers. Draw a histogram for classes ten–nineteen, twenty–twenty-nine and thirty–forty-nine, with frequencies 20,30,4020,30,40.

Plan. Replace the integer class limits by adjoining halfway boundaries, then calculate widths and densities.

Integer marksPlotting boundariesWidthDensity (students per mark)
1010–19199.59.5–19.519.5101020/10=220/10=2
2020–292919.519.5–29.529.5101030/10=330/10=3
3030–494929.529.5–49.549.5202040/20=240/20=2

The halfway numbers are plotting boundaries, not possible recorded marks. The final bar is twice as wide as the first two.

Answer. Touching bars with heights 2,3,22,3,2 over the stated boundaries.

Check. The first group contains ten possible integers, so its width is ten, not 19−10=919-10=9. The last bar's area is 20(2)=4020(2)=40, correctly double the first bar's area despite their equal heights.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account