2.02StatisticsCore

Representing Data

A good diagram shows the shape of a data set in a way no single statistic can: whether it is symmetric or skewed, where it clusters, whether two variables move together. A-Level focuses on the diagrams that carry real information — histograms with unequal class widths, cumulative frequency graphs, box plots and scatter diagrams — and on reading them critically, starting with how the data were collected.

45 min Data Analysis

The big picture

Every statistical conclusion is only as good as the data behind it, which is why this topic starts with sampling: a biased sample makes even perfect calculations meaningless. From there, each diagram answers a particular question. A histogram shows a distribution’s shape, with area — not height — representing frequency. A cumulative frequency graph gives medians, quartiles and percentiles for large grouped data. Box plots make comparisons between groups fast and highlight outliers. Scatter diagrams show relationships between two variables, and the language of correlation — with its crucial caveat that correlation does not imply causation — carries straight into the regression and hypothesis tests later in the course. OCR regularly sets these questions in the context of its large data set, so interpretation in context is always part of the answer.

What you'll be able to do

  • Describe populations, samples and common sampling methods, with their advantages and disadvantages
  • Draw and interpret histograms using frequency density
  • Use cumulative frequency graphs and box plots to find and compare quartiles and outliers
  • Interpret scatter diagrams, correlation and regression lines, including the limits of interpretation
1

Populations and samples

A population\textbf{population} is the whole group of interest; a census\textbf{census} measures all of it, while a sample\textbf{sample} measures part of it. Samples are cheaper and quicker, but may not represent the population.

Simple random sampling\textbf{Simple random sampling} gives every member an equal chance of selection. Systematic\textbf{Systematic} sampling takes every kkth item from a list. Stratified\textbf{Stratified} sampling samples from each subgroup in proportion to its size. Quota\textbf{Quota} sampling fills targets for each group without random selection. Opportunity\textbf{Opportunity} sampling uses whoever is available.

Random methods reduce bias but need a sampling frame (a full list). Quota and opportunity sampling are convenient but prone to bias.

Example 1A school has 360 Year 12 and 240 Year 13 students. A stratified sample of 50 is needed. How many from each year?
1Total 600600.
2Year 12: 360600×50=30\tfrac{360}{600} \times 50 = 30. Year 13: 240600×50=20\tfrac{240}{600} \times 50 = 20.
Answer30 from Year 12, 20 from Year 13

Tip — When criticising a sampling method, name the specific source of bias in context — "only people at the station at 8am are sampled, so non-commuters are excluded".

2

Histograms

In a histogram of grouped continuous data, bars touch and area is proportional to frequency\textbf{area is proportional to frequency}. With unequal class widths, heights must be frequency density\textbf{frequency density}, not frequency.

Frequency density =frequencyclass width= \dfrac{\text{frequency}}{\text{class width}}. To read a frequency back, multiply density by width — or, if the scale is not labelled, work out how many units of frequency one unit of area represents.

Histograms reveal shape: symmetric, positively skewed (a long tail to the right) or negatively skewed (a long tail to the left).

frequency density=frequencyclass width\text{frequency density} = \dfrac{\text{frequency}}{\text{class width}}
Heights of histogram bars.
Example 1Classes 0≤t<50 \le t < 5, 5≤t<105 \le t < 10, 10≤t<2010 \le t < 20, 20≤t<4020 \le t < 40 have frequencies 15,25,30,2015, 25, 30, 20. Find the frequency densities, and estimate how many values lie between 15 and 25.
1Densities: 155=3\tfrac{15}{5} = 3, 255=5\tfrac{25}{5} = 5, 3010=3\tfrac{30}{10} = 3, 2020=1\tfrac{20}{20} = 1.
2From 15 to 20: width 5 at density 3, giving 15. From 20 to 25: width 5 at density 1, giving 5.
AnswerDensities 3,5,3,13, 5, 3, 1; about 2020 values between 15 and 25.
3

Cumulative frequency and box plots

A cumulative frequency\textbf{cumulative frequency} graph plots running totals against the upper class boundaries\textbf{upper class boundaries}, joined by a smooth curve or straight lines. Read the median at n2\tfrac{n}{2}, quartiles at n4\tfrac{n}{4} and 3n4\tfrac{3n}{4}, and any percentile similarly.

A box plot\textbf{box plot} shows the minimum, Q1Q_{1}, median, Q3Q_{3} and maximum on a scale. Outliers are marked separately with crosses, and the whiskers then extend to the most extreme non-outlier values.

Box plots are ideal for comparing groups. The position of the median within the box, and the lengths of the whiskers, indicate skew.

Example 1Two box plots of commute times: town A has median 24 min and IQR 10 min; town B has median 31 min and IQR 22 min. Compare them.
1Location: town B’s median is 7 minutes higher, so its commutes are longer on average.
2Spread: town B’s IQR is more than double, so its commute times are much more variable.
AnswerCommutes in B are typically longer and far less consistent than in A.
Why this works

When the median sits closer to Q1Q_{1} than Q3Q_{3}, the upper half of the middle 50% is more spread out — the data are positively skewed. Box plots let you see skew at a glance.

4

Scatter diagrams and correlation

A scatter diagram\textbf{scatter diagram} plots paired data (x,y)(x, y) to show whether two variables are related. Positive correlation\textbf{Positive correlation}: yy tends to increase with xx. Negative correlation\textbf{Negative correlation}: yy tends to decrease. No clear pattern: no correlation.

The explanatory\textbf{explanatory} (independent) variable goes on the xx-axis and the response\textbf{response} (dependent) variable on the yy-axis.

Correlation does not imply causation\textbf{Correlation does not imply causation}: ice-cream sales and drownings are positively correlated because both rise in hot weather.

A regression line y=a+bxy = a + bx can be used to predict yy from xx within the range of the data (interpolation\textbf{interpolation}). Predicting outside that range (extrapolation\textbf{extrapolation}) is unreliable.

Example 1For data on engine size xx (litres, from 1.0 to 3.0) and fuel economy yy (mpg), the regression line is y=68−11xy = 68 - 11x. Interpret the gradient and comment on predicting yy for x=5x = 5.
1Gradient −11-11: each extra litre of engine size is associated with about 11 fewer miles per gallon.
2x=5x = 5 is well outside the data range of 1.0 to 3.0 litres.
AnswerFuel economy falls by about 11 mpg per litre; a prediction at 5 litres would be extrapolation and unreliable (it gives 13 mpg, with no evidence the linear trend continues).

Tip — Interpret a regression gradient as "for each one-unit increase in xx, yy changes by bb on average", with the actual units.

Think like an examiner

  • Use frequency density for histograms with unequal widths, and use area to find frequencies.
  • Plot cumulative frequency at upper class boundaries.
  • Compare distributions with one comment on location and one on spread, in context.
  • Avoid claiming causation from correlation, and flag extrapolation.

Common misconceptions

Using frequency as bar height with unequal class widths.
Heights must be frequency density.
Plotting cumulative frequency at class midpoints.
Plot at upper class boundaries.
Saying one variable causes the other because they are correlated.
Correlation shows association only; a third factor may be responsible.
Using a regression line far outside the data range.
Extrapolation is unreliable; say so.

Representing data

f.d.=frequencyclass width\text{f.d.} = \tfrac{\text{frequency}}{\text{class width}}
Frequency density.
Q1:n4, Q2:n2, Q3:3n4Q_{1}: \tfrac{n}{4},\ Q_{2}: \tfrac{n}{2},\ Q_{3}: \tfrac{3n}{4}
Positions on a cumulative frequency graph.
nstratum=stratum sizepopulation×nn_{\text{stratum}} = \tfrac{\text{stratum size}}{\text{population}} \times n
Stratified sample size.

Stretch yourself

In a histogram of reaction times, the bar for 0.20≤t<0.250.20 \le t < 0.25 seconds is 4 cm wide and 6 cm tall and represents 36 people. The bar for 0.25≤t<0.400.25 \le t < 0.40 seconds is 3.2 cm tall. How many people does it represent, and what is its frequency density?

Hint — Find how many people 1 cm² represents from the first bar. The horizontal scale is 4 cm per 0.05 s.

Reveal solution
SolutionFirst bar area =4×6=24= 4 \times 6 = 24 cm² for 36 people, so 1 cm² represents 1.51.5 people. The horizontal scale is 4 cm per 0.05 s, i.e. 80 cm per second, so the second class (width 0.15 s) is 0.15×80=120.15 \times 80 = 12 cm wide. Its area is 12×3.2=38.412 \times 3.2 = 38.4 cm², representing 38.4×1.5=57.638.4 \times 1.5 = 57.6, so about 58 people. (A non-integer result indicates rounding in the drawing; the calculation method is what matters.) Frequency density =57.60.15=384= \dfrac{57.6}{0.15} = 384 people per second. Check the first bar: density 360.05=720\tfrac{36}{0.05} = 720, and 3.26×720=384\tfrac{3.2}{6} \times 720 = 384 ✓. ■\blacksquare

Questions students ask

Why use frequency density?
With unequal widths, a wide class would look bigger just because it is wide. Using density makes area proportional to frequency, so the picture is fair.
Which sampling method is best?
It depends on context. Stratified random sampling is usually most representative when subgroups differ, but it needs a full sampling frame.
What makes a value an outlier on a box plot?
Usually being more than 1.5×1.5 \times IQR beyond a quartile, unless the question defines it differently.
What does a strong correlation tell me?
That the points lie close to a straight line. It does not tell you that one variable causes changes in the other.

Key takeaways

  • Samples should be chosen to minimise bias; know the main sampling methods and their drawbacks.
  • Histograms use frequency density; area represents frequency.
  • Cumulative frequency graphs give quartiles and percentiles; box plots summarise and compare.
  • Scatter diagrams show correlation, which is not causation.
  • Regression lines are for interpolation, not extrapolation.

How this fits the course

Test yourself

Answer a few questions, then review anything you missed.

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 5 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.