Skip to content

Probability, Random Variables, and Probability Distributions

AP Statistics · Topic 4

Video lesson for this topic Open the video page
8:39

Probability, Random Variables, and Probability Distributions

A basketball player makes five shots in a row. The crowd is sure she is hot tonight. But watch what chance alone can do. Flip a fair coin twenty times. There…

English narration · English + 中文 subtitles burned in

4.1

Random and Non-Random Patterns

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

VAR-1
Given that variation may be random or not, conclusions are uncertain.

VAR-1.F
Identify questions suggested by patterns in data. [Skill 1.A]

  • VAR-1.F.1 Patterns in data do not necessarily mean that variation is not random.

Source: College Board AP Course and Exam Description

A manager says three people were chosen at random for a training trip, and all three are women, from a group of $6$ men and $3$ women. Bad luck, or unfair? Probability turns that hunch into a number: here about $1$ chance in $84$. This unit builds the rules that let you calculate chances like this and judge whether a result is surprising.

Something is random 随机 if individual outcomes 结果 are uncertain but a regular pattern emerges over many repetitions 重复. Short-run results look erratic; long-run relative frequencies 相对频率 settle down. This long-run stability is what makes probability useful. A streak or a pattern in a short run of data does not by itself show that the process is not random: random processes produce streaks quite often.

The law of large numbers 大数定律: as the number of trials grows, the relative frequency of an event gets closer and closer to its true probability. It says nothing about the short run: after five heads in a row, a fair coin is still $50\%$ likely to land heads next.

Random in the short run, predictable in the long run: the proportion of heads settles near 0.5
Random in the short run, predictable in the long run: the proportion of heads settles near 0.5
Explore

A probability from 0 to 1

Probability lives on a scale from 0 (impossible) to 1 (certain).

Vocabulary Train
English
random/ˈrændəm/
outcomes/ˈaʊtkʌmz/
repetitions
relative frequencies/ˈrelətɪv ˈfriːkwənsiz/
law of large numbers/lɔː ɒv lɑːdʒ ˈnʌmbəz/
4.2

Estimating Probabilities Using Simulation

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

UNC-2
Simulation allows us to anticipate patterns in data.

UNC-2.A
Estimate probabilities using simulation. [Skill 3.A]

  • UNC-2.A.1 A random process generates results that are determined by chance.
  • UNC-2.A.2 An outcome is the result of a trial of a random process.
  • UNC-2.A.3 An event is a collection of outcomes.
  • UNC-2.A.4 Simulation is a way to model random events, such that simulated outcomes closely match real-world outcomes. All possible outcomes are associated with a value to be determined by chance. Record the counts of simulated outcomes and the count total.
  • UNC-2.A.5 The relative frequency of an outcome or event in simulated or empirical data can be used to estimate the probability of that outcome or event.
  • UNC-2.A.6 The law of large numbers states that simulated (empirical) probabilities tend to get closer to the true probability as the number of trials increases.
    • Illustrative examples for UNC-2.A:
      • An outcome: Rolling a particular value on a six-sided number cube is one of six possible outcomes.
      • An event: When rolling two six-sided number cubes, an event would be a sum of seven. The corresponding collection of outcomes would be $(1, 6)$, $(2, 5)$, $(3, 4)$, $(4, 3)$, $(5, 2)$, and $(6, 1)$, where the ordered pairs indicate (face value on one cube, face value on the other cube).

Source: College Board AP Course and Exam Description

A simulation 模拟 imitates a chance process 随机过程 using random digits 随机数字 or technology. Steps: state the model, assign digits to outcomes, run many trials 试验, and record the proportion of trials meeting the condition. The resulting proportion estimates the probability – more trials give a better estimate.

Worked example (a complete simulation). Estimate the probability that choosing $3$ people at random from $6$ men and $3$ women gives $3$ women. Label the people $1$ to $9$, with $1$–$3$ the women. Use a random number generator to pick integers from $1$ to $9$, ignoring repeats, until $3$ different people are chosen; record whether all three are women. Repeat this many times (say $1000$). The proportion of trials with three women estimates the probability. A simulation description must say what the numbers stand for, how repeats are handled, what is recorded, and that the process is repeated many times.

Repeat a chance process many times and count how often the event happens
Repeat a chance process many times and count how often the event happens
Vocabulary Train
English
simulation/ˌsɪmjʊˈleɪʃn/
chance process
random digits
trials
4.3

Introduction to Probability

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

VAR-4
The likelihood of a random event can be quantified.

VAR-4.A
Calculate probabilities for events and their complements. [Skill 3.A]

  • VAR-4.A.1 The sample space of a random process is the set of all possible non-overlapping outcomes.
  • VAR-4.A.2 If all outcomes in the sample space are equally likely, then the probability an event E will occur is defined as the fraction: $\dfrac{\text{number of outcomes in event E}}{\text{total number of outcomes in sample space}}$
  • VAR-4.A.3 The probability of an event is a number between 0 and 1, inclusive.
  • VAR-4.A.4 The probability of the complement of an event E, $E'$ or $E^{C}$, (i.e., not E) is equal to $1 - P(E)$.

VAR-4.B
Interpret probabilities for events. [Skill 4.B]

  • VAR-4.B.1 Probabilities of events in repeatable situations can be interpreted as the relative frequency with which the event will occur in the long run.

Source: College Board AP Course and Exam Description

The probability 概率 of an event 事件 is a number from $0$ to $1$ giving its long-run relative frequency. The sample space 样本空间 is the set of all outcomes. For an event $A$, the complement 补 rule: $P(A^c)=1-P(A)$. Probabilities of all outcomes sum to $1$. When all outcomes are equally likely,

$$P(A)=\frac{\text{number of outcomes in }A}{\text{total number of outcomes}}.$$
A probability is a long-run relative frequency. "$P(\text{rain})=0.3$" means that over many days like this one, it rains on about $30\%$ of them.

Worked example (is the claim believable?). For the manager's choice above, there are $\binom93=84$ equally likely groups of $3$, and only one of them is all three women: $P=\tfrac{1}{84}=0.012$. An outcome this unlikely under random selection gives reason to doubt that the choice was random. It does not prove unfairness: unlikely things do happen, about $1$ time in $84$.

Probability runs from 0 (impossible) to 1 (certain)
Probability runs from 0 (impossible) to 1 (certain)
The four aces from a deck of playing cards
A deck of cards is a classic source of probability: 52 equally likely outcomes make the chances easy to count
Explore

Explore probability with dice

Probability is the long-run fraction of times an outcome happens. Roll the dice many times and watch the experimental proportions settle toward the theoretical values.

Vocabulary Train
English
probability/ˌprɒbəˈbɪlɪti/
event/ɪˈvent/
sample space/ˈsæmpl speɪs/
complement/ˈkɒmplɪmənt/
4.4

Mutually Exclusive Events

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

VAR-4
The likelihood of a random event can be quantified.

VAR-4.C
Explain why two events are (or are not) mutually exclusive. [Skill 4.B]

  • VAR-4.C.1 The probability that events $A$ and $B$ both will occur, sometimes called the joint probability, is the probability of the intersection of $A$ and $B$, denoted $P(A \cap B)$.
  • VAR-4.C.2 Two events are mutually exclusive or disjoint if they cannot occur at the same time. So $P(A \cap B) = 0$.

Source: College Board AP Course and Exam Description

Two events are mutually exclusive 互斥 (disjoint 不相交) if they cannot both happen. Then the addition rule 加法法则 simplifies:

$$P(A\text{ or }B)=P(A)+P(B)\quad(\text{if mutually exclusive}).$$
In general, $P(A\text{ or }B)=P(A)+P(B)-P(A\text{ and }B)$ – subtract the overlap 重叠部分 so it is not counted twice.

A Venn diagram: the overlap is the intersection of two events
A Venn diagram: the overlap is the intersection of two events
Explore

Union of two events

The union is everything in A or B; subtract the overlap once.

Vocabulary Train
English
mutually exclusive/ˈmjuːtʃuːəli eksˈkluːsɪv/
disjoint/dɪsˈdʒɔɪnt/
addition rule/əˈdɪʃn ruːl/
overlap/ˌəʊvəˈlæp/
4.5

Conditional Probability

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

VAR-4
The likelihood of a random event can be quantified.

VAR-4.D
Calculate conditional probabilities. [Skill 3.A]

  • VAR-4.D.1 The probability that event $A$ will occur given that event $B$ has occurred is called a conditional probability and denoted $P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}$.
  • VAR-4.D.2 The multiplication rule states that the probability that events $A$ and $B$ both will occur is equal to the probability that event $A$ will occur multiplied by the probability that event $B$ will occur, given that $A$ has occurred. This is denoted $P(A \cap B) = P(A) \cdot P(B \mid A)$.

Source: College Board AP Course and Exam Description

Conditional probability

The conditional probability 条件概率 of $A$ given $B$ is

$$P(A\mid B)=\frac{P(A\text{ and }B)}{P(B)}.$$
It is the chance of $A$ once you know $B$ happened. Two-way tables 双向表 make these easy: restrict to the row/column for $B$, then find $A$'s share.

On a tree diagram, multiply the probabilities along the branches
On a tree diagram, multiply the probabilities along the branches

Worked example: tree diagram. $2\%$ of people have a disease. A test is positive for $95\%$ of people who have it, and (a false positive 假阳性) for $10\%$ of people who do not. A person tests positive. What is the probability that they have the disease?

  • Branch “disease, positive”: $0.02\times0.95=0.019$.
  • Branch “no disease, positive”: $0.98\times0.10=0.098$.
  • So $P(\text{positive})=0.019+0.098=0.117$.
$$P(\text{disease}\mid\text{positive})=\frac{P(\text{disease and positive})}{P(\text{positive})}=\frac{0.019}{0.117}\approx 0.162.$$

Only about $16\%$ of positive results come from people with the disease: so few people have it that the false positives outnumber the true ones. Do not confuse $P(\text{positive}\mid\text{disease})=0.95$ with $P(\text{disease}\mid\text{positive})$.

Explore

Update a probability on new information

Conditional probability $P(B\mid A)$ is the chance of $B$ once you know $A$ happened. Change the branch probabilities and watch how conditioning reshapes the outcome.

Vocabulary Train
English
conditional probability/kənˈdɪʃənl ˌprɒbəˈbɪlɪti/
Two-way tables
false positive
4.6

Independent Events and Unions of Events

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

VAR-4
The likelihood of a random event can be quantified.

VAR-4.E
Calculate probabilities for independent events and for the union of two events. [Skill 3.A]

  • VAR-4.E.1 Events $A$ and $B$ are independent if, and only if, knowing whether event $A$ has occurred (or will occur) does not change the probability that event $B$ will occur.
  • VAR-4.E.2 If, and only if, events $A$ and $B$ are independent, then $P(A \mid B) = P(A)$, $P(B \mid A) = P(B)$, and $P(A \cap B) = P(A) \cdot P(B)$.
  • VAR-4.E.3 The probability that event $A$ or event $B$ (or both) will occur is the probability of the union of $A$ and $B$, denoted $P(A \cup B)$.
  • VAR-4.E.4 The addition rule states that the probability that event $A$ or event $B$ or both will occur is equal to the probability that event $A$ will occur plus the probability that event $B$ will occur minus the probability that both events $A$ and $B$ will occur. This is denoted $P(A \cup B) = P(A) + P(B) - P(A \cap B)$.

Source: College Board AP Course and Exam Description

Events are independent 独立 if knowing one does not change the other's probability: $P(A\mid B)=P(A)$. Then the multiplication rule 乘法法则 simplifies:

$$P(A\text{ and }B)=P(A)\,P(B)\quad(\text{if independent}).$$
Independent is not the same as mutually exclusive – mutually exclusive events with nonzero probability are actually dependent 不独立 (if one happens, the other cannot).

"At least one": use the complement. A mall has three ATMs, each working at opening time with probability $0.9$, independently. The only way to have none working is all three failing:

$$P(\text{at least one works})=1-P(\text{none})=1-(0.1)^3=0.999.$$
Given that at least one works, the probability all three work is
$$P(\text{all}\mid\text{at least one})=\frac{P(\text{all and at least one})}{P(\text{at least one})}=\frac{0.9^3}{0.999}=\frac{0.729}{0.999}=0.730.$$
The "and" in the numerator is just $P(\text{all})$, because "all three work" is already inside "at least one works".

A sample space diagram lists every equally likely outcome
A sample space diagram lists every equally likely outcome
Explore

Combine events with a Venn diagram

For a union $P(A\cup B)=P(A)+P(B)-P(A\cap B)$ — you subtract the overlap so it isn't counted twice. Switch the operation to see each region light up.

Vocabulary Train
English
independent/ˌɪndɪˈpendənt/
multiplication rule/ˌmʌltɪplɪˈkeɪʃn ruːl/
dependent/dɪˈpendənt/
4.7

Random Variables and Probability Distributions

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

VAR-5
Probability distributions may be used to model variation in populations.

VAR-5.A
Represent the probability distribution for a discrete random variable. [Skill 2.B]

  • VAR-5.A.1 The values of a random variable are the numerical outcomes of random behavior.
  • VAR-5.A.2 A discrete random variable is a variable that can only take a countable number of values. Each value has a probability associated with it. The sum of the probabilities over all of the possible values must be 1.
  • VAR-5.A.3 A probability distribution can be represented as a graph, table, or function showing the probabilities associated with values of a random variable.
  • VAR-5.A.4 A cumulative probability distribution can be represented as a table or function showing the probability of being less than or equal to each value of the random variable.
    • Illustrative examples for VAR-5.A: Outcomes of trials of a random process:
      • The sum of the outcomes for rolling two dice
      • The number of puppies in a randomly selected litter for a certain breed of dog

VAR-5.B
Interpret a probability distribution. [Skill 4.B]

  • VAR-5.B.1 An interpretation of a probability distribution provides information about the shape, center, and spread of a population and allows one to make conclusions about the population of interest.

Source: College Board AP Course and Exam Description

A random variable 随机变量 assigns a number to each outcome of a chance process. A probability distribution 概率分布 lists each possible value with its probability (they sum to $1$). A distribution can be discrete 离散 (a table of values) or continuous 连续 (an area-under-a-curve model like the normal).

A cumulative probability distribution gives $P(X\le x)$ for each value, adding the probabilities up from the smallest value. Its last entry is always $1$. Two random variables are independent if knowing the value of one does not change the probability distribution of the other.

A discrete probability distribution with its mean and standard deviation
A discrete probability distribution with its mean and standard deviation
Explore

A discrete probability distribution

Each bar is P(x); the bars sum to 1.

Vocabulary Train
English
random variable/ˈrændəm ˈveərɪəbl/
probability distribution/ˌprɒbəˈbɪlɪti ˌdɪstrɪˈbjuːʃn/
discrete/dɪˈskriːt/
continuous/kənˈtɪnjuːəs/
4.8

Mean and Standard Deviation of Random Variables

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

VAR-5
Probability distributions may be used to model variation in populations.

VAR-5.C
Calculate parameters for a discrete random variable. [Skill 3.B]

  • VAR-5.C.1 A numerical value measuring a characteristic of a population or the distribution of a random variable is known as a parameter, which is a single, fixed value.
  • VAR-5.C.2 The mean, or expected value, for a discrete random variable $X$ is $\mu_X = \sum x_i \cdot P(x_i)$.
  • VAR-5.C.3 The standard deviation for a discrete random variable $X$ is $\sigma_X = \sqrt{\sum (x_i - \mu_x)^2 \cdot P(x_i)}$.

VAR-5.D
Interpret parameters for a discrete random variable. [Skill 4.B]

  • VAR-5.D.1 Parameters for a discrete random variable should be interpreted using appropriate units and within the context of a specific population.

Source: College Board AP Course and Exam Description

The mean (expected value) 期望值 of a discrete random variable is the probability-weighted average 概率加权平均:

$$\mu_X=E(X)=\sum x_i\,P(x_i).$$
The standard deviation 标准差 $\sigma_X=\sqrt{\sum (x_i-\mu_X)^2\,P(x_i)}$ measures typical spread from the mean. The expected value is the long-run average outcome, not a value you expect on any single trial.

Worked example. A game pays $\$5$ with probability $0.2$ and costs you $\$1$ (a $-1$ outcome) with probability $0.8$. The expected value is

$$E(X)=5(0.2)+(-1)(0.8)=1-0.8=\$0.20,$$
so over many plays you gain about $20$ cents per play on average, even though no single play gives exactly that.

Worked example (the ATMs again). The number of working ATMs, $X$, has $E(X)=3(0.9)=2.7$. Interpretation in context: "Over many days, the mean number of ATMs working when the mall opens is about $2.7$." If we are told that at least one ATM works, the case $X=0$ is removed, so the expected value increases slightly: the remaining values are all $1$ or more.

Vocabulary Train
English
mean (expected value)/miːn/
probability-weighted average
standard deviation/ˈstændəd ˌdiːvɪˈeɪʃn/
4.9

Combining Random Variables

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

VAR-5
Probability distributions may be used to model variation in populations.

VAR-5.E
Calculate parameters for linear combinations of random variables. [Skill 3.B]

  • VAR-5.E.1 For random variables $X$ and $Y$ and real numbers $a$ and $b$, the mean of $aX + bY$ is $a\mu_x + b\mu_y$.
  • VAR-5.E.2 Two random variables are independent if knowing information about one of them does not change the probability distribution of the other.
  • VAR-5.E.3 For independent random variables $X$ and $Y$ and real numbers $a$ and $b$, the mean of $aX + bY$ is $a\mu_x + b\mu_y$, and the variance of $aX + bY$ is $a^2\sigma^2_x + b^2\sigma^2_y$.

VAR-5.F
Describe the effects of linear transformations of parameters of random variables. [Skill 3.C]

  • VAR-5.F.1 For $Y = a + bX$, the probability distribution of the transformed random variable, $Y$, has the same shape as the probability distribution for $X$, so long as $a > 0$ and $b > 0$. The mean of $Y$ is $\mu_y = a + b\mu_x$. The standard deviation of $Y$ is $\sigma_y = |b|\sigma_x$.

Source: College Board AP Course and Exam Description

When you add or subtract random variables, means add 均值相加: $\mu_{X\pm Y}=\mu_X\pm\mu_Y$. If $X$ and $Y$ are independent, variances add 方差相加 (even when subtracting):

$$\sigma^2_{X\pm Y}=\sigma^2_X+\sigma^2_Y.$$
Take the square root for the standard deviation. Also, scaling: $\mu_{aX+b}=a\mu_X+b$ and $\sigma_{aX+b}=|a|\sigma_X$. A linear change $Y=a+bX$ does not change the shape of the distribution (for $b>0$): a right-skewed $X$ gives a right-skewed $Y$.

Worked example. Task A takes $X$ minutes with $\mu_X=20$, $\sigma_X=3$; task B takes $Y$ minutes with $\mu_Y=15$, $\sigma_Y=4$; the times are independent.

  • Total time: $\mu_{X+Y}=20+15=35$ minutes, and $\sigma_{X+Y}=\sqrt{3^2+4^2}=\sqrt{25}=5$ minutes.
  • Difference: $\mu_{X-Y}=20-15=5$ minutes, and $\sigma_{X-Y}=\sqrt{3^2+4^2}=5$ minutes as well.

Two common errors: adding the standard deviations ($3+4=7$), and subtracting them for a difference ($4-3=1$). Add the variances, then take the square root.

A third error: treating $3X$ like $X_1+X_2+X_3$. Tripling one value triples the spread, $\sigma_{3X}=3\sigma_X$; adding three independent values gives $\sigma=\sqrt{3}\,\sigma_X$, because the variances add.

For independent random variables means add and variances add
For independent random variables means add and variances add
Explore

A combined normal variable

A sum/difference of independent normals is itself normal.

Vocabulary Train
English
means add
variances add
4.10

Introduction to the Binomial Distribution

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

UNC-3
Probabilistic reasoning allows us to anticipate patterns in data.

UNC-3.A
Estimate probabilities of binomial random variables using data from a simulation. [Skill 3.A]

  • UNC-3.A.1 A probability distribution can be constructed using the rules of probability or estimated with a simulation using random number generators.
  • UNC-3.A.2 A binomial random variable, $X$, counts the number of successes in $n$ repeated independent trials, each trial having two possible outcomes (success or failure), with the probability of success $p$ and the probability of failure $1 - p$.

UNC-3.B
Calculate probabilities for a binomial distribution. [Skill 3.A]

  • UNC-3.B.1 The probability that a binomial random variable, $X$, has exactly $x$ successes for $n$ independent trials, when the probability of success is $p$, is calculated as $P(X = x) = \binom{n}{x} p^x (1 - p)^{n-x}, x = 0, 1, 2, \ldots, n$. This is the binomial probability function.

Source: College Board AP Course and Exam Description

The binomial distribution

A binomial 二项 setting (BINS): a fixed number $n$ of Independent trials, each with two outcomes (success 成功/failure 失败) and the same success probability $p$. The random variable $X=$ number of successes. Its probability:

$$P(X=k)=\binom{n}{k}p^k(1-p)^{n-k}.$$

The binomial distribution, with mean n times p
The binomial distribution, with mean n times p
Explore

Shape a binomial distribution

A binomial distribution counts successes in $n$ independent trials each with probability $p$. Change $n$ and $p$ and watch the bars shift and spread.

Vocabulary Train
English
binomial/baɪˈnəʊmɪəl/
success
failure
4.11

Parameters for a Binomial Distribution

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

UNC-3
Probabilistic reasoning allows us to anticipate patterns in data.

UNC-3.C
Calculate parameters for a binomial distribution. [Skill 3.B]

  • UNC-3.C.1 If a random variable is binomial, its mean, $\mu_x$, is $np$ and its standard deviation, $\sigma_x$, is $\sqrt{np(1 - p)}$.

UNC-3.D
Interpret probabilities and parameters for a binomial distribution. [Skill 4.B]

  • UNC-3.D.1 Probabilities and parameters for a binomial distribution should be interpreted using appropriate units and within the context of a specific population or situation.

Source: College Board AP Course and Exam Description

For a binomial $X$ with $n$ trials and success probability $p$:

$$\mu_X=np,\qquad \sigma_X=\sqrt{np(1-p)}.$$
Use these for "how many successes do we expect, and how much do they vary" questions. Interpret them in context: "If we test many batches of $n$, the mean number of successes per batch is about $np$." A binomial distribution can also be built from the formula, or estimated by simulation.

Worked example. A player makes $70\%$ of free throws. In $n=10$ shots, the probability of exactly $8$ makes is

$$P(X=8)=\binom{10}{8}(0.7)^8(0.3)^2=45\times0.0576\times0.09\approx0.23,$$
and the expected number of makes is $\mu=np=10(0.7)=7$, with $\sigma=\sqrt{10(0.7)(0.3)}\approx1.45$.

Worked example: “at least”. For the same player ($n=10$, $p=0.7$), the probability of at least $8$ makes adds the top three values:

$$P(X\ge 8)=P(8)+P(9)+P(10)=0.2335+0.1211+0.0282=0.3828.$$

By the complement, the probability of at most $7$ makes is $P(X\le7)=1-0.3828=0.6172$.

Common mistakes. Writing $P(X\ge 8)=1-P(X\le 8)$: the complement of “at least $8$” is “at most $7$”, so $P(X\ge 8)=1-P(X\le 7)$. Using a binomial model when $n$ is not fixed, or when the trials are not independent (drawing without replacement from a small group).

4.12

The Geometric Distribution

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

UNC-3
Probabilistic reasoning allows us to anticipate patterns in data.

UNC-3.E
Calculate probabilities for geometric random variables. [Skill 3.A]

  • UNC-3.E.1 For a sequence of independent trials, a geometric random variable, $X$, gives the number of the trial on which the first success occurs. Each trial has two possible outcomes (success or failure) with the probability of success $p$ and the probability of failure $1 - p$.
  • UNC-3.E.2 The probability that the first success for repeated independent trials with probability of success $p$ occurs on trial $x$ is calculated as $P(X = x) = (1 - p)^{x-1} p, x = 1, 2, 3, \ldots$. This is the geometric probability function.

UNC-3.F
Calculate parameters of a geometric distribution. [Skill 3.B]

  • UNC-3.F.1 If a random variable is geometric, its mean, $\mu_x$, is $\dfrac{1}{p}$ and its standard deviation, $\sigma_x$, is $\dfrac{\sqrt{(1 - p)}}{p}$.

UNC-3.G
Interpret probabilities and parameters for a geometric distribution. [Skill 4.B]

  • UNC-3.G.1 Probabilities and parameters for a geometric distribution should be interpreted using appropriate units and within the context of a specific population or situation.

Source: College Board AP Course and Exam Description

A geometric 几何 setting is the same as binomial but with no fixed $n$: you keep trying until the first success. The random variable $Y=$ the trial of the first success:

$$P(Y=k)=(1-p)^{k-1}\,p,\qquad \mu_Y=\frac{1}{p}.$$
So the expected number of trials until the first success is $1/p$.

Worked example. A player makes $30\%$ of shots, independently. The probability that the first make is on the third shot needs two misses, then a make:

$$P(Y=3)=(0.7)^2(0.3)=0.147.$$

The probability of a make within the first three shots uses the complement (three misses in a row): $P(Y\le 3)=1-0.7^3=0.657$. On average the first make comes on shot $\mu_Y=\tfrac{1}{0.3}\approx 3.33$. The standard deviation is $\sigma_Y=\dfrac{\sqrt{1-p}}{p}=\dfrac{\sqrt{0.7}}{0.3}=2.79$ shots.

Worked example (rocket igniters). A company claims a failure rate of $15\%$. The probability that the first $30$ igniters tested all work is $0.85^{30}=0.0076$. Getting $30$ successes in a row would be very unusual if the failure rate really were $15\%$, so it is reasonable to believe the failure rate is lower. Given those $30$ successes, the chance that the first failure is on test $31$ or $32$ is $0.15+0.85(0.15)=0.278$: past successes do not change the next trials, because they are independent.

The geometric distribution: trials until the first success
The geometric distribution: trials until the first success
Explore

Rolling until the first success

Keep rolling until the target appears — that's a geometric count.

Vocabulary Train
English
geometric/ˌdʒiːəʊˈmetrɪk/
4.12

Practice

Answer each before reading the answers below.

  1. $P(A)=0.5$, $P(B)=0.4$ and $P(A\text{ and }B)=0.2$. Find $P(A\text{ or }B)$.

  2. Are $A$ and $B$ in question 1 independent? Show why.

  3. A basketball player makes $30\%$ of three-point shots, independently. In 10 shots, find the probability of exactly 2 makes.

  4. A game costs $1 to play. You win $5 (and keep your $1) with probability $0.2$; otherwise you lose the $1. Find the expected gain per game.

  5. A student says: "Mutually exclusive events are independent, because one has nothing to do with the other." Correct the student.

  6. Each of $4$ independent smoke alarms works with probability $0.95$. Find the probability that at least one works.

  7. In a large school, $40\%$ of students walk to school. If $8$ students are chosen at random, find the mean and standard deviation of the number who walk, and interpret the mean.

  8. Machine A makes $60\%$ of a factory's bolts and $2\%$ of its bolts are faulty; machine B makes the rest, and $5\%$ of B's bolts are faulty. A bolt is faulty. Find the probability it came from machine A.

4.12

Answers

  1. $P(A\text{ or }B)=0.5+0.4-0.2=0.7$.

  2. Yes: $P(A)P(B)=0.5\times0.4=0.2=P(A\text{ and }B)$.

  3. Binomial with $n=10$, $p=0.3$: $\binom{10}{2}(0.3)^2(0.7)^8=45(0.09)(0.0576)=0.233$.

  4. $E=0.2(5)+0.8(-1)=0.20$: on average the player gains $0.20 per game.

  5. If $A$ and $B$ are mutually exclusive and both have positive probability, then knowing $A$ happened tells you $B$ did not. So $P(B\mid A)=0\neq P(B)$: they are dependent, and as dependent as two events can be.

  6. $1-0.05^4=1-0.00000625=0.99999$.

  7. $\mu=8(0.4)=3.2$, $\sigma=\sqrt{8(0.4)(0.6)}=1.39$. In many random samples of $8$ students, the mean number who walk would be about $3.2$.

  8. $P(\text{faulty})=0.6(0.02)+0.4(0.05)=0.012+0.020=0.032$, so $P(A\mid\text{faulty})=\dfrac{0.012}{0.032}=0.375$.

4.12

Exam tips

  • A probability lies in $[0,1]$; use the complement ($1-P$) and add mutually exclusive events.
  • For independent events multiply; for "and/or" use the general addition and conditional rules.
  • Expected value = $\sum(\text{value}\times\text{probability})$.
  • Recognise binomial (fixed $n$, two outcomes, constant $p$) and geometric settings.
  • Draw a tree or table for multi-stage problems and multiply along branches.
  • For "at least one", subtract "none" from $1$.
  • When a result has a small probability under a claim, say it gives reason to doubt the claim, and quote the probability.
  • Interpret an expected value as a long-run mean over many repetitions, in context.

Interactive lessons on this topic

Work through it step by step, with instant-check exercises.

Past Papers

More topics in AP Statistics

Log in or create account

IGCSE, A-Level & AP