2 Conditional probability - dependent events

Suppose a bag contains 6 balls, 3 red and 3 white. Two balls are chosen (without replacement) at random, one after the other. Consider the two events R , W :

R is event “first ball chosen is red”

W is event “second ball chosen is white”

We easily find P ( R ) = 3 6 = 1 2 . However, determining the probability of W is not quite so straightforward. If the first ball chosen is red then the bag subsequently contains 2 red balls and 3 white. In this case P ( W ) = 3 5 . However, if the first ball chosen is white then the bag subsequently contains 3 red balls and 2 white. In this case P ( W ) = 2 5 . What this example shows is that the probability that W occurs is clearly dependent upon whether or not the event R has occurred. The probability of W occurring is conditional on the occurrence or otherwise of R .

The conditional probability of an event B occurring given that event A has occurred is written P ( B | A ) . In this particular example

P ( W | R ) = 3 5 and P ( W | R ) = 2 5 .

Consider, more generally, the performance of an experiment in which the outcome is a member of an event A . We can therefore say that the event A has occurred. What is the probability that B then occurs? That is what is P ( B | A ) ? In a sense we have a new sample space which is the event A . For B to occur some of its members must also be members of event A . So, for example, in an equi-probable space, P ( B | A ) must be the number of outcomes in A B divided by the number of outcomes in A . That is

P ( B | A ) = number of outcomes in A B number of outcomes in  A .

Now if we divide both the top and bottom of this fraction by the total number of outcomes of the experiment we obtain an expression for the conditional probability of B occurring given that A has occurred:

Key Point 7

Conditional Probability

P ( B | A ) = P ( A B ) P ( A ) or, equivalently P ( A B ) = P ( B | A ) P ( A )

To illustrate the use of conditional probability concepts we return to the example of the bag containing 3 red and 3 white balls in which we consider two events:

Let the red balls be numbered 1 to 3 and the white balls 4 to 6. If, for example, ( 3 , 5 ) represents the fact that the first ball is 3 (red) and the second ball is 5 (white) then we see that there are 6 × 5 = 30 possible outcomes to the experiment (no ball can be selected twice).

If the first ball is red then only the fifteen outcomes ( 1 , x ) , ( 2 , y ) , ( 3 , z ) are then possible (here x 1 , y 2 and z 3 ). Of these fifteen, the six outcomes { ( 1 , 2 ) , ( 1 , 3 ) , ( 2 , 1 ) , ( 2 , 3 ) , ( 3 , 1 ) , ( 3 , 2 ) } will produce the required result, i.e. the event in which both balls chosen are red, giving a probability: P ( B | A ) = 6 15 = 2 5 .

Example 11

A box contains six 10 Ω resistors and ten 30 Ω resistors. The resistors are all unmarked and are of the same physical size.

  1. One resistor is picked at random from the box; find the probability that:
    1. It is a 10 Ω resistor.
    2. It is a 30 Ω resistor.
  2. At the start, two resistors are selected from the box. Find the probability that:
    1. Both are 10 Ω resistors.
    2. The first is a 10 Ω resistor and the second is a 30 Ω resistor.
    3. Both are 30 Ω resistors.
Solution
    1. As there are six 10 Ω resistors in the box that contains a total of 6 + 10 = 16 resistors, and there is an equally likely chance of any resistor being selected, then

      P ( 10 Ω ) = 6 16 = 3 8

    2. As there are ten 30 Ω resistors in the box that contains a total of 6 + 10 = 16 resistors, and there is an equally likely chance of any resistor being selected, then

      P (30 Ω ) = 10 16 = 5 8

    1. As there are six 10 Ω resistors in the box that contains a total of 6 + 10 = 16 resistors, and there is an equally likely chance of any resistor being selected, then

      P (first selected is a 10 Ω resistor) = 6 16 = 3 8

      If the first resistor selected was a 10 Ω one, then when the second resistor is selected, there are only five 10 Ω resistors left in the box which now contains 5 + 10 = 15 resistors.

      Hence, P (second selected is also a 10 Ω resistor) = 5 15 = 1 3

      And, P (both are 10 Ω resistors) = 3 8 × 1 3 = 1 8

    2. As before, P (first selected is a 10 Ω resistor) = 6 18 = 3 8

      If the first resistor selected was a 10 Ω one, then when the second resistor is selected, there are

      still ten 30 Ω resistors left in the box which now contains 5 + 10 = 15 resistors. Hence,

      P (second selected is a 30 Ω resistor) = 10 15 = 2 3

      And, P (first was a 10 Ω resistor and second was a 30 Ω resistor) = 3 8 × 2 3 = 1 4

    3. As there are ten 30 Ω resistors in the box that contains a total of 6 + 10 = 16 resistors,

      and there is an equally likely chance of any resistor being selected, then

      P (first selected is a 30 Ω resistor) = 10 16 × 5 8

      If the first resistor selected was a 30 Ω one, then when the second resistor is selected,

      there are only nine 30 Ω resistors left in the box which now contains 5 + 10 = 15 resistors.

      Hence, P (second selected is also a 30 Ω resistor) = 9 15 = 3 5

      And, P (both are 30 Ω resistors) = 5 8 × 3 5 = 3 8