Skip to content

Statistics foundations: averages, spread and data diagrams

Statistics turns data into evidence. A calculation alone is not a conclusion: you must know what was measured, how the data were collected, what a diagram represents and what uncertainty remains.

This lesson secures the Higher-tier GCSE statistics needed at A-level. The central habits are to match the method to the data, distinguish exact values from estimates, and compare distributions using both their centre and their spread.

You should be able to:

  • calculate with fractions, decimals and percentages;
  • substitute into a formula;
  • find the midpoint of an interval;
  • read scales and coordinates;
  • calculate areas of rectangles.

Review exact arithmetic, ratio and proportion or coordinate geometry if needed.

The population is the complete set of people or objects of interest. A sample is a subset from which data are collected. A variable is the characteristic recorded.

TypeMeaningExamples
qualitativelabels or categorieseye colour, transport used
quantitativenumerical valuesheight, number of siblings
discretetakes separate, countable valuesgoals scored, shoe size
continuouscan take any value in an intervaltime, mass, temperature

A continuous measurement is recorded to finite accuracy. A mass written as 6262 kg to the nearest kilogram represents

61.5m<62.5.61.5\leq m<62.5.

The upper endpoint is excluded because 62.562.5 kg would round to 6363 kg.

For each variable, identify its type.

  1. A student’s blood group is qualitative.
  2. The number of emails received in a day is quantitative and discrete.
  3. The time taken to run 100100 m is quantitative and continuous.

Decimals do not decide whether data are continuous. Shoe sizes such as 7.57.5 belong to a fixed set, so shoe size is discrete.

A census collects data from every member of the population. It avoids sampling variation, but may be expensive, slow or impossible. A well-designed sample is usually faster and may permit more careful measurement.

A sample should represent the population relevant to the question. Common methods include:

  • simple random sampling, where every population member has an equal chance of selection;
  • systematic sampling, where every kkth member is selected after a random starting point;
  • stratified sampling, where each relevant group is represented in population proportion.

For a stratum of size gg in a population of size NN, a sample of total size nn should contain

gNn\frac{g}{N}n

members from that stratum, rounded sensibly while keeping the final sample size equal to nn.

A college has 480480 students, of whom 168168 are in Year 12. A stratified sample of 6060 students is required.

The Year 12 allocation is

168480×60=21.\frac{168}{480}\times60=21.

Therefore select 21\boxed{21} Year 12 students, randomly within that group.

A large sample can still be biased. Asking only members of a school athletics club about weekly exercise under-represents less active students. An online voluntary poll may attract people with unusually strong opinions.

Questions should be neutral, precise and use non-overlapping response intervals. Compare:

Do you agree that the excellent new timetable should continue?

with:

Should the new timetable continue? Yes / No / Unsure

Intervals such as 0 to 50\text{ to }5 and 5 to 105\text{ to }10 overlap at 55. Use boundaries such as 0t<50\leq t<5 and 5t<105\leq t<10.

  1. State the population when 5050 bulbs from a day’s factory output are tested for lifetime.
  2. A school has 360360 pupils in Key Stage 3 and 240240 in Key Stage 4. Find the Key Stage 4 allocation in a stratified sample of 7575.
  3. Explain one problem with asking shoppers leaving a sports shop whether the town needs more sports facilities.
Answers
  1. All bulbs produced by the factory that day.
  2. 240600×75=30\frac{240}{600}\times75=30 pupils.
  3. The location creates selection bias because sports-shop customers are likely to be more interested in sport than the town population. Other precise, relevant explanations are possible.

For values x1,x2,,xnx_1,x_2,\ldots,x_n, the mean is

xˉ=xn.\bar{x}=\frac{\sum x}{n}.

In a frequency table, a value xx occurring ff times contributes fxfx to the total:

xˉ=fxf.\boxed{\bar{x}=\frac{\sum fx}{\sum f}}.

The median is the middle value after ordering the data. The mode is the most frequent value or category. The range is

range=maximumminimum.\text{range}=\text{maximum}-\text{minimum}.

Worked example 3: an ungrouped frequency table

Section titled “Worked example 3: an ungrouped frequency table”

The numbers of books read by 2020 students are summarised below.

Books, xx0011223344
Frequency, ff2255774422
fxfx00551414121288

Hence

xˉ=0+5+14+12+820=1.95.\bar{x}=\frac{0+5+14+12+8}{20}=\boxed{1.95}.

For 2020 values, the median lies halfway between the 1010th and 1111th ordered values. Cumulative frequencies are 2,7,14,18,202,7,14,18,20, so both positions contain 22. Thus the median is 22. The greatest frequency is 77, so the mode is also 22.

  • The mean uses every value, but is affected by extreme values.
  • The median is resistant to extreme values and is often better for skewed data.
  • The mode is the only one of these suitable for qualitative data.

Suppose five salaries, in thousands of pounds, are

22,24,25,27,102.22,24,25,27,102.

Their mean is 4040, but their median is 2525. The mean is correct, yet 4040 is not typical of four of the five employees. Context decides which summary is useful.

When values are grouped into intervals, their exact values are lost. To estimate the mean, represent every value in a class by its midpoint.

Time tt in minutesFrequency, ffMidpoint, mmfmfm
0t<100\leq t<1044552020
10t<2010\leq t<20991515135135
20t<4020\leq t<4012123030360360
40t<6040\leq t<60555050250250

Therefore

tˉ76530=25.5 minutes.\bar t\approx\frac{765}{30}=\boxed{25.5\text{ minutes}}.

The symbol \approx matters. We do not know where the observations lie within each interval. The estimate assumes that each class can be represented by its midpoint.

The class containing the largest frequency is the modal class. Here it is 20t<4020\leq t<40, with frequency 1212. This does not prove that 3030 is the mode.

The final two classes both have width 2020, but the first two have width 1010. When class widths differ, frequency alone does not describe concentration. Histograms use frequency density.

Quartiles split ordered data into four parts:

  • lower quartile Q1Q_1;
  • median Q2Q_2;
  • upper quartile Q3Q_3.

The interquartile range is

IQR=Q3Q1.\boxed{\operatorname{IQR}=Q_3-Q_1}.

It measures the spread of the middle 50%50\% and is less affected by extremes than the range.

Consider the ordered data

3,4,4,7,8,9,11,13,18,25.3,4,4,7,8,9,11,13,18,25.

There are 1010 values, so

Q2=8+92=8.5.Q_2=\frac{8+9}{2}=8.5.

The lower half is 3,4,4,7,83,4,4,7,8, whose median is 44, so Q1=4Q_1=4. The upper half is 9,11,13,18,259,11,13,18,25, whose median is 1313, so Q3=13Q_3=13. Therefore

IQR=134=9,range=253=22.\operatorname{IQR}=13-4=\boxed{9},\qquad \text{range}=25-3=22.

Different calculator and examination conventions can locate quartiles slightly differently. If a question provides a convention or a cumulative frequency graph, use that convention consistently.

A common rule identifies a value as an outlier if it is below

Q11.5IQRQ_1-1.5\operatorname{IQR}

or above

Q3+1.5IQR.Q_3+1.5\operatorname{IQR}.

For the data above, the fences are

41.5(9)=9.5,13+1.5(9)=26.5.4-1.5(9)=-9.5,\qquad 13+1.5(9)=26.5.

Thus 2525 is not an outlier by this rule, although it is relatively large. An outlier rule flags observations for investigation. It does not automatically justify deleting them.

Cumulative frequency is a running total. Plot cumulative frequency against the upper class boundary, because the total answers a question of the form “how many observations are below this boundary?”

For the grouped times in Worked example 4:

Upper boundary1010202040406060
Cumulative frequency44131325253030

The graph should also begin at (0,0)(0,0) here. Join the points with a smooth increasing curve.

Worked example 6: estimate quartiles from cumulative frequency

Section titled “Worked example 6: estimate quartiles from cumulative frequency”

There are 3030 observations, so read from the graph at cumulative frequencies

304=7.5,302=15,3(30)4=22.5.\frac{30}{4}=7.5,\qquad \frac{30}{2}=15,\qquad \frac{3(30)}4=22.5.

Using straight-line interpolation within the relevant classes:

  • Q1Q_1 lies in 10t<2010\leq t<20. It is 3.53.5 of the 99 observations into that class, so

Q110+3.59(10)=13.9.Q_1\approx10+\frac{3.5}{9}(10)=13.9.

  • the median lies in 20t<4020\leq t<40. It is 22 of the 1212 observations into that class, so

Q220+212(20)=23.3.Q_2\approx20+\frac{2}{12}(20)=23.3.

  • Q3Q_3 is 9.59.5 of the 1212 observations into the same class, so

Q320+9.512(20)=35.8.Q_3\approx20+\frac{9.5}{12}(20)=35.8.

Hence

IQR35.813.9=21.9 minutes.\operatorname{IQR}\approx35.8-13.9=\boxed{21.9\text{ minutes}}.

These are estimates because grouped data do not reveal the positions within each class.

A box plot displays the five-number summary:

minimum,Q1,median,Q3,maximum.\text{minimum},\quad Q_1,\quad \text{median},\quad Q_3,\quad \text{maximum}.

The box runs from Q1Q_1 to Q3Q_3, a line marks the median, and whiskers extend towards the extremes. Modified box plots may show outliers separately, so check the stated convention.

Box plots are especially useful for comparing distributions on the same scale. A complete comparison discusses:

  1. location, usually the medians;
  2. spread, usually the IQRs or ranges;
  3. the context and units.

Two delivery services have these summaries, in minutes.

ServiceMedianIQRRange
A3232883131
B292914142424

Service B is typically faster because its median delivery time is lower. Service A is more consistent through the middle half because its IQR is smaller. However, Service A has the larger overall range, perhaps because of an extreme delay.

Do not write only “A is better”. That depends on whether a customer values a lower typical time or greater consistency.

A histogram represents continuous grouped data. The area of each bar is proportional to frequency. Therefore

frequency density=frequencyclass width\boxed{\text{frequency density}=\frac{\text{frequency}}{\text{class width}}}

and consequently

frequency=class width×frequency density.\text{frequency}=\text{class width}\times\text{frequency density}.

Unlike a bar chart, a histogram has a continuous numerical horizontal scale and adjacent class bars touch.

Worked example 8: construct histogram heights

Section titled “Worked example 8: construct histogram heights”

For the time data from Worked example 4:

IntervalFrequencyWidthFrequency density
0t<100\leq t<104410100.40.4
10t<2010\leq t<209910100.90.9
20t<4020\leq t<40121220200.60.6
40t<6040\leq t<605520200.250.25

Although the third class has the greatest frequency, the second has the tallest bar because its data are more concentrated per minute.

A histogram bar covers 30x<5030\leq x<50 and has frequency density 1.71.7. Its frequency is

20×1.7=34.20\times1.7=\boxed{34}.

If a vertical axis is marked only with an arbitrary scale, use a known bar to determine the area-to-frequency scale before finding other frequencies.

A scatter diagram plots paired observations (x,y)(x,y) to investigate association between two quantitative variables.

  • positive correlation: larger xx tends to accompany larger yy;
  • negative correlation: larger xx tends to accompany smaller yy;
  • no correlation: no clear linear trend.

A line of best fit follows the centre of a roughly linear cloud, with points balanced above and below. It can estimate yy from xx.

Interpolation estimates within the observed data range. Extrapolation estimates beyond it and is less reliable because the relationship may change.

Misconception: correlation proves causation

Section titled “Misconception: correlation proves causation”

Correlation does not by itself show that changing one variable causes the other to change. Ice-cream sales and sunburn cases may rise together because both are influenced by warm weather. A third variable is sometimes called a lurking or confounding variable.

  1. Find the mean and range of 4,5,5,7,94,5,5,7,9.
  2. A grouped class 15x<2515\leq x<25 has frequency 1818. Find its midpoint and frequency density.
  3. For Q1=12Q_1=12 and Q3=20Q_3=20, find the IQR and the upper outlier fence.
  4. Dataset P has median 4848 and IQR 66. Dataset Q has median 5252 and IQR 1111. Compare them.
  5. Explain why predicting a person’s mass at age 5050 from a best-fit line based only on children aged 55 to 1515 is unsafe.
Answers
  1. xˉ=305=6\bar x=\frac{30}{5}=6 and the range is 94=59-4=5.
  2. Midpoint =20=20. Class width =10=10, so frequency density =18/10=1.8=18/10=1.8.
  3. IQR=2012=8\operatorname{IQR}=20-12=8. The upper fence is 20+1.5(8)=3220+1.5(8)=32.
  4. Q has the higher median, so its values are typically larger. P has the smaller IQR, so its middle half is less spread out. A contextual conclusion would require units and knowledge of what is being measured.
  5. This is extreme extrapolation beyond the observed age range. Growth is unlikely to continue according to the same linear relationship into adulthood.
  • Order raw data before finding the median or quartiles.
  • Divide by f\sum f, not by the number of rows, when using a frequency table.
  • Use class midpoints only for estimating a grouped mean.
  • Plot cumulative frequency at upper class boundaries.
  • Use frequency density, not frequency, for histogram height when widths differ.
  • Compare both centre and spread, using values and units.
  • Write \approx for estimates from grouped data or graphs.
  • Treat an outlier as a point to investigate, not an automatic error.
  • Distinguish association from causation and interpolation from extrapolation.

You should be able to:

  • classify data and identify populations, samples and possible bias;
  • calculate and interpret the mean, median, mode, range and IQR;
  • estimate statistics from grouped data;
  • construct and interpret cumulative frequency graphs, box plots and histograms;
  • compare distributions with evidence;
  • interpret scatter diagrams without claiming unjustified causation.

Next, deepen these ideas in populations and sampling, presenting and interpreting data, measures of location and spread, histograms and correlation and regression. Probability is the other major foundation for A-level statistics, so continue with probability foundations.