Dependent and independent events

Consider two events EE and FF of a random experiment. We already know that both events can occur at the same time if the experiment is performed. If the occurrence of one of those events changes the probability of the other event to occur, we say that EE and FF are dependent. If this is not the case, we say that the two events are independent.

Dependent events in probability are no different from dependent events in real life. Here are some examples of dependent events EE and FF:

Why are "robbing a bank" and "going to jail" dependent events? The random experiment here is "selecting a person at random". The probability that a selected person goes to jail might be quite low. But if the person is robbing a bank, the probability that this person has to go to jail as well increases drastically. So the occurrence of the event "robbing a bank" changes the probability of the event "going to jail".

Here are some examples of independent events EE and FF:

Why is "owning a dog" and "growing a herb garden" independent events? Again, the random experiment is "selecting a person at random". Well, clearly these two events have nothing to do with each other - selecting a person who owns a dog does not increase or decrease the probability that this person grows a herb garden as well. Or is it??

Apart from our intuition, how can we tell if two events are dependent or independent? We need an exact definition:

Definition 1

Two events EE and FF of a random experiment are independent, if

p(EF)=p(E)andp(FE)=p(F)p(E\vert F) = p(E)\quad\text{and}\quad p(F\vert E)=p(F)

This definition makes intuitively sense, because p(EF)=p(E)p(E\vert F)=p(E) means that the probability for EE to occur does not change, no matter if FF is given (or has occurred) or not. So event FF has no influence on the event EE. And likewise, p(FE)=p(F)p(F\vert E)=p(F) means that event EE has no influence on event FF. So EE and FF are independent.

Note that to show that two events are independent, it is actually enough to show that one of the equations above are valid. Indeed, the following can be shown :

Theorem 1

Consider two events EE and FF of a random experiment. If it can be shown that p(E)=p(EF)p(E)=p(E|F), or that p(F)=p(FE)p(F)=p(F|E), then the following is true:

  1. EE and FF are independent
  2. EE^\prime and FF are independent
  3. EE and FF^\prime are independent
  4. EE^\prime and FF^\prime are independent

The proof is not difficult, but quite technical and we will not show it completely. We will just prove statement (1), the other statements are shown in a similar fashion.

Exercise 1

Prove statement (1).

Solution

Assume that p(E)=p(EF)p(E)=p(E|F) is valid. We have to show that p(F)=p(FE)p(F)=p(F|E).

By definition, we have

p(EF)=p(EF)p(F)p(E|F)=\frac{p(E\cap F)}{p(F)}

Because of our assumption p(E)=p(EF)p(E)=p(E|F) it follows

p(E)=p(EF)p(F)p(E)=\frac{p(E\cap F)}{p(F)}

and by multiplying both sides by p(F)p(F) we get

p(E)p(F)=p(EF)p(E)\cdot p(F)=p(E\cap F)

Dividing both sides by p(E)p(E), we get

p(F)=p(EF)p(E)=p(FE)p(F)=\frac{p(E \cap F)}{p(E)} = p(F|E)

Done!

Here is a another useful theorem.

Theorem 2

Consider two events EE and FF of a random experiment. If EE and FF are independent, then

p(EF)=p(E)p(F)p(E\cap F)=p(E)\cdot p(F)

The opposite is also true. If the above equation is fulfilled, then the events EE and FF are independent.

The proof is left as an exercise:

Exercise 2

Proof the statement above.

Solution
  • Assume that EE and FF are independent. We want to show that

    p(EF)=p(E)p(F)p(E\cap F)=p(E)\cdot p(F)

    Indeed, as EE and FF are independent, it follows

    p(E)=p(EF)=p(EF)p(F)p(E)=p(E|F)=\frac{p(E\cap F)}{p(F)}

    Multiplying by p(F)p(F), we obtain

    p(E)p(F)=p(EF)p(E)\cdot p(F)=p(E\cap F)
  • Assume now that the equation p(EF)=p(E)p(F)p(E\cap F)=p(E)\cdot p(F) is fulfilled. We want to show that EE and FF are independent. All we have to show is that p(E)=p(EF)p(E)=p(E|F). But this is true, because from p(EF)=p(E)p(F)p(E\cap F)=p(E)\cdot p(F) follows p(E)=p(EF)p(F)=p(EF)p(E)=\frac{p(E\cap F)}{p(F)}=p(E|F).

Exercise 3
Q1

Are two mutually exclusive events independent?

Q2

The experiment is flipping a coin twice. How do you show experimentally, if the events H1H_1="head in first flip" and H2H_2="head in second flip" are independent?

Q3

A box contains 3 blue and 5 red balls. We select two balls at random. Consider the two events R1R_1="red ball in first selection" and R2R_2="red ball in second selection". Are the two events independent if

  1. selection is with replacement (that is, the first ball is returned before the second ball is selected).
  2. selection is without replacement (that is, the first ball is not returned before the second ball is selected).

Argue with the probabilities.

Solution
A1

No. As EE and FF are mutually exclusive, it is p(EF)=p({})=0p(E\cap F)=p(\{\})=0, but p(E)p(F)0p(E)\cdot p(F)\neq 0 (always assuming that p(E)0p(E)\neq 0 and p(F)0p(F)\neq 0). Intuitively this makes sense. Given EE, we know that FF cannot happen, as the events exclude each other from occurring. So EE influences the occurrence of FF, and thus they are dependent.

A2

Repeat the experiment many times, and determine the probabilities p(H1),p(H2)p(H_1), p(H_2) and p(H1H2)p(H_1\cap H_2). Then show that p(H1)p(H2)=p(H1H2)p(H_1)\cdot p(H_2)=p(H_1\cap H_2).

A3

The trees are shown below (left: with replacement, right: without replacement). We check if p(R1)p(R2)=p(R1R2)p(R_1)\cdot p(R_2)=p(R_1\cap R_2).

  1. p(R2)=5858+3858=58p(R_2)=\frac{5}{8}\cdot\frac{5}{8}+\frac{3}{8}\cdot\frac{5}{8}=\frac{5}{8}. Thus

    p(R1)p(R2)=5858=2564p(R_1)\cdot p(R_2) = \frac{5}{8}\cdot \frac{5}{8}=\frac{25}{64} p(R1R2)=5858=2564p(R_1\cap R_2) = \frac{5}{8}\cdot\frac{5}{8}=\frac{25}{64}

    So they are independent.

  2. p(R2)=5847+3857=3556p(R_2)=\frac{5}{8}\cdot\frac{4}{7}+\frac{3}{8}\cdot\frac{5}{7}=\frac{35}{56}. Thus

    p(R1)p(R2)=583556=165448=0.368...p(R_1)\cdot p(R_2) = \frac{5}{8}\cdot \frac{35}{56}=\frac{165}{448}=0.368... p(R1R2)=5847=2056=0.357...p(R_1\cap R_2) = \frac{5}{8}\cdot\frac{4}{7}=\frac{20}{56}=0.357...

    So they are not independent.