L1 - Data displays and histograms

L1 - Data displays and histograms

Read a display by asking what its positions, heights and areas represent. You will interpret histograms, boxplots and cumulative frequency graphs, compare distributions and turn recorded frequencies into proportions.

Choosing a display for one variable

Can the tallest histogram bar contain fewer cars than a shorter bar? It can: a narrow interval may have a high concentration of cars but a smaller total count. Choosing the display and reading its scale come before comparing its shapes.

You already know

A frequency counts observations. A proportion is a count divided by the total count. A rectangle's area is width multiplied by height.

A car's make is a category; its mass is a numerical measurement. The AQA workbook's fuel-type numbers are category codes, so the difference between two codes is not a measured difference in fuel. ReferenceNumber is an identifier, not a numerical characteristic to average.

Single-variable data

Single-variable data record one characteristic for each observation. A bar chart uses separate bars for categories; a histogram groups a numerical variable into intervals whose widths have meaning.

Match a display to the question you want to answer. This is a choice of information, not a rule that one display is always best.

QuestionUseful displayInformation it exposes
Which car make occurs most often?Bar chartCounts for separate categories
Where are masses concentrated?HistogramShape, intervals and tails
Which service has shorter, more consistent waits?Boxplots on one scaleMedian and quartile spread
How many journeys take at most a stated time?Cumulative frequency graphCount up to a threshold

The current AQA car workbook has 38273827 selected records: BMW 551551, FORD 10891089, TOYOTA 275275, VAUXHALL 10691069 and VOLKSWAGEN 843843. These counts add to the workbook total. They describe its restricted selection of makes, registration weeks and keeper regions, rather than national market shares. The workbook is a 20172017 Department for Transport database extract, containing selected cars from 20022002 and 20162016.

A boxplot can hide two clusters with similar quartiles. A histogram shows more shape, but changing its class boundaries can change that appearance. A long tail towards high values indicates positive skew; a long tail towards low values indicates negative skew. Look towards the tail rather than the tallest bar. These shape descriptions are not in the formula booklet: learn them. Read labels, units, class boundaries, key and total count before interpreting either. An unfamiliar display is manageable once you identify what one point or symbol represents.

Key idea

Choose a display using the variable type and the question; then identify the group and scale that its values actually describe.

A categorical code can look numerical while still being only a label. Use that distinction here.

Histogram density and area

A histogram spreads each class frequency over its interval, so height measures concentration and area measures count.

These illustrative waiting-time classes contain a total of 8080 waits. The last column gives the heights of their histogram bars.

Waiting time tt in minutesFrequencyWidthFrequency density
0≤t<50\le t<510105522
5≤t<105\le t<1020205544
10≤t<2010\le t<203030101033
20≤t<4020\le t<402020202011

The tallest bar contains 2020 waits, while the lower but wider next bar contains 3030.

Frequency density

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

Use the actual measurement boundaries. For 10≤t<2010\le t<20, the width is 20−10=1020-10=10.
Not in the formula booklet: learn it.

For measurements rounded to whole units, a printed class such as 1515–2424 may instead have boundaries 14.514.5 and 24.524.5. Use the stated recording convention. With true density on the axis, rectangle area equals frequency; with an axis merely proportional to density, first determine its common scale factor from a known class. For example, if an area of 66 grid squares represents 1818 observations, each square represents 18/6=318/6=3. An area of 1010 such squares then represents 3030 observations. These are area units, rather than vertical-axis readings.

Worked example 1: read a whole class

Question. Using the waiting-time class data above, find the frequency in 10≤t<2010\le t<20 and the proportion of all 8080 waits in that class.

Plan. Multiply width by height, then divide the class count by the total.

f=(20−10)×3=30area is frequencyproportion=3080=38class count over total\begin{aligned} f&=(20-10)\times3=30 && \text{area is frequency}\\ \text{proportion}&=\frac{30}{80}=\frac38 && \text{class count over total} \end{aligned}

Why this step? Height 33 alone describes waits per minute of interval, not the number of waits.

Answer. There are 3030 waits, giving proportion 3/83/8.

Check. The four areas sum to 10+20+30+20=8010+20+30+20=80.

Now change only the requested interval: its upper boundary lies inside the same class. The raw observations' positions are unknown, so the resulting count is an estimate.

Worked example 2: use part of a bar

Question. Use those class data to estimate how many of the 8080 waits satisfy 10≤t<1610\le t<16, and their proportion. State the assumption.

Plan. Use the area over the shorter interval, assuming a uniform spread within its class.

f^=(16−10)×3=18partial rectangle areaestimated proportion=1880=0.225divide by all waits\begin{aligned} \widehat f&=(16-10)\times3=18 && \text{partial rectangle area}\\ \text{estimated proportion}&=\frac{18}{80}=0.225 && \text{divide by all waits} \end{aligned}

Why this step? The constant bar height allocates the same estimated count to each minute of the class; the original grouped data do not prove that allocation.

Answer. An estimated 1818 waits, proportion 0.2250.225, assuming observations are uniformly distributed within [10,20)[10,20).

Check. The interval covers 6/106/10 of the class width, and (6/10)×30=18(6/10)\times30=18.

The authentic AQA mass histogram below excludes the 9292 impossible zero masses, leaving 37353735 positive masses. Mass is recorded in kg\mathrm{kg}, including 75 kg75\,\mathrm{kg} for an average driver. Its class frequencies are 92,1020,1768,770,8592,1020,1768,770,85, with the boundaries shown.

Histogram of 3735 positive AQA car masses, with unequal class widths and frequency density in cars per kg

The 12001200–1600 kg1600\,\mathrm{kg} bar has height 1768/400=4.421768/400=4.42 cars per kg\mathrm{kg}. The 10001000–1200 kg1200\,\mathrm{kg} bar is taller, at 1020/200=5.11020/200=5.1, but contains fewer cars. That answers the opening question with real data.

Source: AQA car LDS, 20172017 DfT Stock Vehicle Database; public sector information under Open Government Licence v3.0. The exclusion applies to this mass analysis.

Watch out

Wrong: “The bar of height 5.15.1 contains more cars than the bar of height 4.424.42.” Unequal widths make heights incomparable as counts. Right: compare areas 200×5.1=1020200\times5.1=1020 and 400×4.42=1768400\times4.42=1768.

For the next partial-bar estimate, identify both the interval width and the total number of observations from the question itself.

Continue this lesson.

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

Create free account