Derivation of the formula of conditional probability
The formula of conditional probability
![](https://assets.st-note.com/img/1723466201926-uPGYZgdTPF.png)
The meaning:
P: probability
A | B: A given the event B has already occurred.
A ∩ B: the joint event of A and B (look the image below)
![](https://assets.st-note.com/img/1723466255502-bvBprXWGfP.png?width=1200)
The derivation of the formula
So the meaning of P(A | B) is the probability of the event A given the information the event B has already happened.
Look at the image above. P(A | B) concerns the event A ∩ B, so the green area is considered in this situation. Because the event B has already occurred, the whole possible case is B (the sample space is narrowed to B). So the probability of P(A | B) is (using the definition of probability) :
![](https://assets.st-note.com/img/1723467456624-K1KaceXk38.png)
The equation (1) if and only if (using algebra):
![](https://assets.st-note.com/img/1723467684860-XF356ygG4N.png)
And P(B) and P(A ∩ B) are (using the definition of probability):
![](https://assets.st-note.com/img/1723467904313-L4wKUQDJxe.png)
![](https://assets.st-note.com/img/1723467914133-Tpz7gCwO4A.png)
So the equation (2) is transformed into the formula of the conditional probability by substituting it with (3) and (4). QED.
![](https://assets.st-note.com/img/1723468348017-fOyzmAzWzV.png)