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

Preview

DA 1.14: What makes data trustworthy

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

50 minutes

What does "days" mean?

A library table has a field called days. Is it days on loan, days overdue, or days until the due date?

Nobody knows. Two analysts use it two ways and get two answers. A short guide that says what every field means would have stopped it.

Key words

WordWhat it meansExample
Data dictionaryA list that says what each field is: its name, type, length and meaning.days: whole number, days on loan
ClassificationSorting data into groups by content, context or user.Library data
ContentWhat the data holds.Book titles and dates
ContextWhere the data came from and what it is for.The school library system
MetadataData about data.Made on 3 March
FieldOne named column in a table.member
ConfidenceHow far you can trust the data.High if well documented

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

By the end of this lesson

Note

I can say what affects trust in data and write a data dictionary entry for a field.

Starter: what you already know

Have a go

Starter: what you already know

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.

What affects confidence

Three things help you trust data.

Storage: is it kept safely and without change? Classification: is it sorted by content, context and user, so the right people find it and use it for the right job? A data dictionary: does it say what each field means?

Good classification makes later analysis easier.

A data dictionary for the loan table

FieldTypeLengthMeaningExample
memberText5Member short nameSam
bookTextNo limitTitle of the bookMaps
daysWhole numberNoneDays on loan so far14
returnedTrue or falseNoneIs the book back?true

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

Try it: check a row against a dictionary

Code: python
dictionary = [["member", "text", 5], ["days", "number", 0]]
row = ["Samantha", 14]

for place in range(len(dictionary)):
    name = dictionary[place][0]
    longest = dictionary[place][2]
    value = row[place]
    if type(value) == str and longest > 0 and len(value) > longest:
        print(name, "is too long")

# Try it: change Samantha to Sam and press Run.

A common mistake

Warning

Many people write a data dictionary once and forget it. When the table changes, the dictionary is wrong. Update it with every change, or it spreads wrong information.

The lesson goes on

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