Outcomes like coin flips or traffic lights aren't numbers on their own, so to do math with chance we first need a rule that turns outcomes into numbers.
1
What Is a Discrete Random Variable?
A random variableX is a rule that looks at the outcome of a random process and writes down a number, such as counting how many Heads appear when we flip three coins.
What Is a Discrete Random Variable?
Once we define our rule X, each outcome translates to a single number:
randomvariableX=number of Heads in 3 flips⟶x=0,1,2,3
2
Probability Distributions and Their Rules
Once X turns outcomes into numbers, we don't need to list strings of letters like HHT anymore. Instead, we want a probability distribution, which is a table or bar graph that lists every possible value x alongside its probability P(x).
Let's build the probability distribution for X=number of Heads when flipping a fair coin three times.
Probability Distributions and Their Rules
Text solution
Count the outcomes for each value of XBecause all 8 coin-flip sequences are equally likely, count how many sequences give each number of Heads and divide by 8.
(In P(1), the parentheses don't mean multiplication: P(1) reads "the probability that X is 1.")
Add the probabilities to check the totalAdding the probabilities across all four values confirms that all of the probability, 1, is accounted for.
81+83+83+81=88=1
So 1 Head and 2 Heads each have 83 of the total probability, while 0 Heads and 3 Heads each have 81.
Because every probability distribution splits a total probability of 1 across the possible values of X, any valid distribution must pass two checks:
1. Every probability is between 0 and 1:0≤P(x)≤12. All probabilities add up to 1:P(0)+P(1)+P(2)+⋯=1
3
Building a Distribution When Outcomes Aren't Equally Likely
Dividing by the total number of paths worked for coin flips only because a coin is 50–50, giving every path the same 21×21×21=81 chance. What if the steps aren't 50–50?
Suppose a 70% free-throw shooter takes 2 shots, with a 0.70 chance of making a shot and a 0.30 chance of missing. Let's find the probability distribution for X=number of shots made.
Building a Distribution When Outcomes Aren't Equally Likely
Text solution
Multiply along the single-path outcomesMissing both shots gives X=0 and making both shots gives X=2, so we multiply the step probabilities along each path.
P(0)P(2)=0.30×0.30=0.09=0.70×0.70=0.49
Add the paths that give the same value of XMaking 1 shot happens in two different ways, Make then Miss or Miss then Make, so we multiply along each path and add the two probabilities together.
Check that the distribution adds up to 1.00Add the probabilities for 0,1, and 2 made shots to check that nothing was left out.
0.09+0.42+0.49=1.00
So this 70% shooter has a 0.49 chance of making both shots, a 0.42 chance of making 1, and only a 0.09 chance of missing both.
The four outcome paths only have the same probability when Make and Miss are 50–50. As the single-shot chance increases toward Make, probability shifts from 0 toward 2, while the two paths for 1 always have the same probability as each other and the three bars always add up to 1.
How a single shot splits between Make and Miss sets the size of each two-shot path, while the bars for 0, 1, and 2 always add up to 1.
4
Finding a Missing Probability
Because all the probabilities in a valid table must add up to 1, we can always find a missing probability if we know the rest of the table.
On a drive with 4 traffic lights, let X be the number of red lights you hit, with P(0)=0.10,P(1)=0.25,P(2)=0.35,P(3)=?, and P(4)=0.10. Let's find the missing probability P(3).
Finding a Missing Probability
Text solution
Add the known probabilitiesAdd the four probabilities already given in the table.
0.10+0.25+0.35+0.10=0.80
Subtract from 1.00The remaining probability belongs to X=3.
P(3)=1.00−0.80=0.20
So there is a 0.20 probability of hitting 3 red lights on the drive.
5
Finding Probabilities for Ranges of Values
Now that we have the full red-light table, we want to find the probability that X falls in a range of values, such as hitting more than2 red lights, at least2 red lights, or at least1 red light.
Using the completed red-light distribution (P(0)=0.10,P(1)=0.25,P(2)=0.35,P(3)=0.20,P(4)=0.10), let's find the probability for each range.
Finding Probabilities for Ranges of Values
Text solution
More than 2 vs. at least 2"More than 2" (X>2) leaves 2 out, while "at least 2" (X≥2) includes the 0.35 bar at 2.
Between 1 and 3, inclusive vs. strictly between"Inclusive" (1≤X≤3) keeps the endpoints 1 and 3, while "strictly between" (1<X<3) leaves both endpoints out.
At least 1 by subtracting the value left outBecause X≥1 leaves out only X=0, subtract P(0) from 1 instead of adding four separate bars.
P(X≥1)=1−P(X=0)=1−0.10=0.90
So there is a 0.90 chance of hitting at least 1 red light, and including or leaving out the single value at 2 changes the probability from 0.30 for X>2 to 0.65 for X≥2.
Because the gaps between whole numbers hold no probability, the total stays flat across each gap and jumps all at once the moment an endpoint hits a whole number.
In the red-light distribution, there is no probability in the gaps between whole numbers, so the total jumps only when a boundary crosses a whole number.
Just like a data histogram, the bar graph of a probability distribution has a balance point (its expected value) and a spread (its standard deviation), showing what we expect to happen in the long run.
Key concepts
To decide whether a random variable is discrete or continuous, ask whether you count it or measure it: counted quantities like X=number of Heads jump between separate values (0,1,2,3) with gaps in between, whereas measured quantities like exact time can take any value in a range with no gaps.
Every valid probability distribution splits a total probability of 1 across the values of X, so each probability must satisfy 0≤P(x)≤1 and the whole table must add up to 1. That same sum of 1 lets you find a missing probability by subtracting the known probabilities from 1, such as P(3)=1.00−0.80=0.20.
When building a distribution from a multi-step process, check whether the steps have equal chances:
Key concept
If every outcome path is already equally likely (like 8 fair coin-flip paths), you don't need to multiply decimals: just count the outcomes that give x and divide by the total (P(1)=83).
Key concept
If the steps have different probabilities (like a 0.70 shooter), multiply along each path and add the paths that give the same value of X:P(1)=(0.70×0.30)+(0.30×0.70)=0.42.
For a range of values, check whether the wording includes the endpoints before adding, because the probabilities sit right on the separate values of X: "more than 2" (P(X>2)=P(3)+P(4)) and "strictly between 1 and 3" (P(1<X<3)=P(2)) leave the endpoints out, whereas "at least 2" (P(X≥2)), "at most 2" (P(X≤2)), and "inclusive" (P(1≤X≤3)) include them. When a range covers almost the whole table, like "at least 1", subtract the bar left out from 1 (P(X≥1)=1−P(0)) rather than adding all the rest.
6
Practice
1
State whether each random variable is discrete or continuous: (a) the number of defective light bulbs in a box of 12, (b) the exact weight of a randomly chosen apple, (c) the number of customer calls a help desk receives in an hour, (d) the exact time a commuter waits for a train.
Ask whether each variable is found by counting separate whole numbers with gaps between them, or by measuring a quantity that can take any decimal value in a range.
In (a) and (c), we count whole bulbs and whole phone calls (0,1,2,…) with gaps between them. (Watch out in (c): "in an hour" mentions time, which tempts people to say continuous, but the random variable X is the count of calls, not the time.)
In (b) and (d), exact weight and exact waiting time are measured and can take any value in a range with no gaps.
(a) and (c) are discrete; (b) and (d) are continuous
2
Three tables are proposed as probability distributions for a random variable X with values 0,1, and 2. Table A has P(0)=0.25,P(1)=0.50,P(2)=0.35. Table B has P(0)=0.30,P(1)=0.80,P(2)=−0.10. Table C has P(0)=0.15,P(1)=0.60,P(2)=0.25. Which table is a valid probability distribution, and why do the other two fail?
Test each table against both rules: do the probabilities add up to 1.00, and is every single probability between 0 and 1?
Table A sum: 0.25+0.50+0.35=1.10=1.00, so Table A fails because the probabilities add up to 1.10 instead of 1.
Table B sum: 0.30+0.80+(−0.10)=1.00, but P(2)=−0.10 is negative. (Watch out: if you only check that the table adds to 1.00, you will mistakenly accept Table B; a probability can never be negative, so it breaks the rule 0≤P(x)≤1.)
Table C has every probability between 0 and 1, and 0.15+0.60+0.25=1.00.
Only Table C is valid
3
Let X be the number of books a person checks out from a library in one visit, with distribution P(0)=0.15,P(1)=0.35,P(2)=0.25,P(3)=?, and P(4)=0.05. Find the missing probability P(3), and then find (a) P(X<2), (b) P(X≤2), (c) the probability X is strictly between 1 and 4, and (d) the probability X is between 1 and 4, inclusive.
Subtract the four given probabilities from 1.00 to get P(3) first, then check whether each inequality includes or leaves out the endpoint bars before adding.
Missing probability:
P(3)=1.00−(0.15+0.35+0.25+0.05)=1.00−0.80=0.20
(a) (Watch out: X<2 means strictly less than 2; including P(2)=0.25 is the common mistake that gives 0.75.)
P(X<2)=P(0)+P(1)=0.15+0.35=0.50
(b)
P(X≤2)=P(0)+P(1)+P(2)=0.15+0.35+0.25=0.75
(c) (Watch out: "strictly between 1 and 4" leaves out both endpoints 1 and 4; including them gives 0.85 instead of 0.45.)
A factory machine has 10 sensors. Let X be the number of sensors that fail on a given day (so X can take values from 0 to 10). You are told only that P(0)=0.72 and P(1)=0.18. Find (a) the probability that at least 1 sensor fails, P(X≥1), and (b) the probability that more than 1 sensor fails, P(X>1).
Look at which values of X are left out of each range and subtract those probabilities from 1.
(a) "At least 1" leaves out only X=0:
P(X≥1)=1−P(0)=1−0.72=0.28
(b) "More than 1" (X>1) leaves out both X=0 and X=1.(Watch out: subtracting only P(1)=0.18 from 1 gives 0.82, and subtracting only P(0)=0.72 gives 0.28. You must subtract both bars that are left out.)
P(X>1)=1−(P(0)+P(1))=1−(0.72+0.18)=1−0.90=0.10
5
A fair spinner divided into 3 equal sections numbered 1,2, and 3 is spun twice, giving 9 equally likely outcomes. Let X be the sum of the two spins. List all possible values of X and find the probability distribution of X.
Watch out: there are 5 possible sums, so a common mistake is writing 51 for each sum; the sums are not equally likely because more spin pairs add to 4 than to 2.
Group the 9 spin pairs (1,1) through (3,3) by their sum X, and divide the count for each sum by 9.
The smallest sum is 1+1=2 and the largest is 3+3=6, so the possible values of X are 2,3,4,5, and 6.
(Watch out: there are 5 possible sums, so a common mistake is writing 51 for each sum; the sums are not equally likely because more spin pairs add to 4 than to 2.) Counting the 9 equally likely pairs: (1,1) gives 2;(1,2),(2,1) give 3;(1,3),(2,2),(3,1) give 4;(2,3),(3,2) give 5; and (3,3) gives 6:
In a basketball contest, a player takes one close-range shot (0.80 chance of making it) followed by one three-point shot (0.40 chance of making it). Let X be the total number of shots made out of the two attempts. Build the probability distribution for X.
Find the miss probability for each shot first (0.20 and 0.60), then multiply along each of the four paths and add the two paths that give X=1.
The possible values of X are 0,1, and 2. On the first shot, Make is 0.80 and Miss is 0.20; on the second shot, Make is 0.40 and Miss is 0.60.
For X=0 (Miss, Miss):
P(0)=0.20×0.60=0.12
For X=1 (Make, Miss or Miss, Make): (Watch out: the two paths do not have the same probability here because the two shots have different chances, so using only 0.80×0.60=0.48 or doubling 0.48 to get 0.96 is a mistake.)
P(1)=(0.80×0.60)+(0.20×0.40)=0.48+0.08=0.56
For X=2 (Make, Make):
P(2)=0.80×0.40=0.32
7
A discrete random variable X takes values 0,1,2,3, and 4 with P(0)=0.12,P(1)=0.30,P(4)=0.08, and both P(2) and P(3) missing. If the probability that X is at least 3 is 0.28, find P(3) and P(2).
Watch out: reading "at least 3" as just P(3)=0.28 leaves out P(4)=0.08, which would wrongly give P(3)=0.28 and P(2)=0.22.
Write out which values of X are included in "at least 3" to find P(3) first, and then use the total sum of 1.00 to find P(2).
"At least 3" means X≥3, which includes both 3 and 4.(Watch out: reading "at least 3" as just P(3)=0.28 leaves out P(4)=0.08, which would wrongly give P(3)=0.28 and P(2)=0.22.)
P(3)+P(4)P(3)=0.28=0.28−0.08=0.20
Now use the rule that all five probabilities add up to 1.00: