Have you ever wondered why your teacher asks for your height in centimeters and your favorite color in class surveys? These different kinds of information - numbers and words - help us understand the world in different ways.
In this lesson on Categorical & Numerical Variables, you'll discover how to sort data like a young scientist. Whether you're tracking tree heights in a park or pizza sizes at a party, understanding variable types helps make sense of it all.
A variable is anything that can change or be measured in a dataset. Think of variables as data labels that help describe objects, people, or events.
Type | Description | Example |
Categorical | Describes qualities or groups (non-numeric) | Eye color, shirt size |
Numerical | Describes quantities (numeric values) | Height in cm, number of books |
Categorical variables describe categories or labels - they don't have a numeric meaning.
Type | Description | Example |
Nominal | No specific order between categories | Eye color (blue, green, brown) |
Ordinal | Has a natural order | Shirt size (Small, Medium, Large) |
If someone says they like "summer, spring, winter, and fall," is there an order to those seasons? Would that make it nominal or ordinal?
Answer: There's no strict order - this would be nominal unless they meant it chronologically.
Take This Quiz:
Numerical variables represent quantities that can be counted or measured.
Type | Description | Example |
Discrete | Counted in whole numbers | Number of siblings, cars, or apples |
Continuous | Measured and can take on any value | Height, weight, temperature |
To help you understand how to identify variable types, let's explore how real-world data is classified.
Situation | Variable | Type |
Pizza Sizes (Small, Medium, Large) | Size | Categorical Ordinal |
Colors of cars in traffic | Color | Categorical Nominal |
Heights of students in class | Height | Numerical Continuous |
Number of pets in your home | Number of pets | Numerical Discrete |
Postcode of holiday destinations | Postcode | Categorical Nominal |
Let's break down the learning areas into teaching moments.
Key Concept: Categorical Ordinal
Why? These have a natural order from smallest to largest.
Student Tip: Always ask, "Can I rank these?" If yes, it's likely ordinal.
Key Concept: Categorical Nominal
No color is more or less than another. There's no ranking - just naming.
Key Concept: Numerical Continuous
Height can be 1.5 cm or 1.53 cm - it can have decimals and be measured accurately.
Key Concept: Numerical Discrete
You count people. You can't have half a person.
Common Misconception: Money is not continuous. Since we count cents, it's discrete.
Key Concept: Numerical Discrete
Money has set values. It's counted (e.g., Rs. 50.25), not infinitely measured.
Here's a checklist students can use when examining a variable:
Question | If Yes → | Then the Type Is... |
Is it a number? | Yes | Go to next question |
Can it have decimals? | Yes | Numerical Continuous |
Is it counted in whole units only? | Yes | Numerical Discrete |
Is it a word or label? | Yes | Go to next question |
Can I rank it logically? | Yes | Categorical Ordinal |
No ranking, just different labels? | Yes | Categorical Nominal |
Task for Students:
Go around your house and collect 5 different types of data (example: shoe size, number of chairs, color of car). Classify them as either categorical (nominal or ordinal) or numerical (discrete or continuous). Fill them into this table:
Data Collected | Type of Variable | Subtype |
By mastering the concepts of categorical and numerical variables, students build the foundation for advanced data science, research, and even survey-based understanding. These skills not only help in acing the quiz but also allow them to better interpret and organize the data they encounter every day.
Encourage yourself to observe your world closely. Whether it's sorting school supplies, tallying favorite foods, or tracking daily weather - data is everywhere, and now you know how to make sense of it!
Take This Quiz:
Rate this lesson:
Wait!
Here's an interesting quiz for you.