Educerie

Educerie · AP · Statistics

AP Statistics 2.7

Independent Events and Unions of Events

How do we describe chance and variation, so that a claim about a population can be backed by numbers?

What you will learn

  • Understand independence as one event not changing the probability of another
  • Know that independent events satisfy P(A and B) = P(A)P(B)
  • Know the addition rule P(A or B) = P(A) + P(B) - P(A and B)
  • Understand why mutually exclusive events with positive probability are not independent

You must be able to

  1. Test independence from a table or from probabilities, with numbers
  2. Calculate P(A or B) with the addition rule
  3. Calculate the probability of at least one with the complement
  4. Calculate P(A and B) for independent events
  5. Read the regions of a Venn diagram
  6. Compare independent with mutually exclusive

In the exam. Section I multiple choice asks whether two events are independent from a table or from probabilities, finds P(A∪B)P(A \cup B) with the addition rule, and uses the complement for "at least one" in repeated independent trials. This topic is the entry point to the binomial distribution (2.10), and the idea of independence returns in the conditions for inference and in the chi-square tests of independence in Unit 3. Skill 3.C.

1Independent events

Two events are independent when the occurrence of one tells you nothing about the other. Check by comparing a conditional probability with the unconditional one:

P(A∣B)=P(A)the condition B has no effect on AP(A \mid B) = P(A) \qquad \textcolor{#838c91}{\text{the condition B has no effect on A}}

Put that in the multiplication rule P(A∩B)=P(A)⋅P(B∣A)P(A \cap B) = P(A) \cdot P(B \mid A) and you get the test that is usually quickest:

P(A∩B)=P(A)⋅P(B)if and only if A and B are independentthe product rule is a test as well as a formulaP(A \cap B) = P(A) \cdot P(B) \quad \text{if and only if } A \text{ and } B \text{ are independent} \qquad \textcolor{#838c91}{\text{the product rule is a test as well as a formula}}

Worked example 1 (testing from a table, invented). A school has 200 students. The table shows whether each plays a school sport, by grade.

Plays a sportDoes notTotal
Grade 124060100
Other grades4060100
Total80120200

Let SS be "plays a sport" and YY be "is in Grade 12". P(S)=80/200=0.40P(S) = 80/200 = 0.40. Given Grade 12, P(S∣Y)=40/100=0.40P(S \mid Y) = 40/100 = 0.40.

The two are equal, so SS and YY are independent: knowing a student's grade does not change the probability of playing a sport. The product rule agrees: P(S)⋅P(Y)=0.40×0.50=0.20=40/200=P(S∩Y)P(S) \cdot P(Y) = 0.40 \times 0.50 = 0.20 = 40/200 = P(S \cap Y).

Now change the table. Suppose 50 of the 100 Grade 12 students and 30 of the 100 others play a sport. Then P(S)=80/200=0.40P(S) = 80/200 = 0.40 still, but P(S∣Y)=50/100=0.50P(S \mid Y) = 50/100 = 0.50. These are not equal, so the events are not independent: Grade 12 students are more likely to play a sport.

A justification for the exam gives both numbers, says whether they are equal, and states the conclusion in context.

Worked example 2 (from probabilities). P(A)=0.50P(A) = 0.50, P(B)=0.40P(B) = 0.40 and P(A∪B)=0.70P(A \cup B) = 0.70. Are AA and BB independent?

First find the joint probability: P(A∩B)=0.50+0.40−0.70=0.20P(A \cap B) = 0.50 + 0.40 - 0.70 = 0.20. Then P(A)⋅P(B)=0.50×0.40=0.20P(A) \cdot P(B) = 0.50 \times 0.40 = 0.20. They match, so the events are independent.

2Independence and repeated trials

Trials of a random process are independent when the outcome of one does not change the probabilities of the next. Tossing a coin, rolling dice, and a series of separate customers choosing at random are independent.

Whether sampling is independent depends on replacement.

  • With replacement the pool is the same each time, so the draws are independent.
  • Without replacement the pool changes, so the draws are not independent. In the group of 10 students with 4 seniors (2.6), choosing two seniors in a row has probability 4/10×3/9≈0.1334/10 \times 3/9 \approx 0.133, not 0.4×0.4=0.160.4 \times 0.4 = 0.16.

For a large population the change from one draw to the next is tiny, and sampling without replacement is treated as nearly independent. That is the idea behind the 10% condition of Unit 3.

Multiplying for independent events. Suppose a machine part is checked by 3 independent sensors. Each detects a fault with probability 0.90. The probability that all three detect it is

P(all three detect)=0.90×0.90×0.90=0.729multiply, because the sensors are independentP(\text{all three detect}) = 0.90 \times 0.90 \times 0.90 = 0.729 \qquad \textcolor{#838c91}{\text{multiply, because the sensors are independent}}

3Unions and the addition rule

The union of AA and BB, A∪BA \cup B, is "AA or BB or both". In statistics the word "or" includes both unless the question says "exactly one".

P(A∪B)=P(A)+P(B)−P(A∩B)add the two, then take off the overlap counted twiceP(A \cup B) = P(A) + P(B) - P(A \cap B) \qquad \textcolor{#838c91}{\text{add the two, then take off the overlap counted twice}}

If you add P(A)P(A) and P(B)P(B), the outcomes in both events have been counted twice, so the overlap is subtracted once. For mutually exclusive events the overlap is 0 and the rule reduces to a sum.

Figure 1 shows a sample space with events AA and BB whose probabilities are P(A)=0.55P(A) = 0.55, P(B)=0.40P(B) = 0.40 and P(A∩B)=0.15P(A \cap B) = 0.15.

Figure 1. Venn diagram of events A and B inside the sample space: 0.40 in A only, 0.15 in both, 0.25 in B only and 0.20 in neither, so P(A or B) = 0.80 A B 0.40 0.15 0.25 neither: 0.20
Figure 1 · Venn diagram of events A and B, with the probability of each region

The regions are separate, and they add to 1: 0.40+0.15+0.25+0.20=10.40 + 0.15 + 0.25 + 0.20 = 1.

  • AA only: 0.55−0.15=0.400.55 - 0.15 = 0.40. BB only: 0.40−0.15=0.250.40 - 0.15 = 0.25. Both: 0.15. Neither: 0.20.
  • The union is the three regions that touch a circle:
P(A∪B)=0.55+0.40−0.15=0.80the 0.15 would be counted twice without the subtractionP(A \cup B) = 0.55 + 0.40 - 0.15 = 0.80 \qquad \textcolor{#838c91}{\text{the 0.15 would be counted twice without the subtraction}}
  • The complement of the union is the outside of both circles, "neither": 1−0.80=0.201 - 0.80 = 0.20.

In the diagram, AA and BB are not independent. P(A)⋅P(B)=0.55×0.40=0.22P(A) \cdot P(B) = 0.55 \times 0.40 = 0.22, which is not P(A∩B)=0.15P(A \cap B) = 0.15. The events overlap less than independent events with these probabilities would, so one makes the other somewhat less likely.

4"At least one" in independent trials

"At least one" is a union of many events, which is slow to add. Use the complement, as in 2.4, and the product rule for "none".

Worked example 3. A building has 4 independent smoke sensors, and each detects a fire with probability 0.80. What is the probability that at least one detects it?

P(none detect)=0.204=0.0016each sensor misses with probability 0.20, independentlyP(\text{none detect}) = 0.20^4 = 0.0016 \qquad \textcolor{#838c91}{\text{each sensor misses with probability 0.20, independently}}P(at least one detects)=1−0.0016=0.9984the complement of "none"P(\text{at least one detects}) = 1 - 0.0016 = 0.9984 \qquad \textcolor{#838c91}{\text{the complement of "none"}}

The common error is 4×0.804 \times 0.80, which exceeds 1. Probabilities of events that can overlap are not added without subtracting the overlap.

5Independent is not mutually exclusive

These two ideas are tested together, so keep them apart.

Mutually exclusiveIndependent
MeaningThey cannot happen togetherKnowing one does not change the probability of the other
TestP(A∩B)=0P(A \cap B) = 0P(A∩B)=P(A)⋅P(B)P(A \cap B) = P(A) \cdot P(B)
Rule for "or"P(A)+P(B)P(A) + P(B)P(A)+P(B)−P(A∩B)P(A) + P(B) - P(A \cap B)
Rule for "and"0P(A)⋅P(B)P(A) \cdot P(B)

If two events both have positive probability, they cannot be both mutually exclusive and independent. If AA and BB are mutually exclusive, then given BB, the probability of AA is 0, which differs from P(A)>0P(A) > 0. So mutually exclusive events with positive probability are dependent.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.