We say that the events and are independent if , or equivalently, by substituting in the previous formula, if
If this does not happen, then the events and are dependent.
Example
Let's consider the experiment of throwing a dice, and consider the events A = "to extract ", B = "to extract an even number". It seems logical that if we knew that an even number had come out, then the probability that six was thrown was larger than what it would be if we did not have this information. Let's verify it:
We know that , by the rule of Laplace, and
In particular, we have verified that our events and are dependent, since is different from .
Example
Carrying out a telephone poll, we have asked persons if they believed it necessary to have more lighting in the street at night.
The poll was answered by men, of whom answered yes, and who said no, and women, of whom answered yes, and no. We wonder if men and women have a different opinion, or whether this is irrelevant to the question.
To see more clearly what they say, the best thing is to put the information in a table:
|
Yes |
No |
Men |
324 |
156 |
Women |
351 |
169 |
Let's consider the events "to want more light (to have answered yes)", "a man has answered".
We wonder if and are independent, that is to say, if the fact of wanting more light depends on whether one is a man or woman.
Let's calculate the probabilities:
by the rule of Laplace (they are all those who have answered yes, adding up men and women).
the men who have answered us among all the calls.
those who are men and have answered yes.
It is satisfied that that is to say, that so the events are independent. In other words, the fact of being a man or a woman has not influenced whether one wants more light or not.