I worked through some examples of Bayes' Theorem and now was reading the proof.
Bayes' Theorem states the following:
Suppose that the sample space S is partitioned into disjoint subsets $B_1, B_2,...,B_n$. That is, $S = B_1 \cup B_2 \cup \cdots \cup B_n$, $\Pr(B_i) > 0$ $\forall i=1,2,...,n$ and $B_i \cap B_j = \varnothing$ $\forall i\ne j$. Then for an event A,
$\Pr(B_j \mid A)=\cfrac{B_j \cap A}{\Pr(A)}=\cfrac{\Pr(B_j) \cdot \Pr(A \mid B_j)}{\sum\limits_{i=1}^{n}\Pr(B_i) \cdot \Pr(A \mid B_i)}\tag{1}$
The numerator is just from definition of conditional probability in multiplicative form.
For the denominator, I read the following:
$A= A \cap S= A \cap (B_1 \cup B_2 \cup \cdots \cup B_n)=(A \cap B_1) \cup (A\cap B_2) \cup \cdots \cup(A \cap B_n)\tag{2}$
Now this is what I don't understand:
The sets $A \cup B_i$ are disjoint because the sets $B_1, B_2, ..., B_n$ form a partition.$\tag{$\clubsuit$}$
I don't see how that is inferred or why that is the case. What does B forming a partition have anything to do with it being disjoint with A. Can someone please explain this conceptually or via an example?
I worked one example where you had 3 coolers and in each cooler you had either root beer or soda. So the first node would be which cooler you would choose and the second nodes would be whether you choose root beer or soda. But I don't see why these would be disjoint. If anything, I would say they weren't disjoint because each cooler contains both types of drinks.
Thank you in advance! :)