Data in Mathematics: Definition, Types, and Examples
Data in mathematics is a collection of recorded facts, observations, or measurements used to answer a specific question. It provides the raw information needed to find patterns, make calculations, and draw meaningful conclusions.
By gathering and organizing data, you can investigate real-world situations, from tracking the daily temperature in a city to counting the number of students who prefer a certain subject.
What is data?
Data refers to any set of information that has been collected for a purpose. It acts as the building block for statistics.
A single observation on its own is just a standalone fact. However, when you collect multiple observations systematically, you create a dataset. This dataset can then be sorted, graphed, and analyzed.
For example, knowing that one person is tall is a single fact. Recording the heights of all fifty people in a room creates data that can reveal the average height or the most common height group.
Identify qualitative and quantitative data
Data is broadly classified into two main categories based on the type of information it holds: qualitative and quantitative.
Qualitative data describes categories, while quantitative data uses numbers.
Qualitative data is descriptive. It records qualities, characteristics, or categories that cannot be meaningfully calculated. Examples include:
- Eye colors (brown, blue, green).
- Favorite animals (dog, cat, bird).
- Types of vehicles (car, truck, bicycle).
Quantitative data is numerical. It records amounts, sizes, or counts that can be measured and used in calculations. Examples include:
- The number of books on a shelf (like or ).
- The weight of a package (like ).
- The amount of time spent reading (like ).

Compare discrete and continuous data
When working with numbers, we compare discrete and continuous data to determine exactly how those values are recorded. These are both types of quantitative data.
Discrete data can only take exact, distinct values. It is usually gathered by counting. There are gaps between the possible values.
- Example: The number of chairs in a room can be or , but it cannot be .
Continuous data can take any possible value within a range. It is usually gathered by measuring. It can include fractions and decimals at any level of precision.
- Example: The mass of an apple might be , , or , depending on how precise your scale is.

Choose what to record
When you set up a plan for data collection, you must first identify the variables. A variable is the specific trait or quantity being recorded, and it can change from one observation to the next.
If you want to know about the weather over a month, you could choose to record the daily temperature in degrees Celsius (a continuous variable) or simply whether it was sunny, cloudy, or raining (a qualitative variable). Choosing the correct variable ensures the data you gather actually answers your question.
Ask a clear data question
Data is only useful if it helps answer a clear statistical question. A statistical question expects a variety of answers, which is why data must be collected to answer it.
A statistical question anticipates variability in the data.
"How tall is the school building?" is not a statistical question. There is only one correct answer, so there is no variability.
"How tall are the students in the school?" is a statistical question. You expect many different heights, so you must collect a dataset to find the answer.
Worked examples
Example 1: Classifying data types
Question: A scientist records the wingspan of butterflies in millimeters. Is this dataset qualitative or quantitative? Is it discrete or continuous?
Method:
- Determine if the wingspan is a descriptive category or a numerical amount. It is measured in numbers (millimeters), so it is quantitative.
- Determine if the length can take any value within a range or only exact counted values. Length is a measurement that can include fractions of a millimeter, so it is continuous.
Answer: The dataset is quantitative and continuous.
Check: You cannot count the wingspan in whole chunks like you count whole butterfly wings, confirming it must be measured continuously.
Example 2: Formulating a statistical question
Question: Which of the following is a valid statistical question?
A) How many pages are in this mathematics textbook?
B) How many pages do the books in the library contain?
Method:
- Check question A for variability. There is exactly one textbook, so it has one exact number of pages. It is not statistical.
- Check question B for variability. The library contains many books, and their page counts will vary widely. Collecting these different counts forms a dataset.
Answer: Question B is a valid statistical question.
Check: If you ask the question and get multiple different valid responses to record, it is statistical.
Example 3: Identifying variables
Question: A store owner tracks the sizes of shoes sold on Tuesday. The sizes recorded are , , , , and . What type of quantitative data is this?
Method:
- Observe the recorded values. Although there are decimals (like ), shoe sizes are manufactured in specific, distinct steps.
- You cannot buy a shoe size of . Because the values must fall on exact allowed steps, they are counted rather than measured continuously.
Answer: The shoe sizes are discrete quantitative data.
Check: Even when discrete data contains decimals, it remains discrete if intermediate values are impossible.
Common mistakes
One common error is assuming that all numbers are quantitative data. Numbers that act as labels or names are actually qualitative data.
For example, player numbers on sports jerseys, ZIP codes, and telephone numbers are made of digits, but they describe a category or identity. You would not calculate the average jersey number of a sports team because the resulting value has no mathematical meaning.
Another mistake is thinking continuous data must always have visible decimals. If a continuous measurement like temperature happens to land exactly on , it is still continuous data because it could have been .
Frequently asked questions
What is the difference between data and information?
Data refers to the raw facts, numbers, or words collected. Information is what you get after you organize and analyze that data so it makes sense.
What happens after data is collected?
Once you have your raw dataset, it is usually organized so it is easier to read. You can count the observations and sort them into tally charts or group them logically using frequency tables.
Practice questions

The visual represents a variable being recorded. What type of data does this represent?
Quantitative and continuous
Quantitative and discrete
Qualitative and discrete
Qualitative and continuous
Quantitative and continuous
Which of the following is an example of qualitative data?
The temperature of a swimming pool.
The number of passengers on a train.
The textures of different fabrics.
The time taken to run a race.
The textures of different fabrics.
Which variable represents discrete data?
The volume of water in a bottle.
The number of coins in a jar.
The weight of a dog.
The length of a piece of string.
The number of coins in a jar.
A researcher records the ZIP codes of all the participants in a study. Why is this dataset considered qualitative?
Because ZIP codes are measured continuously.
Because ZIP codes can be added together to find an average.
Because they represent an exact count of items.
Because the numbers act as labels for geographical regions.
Because the numbers act as labels for geographical regions.
Which of these is a valid statistical question?
How many hours of sleep do students in the sixth grade get?
How many hours of sleep did the teacher get last night?
What is the formula for the area of a circle?
How many sides does a triangle have?
How many hours of sleep do students in the sixth grade get?
