Collecting and showing data
What is data?
Goal: Distinguish categorical and numerical data · 7 min
Statistics starts with a question and data that answer it: "How do pupils get to school?", "How tall are the plants after 3 weeks?"
- Categorical data are labels: colour, transport mode, favourite sport. You can count them, but averaging makes no sense.
- Numerical data are numbers from counting or measuring: number of siblings (discrete), height in cm (continuous). You can calculate with them.
The whole group you want to learn about is the population; the part you actually ask is the sample. A sample should be representative: asking only the football team about favourite sports gives a biased picture.
Worked example: Planning a survey
- Question: how long do pupils of our school sleep?
- Population: all 600 pupils; sample: 60 pupils, 10 from each year group.
- Data: hours of sleep — numerical, continuous.