what are discrete variables
Discrete variables are numerical variables that take only specific, separate values that you can count , not smoothly measure or split into meaningful fractions between allowed values.
What are discrete variables?
In statistics, a discrete variable is a quantitative (numeric) variable whose possible values are distinct and countable, like 0, 1, 2, 3, and so on.
There are gaps between the allowed values: there is no valid value “in between” two neighboring values in the context of that variable (for example, between 2 and 3 children).
Key features:
- Values are countable (finite or countably infinite).
- Often whole numbers only, not fractions like 2.5 (e.g., 2.5 cars does not make sense in usual counting).
- There is a positive “gap” between any two possible values.
- They are a type of quantitative (numeric) variable, not qualitative labels.
Simple examples
Common examples of discrete variables include:
- Number of children in a family: 0, 1, 2, 3, ….
- Number of cars a household owns.
- Number of students in a classroom.
- Outcome of rolling a standard die: 1, 2, 3, 4, 5, or 6.
- Number of items sold by a shop in a day.
A classic illustration: you can count students one by one, but you would not normally say there are 23.7 students in a class.
Discrete vs continuous (quick contrast)
A continuous variable can take any value in an interval, including decimals, like height, weight, or temperature.
A discrete variable, in contrast, only takes distinct, separated values, typically whole counts.
| Aspect | Discrete variable | Continuous variable |
|---|---|---|
| Type | Quantitative, countable values only. | [10][1][3][9][7]Quantitative, any value in an interval. | [3][5][9][4]
| Values | Distinct, separate (e.g., 0, 1, 2, 3…). | [1][5][9][10][3][7]Infinitely many within a range (e.g., 1.73, 1.731, …). | [5][9][3][4]
| Typical examples | Number of cars, children, students, items sold. | [9][10][3][4][7]Height, weight, time, temperature. | [3][4][5][9]
| Fractions allowed? | Not meaningful between neighboring values in context. | [5][7][9][3]Fractions are meaningful (you can always measure more precisely). | [4][9][3][5]
Why discrete variables matter in stats
Discrete variables affect which probability models and methods you use, such as binomial or Poisson distributions instead of continuous ones like the normal distribution.
They also shape how data are visualized, for example using bar charts or tables of frequencies rather than smooth density curves.
When you understand whether a variable is discrete or continuous, you can choose appropriate statistical tools, interpret results correctly, and avoid misleading conclusions.
TL;DR: Discrete variables are countable numeric variables that take separate, distinct values (usually whole numbers), with no meaningful in‑between values like 2.5 children or 3.7 cars.
Information gathered from public forums or data available on the internet and portrayed here.