Statistics & Probability · Grade 10

Independent Events: Testing for Independence

Quick answer

Two events are independent when knowing that one happened does not change the probability of the other. In symbols, P(A | B) = P(A), which is the same as P(A and B) = P(A) × P(B). A two-way table settles the question by comparing a conditional probability with the overall one. Mutually exclusive events are the opposite of independent: if one happens, the other cannot.

What you'll learn

  • State and use the two equivalent tests for independence
  • Decide from a two-way table whether two events are independent
  • Distinguish independent events from mutually exclusive ones

Independence means the information is useless

Two events are independent when learning that one happened tells you nothing about the other.

Flip a coin and roll a die. Knowing the coin landed heads does not make a 66 any more or less likely:

P(six∣heads)=16=P(six)P(\text{six} \mid \text{heads}) = \frac{1}{6} = P(\text{six})

That equation is the definition written in symbols:

A and B are independent  ⟺  P(A∣B)=P(A)A \text{ and } B \text{ are independent} \iff P(A \mid B) = P(A)

The conditional probability equals the plain one, because the condition changed nothing.

The multiplication test

Put P(A∣B)=P(A)P(A \mid B) = P(A) into the multiplication rule:

P(A and B)=P(B)×P(A∣B)=P(B)×P(A)P(A \text{ and } B) = P(B) \times P(A \mid B) = P(B) \times P(A)

So for independent events:

P(A and B)=P(A)×P(B)P(A \text{ and } B) = P(A) \times P(B)

The argument also runs backwards: if P(A and B)=P(A)P(B)P(A \text{ and } B) = P(A)P(B), dividing by P(B)P(B) gives P(A∣B)=P(A)P(A \mid B) = P(A). The two tests are the same fact, so checking either one is enough.

TestIndependent when
conditionalP(A∣B)=P(A)P(A \mid B) = P(A)
multiplicationP(A and B)=P(A)×P(B)P(A \text{ and } B) = P(A) \times P(B)

Deciding from a two-way table

200200 students: are playing a sport and being in the band independent?

BandNo bandTotal
Sport181842426060
No sport3232108108140140
Total5050150150200200

Conditional test.

P(band)=50200=0.25P(band∣sport)=1860=0.30P(\text{band}) = \frac{50}{200} = 0.25 \qquad P(\text{band} \mid \text{sport}) = \frac{18}{60} = 0.30

Multiplication test.

P(sport)×P(band)=0.30×0.25=0.075P(sport and band)=18200=0.09P(\text{sport}) \times P(\text{band}) = 0.30 \times 0.25 = 0.075 \qquad P(\text{sport and band}) = \frac{18}{200} = 0.09

Both tests disagree with independence, as they must — they are the same test. Sport players are more likely to be in the band than students overall, so the events are dependent.

Here is a table where they would be independent:

BandNo bandTotal
Sport151545456060
No sport3535105105140140
Total5050150150200200

P(band∣sport)=1560=0.25P(\text{band} \mid \text{sport}) = \tfrac{15}{60} = 0.25, exactly P(band)P(\text{band}). The two rows split in the same proportion, and matching proportions across the rows is what independence looks like in a table.

Why independent is not mutually exclusive

The two words sound related and mean nearly opposite things.

IndependentMutually exclusive
can both happen?yesno
P(A and B)P(A \text{ and } B)P(A)×P(B)P(A) \times P(B)00
does knowing one change the other?noyes — to 00

If AA and BB are mutually exclusive and both possible, then learning that AA happened makes BB impossible. That is the strongest dependence there is.

One card: “a heart” and “a spade” are mutually exclusive.

P(spade∣heart)=0≠14=P(spade)P(\text{spade} \mid \text{heart}) = 0 \ne \frac{1}{4} = P(\text{spade})

So they are dependent. Meanwhile “a heart” and “a king” overlap and are independent:

P(king∣heart)=113=452=P(king)P(\text{king} \mid \text{heart}) = \frac{1}{13} = \frac{4}{52} = P(\text{king})

Independence in real data

Probabilities computed from a sample rarely match to the last decimal, even when two things have nothing to do with each other. A difference of 0.250.25 against 0.260.26 in a survey is usually read as close to independent; a difference of 0.250.25 against 0.450.45 is not.

Deciding how big a difference has to be before it means something is the work of statistical inference. The tests here say exactly what independence would look like, and the data says how close it comes.

Worked examples

Common mistakes

Practice problems

  1. Are a coin flip and a die roll independent?

    Answer

    Yes

    Full solution

    Neither outcome affects the other.

  2. P(A)=0.5P(A) = 0.5, P(B)=0.4P(B) = 0.4, P(A and B)=0.2P(A \text{ and } B) = 0.2. Independent?

    Answer

    Yes

    Full solution

    0.5×0.4=0.20.5 \times 0.4 = 0.2.

  3. P(A)=0.5P(A) = 0.5, P(B)=0.4P(B) = 0.4, P(A and B)=0.3P(A \text{ and } B) = 0.3. Independent?

    Answer

    No

    Full solution

    0.5×0.4=0.20.5 \times 0.4 = 0.2, which is not 0.30.3.

  4. AA and BB are independent with P(A)=0.7P(A) = 0.7 and P(B)=0.2P(B) = 0.2. Find P(A and B)P(A \text{ and } B).

    Answer

    0.140.14

    Full solution

    0.7×0.2=0.140.7 \times 0.2 = 0.14.

  5. AA and BB are independent and P(A)=0.45P(A) = 0.45. Find P(A∣B)P(A \mid B).

    Answer

    0.450.45

    Full solution

    For independent events, the condition changes nothing.

  6. Are “roll a 1” and “roll a 6” on one die independent?

    Answer

    No

    Full solution

    They are mutually exclusive: knowing a 11 was rolled makes a 66 impossible.

  7. Two dice are rolled. Find P(both show 6)P(\text{both show } 6).

    Answer

    136\tfrac{1}{36}

    Full solution

    The dice are independent: 16×16\tfrac{1}{6} \times \tfrac{1}{6}.

  8. In a survey of 100100 adults, 4040 drink coffee, 3030 exercise daily, and 1212 do both. Are drinking coffee and exercising daily independent?

    Hint

    Compare the overlap with the product of the two probabilities.

    Answer

    Yes

    Full solution

    P(coffee)=0.40P(\text{coffee}) = 0.40 and P(exercise)=0.30P(\text{exercise}) = 0.30.

    Their product is 0.40×0.30=0.120.40 \times 0.30 = 0.12.

    P(both)=12100=0.12P(\text{both}) = \tfrac{12}{100} = 0.12, which matches, so the events are independent.

    The conditional test agrees: P(exercise∣coffee)=1240=0.30=P(exercise)P(\text{exercise} \mid \text{coffee}) = \tfrac{12}{40} = 0.30 = P(\text{exercise}).

  9. For one card, are “a face card” and “a club” independent?

    Answer

    Yes

    Full solution

    P(face card)=1252=313P(\text{face card}) = \tfrac{12}{52} = \tfrac{3}{13}.

    P(face card∣club)=313P(\text{face card} \mid \text{club}) = \tfrac{3}{13}, since 33 of the 1313 clubs are face cards.

    The conditional equals the overall probability, so the events are independent.

  10. Ines says, “Drawing a heart and drawing a spade from one card are independent, because they have nothing to do with each other.” Find the flaw.

    Hint

    If you know the card is a heart, what is the probability it is a spade?

    Answer

    They are mutually exclusive, which makes them dependent.

    Full solution

    “Nothing to do with each other” is a description of the suits, not a probability test.

    Apply the test. P(spade)=14P(\text{spade}) = \tfrac{1}{4}, but once the card is known to be a heart, P(spade∣heart)=0P(\text{spade} \mid \text{heart}) = 0.

    The information changed the probability, so the events are dependent — as strongly as events can be. A card cannot be both suits, and that exclusion is exactly what makes knowing one so informative about the other.

Frequently asked questions

What are independent events?

Events where knowing one happened does not change the probability of the other. A coin flip and a die roll are independent.

How do I test whether two events are independent?

Check whether P(A and B) = P(A) × P(B), or equivalently whether P(A | B) = P(A). If either holds, both hold, and the events are independent.

Are mutually exclusive events independent?

No, unless one of them has probability 0. If one happens the other cannot, so knowing one changes the other's probability to 0.

How do I test independence with a two-way table?

Compare a row's conditional percentage with the overall percentage. If they match, the events are independent.

Does independent mean unrelated in real life?

It means unrelated in probability. Data from a sample rarely matches exactly, so small differences are usually read as close to independent.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSS.CP.A.2Conditional Probability and the Rules of ProbabilityUnderstand that two events A and B are independent if the probability of A and B occurring together is the product of their probabilities, and use this characterization to determine if they are independent.
  • CCSS.MATH.CONTENT.HSS.CP.A.3Conditional Probability and the Rules of ProbabilityUnderstand the conditional probability of A given B as P(A and B)/P(B), and interpret independence of A and B as saying that the conditional probability of A given B is the same as the probability of A, and the conditional probability of B given A is the same as the probability of B.
  • CCSS.MATH.CONTENT.HSS.CP.A.4Conditional Probability and the Rules of ProbabilityConstruct and interpret two-way frequency tables of data when two categories are associated with each object being classified. Use the two-way table as a sample space to decide if events are independent and to approximate conditional probabilities.
  • CCSS.MATH.CONTENT.HSS.CP.A.5Conditional Probability and the Rules of ProbabilityRecognize and explain the concepts of conditional probability and independence in everyday language and everyday situations.