Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

DA 6.9: Is this sample fair?

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

65 minutes

The vote that asked the oldest students

A school asks, "Should lunch be longer?" One hundred students reply. Sixty of them are in Year 11.

The school has five year groups of the same size. The answer is mostly the voice of one group. Is it fair to say "the school wants it"?

Key words

WordWhat it meansExample
Populationthe whole group you want to know aboutevery student in the school
Samplethe part of the population you actually have data about
Representativea sample whose groups match the population in fair shares
Non-representativea sample that leaves some groups out or over-counts others
Shareone group's part of the whole, often shown as out of 100
Biasan unfair lean towards one side
Self-selectionpeople choose for themselves whether to reply, so keen people reply most

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can compare a sample with its population and find the signs that data is non-representative.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Worked example: sample share against school share

Year groupStudents in schoolShare of schoolRepliesShare of replies
Y720020 out of 10055 out of 100
Y820020 out of 10055 out of 100
Y920020 out of 1001010 out of 100
Y1020020 out of 1002020 out of 100
Y1120020 out of 1006060 out of 100

The cells students fill in are left blank in this preview.

The idea: compare the shares

A representative sample has shares that match the population. If a group is 20 out of every 100 students, it should be about 20 out of every 100 replies.

Here Year 11 is 20 out of 100 of the school but 60 out of 100 of the replies. That gap is the warning sign.

Run it: compare the shares

Code: duckdb
select s.year_group, s.replies,
       round(100.0 * s.replies / (select sum(replies) from sample)) as sample_pct,
       round(100.0 * c.students / (select sum(students) from school)) as school_pct
from sample s join school c on c.year_group = s.year_group
order by s.year_group;

Indicators of bias inside a dataset

IndicatorWhat you see in the dataA check
A skewed shareOne group is far bigger in the sample than in the populationGroup by and compare shares
A missing groupA group in the population has no records at allCount records for every group
A lopsided answerNearly everyone gives the same answerLook at the spread of answers
Self-selectionOnly people who feel strongly repliedCheck how people were asked
Missing values in one groupBlank answers all come from one groupGroup the blanks by group

The cells students fill in are left blank in this preview.

The lesson goes on

4 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.