The statistical research process
Categorical and quantitative variables, independent, dependent and control variables, good research questions, fair data collection, two-way tables, grouped bar charts and honest conclusions.
The big picture
Five steps of a statistical study
Statistics is a way to answer questions with data. Every study, from a class survey to a national census, follows the same five steps.
- 1. Ask a question
Choose a clear question that data can answer. Name the variables.
- 2. Collect data
Plan who you ask and how. Get permission. Ask everyone the same way.
- 3. Organise
Put the answers in a table. For two categories, use a two-way table.
- 4. Analyse
Turn counts into percentages and draw a chart, such as a grouped bar chart.
- 5. Interpret
Say what the data shows, and what it does not show. Answer your question.
Step 1 · Know your variables
Categorical or quantitative?
A variable is a characteristic that can change from one person or thing to another. The first question to ask about any variable: is the answer a label or a number?
Categorical
The answer is a name or a label. It puts people into groups. You count how many are in each group, but you cannot average the answers.
- Blood type: A, B, AB, O
- Favourite sport
- Way of travelling to school
Discrete quantitative
The answer is a number you get by counting. Only separate values are possible: 0, 1, 2, 3 … never 2.5.
- Number of brothers and sisters
- Goals scored in a match
- Messages sent today
Continuous quantitative
The answer is a number you get by measuring. Any value in a range is possible, limited only by your ruler or clock.
- Your height
- Time to travel to school
- Mass of an apple
Watch out: some labels are written with digits. A postcode or a football shirt number is categorical — adding two of them makes no sense. Ask “can I do arithmetic with it?” rather than “does it look like a number?”
Try it
Sort the variables
Eight cards at a time. If a card goes into the wrong box, you will see why, and you can try again.
Step 1 · Who does what?
Independent, dependent and control variables
When we ask whether one thing is related to another, each variable plays a role.
Independent
The variable we change on purpose, or use to split people into groups. Think of it as the possible cause.
- Hours of light a plant gets
- Grade level in a survey
Dependent
The result we measure or record. We look at it to see whether it changes when the independent variable changes.
- Height of the plant
- Favourite way to travel
Control
Variables we keep the same for everyone, so they cannot explain the result. A fair test changes only one thing.
- Same soil and water for every plant
- Same questions for every student
Quick test: “I change this (independent) and watch that (dependent), while I keep these the same (control).”
Step 1 · Ask well
Writing a statistical research question
A statistical question expects answers that vary. In this lesson the question links two categorical variables: “Is there a relationship between A and B?”
- ClearEveryone understands the words the same way.
- MeasurableEach variable has defined categories, such as walk, bus, car or bike.
- CollectableYou can really get the data — the people exist and you can reach them.
- MeaningfulThe answer is useful or interesting to someone.
- EthicalCollecting the data does not harm or embarrass anyone.
“Do teenagers like music?”
Which teenagers? Like it how much? Only one variable.
“Is there a relationship between grade (9th, 10th, 11th) and favourite type of music (pop, rock, hip-hop, classical, other) among students at our school?”
“Were people in the year 1200 happier on sunny days?”
Nobody can be asked any more.
“Is there a relationship between owning a pet (yes / no) and spending time outdoors every day (yes / no) among students in our class?”
Step 2 · Collect
Collecting data you can trust
Good conclusions need good data. Four ideas help you plan.
Primary or secondary
Primary data is data you collect yourself, for example with a questionnaire or by observing. Secondary data was collected by someone else, such as published statistics or a report. With secondary data, check who collected it, when, and how.
A fair sample
The people you ask should represent the whole group you want to describe. Asking only the football team whether students like sport gives a biased answer. Choosing people at random from the whole group helps.
Valid and reliable
Valid means you measure what you meant to measure. Reliable means you get the same result when you measure the same thing again. A scale that always adds 2 kg is reliable but not valid.
Ethics: tell people what the data is for, ask for their consent, keep names private and store the answers safely. Never publish someone’s personal answers without permission — that can be against the law as well as unfair. When you use data from another source, say where it came from.
Steps 3 and 4 · Organise and analyse
Two-way tables and grouped bar charts
A two-way table (also called a contingency table or cross-tabulation) counts how many people fall into each pair of categories. The rows are the groups of one variable; the columns are the answers to the other.
Percent of each row
Groups are often different sizes. To compare them, divide each count by its row total. This is the conditional relative frequency: “of the students in Grade 9, what percent walk?”
Grouped bar chart
Bars for each answer stand side by side inside each group, with one colour per answer. If the coloured patterns look alike in every group, the variables are hardly related.
Reading the gap
Compare the percentages across groups. In this lesson we use a rule of thumb: a gap under 5 points means little or no association, 5 to 10 points a weak one, 10 points or more a clear one.
Step 5 · Interpret
Association is not causation
The last step is to answer your question honestly — without saying more than the data can show.
Association
Two variables are associated when the percentages differ between groups. Knowing one variable then tells you something about the other.
Not proof of a cause
A table or chart cannot show that one variable causes the other. A third variable may affect both. Towns that sell more ice cream also have more swimmers — because of hot weather, not because of the ice cream.
How causes are tested
To show a cause, researchers run a controlled experiment: they assign groups at random, change one variable and keep the control variables the same.
Good wording: “In our sample, a larger share of students with a pet spend time outdoors every day.” Too strong: “Having a pet makes students go outside.”
Step by step
Worked examples
Classify four variables
variable typesA sports club records four things about each member: favourite position (goalkeeper, defender, midfielder, forward), the number of training sessions last month, the time to sprint 100 m, and the number on the shirt. Classify each variable.
Ask yourself: For each one, ask: is it a label, a count or a measurement?
Show the solution
- Favourite position: the answers are names of groups → categorical.
- Training sessions: counted in whole numbers → discrete quantitative.
- Sprint time: measured with a stopwatch, any value such as 13.48 s → continuous quantitative.
- Shirt number: digits, but only a label for the player → categorical.
Answer categorical, discrete, continuous, categorical
From counts to a conclusion
two-way tableA class survey asked 100 students two questions: “Did you eat breakfast today?” and “Did you feel focused in the first lesson?”
| Focused | Not focused | Total | |
|---|---|---|---|
| Breakfast | 42 | 18 | 60 |
| No breakfast | 16 | 24 | 40 |
Is there an association? Can we say breakfast causes focus?
Ask yourself: The groups have different sizes (60 and 40). What should you compare?
Show the solution
- Percent of each row: breakfast group 42 / 60 = 70% focused; no-breakfast group 16 / 40 = 40% focused.
- The gap is 70 − 40 = 30 percentage points, far more than 10, so the data shows a clear association.
- This is a survey, not an experiment. Other variables, such as hours of sleep, could affect both breakfast and focus. So the data cannot prove a cause.
Answer a clear association (70% versus 40%), but not proof that breakfast causes focus
Plan a study from start to finish
research planMaya wants to know whether students like music. Turn her idea into a study about two categorical variables.
Ask yourself: Which two variables? Who will you ask? How will you show the result?
Show the solution
- Question: “Is there a relationship between grade (9th, 10th, 11th) and favourite type of music (pop, rock, hip-hop, classical, other) among students at our school?”
- Variables: grade is the independent (grouping) variable; favourite music is the dependent variable. Both are categorical.
- Collect primary data: choose about 30 students at random from each grade and give everyone the same short anonymous questionnaire, after explaining the purpose and asking for consent.
- Organise the answers in a 3 × 5 two-way table, compute the percent of each row, and draw a grouped bar chart.
- Interpret: compare the percentages between grades, describe any association, and avoid claiming a cause.
Answer a clear question with two categorical variables, a fair sample, consent, a two-way table and a careful conclusion
Quiz: the statistical research process
0 / 0Rounds of 12 multiple-choice questions. Stuck? Press Hint before you answer; an explanation follows every answer. Your best score is kept in this browser only.
One-page summary
The five steps
Ask a question → collect data → organise it in a table → analyse with percentages and charts → interpret and answer.
Types of variables
- Categorical: labels or groups (blood type, sport).
- Discrete: counted, whole numbers (siblings, goals).
- Continuous: measured, any value (height, time).
Roles
- Independent: changed on purpose or used to form groups.
- Dependent: the result we measure.
- Control: kept the same for a fair comparison.
A good research question
Clear, measurable, collectable, meaningful and ethical. For two categorical variables: “Is there a relationship between A and B among …?”
Collecting data
- Primary: you collect it. Secondary: someone else did — check the source.
- A random, representative sample avoids bias.
- Valid: measures the right thing. Reliable: consistent.
- Consent, privacy, and credit your sources.
Two-way tables
Rows = groups of one variable, columns = answers to the other. Compare the percent of each row (conditional relative frequency), not raw counts, when groups differ in size.
Grouped bar charts
One colour per answer, bars side by side in each group. Similar patterns in every group → little or no association. Different patterns → association.
Conclusions
An association is not proof of a cause; a third variable may explain both. Only a controlled experiment can test a cause. Say what the data shows, and no more.
About this lesson
The statistical research process for high school: categorical versus discrete and continuous variables, independent, dependent and control variables, writing a research question about two categorical variables, primary and secondary data, fair samples, validity, reliability and consent, two-way tables with conditional relative frequencies, grouped bar charts, and why association is not causation. A card-sorting game, role scenarios, a table and chart builder, a quiz with hints and a printable summary. Everything on this page runs in your browser; nothing you type is sent or stored. Spotted an error? Tell us.