Probability Distribution: Discrete, Continuous, and Cumulative
Read discrete masses, continuous density, and cumulative probabilities. Choose a distribution and practise with six examples.
TL;DR
A probability distribution specifies how likely the possible values of a random variable are. Use probability masses for discrete values, areas under a density for continuous values, or a cumulative function for either.
Key Points
- All probabilities are nonnegative, and the total probability is 1.
- A discrete probability mass function assigns probabilities to individual values.
- A continuous density gives interval probabilities by its area.
- The cumulative distribution function is .
- Choose a model using the data-generating assumptions as well as the type of variable.
What is a probability distribution?
A random variable assigns a number to an outcome. For two coin tosses, could count the heads. The probability distribution tells you the chances of , and . It turns the outcome-level question into a description of the variable.
| Kind of description | Notation | How to get a probability |
|---|---|---|
| Discrete mass | Add the masses for the values in the event | |
| Continuous density | Calculate the area under the density over the event's interval | |
| Cumulative distribution | Subtract cumulative values at suitable boundaries |
A discrete variable has finite or countably many possible values. The mass of each is between 0 and 1, and all masses add to 1. For a continuous variable with a density, the density is nonnegative and its total area is 1. The density's height can exceed 1. A single point has zero area, so a variable with a density has zero probability at an individual exact point. Some models mix a point mass and a continuous part, such as waits that can be exactly zero or any of a range of positive times. Their CDF handles both parts.
How does a cumulative distribution function work?
The CDF gives the probability up to and including . It is nondecreasing and stays between 0 and 1. Its step at a discrete value is the mass at that value. A variable with a density has a continuous CDF, with no jump at an individual point.
For any distribution,
The left inequality is strict because values up to and including have already been subtracted. For a continuous density, changing the inclusion of either single endpoint does not change the interval probability. Boston University and Harvard's data science notes connect this formula to both tables and densities.
How do you choose a probability distribution?
Use the target variable and the conditions. A binomial model counts successes in a fixed number of independent trials with the same success chance. A Poisson distribution can model event counts in a fixed interval under an appropriate event-rate model. A uniform distribution can represent equal mass across listed outcomes or constant density across an interval, depending on the variable.
A normal distribution uses a bell-shaped continuous density. Continuous variables do not always follow that shape. Check relevant features and assumptions before using it. Data can also provide an empirical distribution, such as each value's observed count divided by the total number of observations.
How do you use a distribution to find an expected value?
For discrete outcomes with numerical value and mass , the expected value is when the sum converges. This is a weighted mean. It need not be one of the permitted outcomes. For a density, the corresponding formula uses the integral of when the mean exists. The mean and mode guide helps distinguish an average from the most frequent value.
Worked Probability Distribution Examples
Example 1
Find the distribution of the number of heads in two independent fair coin tosses.
- The equally likely outcomes are TT, TH, HT, and HH.
- One outcome has zero heads, two have one head, and one has two heads.
- The three masses are , , and . They sum to 1.
Example 2
Use that distribution to find and .
- Add the masses for zero and one head. The first probability is .
- The event of more than one head allows only two heads.
- Its probability is .
Example 3
A distribution lists masses 0.2, 0.5, and for its three possible values. Find .
- The total mass must equal 1.
- The two known values sum to 0.7.
- Therefore . This is nonnegative and completes the distribution.
Example 4
A continuous uniform density on has height 5. Find the probability of a value between 0.05 and 0.15.
- The density has full area .
- The interval width is .
- Its area is . The height 5 is a density, while the probability is 0.5.
Example 5
A CDF has and . Find .
- The cumulative total through 5 is 0.90.
- The probability through 2 is 0.35 and must be removed.
- The result is .
Example 6
Five independent items each have a success chance of 0.2. Find the probability of no successes.
- Since the number of trials is fixed and their probabilities agree, use the binomial setting.
- Each item fails with probability 0.8.
- All five fail with probability .
Mistakes That Change a Probability Distribution Answer
Mistake 1: Treating a density height as a probability
For a density, find area across a specified interval. A point on a tall curve can still have zero probability by itself.
Mistake 2: Accepting weights that do not sum to 1
If a problem gives weights such as 2, 3, and 5, divide by their sum before treating them as probabilities. If it already calls them probabilities, check whether the list is valid or merely rounded.
Mistake 3: Choosing a model based on one visual feature alone
A symmetric plot can come from several different models. Identify possible outcomes and check assumptions such as independence before calculating.
Try It Yourself
- In the two-toss example, find the expected head count.
- If , what is ?
- Can a discrete probability distribution have masses 0.4, 0.4, and 0.4 for all its values?
Answers and Reasoning
- Calculate .
- The complement of gives .
- No. The masses sum to 1.2, exceeding total probability 1.
Questions About Probability Distributions
What is the difference between a distribution and a sample histogram?
A model distribution specifies probabilities over outcomes. A sample histogram summarises observed frequencies. It can help assess a model but can also vary when a different sample is collected.
Can an expected value be impossible in a single trial?
Yes. The expected value of a fair six-sided die is 3.5. The number averages the six possible values, even though no face displays 3.5.
Conclusion
- Establish the values the random variable can take.
- Use masses, density area or cumulative differences as appropriate.
- Check normalisation, model assumptions, and how the endpoints are counted.
Read More
- Calculate a probability after new evidence with Bayes' theorem
- Use counts from a deck of cards to find probabilities
Research Behind This Article
- OpenStax, Introductory Statistics 2e — Probability Distribution Function for a Discrete Random Variable. OpenStax
- OpenStax, Introductory Statistics 2e — Continuous Probability Functions. OpenStax
- Boston University, Tools for Data Science — Probability and Statistics Refresher. Boston University
- Rafael A. Irizarry, Introduction to Data Science — Continuous Probability. Harvard