impera Open Impera

IB MYP Mathematics · Statistics and probability

Collecting and presenting data

1Types of data

Statistics starts with a question and the data needed to answer it. The type of data decides which diagrams and calculations make sense.

  • Qualitative (categorical) data are described in words: eye colour, favourite sport.
  • Quantitative data are numbers. They are either:
  • discrete: only certain values are possible, usually counted. Number of siblings, shoe size.
  • continuous: any value in a range is possible, usually measured. Height, time, mass.
  • Primary data you collect yourself, by survey, experiment or observation. You control the method, but it takes time.
  • Secondary data someone else collected, such as government statistics or a website. It is quick to get, but you must judge how reliable it is.

Continuous data are always rounded when recorded. A height of 152 cm to the nearest centimetre could be anything from 151.5 cm up to 152.5 cm, so continuous data are grouped in classes such as $150 \le h < 155$.

Check yourself

Which of these is continuous data?

  • A student's favourite colour

  • The number of pets a family owns

  • The time taken to run 100 m

  • The number of goals scored in a match

Show the answer

The time taken to run 100 m

Time is measured and can take any value in a range.

2Populations, samples and bias

The population is the whole group you want to know about. A sample is the part you actually collect data from. A census surveys everyone.

A sample should be representative: a fair small-scale copy of the population. A sample that is not is biased, and conclusions from it are unreliable.

Sampling methods:

  • Random: every member has an equal chance, for example names drawn by a random number generator. Fair, but it needs a full list.
  • Systematic: every $n$th member of a list, such as every 10th student on the register.
  • Stratified: the population is split into groups, and each group is sampled in proportion to its size.
  • Convenience: whoever is easiest to ask. Quick, and usually biased.
Worked example

A stratified sample

  1. A school has 300 students in Year 7 and 200 in Year 8. A sample of 50 is wanted.
  2. Year 7 is 300 out of 500, so 300/500 × 50 = 30 students.
  3. Year 8 is 200/500 × 50 = 20 students.

Questions can be biased too. "Don't you agree that homework is pointless?" pushes people towards one answer. Good questions are neutral, clear, and give answer boxes that do not overlap and cover every possibility: "0–2, 3–5, 6 or more", not "0–2, 2–4".

A larger sample generally gives more reliable results.

Check yourself

A student surveys only her friends about school lunches. What is the main problem?

  • The survey uses secondary data, which is never reliable

  • The data are continuous, so they cannot be used in a survey

  • The sample is biased, because it does not represent the whole school

  • The sample is too large to be analysed properly by one student

Show the answer

The sample is biased, because it does not represent the whole school

Friends are likely to share opinions, so the sample is not representative.

3Tables, bar charts and pie charts

A frequency table counts how often each value or category occurs, often using tally marks.

  • A bar chart shows categories or discrete data. Bars are the same width with gaps between them, and the height shows the frequency.
  • A pictogram uses symbols, and needs a key.
  • A pie chart shows how a whole is divided. Each sector's angle is in proportion to its frequency.

Angle of a sector = $\dfrac{\text{frequency}}{\text{total}} \times 360°$

Worked example

How 60 students travel to school

  1. Walk 24, bus 18, car 12, bicycle 6. Total 60.
  2. Each student is 360 ÷ 60 = 6°.
  3. Walk: 24 × 6 = 144°. Bus: 108°. Car: 72°. Bicycle: 36°.
  4. Check: 144 + 108 + 72 + 36 = 360.

Reading a pie chart works in reverse: in a survey of 90 people, a sector of 120° represents 120/360 × 90 = 30 people.

A pie chart shows proportions, not totals. Two pie charts can only be compared for share, unless the totals are given.

Every chart needs a title, labelled axes with units, a sensible scale that starts at zero for bar charts, and a key where needed.

Check yourself

In a pie chart of 40 people, 10 chose tea. What angle represents tea?

  • 40°

  • 10°

  • 25°

  • 90°

Show the answer

90°

10/40 × 360 = 90.

4Displaying numerical data

  • A stem-and-leaf diagram keeps every value while showing the shape. For 23, 27, 31, 35, 35, 42: the stem 2 has leaves 3 and 7; the stem 3 has leaves 1, 5, 5; the stem 4 has leaf 2. It needs a key, such as "2 | 3 means 23", and the leaves must be in order.
  • A line graph shows change over time. Join points with straight lines, and be careful reading values between points.
  • A histogram shows grouped continuous data. The bars touch, because the classes join with no gaps, and the horizontal axis is a continuous scale.
  • A frequency polygon joins the midpoints of the tops of the histogram bars.
Worked example

Grouping continuous data

  1. Heights in cm: 148, 151, 153, 156, 157, 158, 160, 162, 163, 167.
  2. Classes: $145 \le h < 150$: 1; $150 \le h < 155$: 2; $155 \le h < 160$: 3; $160 \le h < 165$: 3; $165 \le h < 170$: 1.
  3. A value of exactly 160 goes in $160 \le h < 165$: the inequality signs make each value fit one class only.
  4. The modal class is not unique here: two classes share the highest frequency, 3.

The shape of a distribution matters: symmetrical, skewed to one side, or with two peaks.

Check yourself

Why do the bars of a histogram touch?

  • To make the chart easier to colour and read quickly

  • The data are continuous, so the classes join with no gaps

  • Because the frequencies in each class are all equal

  • Because the data are qualitative, so they have no gaps

Show the answer

The data are continuous, so the classes join with no gaps

Each class ends exactly where the next begins.

5Misleading graphs and choosing a display

Graphs can mislead, by accident or on purpose. Look for:

  • a vertical axis that does not start at zero, which exaggerates small differences;
  • uneven scales, or missing labels and units;
  • 3D effects and pictures that change in area or volume when only the height should change;
  • selected data: a time period chosen to hide a trend.
Worked example

A truncated axis

  1. Sales were 100 in January and 105 in February.
  2. On an axis from 0 to 110, the bars look nearly equal.
  3. On an axis from 98 to 106, the February bar is three and a half times as tall, although the real rise is 5%.

Choosing the right display:

  • Categories: bar chart or pie chart.
  • Parts of a whole: pie chart.
  • Change over time: line graph.
  • Grouped continuous data: histogram.
  • A small set of numbers where you want every value: stem-and-leaf.
  • The relationship between two variables: scatter graph.

When you interpret a display, state what it shows in context, quote figures, and comment on anything that limits the conclusion, such as a small sample.

Check yourself

A bar chart's vertical axis starts at 50 instead of 0. What is the effect?

  • The bars must touch each other, like those in a histogram

  • The frequencies shown by each of the bars change in value

  • The chart becomes more accurate because the scale is larger

  • Differences between the bars look larger than they really are

Show the answer

Differences between the bars look larger than they really are

Cutting off the bottom of the axis exaggerates small differences.

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