How to check if two events are independent

By Jude Wallis · Published

Compare P(A and B) with P(A) times P(B). Equal means independent, unequal means dependent. The conditional form P(A given B) = P(A) is the same test rearranged, so it always returns the same verdict. Independent is a different property from mutually exclusive.

AP Statistics: Unit 2 (topics 2.7 Independent Events and Unions of Events, 2.5 Mutually Exclusive Events, 2.6 Conditional Probability). The independence test in both its product form and its conditional form is topic 2.7 of Unit 2 in the Fall 2026 AP Statistics course, with mutually exclusive events defined separately in topic 2.5.

The independence test in one line

Two events AA and BB are independent exactly when

P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B)

where P(AB)P(A \cap B), read "the probability of A and B", is the chance that both happen. Compute each side separately, then compare. Equal means independent. Not equal means dependent, with nothing in between.

There is a second form of the same test:

P(AB)=P(A)P(A \mid B) = P(A)

read "the probability of A given B equals the probability of A". In words: learning that BB happened does not change the chance of AA. Both forms appear in the AP course and never disagree, so use whichever one fits the numbers you were handed.

Why the two checks always agree

Start from the definition of conditional probability:

P(AB)=P(AB)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}

Set the left side equal to P(A)P(A), which is the conditional form of the test, then multiply both sides by P(B)P(B):

P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B)

That is the product form: the two statements are one equation written two ways, so every table gives the same verdict either way. The conditional form needs P(B)>0P(B) > 0 to be defined, while the product form still works when a probability is 0, which makes it the safer default.

The same algebra run the other way gives P(BA)=P(B)P(B \mid A) = P(B). Independence is symmetric: if knowing BB tells you nothing about AA, then knowing AA tells you nothing about BB. What is not symmetric is which conditional a problem is asking for, sorted out in P(A|B) vs P(B|A).

Both checks on one two-way table

A science museum recorded 200 Saturday visitors, noting whether each bought a ticket online in advance or at the door, and whether each went to the planetarium show.

TicketSaw the showSkipped the showTotal
Bought online206080
Bought at the door3090120
Total50150200

Let AA be "bought online" and BB be "saw the show". Pull the three probabilities straight off the table, using the denominators in how to read a two-way table.

P(A)=80200=0.40P(B)=50200=0.25P(AB)=20200=0.10P(A) = \frac{80}{200} = 0.40 \qquad P(B) = \frac{50}{200} = 0.25 \qquad P(A \cap B) = \frac{20}{200} = 0.10

Product check. P(A)P(B)=0.40×0.25=0.10P(A) \cdot P(B) = 0.40 \times 0.25 = 0.10, and P(AB)=0.10P(A \cap B) = 0.10. The two sides match, so AA and BB are independent.

Conditional check. P(AB)=2050=0.40P(A \mid B) = \frac{20}{50} = 0.40, and P(A)=0.40P(A) = 0.40. They match as well. Running it the other direction, P(BA)=2080=0.25P(B \mid A) = \frac{20}{80} = 0.25, which equals P(B)=0.25P(B) = 0.25.

Both checks return the same verdict, as the algebra promised. Independence is visible across the whole table too: the show rate is 2080=0.25\frac{20}{80} = 0.25 among online buyers and 30120=0.25\frac{30}{120} = 0.25 among door buyers. Identical conditional distributions in every row is what independence looks like in a table.

Change the inside of the table and the verdict flips

Margins do not decide independence. Cells do. Here is a second table with exactly the same margins as the first, 80 and 120 down the side, 50 and 150 along the bottom. Only the interior has moved.

TicketSaw the showSkipped the showTotal
Bought online324880
Bought at the door18102120
Total50150200

P(A)P(A) is still 0.400.40 and P(B)P(B) is still 0.250.25, so the product P(A)P(B)P(A) \cdot P(B) is still 0.100.10. The joint probability is not: P(AB)=32200=0.16P(A \cap B) = \frac{32}{200} = 0.16.

Since 0.160.100.16 \neq 0.10, the events are dependent. The conditional check agrees: P(AB)=3250=0.64P(A \mid B) = \frac{32}{50} = 0.64, well above P(A)=0.40P(A) = 0.40, so knowing that a visitor saw the show makes an online purchase much more likely.

The rows disagree now as well. The show rate is 3280=0.40\frac{32}{80} = 0.40 among online buyers and 18120=0.15\frac{18}{120} = 0.15 among door buyers. There is also a count version of the product check hiding in this table: independence would put 80×50200=20\frac{80 \times 50}{200} = 20 visitors in the top-left cell, and the table shows 32. That row total times column total over table total is the expected count formula used in a chi-square test.

Independent is not the same as mutually exclusive

These two words describe different relationships, and trading one for the other is the most common error in this part of Unit 2.

QuestionMutually exclusive (disjoint)Independent
Plain meaningThey cannot both happenOne tells you nothing about the other
TestP(AB)=0P(A \cap B) = 0P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B)
Conditional formP(AB)=0P(A \mid B) = 0P(AB)=P(A)P(A \mid B) = P(A)
Can both happen?NeverUsually yes

Mutually exclusive is about whether the two events overlap. Independent is about whether one carries information about the other. In the first museum table, "bought online" and "saw the show" overlap in 20 visitors, so they are not mutually exclusive, and separately they turned out to be independent. Disjoint vs independent events runs through more pairs.

A two-way table settles half of this automatically. Any two events from the same margin, two rows or two columns, are mutually exclusive, because each visitor sits in one row and one column. The pair worth testing for independence is one row event against one column event.

Mutually exclusive events with nonzero probability are never independent

Suppose AA and BB are mutually exclusive and both have probability above 0. Then P(AB)=0P(A \cap B) = 0 by definition, while P(A)P(B)P(A) \cdot P(B) is a product of two positive numbers and so is above 0. The two sides cannot match, so the events fail the independence test. That is a proof, not a tendency.

Try it on the first museum table with BB as "saw the show" and CC as "skipped the show". Those cannot both happen, so P(BC)=0P(B \cap C) = 0, while P(B)P(C)=0.25×0.75=0.1875P(B) \cdot P(C) = 0.25 \times 0.75 = 0.1875. Since 00.18750 \neq 0.1875, the two events are dependent.

The conditional form says it more bluntly. P(BC)=0P(B \mid C) = 0 while P(B)=0.25P(B) = 0.25, so learning that a visitor skipped the show moves the chance they saw it from 0.250.25 all the way to 00. That is not "no information". It is complete information, the strongest dependence available.

So mutually exclusive events with nonzero probabilities are not merely non-independent. They are as dependent as two events can be, and the only way to be both disjoint and independent is for one of them to have probability 0.

When the two sides are close but not equal

Real data almost never produces exact equality, which raises a fair question about what "check" means.

Read what is being asked. If a question hands you a table and asks whether two events are independent, the check is exact: 0.160.16 is not 0.100.10, so the answer is no for these data. Do not round until the two sides look alike.

If the question is whether two variables are independent in the population the data came from, that is inference rather than arithmetic. Sampling variation alone pushes P(AB)P(A \cap B) off P(A)P(B)P(A) \cdot P(B) even when the population is genuinely independent. The tool is a chi-square test for independence, which compares each observed count with its expected count and asks whether the gaps exceed what chance explains. Chi-square tests explained covers the procedure.

One more distinction worth keeping straight. Independent events is the property on this page, while independent trials means that one repetition of a process does not affect the next, which is what the binomial setting requires.

Independent samples means two groups were selected separately, which is a condition for two-sample inference. Same word, three different settings.

AP note: where this shows up on the exam

Independence is topic 2.7 of Unit 2 in the Fall 2026 AP Statistics course. The framework states the test in three forms at once: AA and BB are independent when P(AB)=P(A)P(A \mid B) = P(A), when P(BA)=P(B)P(B \mid A) = P(B), and when P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B). Mutually exclusive events are the separate topic 2.5, defined by P(AB)=0P(A \cap B) = 0, and conditional probability is topic 2.6.

Unit 2 is 15 to 25 percent of the multiple-choice section. Two item types recur:

  • A two-way table with a question asking whether two events are independent. Show both sides of the product, or both sides of the conditional, and then write a sentence giving the verdict. A comparison with no conclusion does not earn the point.
  • A pair of mutually exclusive events with a question asking whether they are independent. The answer is no whenever both probabilities are above 0.

The chi-square test for independence in Unit 3, topic 3.15, is the inference version of the same idea. Practice the reading and the arithmetic on the conditional probability set. The official framework is at AP Central.

A food truck table that comes out independent

A food truck logged 240 orders in a week, recording whether the customer paid by card or cash and whether they added a drink. There were 90 card orders, 30 of which included a drink, and 150 cash orders, 50 of which included a drink. Are "paid by card" and "added a drink" independent?

  1. Build the table. Card with a drink is 30, so card without a drink is 9030=6090 - 30 = 60. Cash with a drink is 50, so cash without a drink is 15050=100150 - 50 = 100.

  2. Total the margins. Drink orders: 30+50=8030 + 50 = 80. No-drink orders: 60+100=16060 + 100 = 160. Grand total: 90+150=24090 + 150 = 240, and 80+160=24080 + 160 = 240 confirms it.

  3. Read the three probabilities. P(card)=90240=0.375P(\text{card}) = \frac{90}{240} = 0.375, P(drink)=80240=130.3333P(\text{drink}) = \frac{80}{240} = \frac{1}{3} \approx 0.3333, and P(carddrink)=30240=0.125P(\text{card} \cap \text{drink}) = \frac{30}{240} = 0.125.

  4. Product check. P(card)P(drink)=38×13=18=0.125P(\text{card}) \cdot P(\text{drink}) = \frac{3}{8} \times \frac{1}{3} = \frac{1}{8} = 0.125.

  5. Compare the two sides. P(carddrink)=0.125P(\text{card} \cap \text{drink}) = 0.125 and the product is 0.1250.125, so the events are independent.

  6. Confirm with the conditional check. P(carddrink)=3080=0.375P(\text{card} \mid \text{drink}) = \frac{30}{80} = 0.375, which equals P(card)=0.375P(\text{card}) = 0.375. The other direction gives P(drinkcard)=3090=13P(\text{drink} \mid \text{card}) = \frac{30}{90} = \frac{1}{3}, which equals P(drink)P(\text{drink}).

  7. Look across the rows. The drink rate is 3090=13\frac{30}{90} = \frac{1}{3} for card orders and 50150=13\frac{50}{150} = \frac{1}{3} for cash orders, identical conditional distributions, which is the whole-table version of the same result.

Independent. P(carddrink)=0.125P(\text{card} \cap \text{drink}) = 0.125 matches P(card)P(drink)=0.375×13=0.125P(\text{card}) \cdot P(\text{drink}) = 0.375 \times \frac{1}{3} = 0.125, and P(carddrink)=0.375P(\text{card} \mid \text{drink}) = 0.375 matches P(card)=0.375P(\text{card}) = 0.375. Payment method carries no information about whether a drink was added.

Dogs and cats, checked from probabilities instead of counts

In a town survey, 30 percent of households own a dog, 20 percent own a cat, and 8 percent own both. Are "owns a dog" and "owns a cat" independent? Are they mutually exclusive?

  1. Write down what you were given. P(D)=0.30P(D) = 0.30, P(C)=0.20P(C) = 0.20, and P(DC)=0.08P(D \cap C) = 0.08.

  2. Product check. P(D)P(C)=0.30×0.20=0.06P(D) \cdot P(C) = 0.30 \times 0.20 = 0.06.

  3. Compare with the joint probability. P(DC)=0.08P(D \cap C) = 0.08 while the product is 0.060.06. Since 0.080.060.08 \neq 0.06, the events are not independent.

  4. Confirm with the conditional check. P(DC)=P(DC)P(C)=0.080.20=0.40P(D \mid C) = \frac{P(D \cap C)}{P(C)} = \frac{0.08}{0.20} = 0.40, while P(D)=0.30P(D) = 0.30. Knowing that a household owns a cat raises the chance of a dog from 30 percent to 40 percent.

  5. Check the other direction too. P(CD)=0.080.300.2667P(C \mid D) = \frac{0.08}{0.30} \approx 0.2667, above P(C)=0.20P(C) = 0.20. Independence is symmetric, so both directions had to fail together.

  6. Now the separate question. Mutually exclusive would require P(DC)=0P(D \cap C) = 0, but P(DC)=0.08P(D \cap C) = 0.08, so 8 percent of households own both and the events are not disjoint.

  7. One more value for context. The union P(DC)P(D \cup C), read "the probability of a dog or a cat", is P(D)+P(C)P(DC)=0.30+0.200.08=0.42P(D) + P(C) - P(D \cap C) = 0.30 + 0.20 - 0.08 = 0.42, so 42 percent of households own at least one of the two.

Not independent and not mutually exclusive. P(DC)=0.08P(D \cap C) = 0.08 exceeds P(D)P(C)=0.06P(D) \cdot P(C) = 0.06, and P(DC)=0.40P(D \mid C) = 0.40 exceeds P(D)=0.30P(D) = 0.30, so dog owners are over-represented among cat owners. The two events overlap in 8 percent of households, and 42 percent own at least one.

Frequently asked questions

Can two events be both independent and mutually exclusive?

Only when at least one of them has probability 0. Mutually exclusive forces P(AB)=0P(A \cap B) = 0, and independence forces P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B), so the product must be 0, which requires a zero factor. For any two events that can actually happen, disjoint rules out independent.

Which check should I use on the exam?

Whichever the given numbers make direct. A two-way table hands you counts, so the product check is usually one step; a problem stated with conditional probabilities favors comparing P(AB)P(A \mid B) with P(A)P(A). Show both sides of whichever check you pick, then write the verdict as a sentence, since the comparison alone does not earn the point.

If P(A given B) equals P(A), do I still have to check P(B given A)?

No. Independence is symmetric, and both conditional forms come from the same equation P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B). One check settles it, and the other direction is guaranteed to agree.

The two sides differ by a small amount. Are the events independent?

Not for the data in front of you. The check on a given table is exact, so 0.160.16 against 0.100.10 means dependent. If you are asking whether the variables are independent in the population that the sample came from, that is a chi-square test for independence, which decides whether a gap that size is larger than sampling variation would produce.