Skip to content

Dependent and independent events

Dependent and independent events

Independent events

Two events are independent when knowing that one of them happened adds no information about the other – does not change its probability:

P(A/B)\displaystyle P(A/B) =\displaystyle = P(A)\displaystyle P(A)

Otherwise the events are dependent. The definition is symmetric: if P(A/B)=P(A)\displaystyle {P(A/B)}={P(A)}, then also P(B/A)=P(B)\displaystyle {P(B/A)}={P(B)}.

A fair die is thrown. A\displaystyle A – “an even number comes up”, P(A)=12\displaystyle {P(A)}={\frac{1}{2}}.

  • B\displaystyle B – “at most 2 comes up”, B={1,2}\displaystyle {B}={\{1,2\}}: of the two outcomes of B\displaystyle B one is even, P(A/B)=12=P(A)\displaystyle {P(A/B)}={\frac{1}{2}}={P(A)}. A\displaystyle A and B\displaystyle B are independent.
  • C\displaystyle C – “at least 4 comes up”, C={4,5,6}\displaystyle {C}={\{4,5,6\}}: of the three outcomes of C\displaystyle C two are even, P(A/C)=23≠P(A)\displaystyle {P(A/C)}={\frac{2}{3}\neq P(A)}. A\displaystyle A and C\displaystyle C are dependent.
Three equivalent tests

Independence can be tested in three ways, each equivalent to the others: if one holds, they all hold.

  • P(A/B)=P(A)\displaystyle {P(A/B)}={P(A)} – the definition.
  • P(A/B)=P(A/B‾)\displaystyle {P(A/B)}={P(A/\overline{B})} – the probability of A\displaystyle A is the same when B\displaystyle B happens and when it does not.
  • P(A∩B)=P(A)⋅P(B)\displaystyle {P(A\cap B)}={P(A)\cdot P(B)} – the handiest test: no division, and it holds even when P(B)=0\displaystyle {P(B)}={0}.

The third test follows from the definition of conditional probability: P(A∩B)=P(B)⋅P(A/B)\displaystyle {P(A\cap B)}={P(B)\cdot P(A/B)}, and if P(A/B)=P(A)\displaystyle {P(A/B)}={P(A)}, then P(A∩B)=P(B)⋅P(A)\displaystyle {P(A\cap B)}={P(B)\cdot P(A)}.

P(A∩B)\displaystyle P(A\cap B) =\displaystyle = P(A)⋅P(B)\displaystyle P(A)\cdot P(B)

With the die: P(A∩B)=P({2})=16=12⋅13\displaystyle {P(A\cap B)}={P(\{2\})}={\frac{1}{6}}={\frac{1}{2}\cdot\frac{1}{3}} – independent; P(A∩C)=P({4,6})=13≠12⋅12\displaystyle {P(A\cap C)}={P(\{4,6\})}={\frac{1}{3}\neq\frac{1}{2}\cdot\frac{1}{2}} – dependent.

Independence in a two-way table

In a table of numbers, two events are independent when a column’s share is the same in every row – and the same as its share of the total.

200 students were asked whether they like maths:

LikeDo not likeTotal
Boys4872120
Girls324880
Total80120200
  • Among the boys: 48120=0.4\displaystyle {\frac{48}{120}}={0.4}; among the girls: 3280=0.4\displaystyle {\frac{32}{80}}={0.4}; among all the students: 80200=0.4\displaystyle {\frac{80}{200}}={0.4}.
  • “The student likes maths” and “the student is a boy” are independent: knowing that the student is a boy does not change the chance of liking maths.
Disjoint events are dependent events

Disjoint events and independent events are two different things. Two disjoint events, each with a probability greater than 0, are always dependent:

  • they are disjoint, so P(A∩B)=0\displaystyle {P(A\cap B)}={0};
  • P(A)>0\displaystyle P(A)>0 and P(B)>0\displaystyle P(B)>0, so P(A)⋅P(B)>0\displaystyle P(A)\cdot P(B)>0;
  • P(A∩B)≠P(A)⋅P(B)\displaystyle P(A\cap B)\neq P(A)\cdot P(B).

In words: if B\displaystyle B is known to have happened, then A\displaystyle A is known for certain not to have happened – P(A/B)=0\displaystyle {P(A/B)}={0}. That is a great deal of information about A\displaystyle A.

Working with independent events

When events are known to be independent, the probability of the intersection is a product. The complements of independent events are independent too, so “at least one” is worked out by the complement.

A factory has two machines that work independently of each other.
The probability that machine A breaks down on a given day is 0.1, and the probability that machine B breaks down is 0.05.

  • Both machines break down: 0.1⋅0.05=0.005\displaystyle {0.1\cdot0.05}={0.005}.
  • At least one machine breaks down – the complement of “no machine breaks down”: 1−0.9⋅0.95=1−0.855=0.145\displaystyle {1-0.9\cdot0.95}={1-0.855}={0.145}.
Exercise 1

A fair die is thrown.
A\displaystyle A – “a number greater than 4 comes up”; B\displaystyle B – “an odd number comes up”; C\displaystyle C – “a prime number comes up” (2, 3 or 5).

a

Work out P(A∩B)\displaystyle P(A\cap B).

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    b

    Are A\displaystyle A and B\displaystyle B independent? Explain with P(A∩B)=P(A)⋅P(B)\displaystyle {P(A\cap B)}={P(A)\cdot P(B)}.

    c

    Are B\displaystyle B and C\displaystyle C independent? Explain.

    Exercise 2

    In a survey of 500 drivers:

    Used a phone while drivingDid notTotal
    Had an accident241640
    Had no accident176284460
    Total200300500
    a

    A driver is known to have used a phone while driving. What is the probability that the driver had an accident?

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      b

      Are “the driver had an accident” and “the driver used a phone” independent events? Explain.

      Exercise 3

      A\displaystyle A and B\displaystyle B are independent events.
      P(A)=0.4\displaystyle {P(A)}={0.4}, P(A∪B)=0.7\displaystyle {P(A\cup B)}={0.7}.

      a

      Write P(B)=x\displaystyle {P(B)}={x}, and find x\displaystyle x.

        b

        What is the probability that neither A\displaystyle A nor B\displaystyle B happens?

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          Exercise 4

          A house has three smoke detectors, each working independently of the others.
          The probability that a given detector sounds the alarm in a fire is 0.9.

          What is the probability that at least one detector sounds the alarm in a fire?

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

            Exercise 5

            A\displaystyle A and B\displaystyle B are independent events, each with the probability p\displaystyle p.
            P(A∪B)=0.64\displaystyle {P(A\cup B)}={0.64}.

            Write an equation in p\displaystyle p and solve it. Only a solution between 0 and 1 can be a probability.

              Exercise 6

              P(A)=0.3\displaystyle {P(A)}={0.3}, P(B)=0.5\displaystyle {P(B)}={0.5}.

              a

              Work out P(A∪B)\displaystyle P(A\cup B) if A\displaystyle A and B\displaystyle B are disjoint events.

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                b

                Work out P(A∪B)\displaystyle P(A\cup B) if A\displaystyle A and B\displaystyle B are independent events.

                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power