| Return to Statistics Topics | Return to masstutor.net Homepage |
Conditional probability is based on the probability of an event occuring after a previous event has already occured. The probability of the second event depends on the first. The | is used to indicate conditional probability. If two events, A and B, occur one after the other, but the probability of B depends on A then it is written as:
P(B|A)
which is read as "the probability of B given A".
When both A and B occur it is indicated by: P(A ∩ B)
The probability of A occuring is: P(A)
Since the probability of B occuring given A depends on A occuring first we write:
| P(B|A) = |
P(A ∩ B) P(A) |
P(A ∩ B) / P(A) represents the probability of the outcome containing A and B coming from A.
The formula above can also be written as:
P(B|A)P(A) = P(A ∩ B) by cross multiplying.
If a sample space S is divided into n partitions and a subset B occurs in the sample space, the total probability of B can be found by adding all the occurences of B in each partition.
P(B) = P(B|S1)P(S1) + P(B|S2)P(S2) + P(B|S3)P(S3) + P(B|S4)P(S4)
For n partitions this would be:
P(B) = ∑ni = 1P(B|Si)(Si)
The probabilities of B in each partition are added together to get the probability of B.
Bayes' theorem allows probabilities to be calculated from total probabilities. If S is the sample space and S1...Sn are the partitions and B is a subset of S then:
| P(Sj|B) = |
P(B|Sj)P(Sj) ∑ni = 1P(B|Si)P(Si) |
The probability of the partitioned space can be found based on a subset of that space.
| Return to Statistics Topics | Return to masstutor.net Homepage |