Discrete and Continuous Data: Definition, Method and Examples

MathPublished

Understanding Discrete and Continuous Data

Discrete and continuous data are the two main types of numerical information. Discrete data takes separate, countable values, such as the number of books on a shelf. Continuous data can take any value within a range when measured, such as the exact time it takes to run a race.


Identifying the data type correctly is an essential skill when working with data in mathematics because it determines how the information should be organized, grouped, and graphed.

What are discrete and continuous data?

Discrete and continuous data represent the two primary types of numerical data. When data consists of numbers, it describes quantities, but those quantities can be generated in different ways.


Numerical data types divide into two distinct categories based on how the values are obtained:

  • Discrete data: Information that is counted. It can only take specific, distinct values.
  • Continuous data: Information that is measured. It can take any value within an interval, limited only by the precision of the measuring tool.


Discrete data is counted, while continuous data is measured.

A flowchart splitting numerical data into discrete data, which is counted, and continuous data, which is measured.

Classify countable data

Countable data is always discrete. If you find a value by counting objects, events, or categories, the result is discrete data.


Discrete data can only take certain distinct values. There are gaps between these possible values because intermediate numbers do not make sense in the context of the data. For instance, a family can have 22 or 33 children, but never 2.52.5 children.


Examples of discrete data include:

  • The number of students in a classroom.
  • The result of rolling two dice (the whole numbers 22 through 1212).
  • The number of cars parked in a lot.
  • Standard shoe sizes (such as 55, 5.55.5, 66, 6.56.5).

Shoe sizes demonstrate that discrete data can include decimals. Even though the sizes include half-numbers, you cannot buy a shoe in size 6.236.23. Because the sizes are set, specific values that you count through, shoe size is classified as discrete data.

A number line showing the number of cars owned. Dots are placed exactly on whole numbers 1, 2, 3, and 4, with empty gaps between them indicating separate values.

Classify measured data

Measured data is always continuous. If you find a value by using a measuring instrument, such as a ruler, scale, thermometer, or stopwatch, the result is continuous data.


A continuous variable can take on any numerical value within a given range. Between any two recorded measurements, there are infinitely many possible values. When you measure the length of a leaf, it might be 4 cm4\text{ cm}, 4.2 cm4.2\text{ cm}, or 4.235 cm4.235\text{ cm}, depending entirely on the precision of your ruler.


Examples of continuous data include:

  • The height of a person in meters.
  • The mass of a dog in kilograms.
  • The time taken to complete a race in seconds.
  • The temperature of a room in degrees.

Unlike counted data, continuous data has no gaps between possible values.


A number line showing the mass of an apple in grams. A solid orange bar stretches continuously from 142 to 154, indicating any value in this range is possible.

Compare possible values

To distinguish discrete versus continuous data, examine the underlying values and how they are collected. The key difference between countable and measurable data lies in whether intermediate values are mathematically meaningful.


During data collection, ask whether a fraction or decimal makes sense for the exact item being tracked. If fractions are impossible, the data is discrete. If fractions are possible with a better tool, the data is continuous.

Feature

Discrete Data

Continuous Data

Action

Counting distinct objects or categories

Measuring a quantity

Values

Distinct, separate values

Any value within a numerical interval

Gaps

Empty gaps exist between possible values

No gaps between possible values

Example

Number of books on a shelf

Thickness of a single book

Choose a suitable table or graph

The type of data determines how you should organize and display it. Using the correct visual representation ensures the mathematical meaning of the data remains clear.


For discrete data, each distinct value can have its own row in standard frequency tables. It is usually graphed using a bar chart, pie chart, or line plot. In a bar chart, the vertical bars have spaces between them to emphasize that the categories or numbers are separate and distinct.


For continuous data, values are normally grouped into intervals using grouped frequency tables. This prevents a table from having hundreds of rows with only one tally mark each. Continuous data is often displayed using a histogram or a scatter plot. In a histogram, the bars touch each other to show that the numerical scale is continuous.

Two graphs side by side. On the left, a bar chart for discrete data has spaces between its bars. On the right, a histogram for continuous data has bars that touch each other.

Worked examples

Practice identifying discrete and continuous data by examining what each variable represents and exactly how it is obtained.


Example 1: Identifying counted and measured data


Question: A scientist records the number of petals on a flower and the mass of the flower in grams. Classify each variable as discrete or continuous.


Method:

  1. Determine the action required to find the number of petals. Petals are counted (11, 22, 33, etc.).
  2. Classify the counted variable. Counted values are discrete.
  3. Determine the action required to find the mass. Mass is measured using a scientific scale.
  4. Classify the measured variable. Measured values are continuous.

Answer: The number of petals is discrete data, and the mass of the flower is continuous data.


Check: Can a flower have 4.324.32 petals? No, because petals cannot be split mathematically; it is discrete. Can a flower have a mass of 4.32 g4.32\text{ g}? Yes, because mass is an interval; it is continuous.


Example 2: Determining data types from descriptions


Question: Which of the following lists represents continuous data?

A) The number of goals scored in five hockey matches.

B) The exact distances jumped by athletes in a long jump event.

C) The sizes of t-shirts (Small, Medium, Large) sold in a day.


Method:

  1. Evaluate list A. Goals are counted (00, 11, 22, etc.). This is discrete.
  2. Evaluate list B. Distance is measured (e.g., 5.42 m5.42\text{ m}). It can take any value in an interval. This is continuous.
  3. Evaluate list C. T-shirt sizes are distinct categories that are counted. This is discrete.

Answer: The exact distances jumped by athletes in a long jump event represents continuous data.


Check: Distance requires a measuring tape and allows fractions of a meter without gaps, confirming it is measured data.


Example 3: Interpreting a graph


Question: A student creates a bar chart with spaces between the bars to show the number of siblings each classmate has. Why is a bar chart with spaces appropriate for this data?


Method:

  1. Identify the data being recorded: the number of siblings.
  2. Determine if the data is counted or measured. Siblings are counted.
  3. Classify the data type. It is discrete.
  4. Relate the data type to the graph. Discrete data takes distinct values with gaps between them, which matches the gaps between bars in a bar chart.

Answer: The number of siblings is discrete data, so the bars have spaces to show that the values are distinct, separate numbers.


Check: You cannot have 1.51.5 siblings, so the space between the bars for 11 and 22 accurately represents that no values exist between them.

Common mistakes

Assuming all data with decimals is continuous

A common misconception is that discrete data must always be whole numbers. Data can have decimals and still be discrete if it is restricted to specific, counted values. For example, standard shoe sizes like 7.57.5 or currency values like 2.50 dollars2.50\text{ dollars} are discrete because you cannot have a shoe size of 7.5427.542.


Confusing the value recorded with the underlying variable

Age is often recorded in whole years (e.g., 12 years12\text{ years} old), making it look like counted, discrete data. However, age is a measurement of time passing, which is continuous. Even if a measured value is rounded to the nearest whole number for convenience, the underlying variable remains continuous.


Thinking large ranges make data continuous

If a population is very large, such as the number of people living in a country, the value can be in the millions. Despite the massive range, population is still found by counting distinct individuals, so it strictly remains discrete data.

Frequently asked questions

Is time discrete or continuous?

Time is continuous. Even though clocks often display time in distinct seconds or minutes, the actual passage of time flows without gaps. A digital stopwatch can measure fractions of a second, such as 12.456 seconds12.456\text{ seconds}, proving time is a measured, continuous variable.


Is money discrete or continuous?

Money is almost always treated as discrete data in mathematics. Physical currency is counted in distinct units, such as notes and coins. You can have 3.45 dollars3.45\text{ dollars}, but you cannot physically hand someone 3.4567 dollars3.4567\text{ dollars}, meaning there are strict gaps between possible values.


Is age discrete or continuous?

Age is continuous data. It is a measurement of the time someone has been alive. While people usually state their age as a distinct whole number, they are constantly aging by fractions of a second every moment of the day.

Practice questions

Question

A number line representing temperature in degrees Celsius. A solid blue line highlights the entire range from 21 degrees to 23.2 degrees.

The number line displays a highlighted range of possible temperatures. Which type of data is shown?

  • Continuous data, because it includes all possible decimal and fractional values within the highlighted range.

  • Discrete data, because the ends of the shaded line fall exactly on whole numbers.

  • Discrete data, because it represents counted objects like the number of degrees.

  • Continuous data, because it shows gaps between the whole numbers on the axis.

Answer:

Continuous data, because it includes all possible decimal and fractional values within the highlighted range.

Question

Which classification mathematically applies to "the number of passengers on a train"?

  • Discrete

  • Continuous

  • Categorical

  • Measured

Answer:

Discrete

Question

Which of the following variables generates continuous data?

  • The exact time taken to run 100 meters100\text{ meters}.

  • The number of goals scored in a soccer match.

  • The number of wheels on a delivery truck.

  • The amount of money in a cash register.

Answer:

The exact time taken to run 100 meters100\text{ meters}.

Question

A student measures the temperature of a liquid and rounds the result to exactly 25∘C25^\circ\text{C}. Which statement is true?

  • The temperature is continuous data because it was found by measuring.

  • The temperature is discrete data because it is a whole number.

  • The temperature is discrete data because it has no decimals.

  • The temperature is categorical data because degrees are categories.

Answer:

The temperature is continuous data because it was found by measuring.

Question

You are creating a table for the exact masses of 5050 apples, which range from 120.4 g120.4\text{ g} to 155.8 g155.8\text{ g}. Which structure is most appropriate?

  • A grouped frequency table, because mass is continuous and has too many unique values.

  • A standard frequency table with one row for every possible exact mass.

  • A bar chart with spaces between each bar to show individual apples.

  • A pie chart showing the exact mass of each individual apple.

Answer:

A grouped frequency table, because mass is continuous and has too many unique values.