Before any calculation, chart, or test, one question decides more than almost anything else: what kind of data is this? A mean makes sense for exam scores but not for favourite colours. A bar chart suits categories; a histogram suits continuous measurements. Getting the data type wrong at the start quietly derails every choice that follows.
- The two major branches — categorical and numeric — and their subtypes
- Why the discrete vs. continuous distinction changes which summary statistics make sense
- How data type determines which chart, calculator, and test is appropriate
- Common classification mistakes, including numbers that aren't actually numeric
The Two Major Branches
Every calculator, chart, and test covered elsewhere on this site assumes a specific data type — mean, median, and mode behave differently depending on it, and a chi-square test versus a t-test is largely a decision about categorical versus numeric data. Getting the classification right at the very start of an analysis is what makes every later choice actually correct, not just calculable.
Categorical (qualitative) data represents categories or labels — eye colour, country of birth, pass/fail. It has no inherent numeric meaning, even when categories are coded with numbers for convenience (like "1 = male, 2 = female" in a spreadsheet). Numeric (quantitative) data represents actual measured or counted quantities — height, age, number of items sold — where arithmetic operations genuinely make sense.
Categorical Data: Nominal vs. Ordinal
Nominal categories have no natural order — eye colour, blood type, country of residence. There's no sense in which "blue" is greater than "brown." Ordinal categories DO have a natural order, but the gaps between categories aren't necessarily equal or even meaningful — a satisfaction rating of "poor, fair, good, excellent" is ordinal: excellent is clearly better than poor, but the "distance" from poor to fair isn't necessarily the same as fair to good.
The mean is mathematically valid only for numeric data. Calculating a mean satisfaction rating by coding "poor=1, fair=2, good=3, excellent=4" and averaging is common practice, but it quietly assumes the gaps between those categories are equal — an assumption ordinal data doesn't actually guarantee. The median or mode is often the more defensible summary for genuinely ordinal data, even though means are calculated on Likert-scale data constantly in practice.
Numeric Data: Discrete vs. Continuous
Discrete numeric data can only take specific, separate values — usually whole-number counts: number of children, number of defects, number of customers. There's no meaningful value between 2 and 3 customers. Continuous numeric data can take any value within a range, limited only by the precision of measurement — height, weight, time, temperature. Between any two continuous values, another value is always theoretically possible.
This distinction directly determines the right distribution and chart type: counts of discrete events over a fixed interval often follow a binomial or Poisson distribution; continuous measurements are more often modelled with a normal distribution. A bar chart (with gaps between bars) suits discrete categorical data; a histogram (bars touching, representing bins of a continuous scale) suits continuous numeric data.
A Special Case: Interval vs. Ratio Data
Within continuous numeric data, a further distinction matters for certain calculations. Interval data has meaningful, equal gaps between values but no true zero point — temperature in Celsius is the classic example: 20°C isn't "twice as hot" as 10°C, because 0°C doesn't represent an absence of temperature. Ratio data has a true zero point, where zero genuinely means "none" — height, weight, and income are ratio data, and it IS meaningful to say someone earning $80,000 earns twice as much as someone earning $40,000. This distinction matters for which statements about ratios and multiples are mathematically defensible.
Worked Classification Example
Problem: A customer survey collects: (1) customer's country, (2) satisfaction rating (1-5 stars), (3) number of items purchased, (4) time spent on the website in seconds.
(1) Country: categorical, nominal — no natural order between countries.
(2) Star rating: categorical, ordinal — 5 stars is clearly better than 1, but the "distance" between each star level isn't guaranteed to be equal.
(3) Items purchased: numeric, discrete — whole-number counts, no fractional item purchases.
(4) Time on site: numeric, continuous (ratio, since 0 seconds genuinely means no time spent) — can take any value, limited only by measurement precision.
Why Statisticians Sometimes Use "NOIR" as a Memory Device
The four levels — Nominal, Ordinal, Interval, Ratio — form a widely-taught hierarchy of "measurement scales," originally proposed by psychologist Stanley Stevens in 1946. Each level up the hierarchy adds a mathematical property the level below lacks: ordinal adds meaningful order to nominal's bare categories; interval adds meaningful equal spacing to ordinal's order; ratio adds a true zero to interval's spacing. This hierarchy isn't just academic trivia — it directly determines which arithmetic operations and which statistical techniques are mathematically defensible for a given variable. You can calculate a mode for any of the four levels, a median for ordinal and above, a mean for interval and above, and a coefficient of variation (which requires a true zero) only for ratio data.
Real-World Uses of Getting This Right
Survey design: deciding upfront whether a question should collect nominal categories, an ordinal scale, or a genuinely numeric ratio value (like exact age rather than an age bracket) determines what analysis is possible later — a decision that's expensive to fix retroactively once data collection is underway.
Machine learning feature engineering: many algorithms require categorical variables to be specially encoded (one-hot encoding for nominal data, ordinal encoding that preserves rank for ordinal data) before they can be used, precisely because feeding a nominal code like "1=red, 2=blue, 3=green" directly into most models would incorrectly imply blue is "between" red and green in some numeric sense.
Database and spreadsheet design: choosing the right column type (text/category vs. integer vs. decimal) at the point of data collection prevents exactly the kind of "numeric code treated as a real number" mistake covered above, and makes correct analysis far more likely downstream.
Government and scientific reporting: census and survey data explicitly documents each variable's measurement level as part of its metadata, specifically so downstream analysts don't have to guess whether a coded value is genuinely numeric or a category label wearing a number's clothing.
Ordinal Data in Practice: A Deeper Look at Likert Scales
The 1-5 or 1-7 "strongly disagree to strongly agree" Likert scale is the most common ordinal data type in applied research, and its treatment is genuinely debated among statisticians. Treating it as interval data (calculating means, running t-tests) is extremely common and often defended as a reasonable approximation, especially when scale points are presented as evenly spaced and analysis aggregates many respondents. Treating it strictly as ordinal (reporting medians, using rank-based non-parametric tests like Mann-Whitney U) is the more conservative, technically correct choice. Neither approach is simply "wrong" — the right choice depends on the specific research context, sample size, and how the results will be used, but it's worth making the choice deliberately rather than defaulting to a mean without considering the alternative.
Common Mistakes
Treating a numeric code as if it were genuinely numeric. A "customer ID" or "zip code" is stored as a number in most spreadsheets but is actually nominal categorical data — averaging zip codes produces a meaningless number, since the numeric values are just labels, not quantities.
Averaging ordinal data without acknowledging the assumption. As covered above, this is extremely common in practice (survey Likert scales especially) but technically assumes equal spacing between categories that isn't guaranteed — worth being aware of even when the practice is followed anyway for convenience.
Confusing discrete numeric data with categorical data. "Number of children" (0, 1, 2, 3...) is discrete numeric, not categorical, even though it only takes a limited set of whole-number values — arithmetic operations like the mean genuinely make sense on it ("the average family has 1.8 children"), unlike genuinely categorical data.
Can the same variable be treated as different data types depending on context?
Why does data type matter for choosing a statistical test?
Is binary data (yes/no, 0/1) categorical or numeric?
Share this article
Written by
Statistics Fundamentals Editorial Team
Written and reviewed by our team of statistics educators. Content is aligned with GCSE, A-Level, AP Statistics, and undergraduate curricula.
About Statistics Fundamentals →