![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=1739617816-zbcoNQ4mS8ENzYDigHayi1AjVQKKD7Gd-0-8e4ad2fe84873e7b1f27a57596481b98)
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=1739617816-Caz8SVbCxyjWApy3Gra1Uf2vPPJyv9jw-0-c5c64543aa99b4ab3423f244ce577f47)
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=1739617816-6TYNpevLyLrlZUXk3GdpMJgUJtvDCxbQ-0-ae2fe6fb8804f3b994e97df9440d309f)
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=1739617816-Kuw4LHUmE1AnMBUljkrxWKseJjvOxPDO-0-982f21c8fdbded46e6f3dfea71f6a4ba)
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.