Math Core

Lesson 4.2 · Probability, Random Variables and Distributions

Probability rules

Simulation estimates probabilities; a handful of rules lets you compute them exactly. These rules are the grammar of probability, and nearly every later calculation in AP Statistics is built from them.

Sample spaces and events

A sample space SS is the list of all possible outcomes of a random process. An event is any collection of outcomes. If all outcomes are equally likely,

P(A)=number of outcomes in Anumber of outcomes in S.P(A) = \dfrac{\text{number of outcomes in } A}{\text{number of outcomes in } S}.

For example, rolling two fair dice has 36 equally likely outcomes. The event "sum is 7" contains (1,6),(2,5),(3,4),(4,3),(5,2),(6,1)(1,6), (2,5), (3,4), (4,3), (5,2), (6,1), so P(sum=7)=636=16P(\text{sum} = 7) = \dfrac{6}{36} = \dfrac{1}{6}.

Every probability model must satisfy two basic rules: each probability is between 00 and 11, and the probabilities of all outcomes in the sample space add to 11.

The complement rule

The complement of AA, written ACA^C, is the event that AA does not happen. Since AA and ACA^C together cover the whole sample space,

P(AC)=1−P(A).P(A^C) = 1 - P(A).

The complement rule is a big time saver whenever "not AA" is easier to count than AA itself.

Worked example: Complement

The forecast says the probability of rain tomorrow is 0.350.35. What is the probability it does not rain?

Solution. P(no rain)=1−0.35=0.65P(\text{no rain}) = 1 - 0.35 = 0.65.

Mutually exclusive events and the addition rule

Two events are mutually exclusive (or disjoint) if they can't happen at the same time: P(A and B)=0P(A \text{ and } B) = 0. For mutually exclusive events,

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

Most events overlap, though. If you add P(A)P(A) and P(B)P(B), the outcomes in both events get counted twice, so you subtract the overlap once.

General addition rule

For any two events AA and BB,

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).

"Or" in statistics means at least one of the events happens (it includes both).

A Venn diagram helps you see why. The overlap region belongs to both circles, so it is counted in P(A)P(A) and again in P(B)P(B).

Events A (left) and B (right). The overlap is A and B. Outside both circles is neither.

Worked example: Streaming services

In a survey of households, 58%58\% subscribe to streaming service N, 33%33\% subscribe to service H, and 21%21\% subscribe to both. Find the probability that a randomly chosen household subscribes to (a) at least one of the two and (b) neither.

Solution.

(a) P(N or H)=0.58+0.33−0.21=0.70P(N \text{ or } H) = 0.58 + 0.33 - 0.21 = 0.70.

(b) "Neither" is the complement of "at least one": 1−0.70=0.301 - 0.70 = 0.30.

Two-way tables

Data from two categorical variables are often given in a two-way table. To find a probability, divide the count of the event by the total you are choosing from.

Worked example: Probability from a two-way table

A survey of 220 students recorded grade level and phone type.

iPhoneAndroidTotal
9th grade382260
10th grade453580
11th grade522880
Total13585220

One student is chosen at random. Find (a) P(Android)P(\text{Android}), (b) P(10th grade and Android)P(\text{10th grade and Android}), (c) P(10th grade or Android)P(\text{10th grade or Android}).

Solution.

(a) P(Android)=85220=1744≈0.386P(\text{Android}) = \dfrac{85}{220} = \dfrac{17}{44} \approx 0.386.

(b) Look at the single cell: 35220=744≈0.159\dfrac{35}{220} = \dfrac{7}{44} \approx 0.159.

(c) Use the addition rule, subtracting the 35 students counted in both groups:

P(10th or Android)=80+85−35220=130220=1322≈0.591.P(\text{10th or Android}) = \dfrac{80 + 85 - 35}{220} = \dfrac{130}{220} = \dfrac{13}{22} \approx 0.591.

You can check by adding cells directly: 45+35+22+28=13045 + 35 + 22 + 28 = 130.

Common mistake

The most common error is forgetting to subtract the overlap in "or" problems. Only use P(A)+P(B)P(A) + P(B) when you are sure the events are mutually exclusive. If your "or" probability comes out bigger than 11, you definitely double counted.

Tip

Several related unknowns? Fill in a Venn diagram from the inside out: put P(A and B)P(A \text{ and } B) in the overlap first, then P(A)−P(A and B)P(A) - P(A \text{ and } B) in "A only", and so on. The four regions must add to 11.

Practice

Practice 1

The probability that a randomly chosen adult owns a bicycle is 0.270.27. What is the probability that a randomly chosen adult does not own a bicycle?

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

Practice 2

For events AA and BB, P(A)=0.45P(A) = 0.45, P(B)=0.30P(B) = 0.30 and P(A and B)=0.12P(A \text{ and } B) = 0.12. Find P(A or B)P(A \text{ or } B).

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

Practice 3

Events AA and BB are mutually exclusive with P(A)=0.2P(A) = 0.2 and P(B)=0.5P(B) = 0.5. 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 random sample of 400 adults were asked whether they exercise regularly.

YesNoTotal
Under 4012872200
40 and over96104200
Total224176400

One of these adults is chosen at random. Find the probability that the person is under 40 or exercises regularly.

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

Practice 5

Two fair six-sided dice are rolled. Find the probability that the sum is 7 or 11. Give an exact fraction or a decimal rounded to 3 places.

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

Practice 6

For events AA and BB, P(A)=0.5P(A) = 0.5, P(B)=0.4P(B) = 0.4 and P(A or B)=0.7P(A \text{ or } B) = 0.7. Which statement is true?

Practice 7

At a high school, 52%52\% of students play a sport, 38%38\% play a musical instrument, and 25%25\% do neither. What is the probability that a randomly chosen student does both?

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