Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

Random variables

Print Statistics (AP-aligned) only

The lessons of this topic taught in Statistics (AP-aligned), ready for paper.

To save a PDF, choose “Save as PDF” in the print dialog.

1. Combining random variables

Warm-up

Three quick questions from earlier lessons.

  1. A set of test scores has standard deviation 4. The teacher adds 10 points to every score. What is the new standard deviation?
  2. Lengths have standard deviation 11 cm. Each length is multiplied by 3. What is the new standard deviation, in the new units?
  3. Daily temperatures have mean 11 °C. With F=95C+32F = \tfrac{9}{5}C + 32, what is the mean in °F?

Discover

Two independent dice each have SD about 1.7. Is the SD of their sum about 3.4?

  1. No, smaller: about 2.4
  2. Yes

Key idea

Means always add; variances add for independent variables.

E(a+bX)=a+bE(X)E(a + bX) = a + bE(X), SD(a+bX)=∣b∣ SD(X)\text{SD}(a + bX) = |b|\,\text{SD}(X). E(X±Y)=E(X)±E(Y)E(X \pm Y) = E(X) \pm E(Y). If XX and YY are independent, Var(X±Y)=Var(X)+Var(Y)\text{Var}(X \pm Y) = \text{Var}(X) + \text{Var}(Y): variances add even for a difference.

Worked example

Morning commute: mean 20, SD 3; evening: mean 25, SD 4; independent.

E(total)=45E(\text{total}) = 45
Means add.
Var=9+16=25\text{Var} = 9 + 16 = 25
Variances add.
SD(total)=5\text{SD}(\text{total}) = 5
Square root.

Your turn, guided

Your turn: SD(X) = 6, SD(Y) = 8, independent. SD(X − Y).

1010
√(36 + 64).

Practice ★

  1. X and Y are independent with SD(X) = 3 and SD(Y) = 4. Find SD(X + Y).
  2. X and Y are independent with SD(X) = 81 and SD(Y) = 108. Find SD(X + Y).
  1. SD(X) = 4. Let Y = 5 + 2X. Find SD(Y).

Watch out!

Practice ★★

  1. X and Y are independent with SD(X) = 12 and SD(Y) = 5. Find SD(X − Y).
  2. X and Y are independent with SD(X) = 288 and SD(Y) = 120. Find SD(X − Y).

Exit ticket

Three questions to check you have got it.

  1. X and Y are independent with SD(X) = 3 and SD(Y) = 4. Find SD(X + Y).
  2. X and Y are independent with SD(X) = 81 and SD(Y) = 108. Find SD(X + Y).
  3. X and Y are independent with SD(X) = 9 and SD(Y) = 12. Find SD(X + Y).

Summary card

Combining random variables

  • Means add (and subtract).
  • Independent: variances add, for sums and differences.

Watch out: never add SDs directly.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. XX and YY are independent, Var⁡(X)=8\operatorname{Var}(X) = 8 and Var⁡(Y)=2\operatorname{Var}(Y) = 2. Find Var⁡(2X−3Y)\operatorname{Var}(2X - 3Y).

2. The binomial distribution

Warm-up

Three quick questions from earlier lessons.

  1. Two independent machines fail with probabilities 0.2 and 0.2. Find the probability that both fail.
  2. P(A) = 3/10, P(B) = 6/10 and P(A and B) = 18/100. Are A and B independent?
    1. Yes: P(A and B) = P(A)·P(B)
    2. No, because P(A and B) > 0
    3. It cannot be decided
  3. A bag has 3 red and 3 blue marbles. Two are drawn without replacement. Find P(both red).

Discover

A coin is tossed 3 times. How many sequences have exactly one head?

  1. 3
  2. 1

Key idea

Count the successes in a fixed number of independent trials.

Binomial setting: nn fixed trials, two outcomes, independent, same probability pp of success. Then P(X=k)=(nk)pk(1−p)n−kP(X = k) = \binom{n}{k}p^k(1 - p)^{n - k}, where (nk)\binom{n}{k} counts the arrangements: (n1)=n\binom{n}{1} = n, (n2)=n(n−1)2\binom{n}{2} = \tfrac{n(n - 1)}{2}.

Worked example

n=5n = 5, p=0.2p = 0.2: P(X=2)P(X = 2).

(52)=10\binom{5}{2} = 10
Arrangements.
0.22×0.83=0.020480.2^2 \times 0.8^3 = 0.02048
One arrangement.
P(X=2)=0.2048P(X = 2) = 0.2048
Multiply.

Your turn, guided

Your turn: n=4n = 4, p=12p = \tfrac{1}{2}. P(X=1)P(X = 1).

14\tfrac{1}{4}
4 × (½)⁴.

Practice ★

  1. A free throw is made with probability 1/3. In 3 independent shots, find P(exactly one is made).
  2. A free throw is made with probability 1/8. In 12 independent shots, find P(exactly one is made).
  1. Which situation fits a binomial model?
    1. The number of heads in 9 tosses of a fair coin
    2. The number of tosses until the first head
    3. The number of aces in 9 cards dealt from one deck

Watch out!

Practice ★★

  1. A seed sprouts with probability 1/3, independently. 4 seeds are planted. Find P(exactly two sprout).
  2. A seed sprouts with probability 1/8, independently. 12 seeds are planted. Find P(exactly two sprout).

Exit ticket

Three questions to check you have got it.

  1. A free throw is made with probability 1/3. In 3 independent shots, find P(exactly one is made).
  2. A free throw is made with probability 1/8. In 12 independent shots, find P(exactly one is made).
  3. A free throw is made with probability 1/3. In 4 independent shots, find P(exactly one is made).

Summary card

Binomial probabilities

P(X=k)=(nk)pk(1−p)n−kP(X = k) = \binom{n}{k}p^k(1 - p)^{n - k} in a binomial setting.

Watch out: multiply by the number of arrangements.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. XX is binomial with n=10n = 10 and p=12p = \dfrac{1}{2}. For which kk is P(X=k)P(X = k) largest?

3. Mean and standard deviation of a binomial variable

Warm-up

Three quick questions from earlier lessons.

  1. X takes the values 0, 1, 2 with probabilities 51/100, 15/100 and 34/100. Find E(X).
  2. X = 1 with probability 7/10 and X = 0 otherwise. Find the standard deviation of X.
  3. A game costs 1 dollar. You win 4 dollars (net) with probability 1/3; otherwise you lose your dollar. Find your expected net gain, in dollars.

Discover

A fair coin is tossed 100 times. About how many heads do you expect?

  1. 50
  2. 25

Key idea

Shortcuts for the binomial.

If XX is binomial with nn and pp: μX=np\mu_X = np and σX=np(1−p)\sigma_X = \sqrt{np(1 - p)}.

Worked example

n=50n = 50, p=0.3p = 0.3.

μ=15\mu = 15
np.
σ2=10.5\sigma^2 = 10.5
np(1 − p).
σ≈3.24\sigma \approx 3.24
Square root.

Your turn, guided

Your turn: n=200n = 200, p=0.1p = 0.1. The mean.

2020
200 × 0.1.

Practice ★

  1. X is binomial with n = 30 and p = 1/10. Find E(X).
  2. X is binomial with n = 523 and p = 1/4. Find E(X).
  1. X is binomial with n = 64 and p = 1/2. Find SD(X).
  2. X is binomial with n = 908 and p = 1/12. Find SD(X).

Watch out!

Practice ★★

  1. A multiple-choice test has 87 questions with 4 options each. A student guesses every answer. What does E(X) = \frac{87}{4} mean?
    1. Over many such guessed tests, the average number correct is about \frac{87}{4}
    2. The student will get exactly \frac{87}{4} right
    3. \frac{87}{4} is the largest possible score

Exit ticket

Three questions to check you have got it.

  1. X is binomial with n = 30 and p = 1/10. Find E(X).
  2. X is binomial with n = 523 and p = 1/4. Find E(X).
  3. X is binomial with n = 30 and p = 1/5. Find E(X).

Summary card

Binomial mean and SD

μ=np\mu = np, σ=np(1−p)\sigma = \sqrt{np(1 - p)}.

Watch out: the SD is the square root of np(1−p)np(1 - p).

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. XX is binomial with E(X)=20E(X) = 20 and Var⁡(X)=15\operatorname{Var}(X) = 15. Find nn.

4. The geometric distribution

Warm-up

Three quick questions from earlier lessons.

  1. A free throw is made with probability 1/3. In 3 independent shots, find P(exactly one is made).
  2. A seed sprouts with probability 1/3, independently. 4 seeds are planted. Find P(exactly two sprout).
  3. Which situation fits a binomial model?
    1. The number of heads in 9 tosses of a fair coin
    2. The number of tosses until the first head
    3. The number of aces in 9 cards dealt from one deck

Discover

You roll a die until the first six. What is the probability that the first six comes on roll 3?

  1. (56)216\left(\tfrac{5}{6}\right)^2 \tfrac{1}{6}
  2. (56)316\left(\tfrac{5}{6}\right)^3 \tfrac{1}{6}

Key idea

Waiting for the first success.

Geometric setting: independent trials with the same pp, repeated until the first success; XX = the number of the trial of the first success. P(X=k)=(1−p)k−1pP(X = k) = (1 - p)^{k - 1}p, μX=1p\mu_X = \dfrac{1}{p}.

Worked example

p=0.25p = 0.25.

P(X=2)=0.75×0.25=0.1875P(X = 2) = 0.75 \times 0.25 = 0.1875
First success on trial 2.
P(X≤2)=1−0.752=0.4375P(X \le 2) = 1 - 0.75^2 = 0.4375
Within 2 trials: complement of 2 failures.
μ=4\mu = 4
1/p.

Your turn, guided

Your turn: p=0.1p = 0.1. The mean number of trials.

1010
1/0.1.

Practice ★

  1. Each call reaches a customer with probability 1/2, independently. Find P(the first success is on call 2).
  2. Each call reaches a customer with probability 1/11, independently. Find P(the first success is on call 9).
  1. A die-like spinner shows 'win' with probability 1/3. On average, how many spins are needed to get the first win?

Watch out!

Practice ★★

  1. Each attempt succeeds with probability 1/4. Find P(the first success comes within the first two attempts).
  2. Each attempt succeeds with probability 1/15. Find P(the first success comes within the first two attempts).

Exit ticket

Three questions to check you have got it.

  1. Each call reaches a customer with probability 1/2, independently. Find P(the first success is on call 2).
  2. Each call reaches a customer with probability 1/11, independently. Find P(the first success is on call 9).
  3. Each call reaches a customer with probability 1/3, independently. Find P(the first success is on call 3).

Summary card

Geometric distribution

P(X=k)=(1−p)k−1pP(X = k) = (1 - p)^{k - 1}p, μ=1/p\mu = 1/p.

Watch out: k−1k - 1 failures before the first success.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Each trial succeeds with probability 16\dfrac{1}{ 6 }. Find the probability that the first success comes after trial 6.