Dependent and independent events
Consider two events and 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 and 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 and :
- "robbing a bank" and "going to jail".
- "not paying your power bill" and "having the power cut off".
- "boarding a train first" and "finding a good seat".
- "parking illegally" and "getting a parking ticket".
- "buying ten lottery tickets" and "winning the lottery".
- "driving a car" and getting in a "traffic accident".
- Selecting two balls, one after the other, without replacement from a box containing red and green balls. "a green ball in the first selection" and "a red ball in the second selection".
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 and :
- "owning a dog" and "growing your own herb garden".
- "winning the lottery" and "running out of milk".
- "buying a lottery ticket" and "finding a penny on the floor".
- "in the first coin toss heads" and "in the second coin toss tails".
- Selecting two balls, one after the other, with replacement from a box containing red and green balls. "a green ball in the first selection" and "a red ball in the second selection".
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:
Two events and of a random experiment are independent, if
This definition makes intuitively sense, because means that the probability for to occur does not change, no matter if is given (or has occurred) or not. So event has no influence on the event . And likewise, means that event has no influence on event . So and 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 :
Consider two events and of a random experiment. If it can be shown that , or that , then the following is true:
- and are independent
- and are independent
- and are independent
- and 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.
Prove statement (1).
Solution
Assume that is valid. We have to show that .
By definition, we have
Because of our assumption it follows
and by multiplying both sides by we get
Dividing both sides by , we get
Done!
Here is a another useful theorem.
Consider two events and of a random experiment. If and are independent, then
The opposite is also true. If the above equation is fulfilled, then the events and are independent.
The proof is left as an exercise:
Proof the statement above.
Solution
-
Assume that and are independent. We want to show that
Indeed, as and are independent, it follows
Multiplying by , we obtain
-
Assume now that the equation is fulfilled. We want to show that and are independent. All we have to show is that . But this is true, because from follows .
Q1
Are two mutually exclusive events independent?
Q2
The experiment is flipping a coin twice. How do you show experimentally, if the events ="head in first flip" and ="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 ="red ball in first selection" and ="red ball in second selection". Are the two events independent if
- selection is with replacement (that is, the first ball is returned before the second ball is selected).
- 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 and are mutually exclusive, it is , but (always assuming that and ). Intuitively this makes sense. Given , we know that cannot happen, as the events exclude each other from occurring. So influences the occurrence of , and thus they are dependent.
A2
Repeat the experiment many times, and determine the probabilities and . Then show that .
A3
The trees are shown below (left: with replacement, right: without replacement). We check if .
-
. Thus
So they are independent.
-
. Thus
So they are not independent.
