StatisticsRandom Variables1 of 4
Random Variables · 1

Discrete Random Variables

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 variable X\val{X} 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?
H\htmlClass{lc-blue}{\text{H}}
H\htmlClass{lc-blue}{\text{H}}
T\htmlClass{lc-orange}{\text{T}}
TTT\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-orange}{\text{T}}
HTT\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-orange}{\text{T}}
THT\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-orange}{\text{T}}
TTH\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-blue}{\text{H}}
HHT\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-orange}{\text{T}}
HTH\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-blue}{\text{H}}
THH\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-blue}{\text{H}}
HHH\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-blue}{\text{H}}

Once we define our rule X\val{X}, each outcome translates to a single number:

X⏟randomvariable=number of Heads in 3 flips⟶x=0,1,2,3\displaystyle \begin{aligned} \underbrace{\val{X}}_{\begin{gathered}\scriptstyle \text{random} \\ \scriptstyle \text{variable}\end{gathered}} &= \text{number of }\val{\text{Heads}}\text{ in 3 flips} \\[4pt] &\longrightarrow \quad \val{x} = \val{0}, \val{1}, \val{2}, \val{3} \end{aligned}
Discrete (counting Heads)\text{Discrete}\ (\text{counting Heads})
0\htmlClass{lc-blue}{0}
1\htmlClass{lc-blue}{1}
2\htmlClass{lc-blue}{2}
3\htmlClass{lc-blue}{3}
gap\text{gap}
gap\text{gap}
gap\text{gap}
Continuous (measuring time)\text{Continuous}\ (\text{measuring time})
0\htmlClass{lc-blue}{0}
1\htmlClass{lc-blue}{1}
2\htmlClass{lc-blue}{2}
3\htmlClass{lc-blue}{3}
2

Probability Distributions and Their Rules

Once X\val{X} turns outcomes into numbers, we don't need to list strings of letters like HHT\val{HH}\other{T} anymore. Instead, we want a probability distribution, which is a table or bar graph that lists every possible value x\val{x} alongside its probability P(x)P(\val{x}).

Let's build the probability distribution for X=number of Heads\val{X} = \text{number of }\val{\text{Heads}} when flipping a fair coin three times.

Probability Distributions and Their Rules
X=number of Heads\htmlClass{lc-blue}{X} = \text{number of }\htmlClass{lc-blue}{\text{Heads}}
TTT\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-orange}{\text{T}}
HTT\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-orange}{\text{T}}
THT\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-orange}{\text{T}}
TTH\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-blue}{\text{H}}
HHT\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-orange}{\text{T}}
HTH\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-blue}{\text{H}}
THH\htmlClass{lc-orange}{\text{T}}\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-blue}{\text{H}}
HHH\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-blue}{\text{H}}\htmlClass{lc-blue}{\text{H}}
x\htmlClass{lc-blue}{x}
P(x)P(\htmlClass{lc-blue}{x})
0\htmlClass{lc-blue}{0}
??
1\htmlClass{lc-blue}{1}
??
2\htmlClass{lc-blue}{2}
??
3\htmlClass{lc-blue}{3}
??
Text solution
Count the outcomes for each value of X\val{X}Because all 88 coin-flip sequences are equally likely, count how many sequences give each number of Heads and divide by 88.
P(0)⏟probabilitythat X=0=18,P(1)=38,P(2)=38,P(3)=18\displaystyle \begin{aligned} \underbrace{P(\val{0})}_{\begin{gathered}\scriptstyle \text{probability} \\ \scriptstyle \text{that } \val{X} = \val{0}\end{gathered}} &= \prob{\frac{1}{8}}, &\qquad P(\val{1}) &= \prob{\frac{3}{8}}, \\[4pt] P(\val{2}) &= \prob{\frac{3}{8}}, &\qquad P(\val{3}) &= \prob{\frac{1}{8}} \end{aligned}
(In P(1)P(\val{1}), the parentheses don't mean multiplication: P(1)P(\val{1}) reads "the probability that X\val{X} is 1\val{1}.")
Add the probabilities to check the totalAdding the probabilities across all four values confirms that all of the probability, 1\prob{1}, is accounted for.
18+38+38+18\displaystyle \prob{\frac{1}{8}} + \prob{\frac{3}{8}} + \prob{\frac{3}{8}} + \prob{\frac{1}{8}} =88\displaystyle = \frac{8}{8} =1\displaystyle = \prob{1}

So 1\val{1} Head and 2\val{2} Heads each have 38\prob{\frac{3}{8}} of the total probability, while 0\val{0} Heads and 3\val{3} Heads each have 18\prob{\frac{1}{8}}.

x\htmlClass{lc-blue}{x}
0\htmlClass{lc-blue}{0}
1\htmlClass{lc-blue}{1}
2\htmlClass{lc-blue}{2}
3\htmlClass{lc-blue}{3}
P(x)P(\htmlClass{lc-blue}{x})
18\htmlClass{lc-green}{\dfrac{1}{8}}
38\htmlClass{lc-green}{\dfrac{3}{8}}
38\htmlClass{lc-green}{\dfrac{3}{8}}
18\htmlClass{lc-green}{\dfrac{1}{8}}
total probability=1\text{total probability} = \htmlClass{lc-green}{1}

Because every probability distribution splits a total probability of 1\prob{1} across the possible values of X\val{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\displaystyle \begin{aligned} & \text{1. Every probability is between } \prob{0} \text{ and } \prob{1}{:} \\ & \quad \prob{0} \le P(\val{x}) \le \prob{1} \\[10pt] & \text{2. All probabilities add up to } \prob{1}{:} \\ & \quad P(\val{0}) + P(\val{1}) + P(\val{2}) + \dots = \prob{1} \end{aligned}
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–5050\text{–}50, giving every path the same 12×12×12=18\prob{\frac{1}{2}} \times \prob{\frac{1}{2}} \times \prob{\frac{1}{2}} = \prob{\frac{1}{8}} chance. What if the steps aren't 50–5050\text{–}50?

Suppose a 70%\prob{70\%} free-throw shooter takes 22 shots, with a 0.70\prob{0.70} chance of making a shot and a 0.30\prob{0.30} chance of missing. Let's find the probability distribution for X=number of shots made\val{X} = \text{number of shots made}.

Building a Distribution When Outcomes Aren't Equally Likely
Make0.70Miss0.30\begin{array}{ll} \htmlClass{lc-blue}{\text{Make}} & \htmlClass{lc-green}{0.70} \\[2pt] \htmlClass{lc-orange}{\text{Miss}} & \htmlClass{lc-green}{0.30} \end{array}
X=number of shots made\htmlClass{lc-blue}{X} = \text{number of shots made}
Shots Made (x)\text{Shots Made }(\htmlClass{lc-blue}{x})
0\htmlClass{lc-blue}{0}
1\htmlClass{lc-blue}{1}
2\htmlClass{lc-blue}{2}
P(x)P(\htmlClass{lc-blue}{x})
??
??
??
Text solution
Multiply along the single-path outcomesMissing both shots gives X=0\val{X} = \val{0} and making both shots gives X=2\val{X} = \val{2}, so we multiply the step probabilities along each path.
P(0)=0.30×0.30=0.09P(2)=0.70×0.70=0.49\displaystyle \begin{aligned} P(\val{0}) &= \prob{0.30} \times \prob{0.30} = \prob{0.09} \\[4pt] P(\val{2}) &= \prob{0.70} \times \prob{0.70} = \prob{0.49} \end{aligned}
Add the paths that give the same value of X\val{X}Making 1\val{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.
P(1)=(0.70×0.30)⏟Make, thenMiss+(0.30×0.70)⏟Miss, thenMake=0.21+0.21=0.42\displaystyle \begin{aligned} P(\val{1}) &= \underbrace{(\prob{0.70} \times \prob{0.30})}_{\begin{gathered}\scriptstyle \val{\text{Make}}\text{, then} \\ \scriptstyle \other{\text{Miss}}\end{gathered}} \\ &\quad + \underbrace{(\prob{0.30} \times \prob{0.70})}_{\begin{gathered}\scriptstyle \other{\text{Miss}}\text{, then} \\ \scriptstyle \val{\text{Make}}\end{gathered}} \\ &= \prob{0.21} + \prob{0.21} \\ &= \prob{0.42} \end{aligned}
Check that the distribution adds up to 1.00\prob{1.00}Add the probabilities for 0\val{0}, 1\val{1}, and 2\val{2} made shots to check that nothing was left out.
0.09+0.42+0.49\displaystyle \prob{0.09} + \prob{0.42} + \prob{0.49} =1.00\displaystyle = \prob{1.00}

So this 70%\prob{70\%} shooter has a 0.49\prob{0.49} chance of making both shots, a 0.42\prob{0.42} chance of making 1\val{1}, and only a 0.09\prob{0.09} chance of missing both.

The four outcome paths only have the same probability when Make and Miss are 50–5050\text{–}50. As the single-shot chance increases toward Make, probability shifts from 0\val{0} toward 2\val{2}, while the two paths for 1\val{1} always have the same probability as each other and the three bars always add up to 1\prob{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\prob{1}, we can always find a missing probability if we know the rest of the table.

On a drive with 44 traffic lights, let X\val{X} be the number of red lights you hit, with P(0)=0.10P(\val{0}) = \prob{0.10}, P(1)=0.25P(\val{1}) = \prob{0.25}, P(2)=0.35P(\val{2}) = \prob{0.35}, P(3)=?P(\val{3}) = \text{?}, and P(4)=0.10P(\val{4}) = \prob{0.10}. Let's find the missing probability P(3)P(\val{3}).

Finding a Missing Probability
X=number of red lights\htmlClass{lc-blue}{X} = \text{number of red lights}
Red Lights (x)\text{Red Lights }(\htmlClass{lc-blue}{x})
0\htmlClass{lc-blue}{0}
1\htmlClass{lc-blue}{1}
2\htmlClass{lc-blue}{2}
3\htmlClass{lc-blue}{3}
4\htmlClass{lc-blue}{4}
P(x)P(\htmlClass{lc-blue}{x})
0.10\htmlClass{lc-green}{0.10}
0.25\htmlClass{lc-green}{0.25}
0.35\htmlClass{lc-green}{0.35}
??
0.10\htmlClass{lc-green}{0.10}
Text solution
Add the known probabilitiesAdd the four probabilities already given in the table.
0.10+0.25+0.35+0.10\displaystyle \prob{0.10} + \prob{0.25} + \prob{0.35} + \prob{0.10} =0.80\displaystyle = \prob{0.80}
Subtract from 1.00\prob{1.00}The remaining probability belongs to X=3\val{X} = \val{3}.
P(3)\displaystyle P(\val{3}) =1.00−0.80\displaystyle = \prob{1.00} - \prob{0.80} =0.20\displaystyle = \prob{0.20}

So there is a 0.20\prob{0.20} probability of hitting 3\val{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\val{X} falls in a range of values, such as hitting more than 2\val{2} red lights, at least 2\val{2} red lights, or at least 1\val{1} red light.

Using the completed red-light distribution (P(0)=0.10P(\val{0}) = \prob{0.10}, P(1)=0.25P(\val{1}) = \prob{0.25}, P(2)=0.35P(\val{2}) = \prob{0.35}, P(3)=0.20P(\val{3}) = \prob{0.20}, P(4)=0.10P(\val{4}) = \prob{0.10}), let's find the probability for each range.

Finding Probabilities for Ranges of Values
P(X>2)=?P(\htmlClass{lc-blue}{X} > \htmlClass{lc-blue}{2}) = {?}
Red Lights (x)\text{Red Lights }(\htmlClass{lc-blue}{x})
0\htmlClass{lc-blue}{0}
1\htmlClass{lc-blue}{1}
2\htmlClass{lc-blue}{2}
3\htmlClass{lc-blue}{3}
4\htmlClass{lc-blue}{4}
P(x)P(\htmlClass{lc-blue}{x})
0.10\htmlClass{lc-green}{0.10}
0.25\htmlClass{lc-green}{0.25}
0.35\htmlClass{lc-green}{0.35}
0.20\htmlClass{lc-green}{0.20}
0.10\htmlClass{lc-green}{0.10}
More than 2: P(X>2)=0.30\text{More than 2}\text{: }P(\htmlClass{lc-blue}{X} > \htmlClass{lc-blue}{2}) = \htmlClass{lc-green}{0.30}
0\htmlClass{lc-blue}{0}
1\htmlClass{lc-blue}{1}
2\htmlClass{lc-blue}{2}
3\htmlClass{lc-blue}{3}
4\htmlClass{lc-blue}{4}
0.10\htmlClass{lc-green}{0.10}
0.25\htmlClass{lc-green}{0.25}
0.35\htmlClass{lc-green}{0.35}
0.20\htmlClass{lc-green}{0.20}
0.10\htmlClass{lc-green}{0.10}
At least 2: P(X≥2)=0.65\text{At least 2}\text{: }P(\htmlClass{lc-blue}{X} \ge \htmlClass{lc-blue}{2}) = \htmlClass{lc-green}{0.65}
0\htmlClass{lc-blue}{0}
1\htmlClass{lc-blue}{1}
2\htmlClass{lc-blue}{2}
3\htmlClass{lc-blue}{3}
4\htmlClass{lc-blue}{4}
0.10\htmlClass{lc-green}{0.10}
0.25\htmlClass{lc-green}{0.25}
0.35\htmlClass{lc-green}{0.35}
0.20\htmlClass{lc-green}{0.20}
0.10\htmlClass{lc-green}{0.10}
Text solution
More than 2\val{2} vs. at least 2\val{2}"More than 2\val{2}" (X>2\val{X} > \val{2}) leaves 2\val{2} out, while "at least 2\val{2}" (X≥2\val{X} \ge \val{2}) includes the 0.35\prob{0.35} bar at 2\val{2}.
P(X>2)=P(3)+P(4)=0.20+0.10=0.30P(X≥2)=P(2)+P(3)+P(4)=0.35+0.20+0.10=0.65\displaystyle \begin{aligned} P(\val{X} > \val{2}) &= P(\val{3}) + P(\val{4}) \\ &= \prob{0.20} + \prob{0.10} \\ &= \prob{0.30} \\[4pt] P(\val{X} \ge \val{2}) &= P(\val{2}) + P(\val{3}) + P(\val{4}) \\ &= \prob{0.35} + \prob{0.20} + \prob{0.10} \\ &= \prob{0.65} \end{aligned}
Fewer than 2\val{2} vs. at most 2\val{2}"Fewer than 2\val{2}" (X<2\val{X} < \val{2}) stops at 1\val{1}, while "at most 2\val{2}" (X≤2\val{X} \le \val{2}) includes 2\val{2}.
P(X<2)=P(0)+P(1)=0.10+0.25=0.35P(X≤2)=P(0)+P(1)+P(2)=0.10+0.25+0.35=0.70\displaystyle \begin{aligned} P(\val{X} < \val{2}) &= P(\val{0}) + P(\val{1}) \\ &= \prob{0.10} + \prob{0.25} \\ &= \prob{0.35} \\[4pt] P(\val{X} \le \val{2}) &= P(\val{0}) + P(\val{1}) + P(\val{2}) \\ &= \prob{0.10} + \prob{0.25} + \prob{0.35} \\ &= \prob{0.70} \end{aligned}
Between 1\val{1} and 3\val{3}, inclusive vs. strictly between"Inclusive" (1≤X≤3\val{1} \le \val{X} \le \val{3}) keeps the endpoints 1\val{1} and 3\val{3}, while "strictly between" (1<X<3\val{1} < \val{X} < \val{3}) leaves both endpoints out.
P(1≤X≤3)=P(1)+P(2)+P(3)=0.25+0.35+0.20=0.80P(1<X<3)=P(2)=0.35\displaystyle \begin{aligned} & P(\val{1} \le \val{X} \le \val{3}) \\ & \quad = P(\val{1}) + P(\val{2}) + P(\val{3}) \\ & \quad = \prob{0.25} + \prob{0.35} + \prob{0.20} \\ & \quad = \prob{0.80} \\[4pt] & P(\val{1} < \val{X} < \val{3}) \\ & \quad = P(\val{2}) = \prob{0.35} \end{aligned}
At least 1\val{1} by subtracting the value left outBecause X≥1\val{X} \ge \val{1} leaves out only X=0\val{X} = \val{0}, subtract P(0)P(\val{0}) from 1\prob{1} instead of adding four separate bars.
P(X≥1)=1−P(X=0)=1−0.10=0.90\displaystyle \begin{aligned} P(\val{X} \ge \val{1}) &= \prob{1} - P(\val{X} = \val{0}) \\ &= \prob{1} - \other{0.10} = \prob{0.90} \end{aligned}

So there is a 0.90\prob{0.90} chance of hitting at least 1\val{1} red light, and including or leaving out the single value at 2\val{2} changes the probability from 0.30\prob{0.30} for X>2\val{X} > \val{2} to 0.65\prob{0.65} for X≥2\val{X} \ge \val{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\val{X} = \text{number of }\val{\text{Heads}} jump between separate values (0,1,2,3\val{0}, \val{1}, \val{2}, \val{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\prob{1} across the values of X\val{X}, so each probability must satisfy 0≤P(x)≤1\prob{0} \le P(\val{x}) \le \prob{1} and the whole table must add up to 1\prob{1}. That same sum of 1\prob{1} lets you find a missing probability by subtracting the known probabilities from 1\prob{1}, such as P(3)=1.00−0.80=0.20P(\val{3}) = \prob{1.00} - \prob{0.80} = \prob{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 88 fair coin-flip paths), you don't need to multiply decimals: just count the outcomes that give x\val{x} and divide by the total (P(1)=38P(\val{1}) = \prob{\frac{3}{8}}).

Key concept

If the steps have different probabilities (like a 0.70\prob{0.70} shooter), multiply along each path and add the paths that give the same value of X\val{X}: P(1)=(0.70×0.30)P(\val{1}) = (\prob{0.70} \times \prob{0.30}) +(0.30×0.70)+ (\prob{0.30} \times \prob{0.70}) =0.42= \prob{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\val{X}: "more than 2\val{2}" (P(X>2)=P(3)+P(4)P(\val{X} > \val{2}) = P(\val{3}) + P(\val{4})) and "strictly between 1\val{1} and 3\val{3}" (P(1<X<3)=P(2)P(\val{1} < \val{X} < \val{3}) = P(\val{2})) leave the endpoints out, whereas "at least 2\val{2}" (P(X≥2)P(\val{X} \ge \val{2})), "at most 2\val{2}" (P(X≤2)P(\val{X} \le \val{2})), and "inclusive" (P(1≤X≤3)P(\val{1} \le \val{X} \le \val{3})) include them. When a range covers almost the whole table, like "at least 1\val{1}", subtract the bar left out from 1\prob{1} (P(X≥1)=1−P(0)P(\val{X} \ge \val{1}) = \prob{1} - P(\val{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,…\val{0}, \val{1}, \val{2}, \dots) with gaps between them. (Watch out in (c): "in an hour" mentions time, which tempts people to say continuous, but the random variable X\val{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\val{X} with values 0\val{0}, 1\val{1}, and 2\val{2}. Table A has P(0)=0.25P(\val{0}) = 0.25, P(1)=0.50P(\val{1}) = 0.50, P(2)=0.35P(\val{2}) = 0.35. Table B has P(0)=0.30P(\val{0}) = 0.30, P(1)=0.80P(\val{1}) = 0.80, P(2)=−0.10P(\val{2}) = -0.10. Table C has P(0)=0.15P(\val{0}) = 0.15, P(1)=0.60P(\val{1}) = 0.60, P(2)=0.25P(\val{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\prob{1.00}, and is every single probability between 0\prob{0} and 1\prob{1}?

Table A sum: 0.25+0.50+0.35=1.10≠1.000.25 + 0.50 + 0.35 = \other{1.10} \ne \prob{1.00}, so Table A fails because the probabilities add up to 1.10\other{1.10} instead of 1\prob{1}.
Table B sum: 0.30+0.80+(−0.10)=1.000.30 + 0.80 + (\other{-0.10}) = \prob{1.00}, but P(2)=−0.10P(\val{2}) = \other{-0.10} is negative. (Watch out: if you only check that the table adds to 1.00\prob{1.00}, you will mistakenly accept Table B; a probability can never be negative, so it breaks the rule 0≤P(x)≤1\prob{0} \le P(\val{x}) \le \prob{1}.)
Table C has every probability between 0\prob{0} and 1\prob{1}, and 0.15+0.60+0.25=1.00\prob{0.15} + \prob{0.60} + \prob{0.25} = \prob{1.00}.
Only Table C is valid
3

Let X\val{X} be the number of books a person checks out from a library in one visit, with distribution P(0)=0.15P(\val{0}) = \prob{0.15}, P(1)=0.35P(\val{1}) = \prob{0.35}, P(2)=0.25P(\val{2}) = \prob{0.25}, P(3)=?P(\val{3}) = \text{?}, and P(4)=0.05P(\val{4}) = \prob{0.05}. Find the missing probability P(3)P(\val{3}), and then find (a) P(X<2)P(\val{X} < \val{2}), (b) P(X≤2)P(\val{X} \le \val{2}), (c) the probability X\val{X} is strictly between 1\val{1} and 4\val{4}, and (d) the probability X\val{X} is between 1\val{1} and 4\val{4}, inclusive.

Subtract the four given probabilities from 1.00\prob{1.00} to get P(3)P(\val{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\displaystyle \begin{aligned} P(\val{3}) &= \prob{1.00} - (\prob{0.15} + \prob{0.35} + \prob{0.25} + \prob{0.05}) \\ &= \prob{1.00} - \prob{0.80} = \prob{0.20} \end{aligned}
(a) (Watch out: X<2\val{X} < \val{2} means strictly less than 2\val{2}; including P(2)=0.25P(\val{2}) = \prob{0.25} is the common mistake that gives 0.750.75.)
P(X<2)=P(0)+P(1)=0.15+0.35=0.50\displaystyle \begin{aligned} P(\val{X} < \val{2}) &= P(\val{0}) + P(\val{1}) \\ &= \prob{0.15} + \prob{0.35} = \prob{0.50} \end{aligned}
(b)
P(X≤2)=P(0)+P(1)+P(2)=0.15+0.35+0.25=0.75\displaystyle \begin{aligned} P(\val{X} \le \val{2}) &= P(\val{0}) + P(\val{1}) + P(\val{2}) \\ &= \prob{0.15} + \prob{0.35} + \prob{0.25} = \prob{0.75} \end{aligned}
(c) (Watch out: "strictly between 1\val{1} and 4\val{4}" leaves out both endpoints 1\val{1} and 4\val{4}; including them gives 0.850.85 instead of 0.45\prob{0.45}.)
P(1<X<4)=P(2)+P(3)=0.25+0.20=0.45\displaystyle \begin{aligned} P(\val{1} < \val{X} < \val{4}) &= P(\val{2}) + P(\val{3}) \\ &= \prob{0.25} + \prob{0.20} = \prob{0.45} \end{aligned}
(d)
P(1≤X≤4)=P(1)+P(2)+P(3)+P(4)=0.35+0.25+0.20+0.05=0.85\displaystyle \begin{aligned} P(\val{1} \le \val{X} \le \val{4}) &= P(\val{1}) + P(\val{2}) + P(\val{3}) + P(\val{4}) \\ &= \prob{0.35} + \prob{0.25} + \prob{0.20} + \prob{0.05} \\ &= \prob{0.85} \end{aligned}
4

A factory machine has 1010 sensors. Let X\val{X} be the number of sensors that fail on a given day (so X\val{X} can take values from 0\val{0} to 10\val{10}). You are told only that P(0)=0.72P(\val{0}) = \prob{0.72} and P(1)=0.18P(\val{1}) = \prob{0.18}. Find (a) the probability that at least 1\val{1} sensor fails, P(X≥1)P(\val{X} \ge \val{1}), and (b) the probability that more than 1\val{1} sensor fails, P(X>1)P(\val{X} > \val{1}).

Look at which values of X\val{X} are left out of each range and subtract those probabilities from 1\prob{1}.

(a) "At least 1\val{1}" leaves out only X=0\val{X} = \val{0}:
P(X≥1)\displaystyle P(\val{X} \ge \val{1}) =1−P(0)\displaystyle = \prob{1} - P(\val{0}) =1−0.72\displaystyle = \prob{1} - \other{0.72} =0.28\displaystyle = \prob{0.28}
(b) "More than 1\val{1}" (X>1\val{X} > \val{1}) leaves out both X=0\val{X} = \val{0} and X=1\val{X} = \val{1}. (Watch out: subtracting only P(1)=0.18P(\val{1}) = \other{0.18} from 1\prob{1} gives 0.820.82, and subtracting only P(0)=0.72P(\val{0}) = \other{0.72} gives 0.280.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\displaystyle \begin{aligned} P(\val{X} > \val{1}) &= \prob{1} - (P(\val{0}) + P(\val{1})) \\ &= \prob{1} - (\other{0.72} + \other{0.18}) \\ &= \prob{1} - \other{0.90} = \prob{0.10} \end{aligned}
5

A fair spinner divided into 33 equal sections numbered 11, 22, and 33 is spun twice, giving 99 equally likely outcomes. Let X\val{X} be the sum of the two spins. List all possible values of X\val{X} and find the probability distribution of X\val{X}.

Group the 99 spin pairs (1,1)(1,1) through (3,3)(3,3) by their sum X\val{X}, and divide the count for each sum by 99.

The smallest sum is 1+1=21 + 1 = \val{2} and the largest is 3+3=63 + 3 = \val{6}, so the possible values of X\val{X} are 2,3,4,5,\val{2}, \val{3}, \val{4}, \val{5}, and 6\val{6}.
(Watch out: there are 55 possible sums, so a common mistake is writing 15\frac{1}{5} for each sum; the sums are not equally likely because more spin pairs add to 4\val{4} than to 2\val{2}.) Counting the 99 equally likely pairs: (1,1)(1,1) gives 2\val{2}; (1,2),(2,1)(1,2),(2,1) give 3\val{3}; (1,3),(2,2),(3,1)(1,3),(2,2),(3,1) give 4\val{4}; (2,3),(3,2)(2,3),(3,2) give 5\val{5}; and (3,3)(3,3) gives 6\val{6}:
P(2)=19,P(3)=29,P(4)=39=13,P(5)=29,P(6)=19\displaystyle \begin{aligned} P(\val{2}) &= \prob{\frac{1}{9}}, &\qquad P(\val{3}) &= \prob{\frac{2}{9}}, \\[4pt] P(\val{4}) &= \prob{\frac{3}{9}} = \prob{\frac{1}{3}}, &\qquad P(\val{5}) &= \prob{\frac{2}{9}}, \\[4pt] P(\val{6}) &= \prob{\frac{1}{9}} \end{aligned}
6

In a basketball contest, a player takes one close-range shot (0.80\prob{0.80} chance of making it) followed by one three-point shot (0.40\prob{0.40} chance of making it). Let X\val{X} be the total number of shots made out of the two attempts. Build the probability distribution for X\val{X}.

Find the miss probability for each shot first (0.20\prob{0.20} and 0.60\prob{0.60}), then multiply along each of the four paths and add the two paths that give X=1\val{X} = \val{1}.

The possible values of X\val{X} are 0,1,\val{0}, \val{1}, and 2\val{2}. On the first shot, Make is 0.80\prob{0.80} and Miss is 0.20\prob{0.20}; on the second shot, Make is 0.40\prob{0.40} and Miss is 0.60\prob{0.60}.
For X=0\val{X} = \val{0} (Miss, Miss):
P(0)\displaystyle P(\val{0}) =0.20×0.60\displaystyle = \prob{0.20} \times \prob{0.60} =0.12\displaystyle = \prob{0.12}
For X=1\val{X} = \val{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\prob{0.80} \times \prob{0.60} = \prob{0.48} or doubling 0.48\prob{0.48} to get 0.960.96 is a mistake.)
P(1)=(0.80×0.60)+(0.20×0.40)=0.48+0.08=0.56\displaystyle \begin{aligned} P(\val{1}) &= (\prob{0.80} \times \prob{0.60}) + (\prob{0.20} \times \prob{0.40}) \\ &= \prob{0.48} + \prob{0.08} = \prob{0.56} \end{aligned}
For X=2\val{X} = \val{2} (Make, Make):
P(2)\displaystyle P(\val{2}) =0.80×0.40\displaystyle = \prob{0.80} \times \prob{0.40} =0.32\displaystyle = \prob{0.32}
7

A discrete random variable X\val{X} takes values 0,1,2,3,\val{0}, \val{1}, \val{2}, \val{3}, and 4\val{4} with P(0)=0.12P(\val{0}) = \prob{0.12}, P(1)=0.30P(\val{1}) = \prob{0.30}, P(4)=0.08P(\val{4}) = \prob{0.08}, and both P(2)P(\val{2}) and P(3)P(\val{3}) missing. If the probability that X\val{X} is at least 3\val{3} is 0.28\prob{0.28}, find P(3)P(\val{3}) and P(2)P(\val{2}).

Write out which values of X\val{X} are included in "at least 3\val{3}" to find P(3)P(\val{3}) first, and then use the total sum of 1.00\prob{1.00} to find P(2)P(\val{2}).

"At least 3\val{3}" means X≥3\val{X} \ge \val{3}, which includes both 3\val{3} and 4\val{4}. (Watch out: reading "at least 3\val{3}" as just P(3)=0.28P(\val{3}) = 0.28 leaves out P(4)=0.08P(\val{4}) = \prob{0.08}, which would wrongly give P(3)=0.28P(\val{3}) = 0.28 and P(2)=0.22P(\val{2}) = 0.22.)
P(3)+P(4)=0.28P(3)=0.28−0.08=0.20\displaystyle \begin{aligned} P(\val{3}) + P(\val{4}) &= \prob{0.28} \\ P(\val{3}) &= \prob{0.28} - \prob{0.08} = \prob{0.20} \end{aligned}
Now use the rule that all five probabilities add up to 1.00\prob{1.00}:
P(2)=1.00−(0.12+0.30+0.20+0.08)=1.00−0.70=0.30\displaystyle \begin{aligned} P(\val{2}) &= \prob{1.00} - (\prob{0.12} + \prob{0.30} + \prob{0.20} + \prob{0.08}) \\ &= \prob{1.00} - \prob{0.70} = \prob{0.30} \end{aligned}