Discrete vs Continuous Distributions

Learn the difference between discrete and continuous probability distributions, and when to use each type.

Advanced25 minLesson

Definition

A probability distribution describes how likely different outcomes are for a random variable.

Discrete Distributions

A discrete distribution applies to variables that can only take specific, separate values (usually counted).
Examples of discrete variables:
  • Number of heads in 10 coin flips:
  • Roll of a die:
  • Number of students in a class:
Key feature: You can list all possible values. We use a Probability Mass Function (PMF) where:

Continuous Distributions

A continuous distribution applies to variables that can take any value in a range (usually measured).
Examples of continuous variables:
  • Height of a person: any value from 0 to 300 cm
  • Time to complete a task: any positive value
  • Temperature: any value on a thermometer
Key feature: You cannot list all possible values (infinitely many). We use a Probability Density Function (PDF) where:
For continuous variables, because there are infinitely many possible values.

Try it now

Which variable is discrete?

Worked Examples

Classify each variable as discrete or continuous: (a) Number of cars passing a checkpoint (b) Weight of a package (c) Number of defective items in a batch

1

Analyze variable (a)

Cars are counted: 0, 1, 2, 3, ... Cannot have 2.5 carsDiscrete

2

Analyze variable (b)

Weight is measured: 1.234 kg, 1.235 kg, etc. Any value possibleContinuous

3

Analyze variable (c)

Defects are counted: 0, 1, 2, ... Cannot have 1.7 defectsDiscrete

Common Mistakes

Thinking 'money' is always discrete because we count dollars

Why it's wrong: While we often round money to cents, financial models frequently treat money as continuous because transactions can theoretically be any amount.

Correct: Context matters: counting coins is discrete, but modeling stock prices is typically continuous.

Trying to calculate P(X = exact value) for continuous distributions

Why it's wrong: For continuous distributions, the probability at any single point is zero. Only intervals have positive probability.

Correct: For continuous distributions, always calculate using the area under the curve.

Confusing 'few possible values' with 'discrete'

Why it's wrong: A variable is discrete based on its nature, not the number of values observed in a sample.

Correct: Ask: 'Can this variable theoretically take ANY value in a range?' If yes, it's continuous.

Interactive Visual

Bar Chart

Part A(25%)
Part B(35%)
Part C(20%)
Part D(20%)

Dice Roller

Click the button to run trials and see probability in action!

Interactive Sandbox

Expression Calculator

Try these:

History

No calculations yet

Practice Problems

15 problems
Problem 1 of 15
Easy

Which variable is discrete?

Why It Matters

Understanding the difference between discrete and continuous distributions is fundamental to:
  • Statistics: Choosing the right test or model for your data
  • Data Science: Selecting appropriate machine learning algorithms
  • Quality Control: Monitoring manufacturing processes (defect counts vs measurements)
  • Finance: Modeling stock prices (continuous) vs number of trades (discrete)
  • Medicine: Analyzing patient counts (discrete) vs blood pressure readings (continuous)
Using the wrong type of distribution leads to incorrect conclusions and predictions!

Real World Applications

Quality Control in Manufacturing

Factories use discrete distributions to count defects and continuous distributions for measurements.

Example:

A factory counts defective items per batch (discrete: 0, 1, 2, ...) but measures product weight in grams (continuous: 250.3g, 250.31g, ...).

1Try It Yourself

A quality inspector examines 100 light bulbs and finds 3 defective ones.

Is 'number of defective bulbs' discrete or continuous?

Step 1: Write the mathematical expression

Think: Can you have 2.5 defective bulbs?

Medical Statistics

Healthcare uses both types: patient counts (discrete) and vital signs (continuous).

Example:

Number of patients admitted today (discrete: 45, 46, 47) vs blood pressure reading (continuous: 120.5 mmHg, 121.3 mmHg).

2Try It Yourself

A hospital tracks both the number of surgeries per day and the duration of each surgery.

Classify each variable.

Step 1: Write the mathematical expression

Number of surgeries: ___ Duration: ___

Key Takeaways

  • 1Discrete distributions apply to variables with countable, separate values (like dice rolls, coin flips, or counts)
  • 2Continuous distributions apply to variables that can take any value in a range (like height, weight, or time)
  • 3For discrete variables, we use PMF and can calculate directly
  • 4For continuous variables, we use PDF and calculate probabilities for intervals:
  • 5Ask yourself: 'Is this counted or measured?' Counted = discrete, Measured = continuous

Frequently Asked Questions

No, a variable is fundamentally one or the other based on its nature. However, we sometimes model discrete variables (like counts) with continuous distributions as an approximation when values are large.
No, a variable is fundamentally one or the other based on its nature. However, we sometimes model discrete variables (like counts) with continuous distributions as an approximation when values are large.
Age in years (18, 19, 20) is discrete. Age as exact time since birth (18.5273 years) is continuous. The choice depends on how you measure and use the data.
PMF (Probability Mass Function) gives the actual probability for discrete values. PDF (Probability Density Function) gives density for continuous variables - you must integrate over an interval to get probability.

Glossary

Discrete variable
A variable that can only take specific, separate values, typically from counting
Continuous variable
A variable that can take any value within a range, typically from measuring
PMF (Probability Mass Function)
Function giving the probability that a discrete random variable equals each possible value
PDF (Probability Density Function)
Function whose integral over an interval gives the probability for a continuous random variable
Random variable
A variable whose value depends on the outcome of a random phenomenon

More in This Topic