Conditional probability

Definition (conditional probability) open_in_new

For a probability space, for any two events $A,B$ with $\mathbb P(B) > 0$, the conditional probability of $A$ given $B$ is $$ \mathbb P(A|B) = \frac{\mathbb P(A\cap B)}{\mathbb P(B)}. $$

Lemma (conditional probability measure) open_in_new

Given a probability space $(\Omega, \mathcal F, \mathbb P)$, for any event $B$ with $\mathbb P(B) > 0$, the function $$ \begin{align*} \mathbb P_B: \mathcal F &\to [0,1] \\ A &\mapsto \mathbb P(A|B) \end{align*} $$ is a probability measure called the conditional probability measure given $B$.

Proof

Law of total probability open_in_new

Let $(B_n)_{n\in\N}$ be a partition of $\Omega$ (sequence of disjoint events with $\bigcup_n B_n = \Omega$) with $\prob(B_n)>0$. Then for all event $A$, $$ \prob(A) = \sum_n \prob(A|B_n)\, \prob(B_n). $$ The condition of positive probabilities can be dropped if we agree that $\prob(A|B_n) \prob(B_n) = 0$ when $\prob(B_n) = 0$.

Proof

Bayes' formula open_in_new

Let $(B_n)_{n\in\N}$ be a partition of $\Omega$ with positive probability and let $A$ be an event of positive probability. Then $$ \prob(B_n | A) = \frac{\prob(A|B_n) \prob(B_n)}{\fsum k1\infty \prob(A|B_k) \prob(B_k) }. $$

We hold a prior belief of the probabilities $\prob(B_n)$. Should we observe the event $A$, this formula gives the posterior probabilities $\prob(B_n|A)$.

Simpson's paradox open_in_new

Let $(\Omega_n)_{n\in\N}$ be a partition of $\Omega$. Let $A,B$ be events with $\prob(B) > 0$.

It can be that $B$ makes $A$ more likely on all $\Omega_n$, i.e. $\prob(A|B\cap\Omega_n) > \prob(A|\Omega_n)$, but $B$ makes $A$ less likely on $\Omega$, i.e. $\prob(A|B) < \prob(A)$. (Example)

Using the law of total probability, $$ \begin{matrix} \prob(A) & = & \sum_n & \prob(A|\Omega_n) & \prob(\Omega_n) \\ \bigvee & & & \bigwedge \\ \prob(A|B) & = & \sum_n & \prob(A|B\cap\Omega_n) & \prob(\Omega_n|B) \\ \end{matrix} $$ and the weights $\prob(\Omega_n)$ can change when conditioning on $B$.