AA HL · Statistics and probability · course

Data, sampling and graphs.

AA HL resourcesPDF

Before any calculation, statistics asks two questions: where do the data come from, and what do they look like? A sample stands for a population only if it is chosen well; a graph shows at a glance the centre, the spread and the values that do not fit.

IPopulations, samples and dataSL 4.1 · population, sample, discrete and continuous data, sampling techniques

I.1 Population, sample, type of data

Definition 1

population and sample

The population is the whole set studied; a sample is the part actually measured. A sample is biased when it systematically over- or under-represents part of the population. Discrete data are counted; continuous data are measured.
Example 1

A factory has $500$ workers. $30$ of them are asked their journey time to work and their number of children. Name the population and the sample, and the type of each variable.

What you do
What you write
Step 1 Population: everyone studied
the $500$ workers
Step 2 Sample: those asked
the $30$ workers questioned
Step 3 Counted or measured?
journey time: continuous; number of children: discrete

Apply

  1. The mass of an apple: discrete or continuous?
    Answercontinuous
  2. The number of goals in a match?
    Answerdiscrete
  3. A shoe size (whole and half sizes)?
    Answerdiscrete

I.2 Sampling techniques

Property 1

sampling techniques

Simple random: every sample of that size equally likely. Systematic: every $k$th member of a list, from a random start. Stratified: each group sampled in proportion to its size. Quota: a fixed number from each group, not at random. Convenience: whoever is easiest to reach.
Example 2

Name the sampling technique: (i) a teacher takes every $5$th name on the register, starting at a random name; (ii) a reporter asks $10$ men and $10$ women, whoever passes first.

What you do
What you write
Step 1 (i) every $k$th, random start
systematic
Step 2 (ii) fixed numbers per group, not random
quota

Apply

  1. Names drawn from a hat.
    Answersimple random
  2. The first $20$ people to arrive at the gym.
    Answerconvenience

I.3 The sizes in a stratified sample

Watch out 1
From each stratum take $\dfrac{\text{size of the stratum}}{\text{size of the population}}\times\text{sample size}$, rounded sensibly. A convenience sample is the most likely to be biased: say who is left out.
Example 3

A club has $450$ members: $270$ seniors and $180$ juniors. A stratified sample of $30$ is taken. How many seniors and juniors?

What you do
What you write
Step 1 Fraction of the population, times the sample size
seniors: $\dfrac{270}{450}\times30=18$
Step 2 The other stratum
juniors: $\dfrac{180}{450}\times30=12$
Step 3 Check the total
$18+12=30$

Apply

  1. $1000$ people: $350$ under $30$, $650$ aged $30$ or over; a stratified sample of $40$.
    Answer$14$ and $26$

IIGraphs of dataSL 4.2 · histograms, cumulative frequency, box-and-whisker diagrams, outliers

II.1 A cumulative frequency table

Definition 2

cumulative frequency

The cumulative frequency of a value is the number of data $\le$ it; its graph goes through (upper class boundary, cumulative frequency). For $n$ data: the median at $\frac n2$, $Q_1$ at $\frac n4$, $Q_3$ at $\frac{3n}4$.
Example 4

The masses $m$ g of $40$ eggs: $m\le50$: $4$; $m\le55$: $12$; $m\le60$: $27$; $m\le65$: $36$; $m\le70$: $40$. How many eggs have $55\lt m\le60$? Which class contains the median? What percentage weigh more than $65$ g?

What you do
What you write
Step 1 Subtract two cumulative frequencies
$27-12=15$ eggs
Step 2 Median: the $20$th egg
$12\lt 20\le27$: the class $55\lt m\le60$
Step 3 More than $65$: from the total
$40-36=4$, $\dfrac4{40}=10\,\%$

Apply

  1. Same eggs: how many weigh at most $60$ g?
    Answer$27$
  2. Same eggs: the percentage that weigh more than $55$ g.
    Answer$70\,\%$

II.2 Median and quartiles from the graph

Example 5

From the cumulative frequency graph of the $40$ eggs of Example 4 (points joined by straight segments), estimate the median and the interquartile range.

What you do
What you write
Step 1 Positions on the vertical axis
median $20$, $Q_1$ $10$, $Q_3$ $30$
Step 2 Across to the graph, down: median
$55+5\times\dfrac{20-12}{15}=57.7$ g
Step 3 The quartiles the same way
$Q_1=53.75$, $Q_3=61.7$
Step 4 $\mathrm{IQR}=Q_3-Q_1$
$7.92$ g
Figure 1 — Exam-style question 2. Across from the vertical axis, down to the value.

Apply

  1. $120$ data: where is $Q_3$ read on the vertical axis?
    Answerat $90$
  2. What percentage of the data lies below the median?
    Answer$50\,\%$

II.3 Outliers

Property 2

box-and-whisker diagram and outliers

A box-and-whisker diagram shows the minimum, $Q_1$, the median, $Q_3$, the maximum; $\mathrm{IQR}=Q_3-Q_1$. An outlier is more than $1.5\times\mathrm{IQR}$ below $Q_1$ or above $Q_3$; the whisker stops at the last value that is not an outlier, the outlier is a cross.
Watch out 2
The fences use the IQR, not the range, and a whisker ends at a data value, never at a fence.
Example 6

A data set has minimum $2$, $Q_1=15$, median $20$, $Q_3=23$ and maximum $40$. Are the minimum and the maximum outliers?

What you do
What you write
Step 1 $\mathrm{IQR}$
$23-15=8$, $1.5\times8=12$
Step 2 The two fences
$15-12=3$ and $23+12=35$
Step 3 Compare, in words
$2\lt 3$ and $40\gt 35$: both are outliers

Apply

  1. $Q_1=30$, $Q_3=42$, maximum $60$: is $60$ an outlier?
    Answerno: the fence is $60$, and $60$ is not more than it
  2. $Q_1=11$, $Q_3=19$, minimum $0$: is $0$ an outlier?
    Answerno: the fence is $-1$

II.4 A box plot from a list

Example 7

Draw the box plot of $4,\ 6,\ 9,\ 9,\ 11,\ 12,$ $13,\ 15,\ 16,\ 16,\ 18,\ 31$.

What you do
What you write
Step 1 Median of the $12$ values
$\dfrac{12+13}{2}=12.5$
Step 2 Quartiles: medians of each half
$Q_1=9$, $Q_3=16$
Step 3 Fences with $\mathrm{IQR}=7$
$9-10.5=-1.5$, $16+10.5=26.5$: $31$ is an outlier
Step 4 Draw
box $9$ to $16$, line at $12.5$, whiskers $4$ to $18$, a cross at $31$
Figure 2 — Exam-style question 4. Past the fence, the largest value becomes an outlier.

Apply

  1. $2,\ 5,\ 5,\ 7,\ 8,$ $9,\ 9,\ 10,\ 10,\ 22$: $Q_1$, $Q_3$ and any outlier.
    Answer$5$; $10$; $22$ (fence $17.5$)

IIIExam-style questionsfrom the shortest to the longest · every one in steps, with its marks

A Sampling

Exam-style question 1Paper 1 · no calculator · [Maximum mark: 5]

A school has $600$ students: $240$ in Year 1 and $360$ in Year 2. A sample of $50$ students is asked how long they spend on homework each evening.

(a)A stratified sample by year group is used. Find the number of Year 1 students and the number of Year 2 students in the sample.[2]
(b)State whether the time spent on homework is discrete or continuous data.[1]
(c)Another method chooses every $12$th student from an alphabetical list, starting at a random position. Name this sampling technique.[1]
(d)Give one reason why asking the first $50$ students who arrive at school could give a biased sample.[1]
More questions like this

Working (a)

What you do
What you write
Step 1 Fraction of the population, times the sample size
$\dfrac{240}{600}\times50=20$ Year 1
Step 2 The other stratum
$30$ Year 2

Working (b)

What you do
What you write
Step 1 Counted or measured?
continuous
A time is measured, not counted.

Working (c)

What you do
What you write
Step 1 Every $k$th, random start
systematic sampling

Working (d)

What you do
What you write
Step 1 Say who is left out
early arrivals may differ from the others (for example, they live close, or work more)
Any reason that names who is over- or under-represented.

Play this question in Mark it: find each mark yourself →

B Cumulative frequency

Exam-style question 2Paper 1 · no calculator · [Maximum mark: 5]

The time, $t$ minutes, that $80$ students took to finish a puzzle is summarised below. $\displaystyle \begin{array}{c|cccccc}t\le\&10\&20\&30\&40\&50\&60\\\hline\text{cumulative frequency}\&6\&20\&44\&66\&76\&80\end{array}$

(a)Find the number of students who took more than $20$ minutes and at most $30$ minutes.[1]
(b)Write down the modal class.[1]
(c)Write down the class that contains the median.[1]
(d)Find the percentage of the students who took more than $40$ minutes.[2]
More questions like this

Working (a)

What you do
What you write
Step 1 Subtract two cumulative frequencies
$44-20=24$

Working (b)

What you do
What you write
Step 1 The largest class frequency
$20\lt t\le30$
Frequencies $6,\,14,\,24,\,22,\,10,\,4$.

Working (c)

What you do
What you write
Step 1 The $40$th student
$20\lt t\le30$
The $40$th and $41$st students: cumulative frequency $20\lt 40\le44$.

Working (d)

What you do
What you write
Step 1 More than $40$: from the total
$80-66=14$
Step 2 Percentage
$\dfrac{14}{80}=17.5\,\%$

Play this question in Mark it: find each mark yourself →

C Outliers

Exam-style question 3Paper 1 · no calculator · [Maximum mark: 6]

For a set of data, the minimum is $5$, the lower quartile is $12$, the median is $18$, the upper quartile is $24$ and the maximum is $45$.

(a)Find the interquartile range.[1]
(b)Show that $45$ is an outlier.[2]
(c)Determine whether $5$ is an outlier.[2]
(d)Write down the range.[1]
More questions like this

Working (a)

What you do
What you write
Step 1 $Q_3-Q_1$
$24-12=12$

Working (b)

What you do
What you write
Step 1 Upper fence $Q_3+1.5\,\mathrm{IQR}$
$24+1.5\times12=42$
Step 2 Compare, in words
$45\gt 42$, so $45$ is an outlier
The fence and the comparison are both needed.

Working (c)

What you do
What you write
Step 1 Lower fence $Q_1-1.5\,\mathrm{IQR}$
$12-1.5\times12=-6$
Step 2 Compare, in words
$5\gt -6$: not an outlier

Working (d)

What you do
What you write
Step 1 Maximum minus minimum
$45-5=40$

Play this question in Mark it: find each mark yourself →

D A list on the GDC (Paper 2)

Exam-style question 4Paper 2 · calculator · [Maximum mark: 6]

The numbers of books read in one year by $12$ students are $\displaystyle 3,\ 7,\ 8,\ 8,\ 10,\ 11,\ 12,\ 14,\ 15,\ 15,\ 18,\ 35.$

(a)Find the mean and the standard deviation of these data.[2]
(b)Write down the lower quartile and the upper quartile.[2]
(c)Show that $35$ is an outlier.[2]
More questions like this

Working (a)

What you do
What you write
Step 1 One-variable statistics on the GDC
mean $13$
standard deviation $7.74$ ($7.73520\ldots$)
The population standard deviation $\sigma$.

Working (b)

What you do
What you write
Step 1 Read the quartiles
$Q_1=8$
$Q_3=15$

Working (c)

What you do
What you write
Step 1 Upper fence
$15+1.5\times7=25.5$
Step 2 Compare
$35\gt 25.5$
So $35$ is an outlier.

Play this question in Mark it: find each mark yourself →

IVWhich method? Read the questionthe whole topic on one page

The question says
You write
A population is split into groups, such as year groups, and you must take a “stratified sample”: each group gives a number proportional to its size.
$\dfrac{\text{group}}{\text{population}}\times\text{sample size}$ P1
The question describes how a sample was taken and asks you to “name the sampling technique”: look at how the members were chosen.
random, systematic, stratified, quota or convenience P1
You must say whether a variable is “discrete or continuous”: is it counted or measured?
one word, with the reason if asked D1
A cumulative frequency graph is given and you must “estimate the median”: start at $\frac n2$ on the vertical axis.
across to the curve, down to the value D2
You must find “the interquartile range” of the data: $Q_3-Q_1$.
quartiles at $\frac n4$ and $\frac{3n}4$ P2
A value looks far from the rest and the question asks “is it an outlier?”: compare it with $Q_1-1.5\,\mathrm{IQR}$ and $Q_3+1.5\,\mathrm{IQR}$.
the fence, then the comparison in words P2
You must “draw a box-and-whisker diagram” of the data: you need five values, with the outliers apart.
a scale; the whisker to the last value inside the fences P2
In the exam 1

command terms

State: one word or phrase, no working. Show that: the fence computed and compared. Estimate: read from a graph, so not exact. Determine: decide, with the evidence written.