Skip to content
sciencelab
0
0
0 XP
Lvl 1
KJ
Lesson 11 ~35 min Unit 4 · Data Science 2 +85 XP

Using a Large Dataset to Develop and Test a Question

Someone hands you a spreadsheet with 10,000 rows of weather data. It is just a wall of numbers. How do you turn that pile into a question you can actually answer with evidence?

Today's hook: The Bureau of Meteorology publishes free files with daily temperature and rainfall for every weather station in Australia, going back decades. That is millions of numbers. By itself the file answers nothing, it is just rows and columns. The power comes when you read what the columns mean, spot a pattern, and shape it into a sharp, investigable question such as "Does daily maximum temperature relate to the number of ice-creams a kiosk sells?" In this lesson you learn the workflow that turns a giant dataset into an answer.
0/5QUESTS
Think First
warm-up

You open a spreadsheet of beach weather data. It has columns for date, maximum temperature, rainfall, wind speed and ice-cream sales, with one row for every day of the summer.

What is the first thing you should do with this file before you can ask a useful question, and why is staring at the raw numbers not enough?

Write your prediction in your book before reading on.
1
From a Pile of Numbers to a Question
+5 XP

A large dataset is a big table of records that someone has already collected, often thousands or millions of rows. On its own it answers nothing, it is just data waiting for a question. The skill in this lesson is the secondary-data workflow: a clear sequence that takes you from a wall of numbers to a tested answer. The steps are explore the dataset, notice a pattern or gap, form an investigable question, identify the variables, clean the data, analyse it, then answer with evidence.

This connects two earlier skills. In Lesson 1 you learned what makes a question investigable: a variable you can measure, a variable that changes, and feasibility. In Lesson 10 you met large datasets and where they come from. Here you put them together: the dataset suggests the question, and the columns you have decide whether that question is actually investigable.

The Secondary-Data Workflow 1 Explore what columns exist 2 Notice a pattern or gap 3 Question make it investigable 4 Variables which columns 5 Clean fix errors and gaps 6 Analyse graph and compare 7 Answer with evidence
Example

You download a file of school canteen sales. Before asking anything, you skim the columns: date, item, price, quantity sold, weather. Only then do you notice that drink sales seem higher on hot days, which gives you something worth asking a real question about.

Real-world anchor

Researchers at the Bureau of Meteorology do not start with an answer. They start with decades of recorded temperature and rainfall, then shape sharp questions like "Has the number of days above 35 degrees in Sydney changed since 1960?" The data comes first, the question is built from it.

Watch out

Do not decide your answer first and then go hunting for numbers that agree. Good practice is to explore the dataset honestly, then let the pattern you genuinely see shape the question you ask.

What is the correct first step when you are handed a large dataset?
2
What You'll Master
objectives

Know

  • A large dataset is a table where rows are records and columns are variables.
  • Secondary data is collected by someone else, such as the Bureau of Meteorology or the ABS.

Understand

  • Why a question must match the columns the dataset actually contains.
  • Why data must be cleaned before it can be trusted for analysis.

Can Do

  • Read a dataset and write an investigable question it can answer.
  • Identify which column is the independent and which is the dependent variable.
Syllabus link (NESA Science 7–10, Data science 2): "Use large datasets to develop and test a question" (outcomes SC5-DA2-01, SC5-WS-06).
Cross-lesson links: This lesson builds on Lesson 1 (writing an investigable question) and Lesson 10 (working with large datasets), and feeds Lessons 12 to 14, where you analyse, visualise and draw conclusions from the data you have prepared here.
3
Primary vs Secondary Data
+5 XP

Primary data is data you collect yourself, by measuring or counting things in your own investigation. Secondary data is data that someone else has already collected, which you then reuse. When you work with a large dataset from the Bureau of Meteorology or the Australian Bureau of Statistics, you are using secondary data. The big advantage is speed and scale: you instantly have thousands of records that would take years to collect yourself.

The trade-off is that you did not control how it was collected, so you must check it carefully. Who collected it, and are they reliable? When and where was it collected? What does each column actually measure, and in what units? This information is called metadata, and reading it is part of responsible data science. Never assume, always check the source before you trust the numbers.

Example

If you time how long ice cubes take to melt in your own classroom, that is primary data. If you download a file of recorded city temperatures from the Bureau of Meteorology, that is secondary data, fast and huge, but collected by someone else under conditions you must check.

Real-world anchor

The Australian Bureau of Statistics runs the national Census so that researchers, councils and businesses do not each have to survey millions of people themselves. They reuse this secondary data, but they read the ABS notes first to know exactly what was counted and how.

Watch out

Secondary data is not automatically correct just because it is big or official. Always check the source and the metadata. A dataset can still contain errors, gaps, or columns that do not measure what you assumed.

True or false?
Downloading a weather file from the Bureau of Meteorology and analysing it counts as using secondary data.
4
Reading a Dataset: Rows, Columns and Units
+5 XP

Every dataset is organised the same way. Each row is one record, also called an observation, such as the weather on a single day. Each column is one variable, such as date, maximum temperature, or rainfall. Where a row and a column meet is one value, like 31.4 degrees. The header at the top names each column and usually states its units, for example degrees Celsius or millimetres.

Reading a dataset means understanding this structure before you do anything else. How many rows are there (how much data)? What does each column measure, and in what units? Are there any columns you do not understand? You answer these from the header row and the metadata. Only once you know what variables you have can you ask a question the dataset is actually able to answer.

A Sample Dataset: Rows, Columns and Units Date Max temp (°C) Rainfall (mm) Ice-creams sold 02 Jan 31.4 0.0 182 03 Jan 28.0 2.4 120 04 Jan 22.6 11.8 64 05 Jan 35.1 0.0 210 06 Jan 26.3 0.6 96 Header row names each column and its units · each row below is one day's record
Example

In the table above there are 5 data rows (5 days) and 4 columns (date, max temperature, rainfall, ice-creams sold). The value where the 05 Jan row meets the max-temperature column is 35.1 degrees Celsius. The units are written in the header so no one mistakes millimetres for degrees.

Watch out

Do not ignore the units in the header. A column labelled simply "temp" could be in Celsius or Fahrenheit, and a rainfall column could be in millimetres or centimetres. Mixing units up makes every later calculation wrong.

Spot the slip-up+5 XP

A student describes the sample dataset above. One statement is wrong, click it.

The student writes:
  1. Each column is a variable, such as rainfall or ice-creams sold.
  2. Each row is one record, in this case one day's weather and sales.
  3. The rainfall value 11.8 on 04 Jan means the temperature was 11.8 degrees.
5
Writing a Question the Dataset Can Answer
+5 XP

From Lesson 1 you know a question must be investigable: it needs a variable that changes and a variable you can measure. With secondary data there is an extra rule, the question must match the columns you actually have. You cannot ask "Does humidity affect ice-cream sales?" if there is no humidity column. The dataset sets the boundary of what you can ask.

So the move is: scan the columns, pick two that might be related, and write a question linking them. With our table you could ask "Is there a relationship between daily maximum temperature and the number of ice-creams sold?" Both variables are columns you have, both are measurable, and the data already exists, so it is investigable and feasible. A good dataset question names the two columns and asks how one relates to the other.

Example

Given columns for date, max temperature, rainfall and ice-creams sold, "Do hotter days have higher ice-cream sales?" works, both variables are columns. "Does the price of milk affect ice-cream sales?" does not work here, there is no milk-price column, so the dataset cannot answer it.

Real-world anchor

Ecologists using the Atlas of Living Australia, a national database of species sightings, shape their questions around the columns it holds, such as species, location and date. They ask "Has the recorded range of this frog shifted north over 20 years?" because those columns exist to answer it.

Watch out

A common slip is writing an interesting question the dataset cannot answer because the column is missing. Before committing to a question, check that every variable in it appears as a real column in your file.

A dataset has columns: date, max temperature, rainfall, ice-creams sold. Which question can it actually answer?
6
Identifying the Variables in Your Question
+5 XP

Once your question links two columns, decide which column is the independent variable (the one you think causes or drives the change) and which is the dependent variable (the one you expect to respond). In a dataset you do not physically change anything, but you still sort the columns this way so your analysis and graph make sense. By habit, the independent variable goes on the horizontal axis and the dependent on the vertical axis.

For "Is there a relationship between maximum temperature and ice-creams sold?", temperature is the independent variable (we think temperature drives sales) and ice-creams sold is the dependent variable (sales respond to temperature). The date column is neither, it just labels each record. Sorting columns into independent, dependent and label is how you get a dataset ready to analyse.

Example

In "Does rainfall affect how many people visit a beach?", rainfall is the independent variable and number of visitors is the dependent variable. You would plot rainfall along the bottom axis and visitor numbers up the side, so any relationship between them is easy to see.

Watch out

Finding that two columns move together does not prove one causes the other. Ice-cream sales and sunscreen sales both rise on hot days, but ice-cream does not cause sunscreen use. Relationship in a dataset is a clue, not automatic proof of cause.

In "Does maximum temperature affect ice-creams sold?", which column is the dependent variable?
7
Cleaning the Data Before You Trust It
+5 XP

Real datasets are messy. Before analysing, you clean the data, which means finding and dealing with problems so the numbers can be trusted. The main things to look for are missing values (blank cells where a reading was not recorded), outliers or errors (impossible values like a temperature of 200 degrees, often a typing mistake), wrong units (one row recorded in a different unit), and duplicates (the same record entered twice).

Cleaning matters because a single bad value can ruin a result. If one day's temperature is wrongly typed as 310 instead of 31, the average jumps and your conclusion is wrong. You do not just delete numbers you dislike, you correct clear errors, remove duplicates, and decide carefully what to do with missing values. Cleaning is honest housekeeping that protects the answer, not a way to force the result you wanted.

Cleaning a Dataset Before Analysis RAW (NEEDS CLEANING) 02 Jan · 31.4 · sold 182 03 Jan · (blank) · sold 120 04 Jan · 310 · sold 64 05 Jan · 35.1 · sold 210 05 Jan · 35.1 · sold 210 missing · outlier · duplicate CLEANED (READY) 02 Jan · 31.4 · sold 182 03 Jan · recovered · sold 120 04 Jan · 31.0 (fixed) · sold 64 05 Jan · 35.1 · sold 210 duplicate row removed trustworthy and tidy
Example

In a rainfall column you spot a value of -5 mm. Rainfall cannot be negative, so it is an error, probably a typing slip. You would check the source if you can, correct it, or note that the value is unusable, rather than leaving a clearly impossible number in your analysis.

Watch out

Cleaning does not mean deleting any value that does not fit your expectation. Removing genuine but surprising data to get a tidier graph is not cleaning, it is bias. Only fix or remove values that are clearly errors, duplicates or missing.

Predict then reveal+8 XP
1 · Predict
2 · Reveal
3 · Compare

A weather dataset has a maximum-temperature column. One row reads 310 instead of 31.0. What single problem is this, and why must you deal with it before working out the average temperature?

50%
8
Worked Example: From Dataset to Answer
+5 XP

Let us run the whole workflow on the small extract from Card 4. Explore: the columns are date, max temperature (degrees Celsius), rainfall (mm) and ice-creams sold. Notice: the hottest days (35.1 and 31.4 degrees) have the highest sales (210 and 182), while the coolest day (22.6) has the lowest (64). That looks like a pattern worth testing.

Question: "Is there a relationship between daily maximum temperature and the number of ice-creams sold?" Variables: independent is temperature, dependent is ice-creams sold, and date is just a label. Clean: check for blanks, impossible values and duplicates, and fix any found. Analyse: plot temperature on the horizontal axis and sales on the vertical axis, then look at whether higher temperature lines up with higher sales. Answer: in this extract, as maximum temperature rises, ice-cream sales also tend to rise, so the evidence supports a positive relationship. You have turned a table of numbers into a clear, evidence-based answer.

Example

Reading the five rows in order of temperature: 22.6 degrees gave 64 sales, 26.3 gave 96, 28.0 gave 120, 31.4 gave 182 and 35.1 gave 210. Sales climb steadily as temperature climbs, which is the pattern your graph would make obvious.

Real-world anchor

Government data portals such as data.gov.au publish thousands of open datasets exactly so people can run this workflow: download, explore, ask a question the columns support, clean, analyse and answer. The same seven steps scale from five rows to five million.

True or false?
Once you spot a pattern in a dataset, you can skip cleaning and go straight to writing your final answer.
Speed round +6 XP

True or false? Tap as fast as you can. Build a streak.

Q · 1 / 6 Streak · 0 Score · 0

In a dataset, each column is a variable and each row is a record.

9
Words You Need
vocabulary
Large datasetA big table of records, often thousands or millions of rows, already collected and waiting for a question.
Secondary dataData collected by someone else that you reuse, such as Bureau of Meteorology or ABS data.
Variable (column)One measured feature in a dataset, stored as a column, such as rainfall or temperature.
Record (row)One observation in a dataset, stored as a row, such as the weather on a single day.
MetadataInformation about a dataset: who collected it, when, where, and what each column and unit means.
Cleaning dataFinding and fixing missing values, errors, wrong units and duplicates before analysis.
OutlierA value far outside the expected range, often a data-entry error that must be checked.
!
Spot the Trap
heads-up

Wrong: A big dataset answers questions on its own.

Right: A dataset only answers a question you build from its columns.

Wrong: You can ask anything you like of a dataset.

Right: Your question must use variables that exist as real columns.

Wrong: Cleaning means deleting any value you do not like.

Right: Cleaning fixes clear errors, duplicates and missing values, not surprising-but-real ones.

Wrong: If two columns rise together, one must cause the other.

Right: A relationship in data is a clue, not proof of cause.

Spot the slip-up+5 XP

A student lists steps in the secondary-data workflow. One step is in the wrong place or wrong, click it.

The student's plan:
  1. Explore the columns, then notice a pattern between two of them.
  2. Write the final answer first, then clean the data afterwards.
  3. Identify the independent and dependent variables before graphing.

How are you completing this lesson?

Revisit Your Thinking
reflect

Think back to the beach weather spreadsheet from the start, with columns for date, maximum temperature, rainfall, wind speed and ice-cream sales.

What is the first step you should take, and write one investigable question this dataset could actually answer.

Write your updated thinking in your book.
1
What is the correct first step in the secondary-data workflow?
+10 XP
2
Which is an example of secondary data?
+10 XP
3
In a dataset table, what does a single row represent?
+10 XP
4
A dataset has columns: date, max temperature, rainfall, ice-creams sold. Which question can it answer?
+10 XP
5
In a maximum-temperature column you see 250 degrees. What should you do?
+10 XP
Check Your Understanding
short answer

1. List, in order, the first four steps of the secondary-data workflow you would use when handed a large dataset.

Write your answer in your book.

2. Explain the difference between primary and secondary data, and give one example of each.

Write your answer in your book.

3. Give two things you should check or fix when cleaning a dataset, and say why each one matters before analysis.

Write your answer in your book.
Show Your Working
13 marks total
4 MARKS

SA1. A dataset has the columns: date, suburb, daily maximum temperature (°C), and number of emergency-room visits. Write one investigable question this dataset could answer, then name the independent and dependent variables in your question.

Write your answer in your book.
4 MARKS

SA2. Explain why a question must match the columns in a dataset, and give one example of a question the temperature-and-sales dataset from the lesson cannot answer.

Hint: Think about which variables exist as real columns.

Write your answer in your book.
5 MARKS

SA3. You are handed a 5,000-row file of daily weather and beach visitor numbers. Describe how you would move from this raw file to an evidence-based answer, naming at least five steps of the workflow in order and what you would do at each.

Write your answer in your book.
Comprehensive Answers

Quick Check

1. D. The first step is to explore the dataset to see what columns (variables) it contains.

2. A. Downloading and analysing a Bureau of Meteorology file is reusing data someone else collected, so it is secondary data.

3. C. A row is one record or observation, such as a single day's data, while a column is a variable.

4. B. Rainfall and ice-creams sold are both real columns, so the dataset can answer a question linking them.

5. D. A reading of 250 degrees is an impossible outlier, almost certainly an entry error to check and correct before analysing.

Show Your Working Model Answers

SA1 (4 marks): Question: "Is there a relationship between daily maximum temperature and the number of emergency-room visits?" [1]. Both are real columns, so it is investigable with this data [1]. Independent variable: daily maximum temperature [1]. Dependent variable: number of emergency-room visits [1].

SA2 (4 marks): A dataset can only supply values for the variables it actually stores as columns [1], so a question naming a missing variable cannot be answered with that data [1]. Example that cannot be answered: "Does humidity affect ice-cream sales?" [1], because the temperature-and-sales dataset has no humidity column [1].

SA3 (5 marks): Explore the columns to see what variables exist [1]. Notice a pattern, such as more visitors on hotter days, and form an investigable question linking two columns [1]. Identify the independent and dependent variables [1]. Clean the data by fixing missing values, errors, wrong units and duplicates [1]. Analyse by graphing the two variables, then answer the question using the evidence in the graph [1].

R
Quick Review

Workflow

Explore, notice, question, variables, clean, analyse, answer

Secondary data

Collected by someone else, then reused

Rows and columns

Rows are records, columns are variables

Match the columns

Only ask what the dataset can answer

Cleaning

Fix missing values, errors and duplicates

Outlier

An impossible value to check before analysis

Test Your Knowledge
+25 XP

Put what you have learned to the test! Jump through the questions in game form.

Play Game

Your Badges

0 of 6
First Steps
3-Day Streak
3 in a Row
Lesson Ace
Stretch Seeker
Daily Warrior

Mark lesson as complete

Tick when you've finished Learn, Practice and the game. Earns +85 XP and +25 coins.

Want help with Lesson 11, Using a Large Dataset to Develop and Test a Question?

Work through this topic 1-on-1 with an experienced HSC tutor.

Book a free session →