This is a free preview. Enrol on the course to save your progress and open every lesson.

Lesson 2 of 32 · 12 min

Kinds of data

Data is recorded observations

Data is anything recorded about the world: a temperature reading, a sale, a survey answer, a photo, a post. One piece of data on its own doesn't say much. Lots of it, organised well, can answer questions.

Numbers and categories

The first thing to ask about any piece of data is what kind it is, because that decides what you can do with it.

KindWhat it isBike share examplesYou can…
Quantitative (numbers)Amounts you can measure or countTrip distance, minutes, rain in mm, docks at a stationAdd, average, find the biggest
Categorical (groups)Labels that put things into groupsRider type (member or casual), bike type, suburbCount, compare groups
Ordinal (ordered groups)Groups with a natural orderA rating from 1 to 5, an age group like 25-34Count, sort, find the middle
Date and timeWhen something happenedTrip start time, the date of a rainy dayGroup by day, month or hour, find gaps
TextFree writingRider commentsSearch, count words, read

A trap to watch for: some things look like numbers but aren't quantities. A station ID like HC07 or a postcode like 2500 is a label. Averaging postcodes gives a meaningless answer.

Structured, semi-structured and unstructured

Data also differs in how it's organised.

  • Structured data sits in tables: rows and columns, every row with the same columns. A spreadsheet of trips is structured. It's the easiest to analyse, and it's what this course mostly uses.
  • Semi-structured data has labels but not a fixed shape. One rider comment might include a station and an age group; another might have neither. JSON files, which you'll meet in Module 4, are semi-structured.
  • Unstructured data has no labels: photos, videos, audio, long documents. Most of the world's data is unstructured, and working with it usually needs machine learning.

Where data comes from

  • Collected on purpose: surveys, sensors, experiments. You decide what's recorded, so it fits your question, but it costs time and money.
  • Collected as a side effect: every bike hire, card payment and website visit leaves a record. There's a lot of it and it's cheap, but it was made for another reason, so it may not record what you need.
  • Open data published by governments and organisations, free to use. In Australia, data.gov.au and the Australian Bureau of Statistics publish thousands of datasets.

The Harbour City trips are a side effect: the bikes record each hire so the scheme can charge riders. The scheme never planned to use them to choose new stations. That's normal, and it's why you'll check carefully what the data can and can't tell you.

Try it

  1. Look at a receipt, a bank statement or a sports scoreboard. List each piece of data on it and say what kind it is.
  2. Find one thing on it that looks like a number but is really a label.