成人快手

Histograms - Higher

Grouped data can also be displayed using a histogram, which looks like a , except the area of the bar, and not the height, shows the frequency of the . The vertical axis shows the frequency density.

Histograms are typically used when the continuous data is recorded in classes of unequal width.

frequency density = \(\frac{frequency}{class~width}\)

Example

The table below shows the lengths of 40 babies at birth. Columns for class width and frequency density have then been added.

Length (cm)FrequencyClass widthFrequency density
\(30 \textless l \leq 35\)55\(5\div5=1\)
\(35 \textless l \leq 40\)105\(10 \div 5 = 2\)
\(40 \textless l \leq 42\)82\(8 \div 2 = 4\)
\(42 \textless l \leq 44\)72\(7 \div 2 = 3.5\)
\(44 \textless l \leq 46\)42\(4 \div 2 = 2\)
\(46 \textless l \leq 54\)48\(4 \div 8 = 0.5\)
Length (cm)\(30 \textless l \leq 35\)
Frequency5
Class width5
Frequency density\(5\div5=1\)
Length (cm)\(35 \textless l \leq 40\)
Frequency10
Class width5
Frequency density\(10 \div 5 = 2\)
Length (cm)\(40 \textless l \leq 42\)
Frequency8
Class width2
Frequency density\(8 \div 2 = 4\)
Length (cm)\(42 \textless l \leq 44\)
Frequency7
Class width2
Frequency density\(7 \div 2 = 3.5\)
Length (cm)\(44 \textless l \leq 46\)
Frequency4
Class width2
Frequency density\(4 \div 2 = 2\)
Length (cm)\(46 \textless l \leq 54\)
Frequency4
Class width8
Frequency density\(4 \div 8 = 0.5\)

The histogram can now be drawn. It may look similar to a bar chart, but there are no gaps between the bars.

A histogram showing the length of 40 babies at birth. 30-35 is 1, 35-40 is 2, 40-42 is 4, 42-44 is 3.5, 44-46 is 2 and 46-54 is 0.5.

Using a histogram to estimate frequencies

The area represents frequency.

frequency density = \(\frac{frequency}{class~width}\)

Example

To estimate the number of babies whose length lies in the interval \( 33 \textless{l}\leq{41}\), find the sum of the areas of the three rectangles, 33 to 35, 35 to 40 and 40 to 41:

\((frequency~density \times width)\) gives: \((1 \times 2) + (2 \times 5) + (4 \times 1) = 2 + 10 + 4 = 16.\)