LightMySky

Histograms and frequency density

Calculate frequency density and class counts from supplied numerical data for unequal-width histogram classes. Estimate partial-class counts using an even-spread assumption.

Start learning thisNo account needed. Progress saves in this browser.

What a learner can do afterwards

  • Calculate class widths, frequency densities and class frequencies, including missing counts and merged-class densities
  • Estimate the frequency in part of a class by using area and assuming an even spread
  • Interpret inclusive and exclusive class boundaries, explain area distortion from frequency heights with unequal widths, and explain why an empty class alone does not prove impossibility

1 · Read

You used class boundaries on a cumulative frequency curve. Wren Lane's next 10k has 80 finishers: 8 in 30 ≤ t < 40, 12 in 40 ≤ t < 45, 15 in 45 ≤ t < 50, 25 in 50 ≤ t < 60 and 20 in 60 ≤ t < 80. Here t is time in minutes. Each class includes its lower boundary and excludes its upper boundary. A time of exactly 45 belongs to 45 ≤ t < 50.

30-40840-451245-501550-602560-8020
This chart compares class counts correctly. Its equal bar widths do not show the different time intervals.

The 60 to 80 class has 20 runners over 20 minutes: an average of 1 per minute. The 40 to 45 class has 12 over 5 minutes: 2.4 per minute. It has fewer runners but a higher average rate. A histogram draws numerical widths, so these bars must be 20 and 5 minutes wide. If height were frequency, area would be frequency x width. Wider classes would receive more area per runner. Density heights make areas equal counts.

Class width = upper boundary - lower boundary. For a density histogram, height = frequency / width, the average frequency per unit. Area = density x width = frequency. If density is positive, width = frequency / density, and a wider class at that density has more values. Equal-width frequency heights preserve the shape. Density equals frequency numerically when width is 1; an empty class has both zero at any positive width.

To draw the histogram, label the horizontal axis time in minutes and the vertical axis frequency density. Draw each rectangle from its lower to its upper boundary. The five widths are 10, 5, 5, 10 and 20. Their heights are 0.8, 2.4, 3, 2.5 and 1. For 45 to 50, width 5 x height 3 gives frequency 15. The boundary line below shows the numerical spacing; it is not the histogram.

Time (minutes). Ticks: 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80. Marked values: 30, 40, 45, 50, 60, 80. 3035404550556065707580Time (minutes)
Try it together

For part of a class, estimate with density x the requested width. From 50 to 55: 2.5 x 5 = 12.5, or about 13 runners. From 42 to 48, split at 45: 2.4 x 3 + 3 x 3 = 16.2, or about 16. Split at every boundary crossed and add the contributions. A complete class contributes its known frequency. Partial classes require an even-spread assumption. Keep decimals during calculation and round at the end if requested.

4041424344454647484950width 3width 3

A categorical count chart uses heights for counts; its widths do not measure category sizes. A density histogram uses numerical widths and areas for counts. Adjacent nonempty classes meet at their shared boundary. An empty class has density zero and may leave a blank interval. Emptiness alone proves neither possibility nor impossibility. Frequency = density x width. Classes count each value once, so areas sum to the total. Find a missing count by subtracting known frequencies from that total.

To merge adjacent classes, add their frequencies and widths separately. Divide the combined frequency by the combined width. Widths 4 and 6 with densities 2 and 3 give frequencies 8 and 18. The merged density is (8 + 18) / (4 + 6) = 2.6. Adding densities or taking their unweighted mean does not generally work. The merged bar preserves total frequency but loses the density change at the old boundary.

2 x 4 = 83 x 6 = 1826 / 10 = 2.6

Splitting a class into equal-width pieces under the even-spread assumption keeps the estimated density unchanged. Each piece receives an equal share of the class frequency. The grouped count alone does not tell you the actual count in each piece, or where individual observations lie.

For a density histogram, frequency = density x width = bar area. Density = frequency / width. Estimate partial classes using an even spread, splitting at boundaries and adding the contributions.

Lesson and practice text written for this dataset. Histogram conventions, average density, class areas and grouped-data estimates are explained with original examples.

The four readings and nine extra questions were written for this dataset. Video references identify Khan Academy resources; their content licenses have not been verified.

More to read

Density describes a class average

A class contains 27 measurements across a width of 9. Its frequency density is 27 / 9 = 3. A density histogram uses this number for the rectangle's height. Multiplying height by width returns the count: 3 x 9 = 27.

The grouped table does not reveal the count in each smaller interval. Some one-unit intervals might contain more than three measurements and others fewer. Density 3 describes the class average.

Check the vertical axis. Equal-width histograms can use frequency heights. Their shape is proportional to the density version. Width 1 guarantees equal numerical values for density and frequency. An empty class also has density 0 and frequency 0 at any positive width.

Keep separate contributions when estimating

To estimate within part of a class, use that class's density and the width of the requested part. This treats the observations as evenly spread inside the class.

Density 1.8 across a requested width of 4 gives an estimated frequency of 7.2. A decimal estimate is allowed even when the observations are people. If a whole-person answer is requested, round after finishing the calculation.

An interval crossing class boundaries needs several contributions. Complete classes contribute their known counts. Partial classes contribute estimates. Add these counts, not the density heights.

Read the boundary signs

For specified class boundaries, width is upper boundary minus lower boundary. The class 7.25 ≤ x < 11.75 has width 11.75 - 7.25 = 4.5.

This class includes 7.25 and excludes 11.75. If the next class begins at 11.75, an observation at that boundary belongs to the next class. Using the signs prevents double counting.

An inclusive label such as 20 to 29 may describe integer observations rather than the boundaries used to draw the bar. Read the question's stated boundaries or convention before calculating a width.

Check equal counts by their areas

Two classes each contain 18 values. Their widths are 3 and 9. If both are drawn at height 18 on a numerical scale, the areas become 54 and 162. Equal counts have been given unequal areas.

Density heights are 18 / 3 = 6 and 18 / 9 = 2. Now both areas are 18: 3 x 6 = 18 and 9 x 2 = 18.

A categorical chart can compare the two counts by height without using numerical widths. The error is combining frequency heights with numerical histogram widths while expecting areas to represent counts.

Explore more

2 · Watch

3 · Play

You used class boundaries on a cumulative frequency curve. The next Wren Lane 10k has 80 finishers in the lesson's five bands. Sam says 20 runners in 60 to 80 minutes means a greater average rate than 12 in 40 to 45.

Which calculation checks Sam's claim?

30-40840-451245-501550-602560-8020
  • Compare 20 with 12; the greater count must give the greater average rate.

    Those counts cover different time widths. Divide each count by its own number of minutes.

  • Compare 20 / 20 = 1 with 12 / 5 = 2.4. (The answer)

    The 40 to 45 band has the higher average frequency per minute, despite having fewer runners altogether.

  • Compare widths 20 and 5; the wider class must have the greater average rate.

    Width alone does not give an average rate. You need frequency divided by width.

The categorical chart compares totals correctly. A density histogram also gives its bar widths numerical meaning.

Mia draws the 40 to 45 histogram bar 5 minutes wide. It must represent 12 runners.

What height makes its area equal 12?

  • 12 / 5 = 2.4 (The answer)

    Width 5 x height 2.4 gives area 12. This height is frequency density.

  • 12 x 5 = 60

    That height would give area 5 x 60 = 300. Divide the frequency by width to obtain height.

  • 5 / 12, about 0.42

    That gives minutes per runner. The density axis needs runners per minute, so use 12 / 5.

The five density heights are 0.8, 2.4, 3, 2.5 and 1.

Check the next band, 45 to 50. Its width is 5 and its density height is 3.

Which calculation recovers its class count?

  • 3 / 5 = 0.6

    Division would not give the rectangle's area. Multiply density by width.

  • 3 + 5 = 8

    Adding height and width does not give area. Use their product.

  • 3 x 5 = 15 (The answer)

    The area is 15, matching the 15 runners recorded in that band.

Each complete bar recovers its own known count. Individual times within the band remain unknown.

Mia checks all five bars. Their areas equal class frequencies, and the classes count each finisher once.

What must the sum of the five areas be?

  • 5, the number of classes

    Five counts classes. Their areas represent runners, so add their frequencies.

  • 80, the number of finishers (The answer)

    The areas represent 8 + 12 + 15 + 25 + 20 = 80 runners.

  • 9.7, the sum of the density heights

    Those heights are average rates. Multiply each by its own width before adding the resulting counts.

Using density heights preserves all 80 runners in the total area.

A reporter asks about 42 to 48 minutes. Split at 45: the first piece has density 2.4 and the second has density 3.

Assuming an even spread in each class, what is the estimate to the nearest whole runner?

40414243444546474849503 minutes3 minutes
  • 16, from 2.4 x 3 + 3 x 3 = 16.2 (The answer)

    The contributions are 7.2 and 9. Add first, then round 16.2 to 16.

  • 5, from rounding the density sum 2.4 + 3 = 5.4

    A sum of density heights is not a count. Multiply each density by its own requested width first.

  • 18, from using density 3 across all six minutes

    The first three minutes belong to the density-2.4 class. Use that density for its own contribution.

About 16 runners. The grouped data does not reveal their actual positions within each class.

The density heights recovered the class counts by area. Splitting the reporter's interval at 45 gave an estimated count.

  • Frequency density is average frequency per unit of class width.
  • With density on the vertical axis, frequency = density x width = bar area.
  • All class areas add to the total frequency.
  • For partial classes, assume an even spread, split at boundaries and add the contributions.

Take it off screen

Print a worksheetA4 with an answer key page for grown-ups. No screen, no internet.

Where it sits

Learn first

This opens up

Nothing builds on it yet.

Where this leads

Jobs that lean on this skill. Follow one to see everything it is built on.

Then practise

33 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.

Start learning this