Skip to main content

Learning outcomes

  • classify data as categorical or numerical
  • identify nominal and ordinal data
  • identify discrete and continuous numerical data
  • avoid common classification mistakes

Main data classes

  • Categorical data: labels or groups
  • Numerical data: numbers that represent quantity or measurement

Categorical data

  • Used to place cases into groups or classes.
  • Arithmetic operations are not meaningful on the labels themselves.
Examples:
  • blood group
  • department
  • gender
  • type of vehicle

Nominal data

  • Categories with no natural order.
Examples:
  • blood group
  • branch
  • city name

Ordinal data

  • Categories with a meaningful order or ranking.
  • But the gaps between categories are not necessarily equal.
Examples:
  • poor, average, good
  • rank in class
  • satisfaction level: low, medium, high
MCQ trap:
  • Ordered categories are still categorical, not numerical.

Numerical data

  • Represents numerical magnitude.
  • Arithmetic operations are meaningful.
Examples:
  • age
  • height
  • income
  • number of books

Discrete data

  • Countable values, usually whole numbers.
Examples:
  • number of siblings
  • number of calls received
  • number of students present

Continuous data

  • Measured values that can take many possible values within an interval.
Examples:
  • height
  • time
  • weight
  • temperature

Code numbers and hidden traps

  • Sometimes categories are coded as numbers:
    • 1 = male, 2 = female
    • 1 = rural, 2 = urban
These are still categorical variables. Why?
  • The numbers act as labels, not quantities.

Mixed examples

VariableType
Blood groupcategorical nominal
Rank in competitioncategorical ordinal
Number of childrennumerical discrete
Body temperaturenumerical continuous

Exam hints and traps

  • If the value counts items, it is often discrete.
  • If the value measures on a scale, it is often continuous.
  • Ordered labels remain categorical.
  • Not every number should be added or averaged.

Quick practice

Classify each:
  1. favourite subject
  2. number of absences
  3. monthly income
  4. t-shirt size (S, M, L, XL)
  5. rating: poor / fair / good / excellent

Answer key

  1. categorical nominal
  2. numerical discrete
  3. numerical continuous
  4. categorical ordinal
  5. categorical ordinal