Statistics and Mechanics Year 1, chapter 1 (Data collection), section 1.4
Variables and data
A variable is a characteristic that can take different values, such as height or favourite colour. The values are the data.
Types
- Qualitative (categorical): described by words or categories, such as colour or type of transport.
- Quantitative: described by numbers.
- Discrete: takes separate values, usually whole numbers that you count (number of children).
- Continuous: can take any value in a range, usually measured (height, time, mass).
Grouped data
Data are often put into classes. For continuous data, the classes have boundaries, for example . The class width is the difference between the boundaries and the midpoint is halfway between them.
Worked example
Classify each variable.
| Variable | Type |
|---|---|
| Favourite sport | Qualitative |
| Number of goals in a match | Quantitative, discrete |
| Time to run 100 m | Quantitative, continuous |
| Shoe size | Quantitative, discrete |
Univariate and bivariate
Univariate data have one variable. Bivariate data have two variables measured on each item, such as height and mass, and are used for scatter diagrams and regression.
Coding and the large data set
Sometimes categories are given codes (for example 1 for rain, 2 for sun) to make data easier to store, but the codes are still qualitative.
Common mistake: calling a measurement discrete just because it is rounded. Time and height are continuous, even when written to the nearest second or centimetre. Shoe sizes are discrete because only certain values exist.
Exam tip: when classifying, give both words: "quantitative and continuous". Explain briefly why, such as "it is measured and can take any value".
Check yourself
Is "number of siblings" discrete or continuous?
Discrete.
Is "mass of an apple" discrete or continuous?
Continuous.
What kind of data is "hair colour"?
Qualitative (categorical).