Conditional Probability (Part 2)
Last modified — 02 Oct 2026
By the end of this lecture, students are anticipated to be able to:
Apply Bayes theorem
Determine whether events are independence based on conditional probabilities
Prove results where events are independent
Sometimes we have information about \(\mathbb{P}(A\ \vert\ B)\) but require \(\mathbb{P}(B\ \vert\ A)\).
Bayes’ Theorem allows us to relate these conditional probabilities.
Bayes’ Theorem
Let \(A\) and \(B\) be arbitrary sets with \(\mathbb{P}(A)>0\). we have \[\mathbb{P}\left( B \ \vert\ A\right) \, = \, \frac{\mathbb{P}\left( A\ \vert\ B \right) \, \mathbb{P}\left( B\right) }{\mathbb{P}(A) }\]
You can also consider \(B_{1}\), \(B_{2}\), …, \(B_{n}\) is a partition of \(\Omega\), then for each \(i=1,\dots,n\), so that:
\[\mathbb{P}\left( B \ \vert\ A\right) \, = \, \frac{\mathbb{P}\left( A\ \vert\ B \right) \, \mathbb{P}\left( B\right) }{\sum_{j=1}^{n} \mathbb{P}\left( A\ \vert\ B_{j}\right) \, \mathbb{P}\left( B_{j}\right)}\]
\[ \begin{aligned} \mathbb{P}\left( B \ \vert\ A\right) &=\frac{\mathbb{P}\left( A\cap B\right)}{\mathbb{P}\left( A\right) } & \text{(Definition of conditional prob)} \\ &=\frac{ \mathbb{P}\left( A\ \vert\ B \right) \, \mathbb{P}\left( B \right)}{\mathbb{P}\left( A\right) } & \text{(Multiplication Rule)} \\ &=\frac{\mathbb{P}\left( A\ \vert\ B \right) \, \mathbb{P}\left( B \right) }{\sum_{j=1}^{n} \mathbb{P}\left( A\ \vert\ B_{j}\right) \, \mathbb{P}\left( B_{j}\right) } & \text{(Rule of Total Prob)} \end{aligned} \]
In general, \(\mathbb{P}(A\ \vert\ B) \ne \mathbb{P}(B\ \vert\ A)\). The assumption that these two probabilities are equivalent is referred to as the “conditional probability fallacy” or “confusion of the inverse”
Suppose you bring a friend to the ER.
Independence:
We say that events \(A\) and \(B\) are independent if \[\mathbb{P}\left( A\cap B\right) \, = \, \mathbb{P}\left( A \right) \, \mathbb{P}\left( B\right).\]
If \(\mathbb{P}\left( B\right) >0\) and \(A\) and \(B\) are independent events, then:
\[\mathbb{P}\left( A\ \vert\ B\right) = \frac{\mathbb{P}\left( A\cap B\right) }{\mathbb{P}\left( B\right) } = \frac{\mathbb{P}\left( A\right) \mathbb{P}\left( B\right) }{\mathbb{P}\left( B\right) } = \mathbb{P}\left( A\right).\]
We say that an event \(A\) is non-trivial if \(0<P\left( A\right) <1\).
If \(A\) and \(B\) are non-trivial events. Then,
Proof:
Show the following:
We say that the events \(A_{1},A_{2},\dots\) are independent if, for any finite collection \(K = \{(i_1,\dots,i_k)\}\), \[\mathbb{P}\left( \bigcap_{i \in K} A_{i} \right) = \prod_{i \in K} \mathbb{P}(A_i).\]
For example, if \(n=3,\) then, \(A_1\), \(A_2\), and \(A_3\) are independent if and only if all of the following hold:
\[\begin{aligned} \mathbb{P}\left( A_{1}\cap A_{2}\right) &= \mathbb{P}\left( A_{1}\right) \, \mathbb{P}\left( A_{2}\right), \\ \mathbb{P}\left( A_{1}\cap A_{3}\right) &= \mathbb{P}\left( A_{1}\right) \, \mathbb{P}\left( A_{3}\right),\\ \mathbb{P}\left( A_{2}\cap A_{3}\right) &= \mathbb{P}\left( A_{2}\right) \, \mathbb{P}\left( A_{3}\right),\\ \mathbb{P}\left( A_{1}\cap A_{2}\cap A_{3}\right) &= \mathbb{P}\left( A_{1}\right) \, \mathbb{P}\left( A_{2}\right) \, \mathbb{P}\left( A_{3}\right). \end{aligned}\]
We flip a fair coin twice. Define the following three events:
Show that \(A,B,C\) are pairwise independent, but not independent.
You may have:
HANDWRITTEN Cheat Sheet
Non-graphing calculator
Writing materials
Phones and laptops put away, please! You can have 15 minutes.
. . .
Checkpoint 2 (on Section 1.5: Conditional Probability and Independence) is next Friday!
Same rules as Checkpoint 1!
Stat 302 - Winter 2025/26