Tipe Data
Published on October 9, 2026
Definition
Nominal
Categories without any inherent order
Ordinal
Categories with a meaningful rank/order
Interval
Numeric scale with equal intervals but no true zero
Ratio
Numeric scale with equal intervals and a true zero
Order
Nominal
No
Ordinal
Yes
Interval
Yes
Ratio
Yes
Equal Intervals
Nominal
No
Ordinal
No
Interval
Yes
Ratio
Yes
True Zero
Nominal
No
Ordinal
No
Interval
No
Ratio
Yes
Mathematical Operations
Nominal
Mode, frequency counts only
Ordinal
Mode, median, percentiles
Interval
Addition, subtraction, mean, SD
Ratio
All operations including multiplication and division
Medical Example
Nominal
Blood type (A, B, AB, O)
Ordinal
Cancer staging (I, II, III, IV)
Interval
Temperature in Celsius
Ratio
Weight in kilograms
Keywords
Nominal
"Category," "type," "group," "classify"
Ordinal
"Rank," "grade," "stage," "scale," "severity"
Interval
"Score," "index," "scale with equal units," "degrees"
Ratio
"Measurement," "level," "concentration," "count"
Feature | Nominal | Ordinal | Interval | Ratio |
|---|---|---|---|---|
Definition | Categories without any inherent order | Categories with a meaningful rank/order | Numeric scale with equal intervals but no true zero | Numeric scale with equal intervals and a true zero |
Order | No | Yes | Yes | Yes |
Equal Intervals | No | No | Yes | Yes |
True Zero | No | No | No | Yes |
Mathematical Operations | Mode, frequency counts only | Mode, median, percentiles | Addition, subtraction, mean, SD | All operations including multiplication and division |
Medical Example | Blood type (A, B, AB, O) | Cancer staging (I, II, III, IV) | Temperature in Celsius | Weight in kilograms |
Keywords | "Category," "type," "group," "classify" | "Rank," "grade," "stage," "scale," "severity" | "Score," "index," "scale with equal units," "degrees" | "Measurement," "level," "concentration," "count" |
01Conceptual Foundation
Understanding data types is foundational to selecting the correct statistical test. Every exam question about choosing a test, interpreting a p-value, or critiquing a study design ultimately traces back to one question: what type of data is being analyzed?
Data can be broadly divided into two families. Categorical (qualitative) data places observations into groups. Numerical (quantitative) data assigns a measurable value to each observation. Within each family, there is a hierarchy of measurement precision that determines which statistical operations are valid.
The hierarchy follows a simple rule: each higher level of measurement inherits all the properties of the levels below it and adds one new property. Nominal data has categories. Ordinal data adds order. Interval data adds equal spacing between values. Ratio data adds a meaningful zero point. This layered structure is the single most important concept to internalize, because it dictates which summary statistics and hypothesis tests are appropriate.
A common error is treating ordinal data as if it were interval data. For example, a pain scale from 1 to 10 has an order, but the "distance" between a score of 2 and 4 is not necessarily the same as between 6 and 8. Calculating a mean of ordinal data is technically invalid, though it is done frequently in clinical practice and some research contexts. On a licensing exam, however, you must know the theoretically correct classification.
02Classification and Properties of Each Data Type
Categorical Data
Categories
Nominal
Yes
Ordinal
Yes
Inherent order
Nominal
No
Ordinal
Yes
Equal intervals between categories
Nominal
No
Ordinal
No
True zero
Nominal
No
Ordinal
No
Central tendency
Nominal
Mode
Ordinal
Mode, Median
Dispersion
Nominal
Frequency distribution
Ordinal
Range, Interquartile range
Appropriate tests
Nominal
Chi-square, Fisher exact
Ordinal
Mann-Whitney U, Wilcoxon, Kruskal-Wallis, Spearman correlation
Property | Nominal | Ordinal |
|---|---|---|
Categories | Yes | Yes |
Inherent order | No | Yes |
Equal intervals between categories | No | No |
True zero | No | No |
Central tendency | Mode | Mode, Median |
Dispersion | Frequency distribution | Range, Interquartile range |
Appropriate tests | Chi-square, Fisher exact | Mann-Whitney U, Wilcoxon, Kruskal-Wallis, Spearman correlation |
Nominal Data
Nominal data is the most basic level of measurement. Observations are sorted into mutually exclusive categories that carry no rank or quantitative value. The word "nominal" comes from the Latin nomen (name), which is a useful mnemonic: you are simply naming categories.
Medical examples include blood type (A, B, AB, O), sex (male, female), marital status, alive vs. dead, presence or absence of a gene mutation, and race/ethnicity categories. Even when numbers are assigned to categories (e.g., 1 = male, 2 = female), those numbers are arbitrary labels. You cannot say that "female is twice male."
A special subtype is dichotomous (binary) nominal data, which has exactly two categories: yes/no, positive/negative, diseased/healthy. This subtype is extremely common in clinical research and forms the basis of 2x2 contingency tables used to calculate sensitivity, specificity, and odds ratios.
Ordinal Data
Ordinal data adds a meaningful rank order to categories, but the intervals between ranks are not guaranteed to be equal. Think of it as nominal data with a hierarchy.
High-yield medical examples:
Cancer staging (Stage I < II < III < IV)
NYHA heart failure class (I through IV)
Pain severity scales (mild, moderate, severe)
Likert scales in survey research (strongly disagree to strongly agree)
Apgar scores (though often treated as interval in practice)
ECOG performance status (0 through 5)
ASA physical status classification (I through VI)
The critical point is that the gap between Stage I and Stage II cancer is not the same as the gap between Stage III and Stage IV. Because the intervals are unequal, calculating a mean is not technically appropriate. The correct measure of central tendency for ordinal data is the median, and the correct tests are nonparametric tests such as Mann-Whitney U or Kruskal-Wallis.
Numerical Data
Categories
Interval
N/A (continuous scale)
Ratio
N/A (continuous scale)
Inherent order
Interval
Yes
Ratio
Yes
Equal intervals
Interval
Yes
Ratio
Yes
True zero
Interval
No
Ratio
Yes
Meaningful ratios
Interval
No
Ratio
Yes
Central tendency
Interval
Mean, Median, Mode
Ratio
Mean, Median, Mode
Dispersion
Interval
Standard deviation, Variance
Ratio
Standard deviation, Variance, Coefficient of variation
Appropriate tests
Interval
t-test, ANOVA, Pearson correlation, linear regression
Ratio
t-test, ANOVA, Pearson correlation, linear regression
Property | Interval | Ratio |
|---|---|---|
Categories | N/A (continuous scale) | N/A (continuous scale) |
Inherent order | Yes | Yes |
Equal intervals | Yes | Yes |
True zero | No | Yes |
Meaningful ratios | No | Yes |
Central tendency | Mean, Median, Mode | Mean, Median, Mode |
Dispersion | Standard deviation, Variance | Standard deviation, Variance, Coefficient of variation |
Appropriate tests | t-test, ANOVA, Pearson correlation, linear regression | t-test, ANOVA, Pearson correlation, linear regression |
Interval Data
Interval data has both order and equal spacing between values, but it lacks a true zero point. The zero is arbitrary and does not represent the complete absence of the quantity being measured.
The classic example is temperature in Celsius or Fahrenheit. The difference between 20°C and 30°C is the same as between 30°C and 40°C (equal intervals). However, 0°C does not mean "no temperature." Consequently, you cannot say that 40°C is "twice as hot" as 20°C. Ratios are meaningless with interval data.
Other medical examples include calendar year (2020 vs. 2025), pH (the zero is arbitrary), and many standardized psychometric test scores (e.g., IQ scores, where a score of 0 does not mean "no intelligence" and a score of 140 is not "twice as intelligent" as 70).
You can perform addition and subtraction with interval data (the difference between two values is meaningful), and parametric tests such as the t-test and ANOVA are valid.
Ratio Data
Ratio data is the highest level of measurement. It possesses all properties of interval data and adds a true (absolute) zero, which represents the genuine absence of the measured quantity. This allows meaningful ratios: a hemoglobin of 14 g/dL is indeed twice as much as 7 g/dL.
Medical examples are abundant:
Height, weight, BMI
Blood pressure (mmHg)
Serum glucose, creatinine, hemoglobin, and virtually all lab values
Heart rate, respiratory rate
Temperature in Kelvin (the only temperature scale with a true zero)
Duration of disease, length of hospital stay
Number of episodes, number of cells per field
Count data (e.g., number of lymph nodes positive) is a subtype of ratio data that is discrete rather than continuous but still has a true zero and allows ratios.
Because ratio data supports all mathematical operations, the full suite of parametric statistics applies, including the coefficient of variation (which requires a meaningful zero to interpret).
03Choosing the Correct Statistical Test Based on Data Type
This is where exam questions most frequently test your understanding. The data type of both the independent variable and the dependent variable together determine the appropriate test.
Nominal (binary)
Independent Variable
Nominal
Groups
2
Appropriate Test
Chi-square or Fisher exact test
Nominal (binary)
Independent Variable
Nominal
Groups
>2
Appropriate Test
Chi-square test
Ordinal
Independent Variable
Nominal
Groups
2 (unpaired)
Appropriate Test
Mann-Whitney U test
Ordinal
Independent Variable
Nominal
Groups
2 (paired)
Appropriate Test
Wilcoxon signed-rank test
Ordinal
Independent Variable
Nominal
Groups
>2 (unpaired)
Appropriate Test
Kruskal-Wallis test
Ordinal
Independent Variable
Nominal
Groups
>2 (paired)
Appropriate Test
Friedman test
Interval/Ratio
Independent Variable
Nominal
Groups
2 (unpaired)
Appropriate Test
Independent t-test
Interval/Ratio
Independent Variable
Nominal
Groups
2 (paired)
Appropriate Test
Paired t-test
Interval/Ratio
Independent Variable
Nominal
Groups
>2 (unpaired)
Appropriate Test
One-way ANOVA
Interval/Ratio
Independent Variable
Nominal
Groups
>2 (paired)
Appropriate Test
Repeated-measures ANOVA
Interval/Ratio
Independent Variable
Interval/Ratio
Groups
Correlation
Appropriate Test
Pearson correlation
Ordinal
Independent Variable
Ordinal
Groups
Correlation
Appropriate Test
Spearman rank correlation
Dependent Variable | Independent Variable | Groups | Appropriate Test |
|---|---|---|---|
Nominal (binary) | Nominal | 2 | Chi-square or Fisher exact test |
Nominal (binary) | Nominal | >2 | Chi-square test |
Ordinal | Nominal | 2 (unpaired) | Mann-Whitney U test |
Ordinal | Nominal | 2 (paired) | Wilcoxon signed-rank test |
Ordinal | Nominal | >2 (unpaired) | Kruskal-Wallis test |
Ordinal | Nominal | >2 (paired) | Friedman test |
Interval/Ratio | Nominal | 2 (unpaired) | Independent t-test |
Interval/Ratio | Nominal | 2 (paired) | Paired t-test |
Interval/Ratio | Nominal | >2 (unpaired) | One-way ANOVA |
Interval/Ratio | Nominal | >2 (paired) | Repeated-measures ANOVA |
Interval/Ratio | Interval/Ratio | Correlation | Pearson correlation |
Ordinal | Ordinal | Correlation | Spearman rank correlation |
The decision-making logic follows two steps:
Step 1: Identify the data type of your outcome (dependent) variable. If it is nominal or ordinal, you use nonparametric tests. If it is interval or ratio and normally distributed, you use parametric tests.
Step 2: Count the number of groups being compared. Two groups lead to a t-test or Mann-Whitney; three or more groups lead to ANOVA or Kruskal-Wallis.
An additional consideration is whether the groups are independent (unpaired) or dependent (paired/matched). Paired data arises when the same subjects are measured before and after an intervention, or when subjects are matched one-to-one. Paired designs use different tests (paired t-test, Wilcoxon signed-rank) than unpaired designs.
04Transformations and Practical Nuances
Scenario | Recommended Approach |
|---|---|
Continuous data that is not normally distributed | Consider log transformation or use nonparametric tests |
Ordinal data with many categories (e.g., Likert 1 to 7) | Some researchers treat as interval; on exams, treat as ordinal unless stated otherwise |
Continuous data dichotomized (e.g., BMI > 30 vs. ≤ 30) | Now treated as nominal; use chi-square. Note: dichotomization loses statistical power |
Ratio data with skewed distribution | Use median and IQR instead of mean and SD; apply nonparametric tests or transform |
Dichotomization is a common practice in clinical research where a continuous variable is split into two groups using a cutoff. For example, converting systolic blood pressure (ratio data) into "hypertensive" vs. "normotensive" (nominal data). This is valid and often clinically useful, but it reduces statistical power because it discards information about the degree of difference between subjects.
On exams, when a vignette presents a continuous outcome that has been categorized, recognize that the data type has changed, and the appropriate test changes with it.
05Differential Diagnosis of Data Types
Ordinal vs. Interval
Why Students Mix Them
Ordinal scales often use numbers (e.g., pain 1 to 10), making them look numerical
Key Discriminator
Ask: are the intervals between consecutive values guaranteed to be equal? If no, it is ordinal. Cancer Stage II to III is not the same "jump" as Stage I to II.
Interval vs. Ratio
Why Students Mix Them
Both use continuous numeric scales with equal intervals
Key Discriminator
Ask: does zero mean the complete absence of the quantity? Temperature in Celsius: 0°C is not "no temperature," so it is interval. Weight: 0 kg means no mass, so it is ratio.
Nominal vs. Ordinal
Why Students Mix Them
Some categorical data has a subtle natural order students overlook
Key Discriminator
Ask: can the categories be meaningfully ranked? "Blood types" cannot. "Education level" (primary, secondary, tertiary) can.
Discrete ratio vs. Ordinal
Why Students Mix Them
Both can appear as integers (e.g., "number of hospitalizations" vs. "pain score 1 to 5")
Key Discriminator
Discrete ratio data represents actual counts with a true zero and equal intervals. Ordinal scores represent subjective ranks without guaranteed equal spacing.
Likert scale items vs. Likert scale totals
Why Students Mix Them
A single Likert item (strongly disagree to strongly agree) is ordinal, but a summed Likert total across many items is often treated as interval
Key Discriminator
On exams, treat individual Likert items as ordinal. Summed composite scores from validated instruments are sometimes treated as interval by convention.
Confusing Pair | Why Students Mix Them | Key Discriminator |
|---|---|---|
Ordinal vs. Interval | Ordinal scales often use numbers (e.g., pain 1 to 10), making them look numerical | Ask: are the intervals between consecutive values guaranteed to be equal? If no, it is ordinal. Cancer Stage II to III is not the same "jump" as Stage I to II. |
Interval vs. Ratio | Both use continuous numeric scales with equal intervals | Ask: does zero mean the complete absence of the quantity? Temperature in Celsius: 0°C is not "no temperature," so it is interval. Weight: 0 kg means no mass, so it is ratio. |
Nominal vs. Ordinal | Some categorical data has a subtle natural order students overlook | Ask: can the categories be meaningfully ranked? "Blood types" cannot. "Education level" (primary, secondary, tertiary) can. |
Discrete ratio vs. Ordinal | Both can appear as integers (e.g., "number of hospitalizations" vs. "pain score 1 to 5") | Discrete ratio data represents actual counts with a true zero and equal intervals. Ordinal scores represent subjective ranks without guaranteed equal spacing. |
Likert scale items vs. Likert scale totals | A single Likert item (strongly disagree to strongly agree) is ordinal, but a summed Likert total across many items is often treated as interval | On exams, treat individual Likert items as ordinal. Summed composite scores from validated instruments are sometimes treated as interval by convention. |
06Traps and High-Yield Pearls
The most common trap involves ordinal data disguised as numbers. A vignette might describe a researcher comparing "average pain scores" between two groups using a t-test. The correct criticism is that a pain scale is ordinal, so a Mann-Whitney U test would be the theoretically appropriate test. Students who focus only on the number of groups (two groups = t-test) without checking the data type will select the wrong answer.
A second frequent trap is the interval vs. ratio distinction on temperature scales. Celsius and Fahrenheit are interval because 0 degrees is arbitrary. Kelvin is ratio because 0 K is absolute zero. This distinction rarely changes clinical practice, but it is a favorite conceptual question.
A third trap involves dichotomized data. When a study converts a continuous variable (e.g., hemoglobin level) into a binary outcome (anemic vs. not anemic), the data type becomes nominal. Students who remember the original variable was continuous and select a t-test will be wrong; the correct test is chi-square.
The core competency being tested in questions about data types is matching the level of measurement to the correct statistical test and summary statistic. If you can correctly identify the data type, the test selection follows logically. The hierarchy to memorize is:
Nominal (names) → Ordinal (order) → Interval (equal intervals, no true zero) → Ratio (equal intervals, true zero)
Each level inherits everything below it and adds one property. Know the property, know the test.