Categorical & Numerical Variables

Created by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process

Lesson Overview

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.

What Are Variables in Data?

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.

Two Main Types of Variables:

TypeDescriptionExample
CategoricalDescribes qualities or groups (non-numeric)Eye color, shirt size
NumericalDescribes quantities (numeric values)Height in cm, number of books

What Are Categorical Variables?

Categorical variables describe categories or labels - they don't have a numeric meaning.

Types of Categorical Variables:

TypeDescriptionExample
NominalNo specific order between categoriesEye color (blue, green, brown)
OrdinalHas a natural orderShirt size (Small, Medium, Large)

Example:

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:

What Are Numerical Variables?

Numerical variables represent quantities that can be counted or measured.

Types of Numerical Variables:

TypeDescriptionExample
DiscreteCounted in whole numbersNumber of siblings, cars, or apples
ContinuousMeasured and can take on any valueHeight, weight, temperature

Differentiating Variables with Real-Life Examples

To help you understand how to identify variable types, let's explore how real-world data is classified.

SituationVariableType
Pizza Sizes (Small, Medium, Large)SizeCategorical Ordinal
Colors of cars in trafficColorCategorical Nominal
Heights of students in classHeightNumerical Continuous
Number of pets in your homeNumber of petsNumerical Discrete
Postcode of holiday destinationsPostcodeCategorical Nominal

Deeper Dive into Crucial Concepts

Let's break down the learning areas into teaching moments.

Shirt Sizes of Rugby Players (Large, Medium, XXL)

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.

Eye Color or Hair Color

Key Concept: Categorical Nominal
No color is more or less than another. There's no ranking - just naming.

Height of a Tree in Centimeters

Key Concept: Numerical Continuous
Height can be 1.5 cm or 1.53 cm - it can have decimals and be measured accurately.

Number of Family Members

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.

Cost of a Taxi Fare

Key Concept: Numerical Discrete
Money has set values. It's counted (e.g., Rs. 50.25), not infinitely measured.

Student Questions for Practice

  1. Q: Can a variable be both categorical and numerical?
    A: No. Each variable fits into one group depending on how it's collected or used.
  2. Q: Is temperature discrete or continuous?
    A: Continuous - because it can be measured very precisely.
  3. Q: Is a rating (e.g., 1 star to 5 stars) ordinal or numerical?
    A: Ordinal - it shows order, but the space between numbers isn't always equal.

Quick Identification Strategy

Here's a checklist students can use when examining a variable:

QuestionIf Yes →Then the Type Is...
Is it a number?YesGo to next question
Can it have decimals?YesNumerical Continuous
Is it counted in whole units only?YesNumerical Discrete
Is it a word or label?YesGo to next question
Can I rank it logically?YesCategorical Ordinal
No ranking, just different labels?YesCategorical Nominal

Real-Life Application Task

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 CollectedType of VariableSubtype

Key Takeaway:

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:

Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.