1.1Count a Simple Sample Space
A fair coin is flipped twice. What is the probability of getting exactly one head?
Solution
The sample space is
There are 4 equally likely outcomes, and 2 of them have exactly one head: $HT$ and $TH$.
So
Pomodoro
Showing all 27 problems
Progress
0 of 27 completed
Difficulty
A fair coin is flipped twice. What is the probability of getting exactly one head?
Solution
The sample space is
There are 4 equally likely outcomes, and 2 of them have exactly one head: $HT$ and $TH$.
So
How many ways can you choose 3 students from a group of 8?
Solution
Use combinations because the order does not matter:
How many ordered outcomes are there for the gold, silver, and bronze places among 7 runners?
Solution
Use permutations because order matters:
How many distinct arrangements of the letters in BOOK are there?
Solution
The word BOOK has 4 letters, with O repeated twice. The number of distinct arrangements is
A fair die is rolled 3 times. What is the probability of getting at least one 6?
Solution
It is easier to compute the complement: no 6s on all 3 rolls.
So
Suppose
Find $P(A \cup B)$.
Solution
Use the addition rule:
Substitute the given values:
Suppose
Find $P(A \mid B)$.
Solution
Use the definition of conditional probability:
So
If $X \sim \mathrm{Bernoulli}(0.7)$, find $E[X]$ and $\mathrm{Var}(X)$.
Solution
For a Bernoulli random variable,
Here $p=0.7$, so
and
If $X \sim \mathrm{Binomial}(5,0.2)$, find $P(X=2)$.
Solution
Use the binomial formula:
Now compute:
So
If $X \sim \mathcal{N}(100,15^2)$, what is the $z$-score for $x=130$?
Solution
Standardize using
Here $\mu=100$ and $\sigma=15$, so
Difficulty
A box contains 6 good parts and 4 defective parts. Two parts are drawn without replacement. What is the probability that exactly 1 part is defective?
Solution
Use the hypergeometric model:
Compute the values:
A disease affects 2% of a population. A test is 95% accurate for people who have the disease, and it gives a false positive 10% of the time for people who do not have the disease. If a person tests positive, what is the probability that the person actually has the disease?
Solution
Let $D$ be the event that the person has the disease and $+$ be the event of a positive test.
By Bayes' theorem,
First find the total probability of a positive test:
Now compute the posterior:
So the probability is about $0.162$.
If $X \sim \mathrm{Geometric}(0.25)$, find $P(X>7 \mid X>3)$.
Solution
Use the memoryless property:
Here we want
For a geometric random variable with success probability $0.25$,
So the probability is about $0.316$.
A basketball player makes each free throw with probability $0.6$, independently. What is the probability that the third make occurs on the fifth attempt?
Solution
This is a negative binomial situation with $r=3$ and $k=5$.
So
A support line receives 4 calls per hour on average. What is the probability of exactly 2 calls in a half hour?
Solution
In half an hour, the mean count is
Use the Poisson formula:
So
which is about $0.271$.
The waiting time to the next event has an exponential distribution with rate 3 per hour. What is the probability of waiting more than 20 minutes?
Solution
Convert 20 minutes to hours:
For an exponential random variable,
So
This is about $0.368$.
Suppose
and
Find $P(A \cup B \cup C)$.
Solution
Use inclusion-exclusion:
Substitute the values:
A joint pmf is given by
Find the marginal distributions of $X$ and $Y$, and determine whether $X$ and $Y$ are independent.
Solution
First find the marginals by summing rows and columns.
For $X$:
For $Y$:
Check one joint probability:
The same factorization works for the other entries as well, so the joint distribution factors into the product of the marginals.
Therefore, $X$ and $Y$ are independent.
Difficulty
Let $X$ take the values $1$, $2$, and $4$ with probabilities $0.2$, $0.5$, and $0.3$, respectively. If the payoff is $X^2$, what is the expected payoff?
Solution
Use the formula for the expected value of a function of $X$:
So
The expected payoff is $7$.
A fair die is rolled 5 times. Let $X$ be the number of adjacent pairs that match. Find $E[X]$.
Solution
There are 4 adjacent pairs: $(1,2)$, $(2,3)$, $(3,4)$, and $(4,5)$.
Let $I_i$ be the indicator for the event that the $i$th pair matches. Then
Each pair matches with probability $1/6$, so
By linearity of expectation,
A box has 8 good components and 4 defective components. Three components are drawn without replacement. What is the probability that at least one component is defective?
Solution
Use the complement event: no defective components are drawn.
There are 8 good components, so
Thus
Compute the combinations:
Calls arrive at a rate of 2 per hour. Under the gamma model, what is the mean waiting time until the third call?
Solution
The waiting time to the third event is modeled by a gamma distribution with shape $3$ and rate $2$.
For $X \sim \mathrm{Gamma}(\alpha,\lambda)$,
So here
The mean waiting time is $1.5$ hours.
A parameter $p$ represents a conversion rate, so it must stay between 0 and 1. Which distribution from the note is a natural choice for modeling $p$?
Solution
The beta distribution is defined on the interval $[0,1]$, so it is a natural model for probabilities and proportions.
Therefore, the appropriate choice is the beta distribution.
Difficulty
Machine A makes 60% of the items and has a defect rate of 1%. Machine B makes the other 40% and has a defect rate of 4%. If an item is defective, what is the probability that it came from Machine A?
Solution
Let $A$ be the event that the item came from Machine A and let $D$ be the event that the item is defective.
First use the law of total probability:
Now apply Bayes' theorem:
So the probability is about $0.273$.
If $X \sim \mathrm{Binomial}(100,0.2)$, approximate $P(16 \le X \le 24)$ using a normal model.
Solution
For a binomial random variable,
and
Use the continuity correction:
where $Y \sim \mathcal{N}(20,16)$.
Standardize:
So
A population has mean 50 and standard deviation 12. Compare the standard error of the sample mean for samples of size 36 and 144. Which sample mean should be more stable?
Solution
The standard error of the sample mean is
For $n=36$:
For $n=144$:
The sample mean from 144 observations has the smaller standard error, so it should be more stable and closer to the true mean. That is the kind of behavior predicted by the law of large numbers.
Three independent backup checks have failure probabilities 0.03, 0.05, and 0.02. Give an upper bound on the probability that at least one check fails.
Solution
Use the union bound:
So
The upper bound is $0.10$.