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

Preview

AC 2.5: Is this data fit for its purpose?

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

60 minutes

Twelve Amys

A club collects sign-ups from three classes. When the lists are joined, one pupil appears as "Amy Reed", "amy reed" and "Amy Red". Another pupil has no year group at all.

The club wants to count members in each year. Can it trust this list yet? Not until it is cleaned.

Key words

WordWhat it means
Fit for purposegood enough for the job the data is needed for
Unfit for purposenot good enough for that job, so it must be cleaned or not used
Cleaningfinding and fixing or removing faults in data
Incompletea value is missing
Erroneousa value is present but wrong
Transpositiontwo characters swapped by mistake, such as 1024 for 1042
Dataseta collection of records held together for analysis

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

By the end of this lesson

Note

I can say whether data is fit for a purpose, and name the kinds of error that need cleaning.

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.

Fit depends on the job

Data is not good or bad on its own. It is fit or unfit for a purpose.

A list with some misspelt names is fit for counting members in each year, if the year column is complete. It is unfit for sending letters, where every name must be right.

Worked example: kinds of error to clean

ErrorWhat it looks likeWhy it hurts
Incomplete valueYear group left emptyCounts by year are too small
Erroneous valueYear group 99A wrong number hides in the totals
Different type or formatYear as 8 in one list and eight in another; dates as 07/09 and 2026-09-07Sorting and joining fail
Different field nameColumn called Year in one list and Yr in anotherLists will not join up
Case erroramy reed and Amy ReedCounted as two pupils
TranspositionCode 1024 for 1042A different record is matched
Spelling errorAmy Red for Amy ReedCounted as two pupils

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

Try it: the computer sees two names

Code: python
a = "Amy Reed"
b = "amy reed"
print(a == b)
print(a.lower() == b.lower())

c = "Amy Reed "
print(a == c)
print(a == c.strip())

# Capitals and spare spaces make two values that look the same compare as different.

Check: name the error

Have a go

Check: name the error

4 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.

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.