AP Statistics · Topic 2.8 · Reading guide, about 5 min

Building a discrete probability model

Define a discrete random variable, build and check a probability distribution as a table or histogram, and use cumulative probabilities.

In one minute

A random variable turns the outcome of a chance process into a number, such as the number of orders a shop gets in a day. A probability model lists every value the variable can take and the probability of each.

With a model in hand you can answer questions such as "what is the chance of at least three orders?" by adding the right probabilities. This topic is about building the model and checking that it is valid.

Key terms

Random variable
A variable whose numerical value comes from a chance process. Usually named with a capital letter such as XX.
Discrete random variable
A random variable whose possible values can be listed, such as 0, 1, 2, 3. Often counts.
Probability distribution
A list or graph of every value of XX with its probability. It describes the whole model.
P(X=x)P(X = x)
The probability that XX takes the specific value xx.
Valid distribution
Every probability is between 0 and 1, and all the probabilities add to exactly 1.
Cumulative probability
P(X≤x)P(X \leq x), the chance that XX is xx or less, found by adding the probabilities up to xx.
Probability histogram
A graph with a bar for each value of XX whose height is its probability.
Simulation
Estimating a distribution by repeating the chance process many times and recording the relative frequency of each value.

From a chance process to a random variable

Flip a fair coin twice and the outcomes are HH, HT, TH and TT. Let XX be the number of heads. Now the outcomes have been turned into numbers: HH gives 2, HT and TH give 1, and TT gives 0. The variable is discrete because the values 0, 1, 2 can be listed.

Using the probability rules from 2.4 to 2.7, each outcome has probability 1/41/4, so P(X=0)=0.25P(X = 0) = 0.25, P(X=1)=0.25+0.25=0.50P(X = 1) = 0.25 + 0.25 = 0.50 and P(X=2)=0.25P(X = 2) = 0.25. Notice that the middle value covers two outcomes, so it is found by adding.

When outcomes are too complicated to list, you can estimate the distribution by simulation. Run the process many times, count how often each value of XX occurs, and divide by the number of runs. More runs give a better estimate.

Writing the distribution and checking it

A distribution can be shown as a table, as a graph, or as a formula. The table pairs each value with its probability and is the most common form in this course. A probability histogram has the values on the horizontal axis and probability on the vertical axis, so its bar heights add to 1.

Two checks make a distribution valid. First, every probability is between 0 and 1. Second, the probabilities add to 1, because one of the values must occur. If a distribution is missing one probability, subtract the sum of the others from 1 to find it. For example, if the values 1, 2 and 3 have probabilities 0.2, kk and 0.5, then k=1−0.2−0.5=0.3k = 1 - 0.2 - 0.5 = 0.3.

A third form is a rule, such as a formula that gives P(X=x)P(X = x) for each xx. You will meet one in 2.10 for counting successes in repeated trials. Whatever the form, the model must say every possible value and its probability, and nothing else.

Use the table to answer questions by adding. "At least" and "at most" are common wording, and the complement helps: P(X≥3)=1−P(X≤2)P(X \geq 3) = 1 - P(X \leq 2).

Invented model: custom cake orders per day at a small bakery, with cumulative probabilities
Orders xx01234
P(X=x)P(X = x)0.100.250.350.200.10
P(X≤x)P(X \leq x)0.100.350.700.901.00

Cumulative probabilities and worked example

A cumulative probability P(X≤x)P(X \leq x) adds all probabilities from the smallest value through xx. The last cumulative value is always 1. It helps with ranges: P(a<X≤b)=P(X≤b)−P(X≤a)P(a < X \leq b) = P(X \leq b) - P(X \leq a).

A discrete model can be drawn as a probability histogram. For the bakery, the bar at 2 orders is the tallest, so 2 is the most likely number of orders, and the bars taper on both sides. A probability distribution is described the same way as a data distribution: its shape (including any skew), center and spread.

Use the bakery table. Check validity: all values are between 0 and 1 and 0.10+0.25+0.35+0.20+0.10=1.000.10 + 0.25 + 0.35 + 0.20 + 0.10 = 1.00, so the model is valid.

(a) The probability of at least 3 orders: P(X≥3)=0.20+0.10=0.30P(X \geq 3) = 0.20 + 0.10 = 0.30. Check with the complement: 1−P(X≤2)=1−0.70=0.301 - P(X \leq 2) = 1 - 0.70 = 0.30.

(b) The probability of more than 1 but at most 3 orders: P(1<X≤3)=P(2)+P(3)=0.35+0.20=0.55P(1 < X \leq 3) = P(2) + P(3) = 0.35 + 0.20 = 0.55. With the cumulative column: 0.90−0.35=0.550.90 - 0.35 = 0.55.

(c) The probability of no orders: P(X=0)=0.10P(X = 0) = 0.10. In about 1 day in 10 the shop gets none. This reads the model in context; it does not predict any particular day.

How it connects

  • Back to 2.3: simulation estimates probabilities from long-run frequency, and a simulated distribution approximates the table.
  • Back to 2.4 to 2.7: the rules for complements, disjoint events and addition are what you use to find each probability.
  • Forward to 2.9: once the model is built, its mean and standard deviation summarize the long-run center and spread.

Common mistakes

  • Skipping the validity check. If the probabilities do not add to 1, the table is not a probability distribution. Add them before answering.
  • **Confusing XX with a probability.** Values of XX are numbers like 0 to 4 (orders); P(X=x)P(X = x) is the chance of each.
  • Misreading "at least" and "at most". "At least 3" means 3 or more; "at most 3" means 3 or fewer. Write the inequality before adding.
  • Using a histogram's height as a count. In a probability histogram the height is a probability, and the heights sum to 1.

How it shows up on the exam

  • A table of values and probabilities with one missing value to find, followed by a range probability.
  • A scenario where you must define the random variable, list its values and give its distribution, sometimes by simulation results.

Check yourself

  1. What two conditions make a table a valid probability distribution?
  2. How would you describe the random variable for the number of sixes in two dice rolls, and which values can it take?
  3. How is P(X≤2)P(X \leq 2) related to P(X≥3)P(X \geq 3)?
  4. Why does a simulated distribution not match the true model exactly?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.