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?
Printable Worksheets
Print or save as PDF, or build a custom worksheet from any module's questions.
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?
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
A student describes the sample dataset above. One statement is wrong, click it.
- Each column is a variable, such as rainfall or ice-creams sold.
- Each row is one record, in this case one day's weather and sales.
- The rainfall value 11.8 on 04 Jan means the temperature was 11.8 degrees.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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?
How close was your prediction?
Exactly, an outlier from an entry error distorts the average, so it must be cleaned first.
Good to learn, one impossible value can ruin an average, so cleaning comes before analysis.
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.
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.
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.
Speed Round · 6 questions
True or false? Tap as fast as you can. Build a streak.
In a dataset, each column is a variable and each row is a record.
Data from the Bureau of Meteorology that you reuse is secondary data.
You can ask a question about a variable even if no column for it exists in the dataset.
A temperature of 310 degrees in a weather column is almost certainly an error to clean.
Two columns moving together always proves one causes the other.
The independent variable usually goes on the horizontal axis of a graph.
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.
A student lists steps in the secondary-data workflow. One step is in the wrong place or wrong, click it.
- Explore the columns, then notice a pattern between two of them.
- Write the final answer first, then clean the data afterwards.
- Identify the independent and dependent variables before graphing.
How are you completing this lesson?
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.
Quick Check · 5 questions
Check Your Understanding · 3 questions
1. List, in order, the first four steps of the secondary-data workflow you would use when handed a large dataset.
2. Explain the difference between primary and secondary data, and give one example of each.
3. Give two things you should check or fix when cleaning a dataset, and say why each one matters before analysis.
Show Your Working · 3 questions
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.
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.
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.
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].
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
Put what you have learned to the test! Jump through the questions in game form.
Play GameYour Badges
0 of 6Mark lesson as complete
Tick when you've finished Learn, Practice and the game. Earns +85 XP and +25 coins.