This review covers all lessons in this topic: discrete random variables and probability functions, mean/variance/standard deviation, Bernoulli distributions, and binomial distributions. Questions are mixed in difficulty. Click each answer to reveal the worked solution.
Review Questions
A discrete random variable X has the following probability distribution:
x
1
2
3
4
P(X=x)
0.1
0.3
0.4
0.2
Verify this is a valid probability distribution and find P(X ≥ 3).
Validity: All probabilities are non-negative ✓ and 0.1 + 0.3 + 0.4 + 0.2 = 1.0 ✓
P(X ≥ 3) = P(X=3) + P(X=4) = 0.4 + 0.2 = 0.6
A bag contains 3 red and 2 blue balls. One ball is drawn. Let X = 1 if red, X = 0 if blue. Write the probability distribution of X and state what type of random variable this is.
P(X=1) = 3/5 = 0.6, P(X=0) = 2/5 = 0.4
x
0
1
P(X=x)
0.4
0.6
This is a Bernoulli random variable with p = 0.6.
Find the value of k that makes the following a valid probability distribution, where P(X=x) = kx for x = 1, 2, 3, 4, 5.
Sum of all probabilities = 1:
k(1) + k(2) + k(3) + k(4) + k(5) = 1
15k = 1 k = 1/15
For a Bernoulli random variable with p = 0.35, find E(X), Var(X) and SD(X).
In a multiple-choice test, each question has 4 options and one correct answer. If a student randomly guesses on 10 questions, find the probability they get exactly 3 correct. What is the expected number of correct answers?
X ~ Bin(10, 0.25) where p = 1/4 (probability of correct guess)
P(X=3) = C(10,3)(0.25)³(0.75)7 = 120 × 0.015625 × 0.13348 ≈ 0.2503
E(X) = np = 10 × 0.25 = 2.5 correct answers
A factory produces items of which 5% are defective. A quality inspector samples 20 items. Let X = number of defective items.
(a) State the distribution of X and its parameters.
(b) Find the probability that at most 1 item is defective.
(c) Find E(X) and interpret this in context.
(a) X ~ Bin(20, 0.05) (b) P(X≤1) = P(X=0) + P(X=1)
P(X=0) = (0.95)20 ≈ 0.3585
P(X=1) = 20(0.05)(0.95)19 ≈ 0.3774
P(X≤1) ≈ 0.3585 + 0.3774 ≈ 0.736 (c) E(X) = 20 × 0.05 = 1. On average, the inspector expects to find 1 defective item per sample of 20.
The probability that a basketball player scores on any given free throw is 0.7. She takes 5 free throws. Find the probability she scores on more than 3 throws.
Let X ~ Bin(n, p) with E(X) = 6 and Var(X) = 4.2. Find n and p.
E(X) = np = 6 …(i)
Var(X) = np(1−p) = 4.2 …(ii)
Dividing (ii) by (i): 1 − p = 4.2/6 = 0.7, so p = 0.3
From (i): n = 6/0.3 = n = 20
Distribution: X ~ Bin(20, 0.3)
A Bernoulli trial succeeds with probability p. If the mean of the distribution is 0.4, find:
(a) The value of p
(b) P(X = 1)
(c) The variance
(a) For Bernoulli: E(X) = p = 0.4 (b) P(X=1) = p = 0.4 (c) Var(X) = p(1−p) = 0.4 × 0.6 = 0.24
A spinner has outcomes 1, 2, 3, 4, 5 each equally likely. X is the outcome of one spin. Calculate E(X), E(X²), Var(X) and SD(X).