Independent study guide

Unequal-Width Histograms: Read Frequency from Area

Build and read frequency-density histograms. Three worked examples and six exercises on unequal widths, relative frequency, merged classes and partial-bin estimates.

Nablio · 6 questionsPublished

1. Why height is not frequency

A histogram groups numerical observations into adjacent intervals. With unequal class widths, bar area, not bar height, must represent the number of observations. A category bar chart follows a different convention; its category widths do not encode numerical intervals.

For class count nin_i and width wi=bi−aiw_i=b_i-a_i, use frequency density di=ni/wid_i=n_i/w_i. Then widi=niw_i d_i=n_i.

For relative frequency, divide once more by the total NN: fi=ni/Nf_i=n_i/N, ri=ni/(Nwi)r_i=n_i/(Nw_i), ∑iwiri=1\sum_i w_i r_i=1.

Density has units: observations per minute for count density, or per minute for relative-frequency density. A relative-frequency density can exceed 1; its area, not its height, is the relative frequency. We use left-closed, right-open classes so boundary values are not counted twice.

2. Build a histogram

Worked example 1. A fictional sample of 70 waiting times gives these counts.

MinutesWidthCountDensity (observations/min)
[0, 5)5102
[5, 15)10303
[15, 30)15302
Adjacent bars: widths 5, 10, 15 minutes; density heights 2, 3, 2 observations per minute.
Unequal widths: count is rectangle area.

10/5=210/5=2, 30/10=330/10=3, 30/15=230/15=2. Draw adjacent rectangles with these exact interval widths and heights. The last rectangle is three times as wide as the first, but equally tall. Its area is three times as large.

5(2)+10(3)+15(2)=705(2)+10(3)+15(2)=70. The middle class is most concentrated per minute. The middle and last classes contain the same number of observations. Plotting heights 10, 30, 30 would wrongly give areas 50, 300, 450.

3. Read counts and normalize

Worked example 2. A count-density histogram has the following intervals and heights. Multiply width by height before adding counts.

IntervalHeightCountRelative density
[0, 2)6121/5
[2, 5)4122/15
[5, 9)1.561/20

N=2(6)+3(4)+4(1.5)=30N=2(6)+3(4)+4(1.5)=30. Normalize each original height by 30, not by the sum of the heights.

2(1/5)+3(2/15)+4(1/20)=12(1/5)+3(2/15)+4(1/20)=1. The last class holds 6/30=1/5=20%6/30=1/5=20\% of the observations, although its normalized height is only 1/201/20.

4. A partial class requires an assumption

Worked example 3. Counts are 20 in [0,10), 30 in [10,30), and 10 in [30,40). How many observations are below 20?

The grouped table does not locate observations inside the middle class. All 30 might be below 20, or none might be. Therefore the exact count cannot be recovered:

20≤nx<20≤5020\le n_{x<20}\le50. If we explicitly assume a uniform spread within [10,30), half that class lies below 20. The histogram-area estimate is

20+3020−1030−10=3520+30\frac{20-10}{30-10}=35, 35/60=7/12≈58.3%35/60=7/12\approx58.3\%. This is an estimate under an assumption, not a fact about the raw sample. Do not silently split a class and claim exact new counts.

5. Graduated practice

1. Construct heights

Classes [0,4), [4,10), [10,20) have counts 8, 18, 10. Find count densities and check the total.

Hint

First subtract consecutive endpoints.

Explained solution

w=(4,6,10)w=(4,6,10), d=(2,3,1)d=(2,3,1). 4(2)+6(3)+10(1)=364(2)+6(3)+10(1)=36.

2. Recover counts

Count-density heights are 3, 2, 0.5 on [0,2), [2,7), [7,15). Find the counts and total.

Hint

Count equals rectangle area.

Explained solution

n=(2⋅3,5⋅2,8⋅0.5)=(6,10,4)n=(2\cdot3,5\cdot2,8\cdot0.5)=(6,10,4), N=20N=20.

3. Normalize correctly

Using exercise 1, find the relative-density heights and the share in [4,10).

Hint

Divide each count density by the total count, 36.

Explained solution

r=(1/18,1/12,1/36)r=(1/18,1/12,1/36). 6(1/12)=1/2=50%6(1/12)=1/2=50\%. The middle height is not itself the share.

4. Merge adjacent classes

Merge [0,4) and [4,10) from exercise 1. What is the new count-density height?

Hint

Add counts and widths, not heights.

Explained solution

(8+18)/(4+6)=26/10=2.6(8+18)/(4+6)=26/10=2.6. The unweighted average of the old heights, 2.5, is wrong because the widths differ.

5. Height versus count

Class A has width 2 and count 12; class B has width 8 and count 24. Which is taller? Which contains more observations?

Hint

Compare densities separately from counts.

Explained solution

dA=12/2=6d_A=12/2=6, dB=24/8=3d_B=24/8=3. A is taller; B contains twice as many observations.

6. Bound, then estimate

There are 12 observations in [0,6) and 18 in [6,15). Bound the count below 9, then estimate it assuming uniform spread within each class.

Hint

Only part of the second class is below the threshold.

Explained solution

12≤nx<9≤3012\le n_{x<9}\le30. 12+18(9−6)/(15−6)=1812+18(9-6)/(15-6)=18. The estimate is 60% of the sample. The bound is exact from the grouping; the estimate needs the stated assumption.

6. Checks and next steps

Check the horizontal units, class boundaries, vertical-axis label and total area before interpreting a histogram. Count-density areas sum to N; relative-density areas sum to 1. Never compare heights from two histograms without checking both their units and normalization.

These original examples teach transferable descriptive-statistics skills; they are not a claim about a particular course syllabus or exam. The normalization convention is documented in the NIST Engineering Statistics Handbook.

Useful for

Work on the step you’re missing.

Tell us the subject and your preferred time. Nablio confirms the details by text or email.

Request a lesson