![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=1739282570-YBP90PdLQujWXokR5b9OStToIgfA3sMT-0-cc3971954b1b9d0a7327ca91892cd838)
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=1739282570-P2clHOUOfeoIUJrOiczOWUoc76Ue2OqC-0-616250b4c0a7e2f870bb2e2b6a59023a)
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=1739282570-HVuGadlT7EDfFcJtJxZlyEpkZgJXHV8O-0-08276e355efcbcd855311ace80e93042)
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=1739282570-kNmeXwmOf4HeuZBuTLm0WyIN0Scv3EuS-0-47fb8afaa4874b6c805d93392bb4e80a)
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.