In: Statistics and Probability
what does P(B|A) mean
P(B | A), read as 'probability of B under the condition A' or 'probability of B given A), means the probability of occurance of B when it is certain that the event A will occur.
For example, consider a standard deck of cards with 13 each of spades, clubs, diamond and hearts. Hearts & diamonds are red. Clubs and spades are black. Let A be the event that a card chosen is black and B be the event that a card chosen is spades.
P(B|A) here means, a card chosen is spades, when its already know that its a black card.
We know that there are 26 black cards.
So, the probability of P(B|A) = 13/26 = 0.5
P(B|A) can also be calculated using Baye's theorem which states that
P(B|A) = P(B and A)/P(A)