![Hands-On Mathematics for Deep Learning](https://wfqqreader-1252317822.image.myqcloud.com/cover/81/36698081/b_36698081.jpg)
Independence
Events are independent when they are not related to each other; that is, the outcome of one has no bearing on the outcome of another.
Suppose we have two independent events, A and B. Then, we can test the following:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1506.jpg?sign=1738968127-26wAChykrlDRoUYHimnyMetMLgI5ZNgU-0-b87e687b54159b44f10b9d4e98246469)
If this is not true, then the events are dependent.
Imagine you're at a casino and you're playing craps. You throw two dice—their outcomes are independent of each other.
An interesting property of independence is that if A and B are independent events, then so are A and BC.
Let's take a look and see how this works:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1525.jpg?sign=1738968127-t0XJIcEK97HUKD9NRKSn7IQaawY3Py92-0-9f0b459e12a853c4e08211189a02c95c)
When we have multiple events, A1, A2, …, An, we call them mutually independent when for all cases of n ≥ 2.
Let's suppose we conduct two experiments in a lab; we model them independently as and
and the probabilities of each are
and
, respectively. If the two are independent, then we have the following:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_797.jpg?sign=1738968127-OFTEAMQMxAXIaxXyXl0wxCjnag9o29Dq-0-5bae88c0b407673ca16c4c9c270f194a)
This is for all cases of i and j, and our new sample space is Ω = Ω1 × Ω2.
Now, say A and B are events in the Ω1 and Ω2 experiments, respectively. We can view them as subspaces of the new sample space, Ω, by calculating A × Ω2 and B × Ω1, which leads to the following:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1721.jpg?sign=1738968127-DkUXNmYAac1eEJyM1UxIqAEkwtctqLkW-0-c54ea05ac2f4ad23575a75e7a933c463)
Even though we normally define independence as different (unrelated) results in the same experiment, we can extend this to an arbitrary number of independent experiments as well.