Math Core

Lesson 9.5 · Statistics and Probability

Probability rules

Probability is the language of chance, and it underlies everything in this unit: random samples, random assignment and margins of error all rely on it. A handful of rules let you find the probability of complicated events, like "A or B," "A and B" and "A given B," from simpler ones.

The basics

An experiment in probability is any process with uncertain results, like rolling a die. The set of all possible outcomes is the sample space, and an event is a set of outcomes. When all outcomes are equally likely,

P(A)=number of outcomes in Anumber of outcomes in the sample space.P(A) = \frac{\text{number of outcomes in } A}{\text{number of outcomes in the sample space}}.

Every probability is between 00 (impossible) and 11 (certain).

The complement of AA, written AcA^c or "not AA," is every outcome not in AA. Since AA and not AA together cover everything,

P(not A)=1−P(A).P(\text{not } A) = 1 - P(A).

The complement rule is especially useful for "at least one" questions. "At least one six in three rolls" has many cases, but its complement, "no sixes at all," has just one.

The addition rule: "A or B"

"AA or BB" means AA happens, BB happens, or both. If you add P(A)P(A) and P(B)P(B), outcomes in both events get counted twice, so subtract them once.

The addition rule

P(A or B)=P(A)+P(B)−P(A and B).P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B).

If AA and BB are mutually exclusive (they can't both happen), then P(A and B)=0P(A \text{ and } B) = 0 and P(A or B)=P(A)+P(B)P(A \text{ or } B) = P(A) + P(B).

Worked example: Cards

One card is drawn from a standard 5252-card deck. Find the probability that it is a king or a heart.

Solution. There are 44 kings and 1313 hearts, and 11 card (the king of hearts) is both:

P(king or heart)=452+1352−152=1652=413.P(\text{king or heart}) = \frac{4}{52} + \frac{13}{52} - \frac{1}{52} = \frac{16}{52} = \frac{4}{13}.

Two-way tables and conditional probability

Sometimes you learn something that changes the probabilities. The probability of BB given that AA has happened is written P(B∣A)P(B \mid A). Knowing AA happened shrinks the sample space to just the outcomes in AA.

Definition

Conditional probability

P(B∣A)=P(A and B)P(A).P(B \mid A) = \frac{P(A \text{ and } B)}{P(A)}.

With a table of counts, this is simply count in both A and Bcount in A\dfrac{\text{count in both } A \text{ and } B}{\text{count in } A}.

Worked example: Reading a two-way table

A survey of 200200 students asked whether they play a sport and whether they have a part-time job.

JobNo jobTotal
Sport30307070100100
No sport20208080100100
Total5050150150200200

A student is chosen at random. Find (1) P(job)P(\text{job}), (2) P(sport or job)P(\text{sport or job}), (3) P(job∣sport)P(\text{job} \mid \text{sport}) and (4) P(sport∣job)P(\text{sport} \mid \text{job}).

Solution.

  1. P(job)=50200=0.25P(\text{job}) = \dfrac{50}{200} = 0.25.
  2. P(sport or job)=100200+50200−30200=120200=0.6P(\text{sport or job}) = \dfrac{100}{200} + \dfrac{50}{200} - \dfrac{30}{200} = \dfrac{120}{200} = 0.6.
  3. Look only at the Sport row: P(job∣sport)=30100=0.3P(\text{job} \mid \text{sport}) = \dfrac{30}{100} = 0.3.
  4. Look only at the Job column: P(sport∣job)=3050=0.6P(\text{sport} \mid \text{job}) = \dfrac{30}{50} = 0.6.

Common mistake

P(B∣A)P(B \mid A) and P(A∣B)P(A \mid B) are usually different. In the example, 30%30\% of athletes have jobs, but 60%60\% of students with jobs are athletes. Always ask: which group is the "given" group? That group's total goes in the denominator.

Independence and the multiplication rule

Two events are independent if knowing that one happened doesn't change the probability of the other: P(B∣A)=P(B)P(B \mid A) = P(B). Coin flips and separate die rolls are independent. Rearranging the conditional probability formula gives the multiplication rule.

The multiplication rule

For any events,

P(A and B)=P(A)⋅P(B∣A).P(A \text{ and } B) = P(A) \cdot P(B \mid A).

If AA and BB are independent, this becomes P(A and B)=P(A)⋅P(B)P(A \text{ and } B) = P(A) \cdot P(B). You can also use this as a test: AA and BB are independent exactly when P(A and B)=P(A)⋅P(B)P(A \text{ and } B) = P(A) \cdot P(B).

In the two-way table, P(job)=0.25P(\text{job}) = 0.25 but P(job∣sport)=0.3P(\text{job} \mid \text{sport}) = 0.3. Knowing a student plays a sport changes the probability, so the events are not independent. Check with the product test: P(sport)⋅P(job)=0.5×0.25=0.125P(\text{sport}) \cdot P(\text{job}) = 0.5 \times 0.25 = 0.125, but P(sport and job)=30200=0.15P(\text{sport and job}) = \dfrac{30}{200} = 0.15.

Worked example: Drawing without replacement

A bag holds 55 red and 33 blue marbles. Two marbles are drawn one after the other without replacement. Find the probability that both are red.

Solution. The first draw is red with probability 58\dfrac{5}{8}. Given that, 44 red remain among 77 marbles:

P(both red)=58⋅47=2056=514.P(\text{both red}) = \frac{5}{8} \cdot \frac{4}{7} = \frac{20}{56} = \frac{5}{14}.

The draws are not independent, because the first draw changes what's left in the bag. With replacement, the answer would be 58⋅58=2564\dfrac{5}{8} \cdot \dfrac{5}{8} = \dfrac{25}{64}.

Worked example: At least one

A fair die is rolled 33 times. Find the probability of at least one six.

Solution. The complement is "no sixes." Each roll is not a six with probability 56\dfrac{5}{6}, and the rolls are independent:

P(at least one six)=1−(56)3=1−125216=91216≈0.421.P(\text{at least one six}) = 1 - \left(\frac{5}{6}\right)^3 = 1 - \frac{125}{216} = \frac{91}{216} \approx 0.421.

Tip

Don't confuse mutually exclusive with independent. Mutually exclusive events can't happen together, so if one happens the other's probability drops to 00. That means two mutually exclusive events (each with positive probability) are never independent.

Practice

Practice 1

The probability that it rains tomorrow is 0.350.35. What is the probability that it does not rain tomorrow?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

One card is drawn from a standard 5252-card deck. What is the probability that it is a heart or a face card (jack, queen or king)? Give a fraction.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Events AA and BB have P(A)=0.5P(A) = 0.5, P(B)=0.4P(B) = 0.4 and P(A and B)=0.2P(A \text{ and } B) = 0.2. Find P(A or B)P(A \text{ or } B).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

A basketball player makes 30%30\% of her three-point shots, and a teammate makes 60%60\% of his free throws. The shots are independent. What is the probability that she makes her next three-pointer and he makes his next free throw?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

A drawer contains 66 black socks and 44 white socks. Two socks are pulled out at random without replacement. What is the probability that both are white? Give a fraction.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

A gym surveyed 250250 members.

MorningEveningTotal
Under 3040406060100100
30 or older90906060150150
Total130130120120250250

A member is chosen at random. Find P(morning∣under 30)P(\text{morning} \mid \text{under 30}).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Using the gym table above, are "morning" and "under 30" independent events?

Practice 8

A fair coin is flipped 44 times. What is the probability of getting at least one head? Give a fraction.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.