Conditional probability
Appearance
Conditional probability is the probability of one event given another event.
Definition
For events $A,B$ where $P(B)>0$, the conditional probability of A given B
$$P(A\ |\ B) = \frac{P(A \cap B)}{P(B)}.$$
for events $A,B$ where $P(B)>0$
Multiplication law
By rearrangement of terms of definition,
$$ P(A \cap B) = P(A\ |\ B) P(B) = P(B\ |\ A) P(A) $$
Note $$\begin{gathered} P(A\cap B)\equiv P(B\cap A)\\ P(A\ |\ B)\neq P(B\ |\ A). \end{gathered}$$
Addition law
If
- $S = B_1 \cup B_2 \cup \cdots \cup B_n$,
- $\forall i \neq j: B_i\cap B_j = \varnothing$,
- $\forall i \in 1,\cdots ,n P(B_i)>0$,
Then
$$ P(A|S) = P(A\ |\ B_1) P(B_1) + \cdots + P(A\ |\ B_n) P(B_n).\notag $$
and $B_1, B_2, \ldots, B_n$ are said to partition sample space $S$.