IB Diploma Mathematics AI · Statistics and probability
Sampling and presenting data
1Populations, samples and types of data
A population is the whole group you want to know about. A sample is the part of it you actually collect data from. A good sample is representative: it reflects the population fairly.
Types of data:
- Discrete data can only take separate values, usually counts: number of siblings, shoe sizes.
- Continuous data can take any value in a range, usually measurements: height, time, mass.
- Qualitative (categorical) data are words or categories: eye colour, favourite sport.
Outliers are values far from the rest of the data. They may be errors, or genuine unusual values. Check before removing one, and say why.
Check yourself
Which of these is continuous data?
Show the answer
The time taken to run 100 m
Time is measured and can take any value in a range.
2Sampling methods
- Simple random sampling: every member has an equal chance of being chosen, for example by random numbers.
- Systematic sampling: choose every $k$th member from a list, starting at a random point.
- Stratified sampling: split the population into groups (strata) and sample from each group in proportion to its size.
- Quota sampling: choose a set number from each group, but not at random (for example, the first 20 men and 20 women you meet).
- Convenience sampling: whoever is easiest to reach.
Random methods reduce bias. Quota and convenience samples are quicker but more likely to be biased.
A stratified sample
- A school has 600 students: 240 in Year 11 and 360 in Year 12. A stratified sample of 50 is needed.
- Year 11: $\frac{240}{600} \times 50 = 20$ students.
- Year 12: $\frac{360}{600} \times 50 = 30$ students.
Check yourself
A survey picks every 10th name on a list after a random start. Which method is this?
Show the answer
Systematic sampling
Choosing every kth member is systematic.
3Frequency tables and histograms
A frequency table shows how often each value or group of values occurs.
- For grouped continuous data, classes are written like $10 \le x < 20$.
- The mid-interval value (midpoint) represents each class when estimating the mean.
- A histogram shows grouped continuous data as bars with no gaps between them. In Maths AI the classes have equal widths, so the height shows the frequency.
The shape of a distribution matters: symmetric, positively skewed (a long tail to the right) or negatively skewed (a long tail to the left).
A grouped table
- Times (minutes): $0 \le t < 10$: 4, $10 \le t < 20$: 9, $20 \le t < 30$: 5, $30 \le t < 40$: 2.
- Midpoints: 5, 15, 25, 35. Total frequency: 20.
- The modal class is $10 \le t < 20$, the class with the highest frequency.
Check yourself
Which class's midpoint is 25 in the table above?
Show the answer
20 ≤ t < 30
(20 + 30) ÷ 2 = 25.
4Cumulative frequency and box plots
Cumulative frequency is a running total. A cumulative frequency graph plots it against the upper class boundary and joins the points with a smooth curve. From it you can read:
- the median, at half the total frequency,
- the lower quartile $Q_1$ at one quarter, and the upper quartile $Q_3$ at three quarters,
- percentiles, such as the 90th percentile at 90% of the total.
A box plot (box-and-whisker diagram) shows the minimum, $Q_1$, median, $Q_3$ and maximum. Outliers are drawn as separate crosses.
A box plot: the box holds the middle half of the data
Outlier rule: a value is an outlier if it is more than $1.5 \times \text{IQR}$ below $Q_1$ or above $Q_3$.
Box plots are good for comparing two sets of data: compare the medians (typical values) and the IQRs (spread).
Check yourself
In a box plot, what does the box show?
Show the answer
The middle 50% of the data, from Q₁ to Q₃
The whiskers show the rest.
5Discrete and continuous data
- Discrete data take separate values, usually counts: number of siblings, goals scored.
- Continuous data can take any value in a range, usually measurements: height, time, mass.
- Continuous data are often grouped into class intervals such as $150 \le h < 160$.
Choosing a chart
- Number of pets per student (discrete): a bar chart.
- Students' heights (continuous): a histogram with no gaps between bars.
- Comparing two classes' test scores: side-by-side box plots.
Check yourself
Which type of data is time taken to run 100 m?
Show the answer
Continuous
Measured.
6Reading a cumulative frequency graph
80 students' test scores
- The median is the value at a cumulative frequency of 40.
- The lower quartile is at 20; the upper quartile at 60.
- If these read as 52, 41 and 63, the IQR is $63 - 41 = 22$.
- To find how many scored above 70, read the cumulative frequency at 70 (say 68) and subtract from 80: 12 students.
Check yourself
For 80 data values, at what cumulative frequency is the median read?
Show the answer
40
Half of 80.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera