Conditional Probability

MR-dice-icon.png Download a pdf copy of this help file  here

See also: The basics of probability theory introduction, Venn diagrams, Probability event notation

If A and B are two events, the probability that A will occur given B has already occurred is written as P(B|A), which reads probability B given A. It is called the conditional probability of B given A.

If A and B are independent, the occurrence of B will not affect the probability of A, and vice versa, in which case:

            P(B|A) = P(B)             and                          P(A|B) = P(A)

The probability of both A and B occurring, denoted P(A image185.gif B) is given by:

            image456.gif

but if A and B are independent;

            image457.gif

This can be extended to several events, e.g.:

            image458.gif

and if A, B, and C are independent:

            image461.gif

Example

A box contains 5 yellow balls and 2 green balls. What is the probability that three balls randomly taken from the box (without replacement) will all be yellow?

A = first ball is yellow

B = second ball is yellow

C = third ball is yellow

            image462.gif

image463.gif                          i.e. 5 yellow balls in a box of 7

image464.gif                        i.e. 4 yellow balls left in a box of 6

image465.gif                  i.e. 3 yellow balls left in a box of 5

Thus:

            image466.gif

If the balls were replaced after each draw, then each draws results would be independent of the others, and we would have P(A) = P(B) = P(C ) = 5/7, and

image467.gif                       

See also: Venn diagrams