Let (Ω,F,P) be a probability space and A,B∈F be events with P(B)>0. The conditional probability of A given B is the probability of the joint event divided by the probability of B.
P(A∣B):=P(B)P(A∩B)
The conditional probability of A given B is the probability that A occurs given that B has occurred. Conditional probability has the following properties:
- for fixed B, the function A↦P(A∣B) is a probability measure on (Ω,F);
- conditioning on B is equivalent to reducing the sample space to B, replacing each event by its intersection with B and rescaling probabilities by P(B);
- in general P(A∣B)=P(B∣A).
Let (Ω,F,P) be a probability space and A,B∈F be events with P(B)>0. The events A and B are independent if and only if conditioning on B does not change the probability of A.
P(A∣B)=P(A)
This holds since, when A and B are independent, P(A∣B)=P(B)P(A)P(B)=P(A), and conversely P(A∣B)=P(A) rearranges to P(A∩B)=P(A)P(B).
Let (Ω,F,P) be a probability space and A,B,C∈F be events with P(C)>0. The notation P(A∣B,C) denotes P(A∣B∩C). The events A and B are conditionally independent given C, written A⊥⊥B∣C, if and only if their joint conditional probability given C is the product of their conditional probabilities given C.
P(A∩B∣C)=P(A∣C)P(B∣C)
Equivalently, when P(B∩C)>0, the events A and B are conditionally independent given C if and only if
P(A∣B,C)=P(A∣C).
Let (Ω,F,P) be a probability space, E1,…,Ek∈F be a partition of Ω with P(Ei)>0 for all i and A∈F be an event. The theorem of total probability states that the probability of A is the sum of its conditional probabilities given each part, weighted by the probabilities of the parts.
P(A)=i=1∑kP(A∣Ei)P(Ei)
Let (Ω,F,P) be a probability space, E1,…,Ek∈F be a partition of Ω with P(Ei)>0 for all i and A∈F be an event with P(A)>0. Bayes’ theorem states that the conditional probability of a part given A is the conditional probability of A given the part, multiplied by the probability of the part and divided by the probability of A.
P(Ei∣A)=P(A)P(A∣Ei)P(Ei)=∑j=1kP(A∣Ej)P(Ej)P(A∣Ei)P(Ei)
The second form follows from the theorem of total probability.