51
Conditional Probability Terminology: The probability of an event occurring, given that another event has already occurred. ܤܣ= ( ୟ୬ ) () ܣ ܤ: The probability of A given B.

Conditional Probability - Aboutigcse-web.weebly.com/uploads/2/3/7/5/23755561/ch_4_-_solutions.pdf · 6. Two chess players, K1 and K2, are playing each other in a series of games

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

  • Conditional ProbabilityTerminology:

    The probability of an event occurring, given that another event has already occurred.

    = ( )( )

    : The probability of A given B.

  • Consider the following table:

    = - The probability that a random selected smoker is male.

    = - The probability that a random selected non-smoker is male.

    = - The probability that a random selected smoker is female.

    = - The probability that a random selected non-smoker is female.

    These probabilities can be representedin a tree diagram as shown on the right.

    It’s easy to see that:

    P AandB = P A ×or

    P A ∩ B = P A ×

    YES NO TOTAL

    MALE 19 41 60

    FEMALE 12 28 40

    31 69 100

  • Now construct a conditional probability tree that includes the following probabilities:

    - The probability that a random selected male is a smoker.

    - The probability that a random selected male is a non-smoker.

    - The probability that a random selected female is a smoker.

    - The probability that a random selected female is a non-smoker.

    Answer on next slide!

  • The probability that a random selected male is a smoker.

    =1960

    The probability that a random selected male is a non-smoker.

    =4160

    The probability that a random selected female is a smoker.

    =1240

    The probability that a random selected female is a non-smoker.

    =2840

    YES NO TOTALMALE 19 41 60

    FEMALE 12 28 40

    31 69 100

  • What is the probability of a randomly selected individual being a male who smokes?

    The number of "Male and Smoke" divided by the total = 19/100 = 0.19

    What is the probability of a randomly selected individual being a male?

    This is the total for male divided by the total = 60/100 = 0.60.

    What is the probability of a randomly selected individual smoking?

    The total who smoke divided by the total = 31/100 = 0.31.

    What is the probability of a randomly selected male smoking?

    19 males smoke out of 60 males, so 19/60 = 0.31666...

    What is the probability that the male smokes?

    There are 19 male smokers out of 31 total smokers, so 19/31 = 0.6129

    YES NO TOTALMALE 19 41 60

    FEMALE 12 28 40

    31 69 100

  • Independent Events.

    Independent events have no effect on each other. For example, = ( ).

    Since, = ( )( )

    , we have = → = ( ) × ( )

    The following are equivalent:

    = ( ) × ( )

    ∩ = ( ) × ( )

    The probability of either of two independent events or is:

    ∪ = + − ( ∩ )

    If ∩ = , then ∪ = + which means that and are mutually exclusive events.

  • Now do Exercise 4B.

    Also try Misc. Exercise 4

  • 1. A bag contains 6 red and 4 green counters. Two counters are drawn, without replacement. Use a carefully labeled tree diagram to find the probabilities that

    a. Both counters are redb. Both counters are greenc. Just one counter is redd. At least one counter is rede. The second counter is red

    Soln:

    a. = = OR × =

    b. = = OR × =

    c. = = OR × + × = + =

  • Soln:

    d. = =

    OR 1 − =

    e. = =

    OR − × = − = =

    = −

    It makes no difference to (a), (b), (c) or (d) if the counters were drawn simultaneously, but it makes a difference to (e) because there would be no way to distinguish the second counter.

  • 2. Two cards are drawn, without replacement, from an ordinary pack. Find the probabilities thata. Both are picture cards ( , , )b. Neither is a picture cardc. At least one is a picture cardd. At least one is red

    Soln:a. ℎ = × =

    b. ℎ = × = =c. = 1 − ℎ

    = 1 − =d. = 1 − ℎ

    = 1 − × = 1 − = 1 − =

  • 3. Events , and satisfy these conditions:

    = 0.6 = 0.8 = 0.45 = 0.28

    Calculate

    a. ( ) b. ( | ) c. ( | )

    Soln:

    a. = ( | ) × ( ) = 0.45 × 0.6 = 0.27b. = ( )

    ( )= .

    .= 0.35

    c. = ( )( )

    = ..

    = 0.3375

  • 4. A class consists of seven boys and nine girls. Two different members of the class are chosen at random. is the event { } , and is the event ℎ . Find the probabilities of

    a. | b. | c. | ′ d. | ′ e.

    Is it true that

    f. + = 1 ?g. + ′ = 1 ?

    Soln:

    a. = ( )( )

    = ⁄ × ⁄⁄ =⁄⁄ =

    b. = ( )( )

    = ( )( )

    = =

  • Soln:c. = ∙ + ∙ =

    ∙× 8 + 7 =

    ′ = ( )( )

    = ( )( )

    = =

    d. = 1 − = 1 − = (*)

    e. Proved in (c).

    (*) Proof follows on next slide.

  • f. Is + = 1 ?

    ( )( )

    = ( ) ( )( )

    = 1

    So identity is true.

    g. Is + ′ = 1 ?

    ( )

    + ( )( )

    = ( ) ( )( ) ( )

    = ( ) ( ) ( ) ( ) ( )

    But = | , so

    = ( | ) | ( ) |( ) ( )

    = ( | ) ( ) | ( )( )

    Numerator ≠ Denominator, therefore

    + ′ ≠ 1

  • 5. A weather forecaster classifies all days as wet or dry. She estimates that the probability that 1 June next year is wet is 0.4. If any particular day in June is wet, the probability that the next day is wet is 0.6; otherwise the probability that the next day is wet is 0.3. Find the probability that next year,

    a. The first two days of June are both wet.b. June 2nd is wet.c. At least one of the first three days of June is wet.

    Soln:

    a. 1 2 = 0.4 × 0.6 = 0.24b. 2 = 0.4 × 0.6 + 0.6 × 0.3 = 0.24 + 0.18 = 0.42c. 1 = 1 −

    = × 2 1 ) × (3 |2 ) = 0.6 × 0.7 × 0.7 = 0.294

    So, 1 = 1 − 0.294 = 0.706

    See tree diagram on next slide.

  • 6. Two chess players, K1 and K2, are playing each other in a series of games. The probability that K1 wins the first game is 0.3. If K1 wins any game, the probability that he wins the next is 0.4; otherwise the probability is 0.2. Find the probability that K1 wins

    a. The first two gamesb. At least one of the first two gamesc. The first three gamesd. Exactly one of the first three games

    The result of any game can be a win for K1, a win for K2, or a draw. The probability that any one game is drawn is 0.5, independent of the result of all previous games. Find the probability that after two games,

    e. K1 won the first and K2 the secondf. Each won one gameg. Each won the same number of games.

  • First we construct the conditional probability tree diagram.

    Note that on level 2, P(K1 W|W)=0.4 means the probability of K1 winning the second game, given that K1 has already won the first game (level 1), that is P(K1 W|W)=0.4

  • Soln:a. 1 = 0.3 × 0.4 = 0.12

    b. 1 ℎ =1 − ( 1 ℎ ℎ )

    ( 1 ℎ ℎ )=1 × 1 1 1 )

    1 ℎ ℎ = 0.7 × 0.8 = 0.56

    So 1 ℎ = 1 − 0.56 = 0.44

    c. From the tree diagram,( 1 ℎ ℎ )

    = 1 × 1 2 1 1 ) ×1 3 1 2 )

    So ( 1 ℎ ℎ ) = 0.3 × 0.4 × 0.4 = 0.048

  • d. From the tree diagram,

    1 ℎ ℎ = 1 = 0.112 + 0.112 + 0.108 = 0.332

    To solve (e), (f) and (g), we construct another tree diagram:

    e. 1 2= 0.03(∗)

    f. ℎ = 0.03 + 0.04 ∗ = .

    g. ( ℎℎ ℎ ) = 0.25 + .

    We add 0.25 because all the previousgames are equivalent to draws or no-wins, since each player must have won the same number of games.

  • 7. A fair cubical die is thrown four times. Find the probability thata. All four scores are 4 or moreb. At least one score is less than 4c. At least one of the scores is a 6

    Soln:

    a. We only need concern ourselves with scores 4, 5 and 6. Since there are 3 such scores, and we are throwing the die four times, the number of desirable outcomes is 3 = 81. The sample space is given by 6 = 1296. Therefore, the probability that all four scores are 4 or more is given by = .

    b. ℎ 4 = 1 − 4 ℎ 4 = 1 − =

    c. To find the probability that at least one score is a 6, it is easier to find how many throws do not have a score of 6. It is evident this number is 5 = 625. Therefore the number of throws that have a score of 6 must be 6 − 5 = 1296 − 625 = 671.

    And so , ℎ 6 =

  • 8. The Chevalier du Mere’s Problem. A seventeenth-century French gambler, the Chevalier du Mere, had run out of takers for his bet that, when a fair cubical dice was thrown four times, at least one 6 would be scored. (See Question 7c.). He therefore changed the game to throwing a pair of fair dice 24 times. What is the probability that, out of these 24 throws, at least one is a double 6?

    Soln:

    One double throw has 36 equiprobable out comes of which 35 are unfavorable to the bet. In 24 throws, there are 3624 possible outcomes of which only (3624 − 3524) are favorable. Thus the probability of that out of these throws, at least one is a double 6, is given by:

    = . × . ×. ×

    = 0.491403

  • 9. The Birthday Problem. What is the probability that, out of 23 randomly chosen people, at least two share a birthday? Assume that all 365 days of the year are equally likely and ignore leap years. (Hint: find the probabilities that two people have different birthdays, that three people have different birthdays, and so on.)

    Soln:

    If P(A) is the probability of at least two people in the room having the same birthday, it may be simpler to calculate P(A'), the probability of there not being any two people having the same birthday. Then, because A and A' are the only two possibilities and are also mutually exclusive, P(A) = 1 − P(A').

    If there are 23 randomly chosen people, the probability that there birthdays all fall on different days of the year is given by:

    = × × × × … ×

    OR

    = × 365× 364× 363 × 362× … × 343

    Note that 365× 364× 363 × 362× … × 343 can be written as: !!

    = 36523 × 23!

  • And so,

    = × 36523 × 23!

    Whence,

    = 1 − × 36523 × 23! = 1 − 0.4927027 = 0.507293

    In general, if there are people in a class room, then

    = 1 − × 365 × !

    10. Given that = 0.75, = 0.8 and = 0.6, calculate ( ) and ( | ).

    Soln:

    = ( )( )

    = 0.6 → ( )( )

    = 0.6

    Now, = ( )( )

    = 0.8 → ( ).

    = 0.8 → = 0.75 × 0.8 = 0.6

    So, ( )( )

    = 0.6 → ..

    = 0.6 → = 0.75

    But = ( )( )

    = ..

    = 0.8

  • 11. For any events and , write ( ) and ( ) in terms of ( ), ( ) , ( | )and ( | ′). Deduce Bayes’ theorem:

    = ( | )( | )

    Soln:

    We know that = − ( )

    → ( ) = + ( )

    Now, = ( | ) and ( ) =

    But, = ( )

    ( )= ( )

    ( )= ( )

    ( | )

  • 12. The Doctor’s Dilemma: It is known that among all patients displaying a certain set of symptoms, the probability that they have a particular rare disease is 0.001. A test for the disease has been developed. The test shows a positive result on 98% of the patients who havewthe disease and on 3% of patients who do not have the disease.

    The test is given to a particular patient displaying the symptoms, and it records a positive result. Find the probability that the patient has the disease. Comment on your answer.

    Soln:

    Let be the event “rare disease” and be the event “positive result”.

    = 0.001, so = 0.999.You are given that | = 0.98 and | ′ = 0.03

    The probability that the patient has the disease is given by ( | ).

    = ( . )( . ). . ( . )( . )

    = 0.0316639 ≈ 0.0317

    Since the probability 0.0317 is very small, the test needs to be far more reliable so one can conclude there is sufficient evidence about a rare disease.

  • 13. The Prosecutor’s Fallacy: An accused prisoner is on trial. The defense lawyer asserts that in the absence of further evidence, the probability that the prisoner is guilty is 1 in a million. The prosecuting lawyer produces a further piece of evidence and asserts that if the prisoner were guilty, the probability that this evidence would be obtained is 999 in 1000, and if he were not guilty, it would only be 1 in 1000; in other words, = 0.999, and = 0.001. Assuming that the court admits the legality of the evidence, and that both lawyers’ figures are correct, what is the probability that the prisoner is guilty? Comment on your answer.

    Soln:

    Let G be the event “guilty” and be the event “evidence”.

    = 0.000001, so = 0.999999.You are given that | = 0.999 and | ′ = 0.001

    The probability that the prisoner is guilty is given by ( | ).

    = ( . )( . ). . ( . )( . )

    ≈ 0.000998

    The extra piece of evidence is not sufficient to make the prisoner’s guilt more likely; it would have to be far more certain.

  • Miscellaneous exercise 4.

    1. Bag A contains 1 red ball and 1 black ball, and bag B contains 2 red balls; all four balls are indistinguishable apart from their colour. One ball is chosen at random from A and is transferred to B. One ball is then chosen at random from B and is transferred to A.

    a. Draw a tree diagram to illustrate the possibilities for the colours of the balls transferred from A to B and then from B to A.

    b. Find the probability that after both transfers, the black ball is in bag A.

    a. Tree diagram appears on next slide:

  • b. There are 6 possibilities of which 4 are favourable outcomes, therefore the probability that after both transfers, the black ball will be back in bag A, is given by:

    46 =

    23

  • 2. The probability that an event occurs is = 0.3. The event B is independent of and = 0.4.

    a. Calculate ( or orbothoccur).Event is defined to be the event that neither nor occurs.b. Calculate ( | ′), where ′ is the event that does not occur.

    Soln:

    a.

    ℎ = + − = 0.3 + 0.4 − 0.12 = 0.58

    b.

    = 1 − ℎ = 1 − 0.58 = 0.42= 1 − = 1 − 0.3 = 0.7

    = ( )( )

    = ..

    = 0.6

  • 3. Two cubical fair dice are thrown, one red and one blue. The scores on their faces are added together. Determine which, if either, is greater:

    a. The probability that the total score will be 10 or more given that the red dice shows a 6,

    b. The probability the total score will be 10 or more given that at least one of the dice shows a 6.

    Soln:

    a. ( ) = { 1,6 , 2,6 , 3,6 , 4,6 , 5,6 , 6,6 }

    = { 4,6 , 5,6 , 6,6 }

    score will be 10 or more given that the red dice shows a 6 = ( )( )

    score will be 10 or more given that the red dice shows a 6 = =

  • b.

    ( ) = { 1,6 , 2,6 , 3,6 , 4,6 , 5,6 , 6,1 , 6,2 , 6,3 , 6,4 , 6,5 , 6,6 }( ) = { 4,6 , 5,6 , 6,4 , 6,5 , 6,6 }

    score will be 10 or more given that at least one of the dice shows a 6 = ( )( )

    score will be 10 or more given that at least one of the dice shows a 6 =

    4. Half of the A-Level students in a community college study science and 30% study mathematics. Of those who study science, 40% study mathematics.

    a. What proportion of the A-Level students study both mathematics and science?b. Calculate the proportion of those students who study mathematics, but do not study science.

    Soln:

    Let be the total number of A-Level students. Then,

    is the proportion of those who study science.

    is the proportion of those who study math.

  • a. The proportion of the A-Level students study both mathematics and science = × = .

    Hence the proportion is or 20%.

    b. The proportion of those students who study mathematics, but do not study science = − =

    Hence the proportion is or 10%.

    Challenge questions:

    c. What proportion of students study eitherscience or math or both?

    + + = = or 80%

    d. What proportion of students study either science or math, but not both?

    + = = or 40%

  • 5. Three friends, Ahmed, Benjamin and Chi live in a town where there are only three cafés.They arrange to meet at a café one evening but do not specify the name of the café. The probabilities that they will each choose a particular café are independent. Ahmed lives close to Café Expresso and so the probability that he will choose to go there is , whereas Café Kola and Café Pepi have equal chances of being visited by him.

    Benjamin lives a long distance from Café Kola and the probability that he will choose this one is , but he will choose either of the other two cafes with equal probability.

    Each café has an equal chance of being visited by Chi.

    a. Show that the probability that the three friends meet at Café Expresso is .b. Calculate the probability that

    (i) The three friends will meet at the same café.(ii) At most two friends will meet at the same café.

    Soln:

    First draw the tree diagram as shown on the following slide:

  • a. From the tree diagram, we see that the probability of the 3 friends meeting at Café Expressois given by (AhmedatExpresso) × (BenjaminatExpresso) × (ChiatExpresso). So,

    Probability= × × = =

    b. (i) The probability that the three friends will meet at the same café is given by

    AhmedatExpresso × BenjaminatExpresso × ChiatExpresso +AhmedatKola × BenjaminatKola × ChiatKola +

    (AhmedatPepi) × (BenjaminatPepi) × (ChiatPepi)

    So,Probability= + + = + + =

    b. (ii) The probability that at most two friends will meet at the same café is given by

    1 − AhmedatExpresso × BenjaminatExpresso × ChiatExpresso +AhmedatKola × BenjaminatKola × ChiatKola +

    (AhmedatPepi) × (BenjaminatPepi) × (ChiatPepi)

    So,Probability= 1 − =

  • 6. Two events and are such that = , | = and = .By use of a tree diagram or otherwise, find

    a. ( ) b. ( ) c. ( | )

    Soln (without tree diagram):

    a. = × = × =

    b. ∩ = × = × = Since = 1 − = 1 − =

    Now, + − ∩ + = 1 (See diagram on next slide)

    → = 1 + ∩ − −

    → = 1 + − − = = =

    c. = ( ∩ )( )

    = ⁄⁄ =

  • 6. Soln (tree diagram):

  • From the tree diagram:

    a. =

    b. = ∩ + ∩ = + = = = (See diagram)

    c. = ( ∩ )( )

    = ⁄⁄ = × = × =

  • 7. Students have to pass a test before they are allowed to work in a laboratory. Students do not retake the test once they have passed it. For a randomly chosen student, the probability of passing the test at first attempt is 1/3. On any subsequent attempt, the probability of failing is half the probability of failing on the previous attempt. By drawing a tree diagram or otherwise,

    a. Show that the probability of a student passing the test in 3 attempts or fewer is b. Find the conditional probability that a student passed at the first attempt, given that the student passed in 3 attempts or fewer.

    Soln:

    a. student passing the test in 3 attempts or fewer = 1 − (notpassingatall)

    From tree diagram on next slide, notpassingatall =

    So, student passing the test in 3 attempts or fewer = 1 − =

    b. Let be the event that a student passes the test in 3 attempts or fewer. We already know that = ⁄ from part (a). Also, ⊂ → = ∩ → = ( ∩ ).

    = ( ∩ )( )

    = ⁄⁄ = × =

  • 8. The probability of event occurring is = . The probability of event

    occurring is = . The conditional probability of occurring given that has

    occurred is = .

    a. Determine the following probabilities.

    (i) ( ) (ii) ( | ) (iii) ( ℎ) (iv) ( | ′)

    b. Determine ( ) showing your working.

    Soln:

    a. (i) ∩ = × = × =

    (ii) = ( ∩ )( )

    = ⁄⁄ =

    (iii) ℎ = + − ∩ = + − =

  • (iv) + = 1 → = 1 − ( | )

    = 1 − ∩ = 1 − ∩ = 1 − ⁄ ⁄⁄ = 1 − =

    b. = ( )

    = 1 − + ∩ = 1 − + =

    See diagram belowe:

  • 9. a. The probability that an event occurs is = 0.4. is an event independent of and ℎ = 0.7. Find ( ).

    b. and are two events such that = and = . Given that = , express in terms of

    (i) ( )(ii) ( )

    c. Given also that ℎ = , find the value of .

    Soln:

    a. ℎ = + − ( ∩ )

    But, and are independent events, therefore, ∩ = ( ).

    So, ℎ = + − ( )→ ℎ − ( ) = (1 − )→ = ( ) = . .

    .= .

    .=

  • 9. b. and are two events such that = and = . Given that = , express in terms of

    (i) ( )(ii) ( )

    Soln:

    b. (i). | = ( ∩ )( )

    So, = ( ∩ )( | )

    = ⁄ = 5

    (ii). | = ( ∩ )( )

    So, = ( ∩ )( | )

    = ⁄ = 4

    c. ℎ = + − ( ∩ )

    So, = 5 + 4 − → = 8 → =

  • 10. A batch of 40 tickets for an event at a stadium consists of 10 tickets for the North stand, 14 tickets for the East stand and 16 tickets for the West stand. A ticket is taken from the batch at random and issued to a person, . Write down the probability that has a ticket for the North stand.

    A second ticket is taken from the batch at random and issued to . Subsequently, a third ticket is taken from the batch at random and issued to . Calculate the probability that

    (a) Both and have tickets for the North stand(b) , and all have tickets for the same stand(c) two of , and have tickets for one stand and the other of , and has a ticket for a different stand.

    Soln:

    has a ticket for the North stand = =

    a. ℎ ℎ = × =

  • (b) , and all have tickets for the same stand:

    , ℎ ℎ =, ℎ ℎ +, ℎ +, ℎ

    , ℎ ℎ =× × + × × +

    × × = 0.012145 + 0.03684 + 0.05668 = 0.105665 ≈ 0.1057

  • (c) two of , and have tickets for one stand and the other of , and has a ticket for a different stand:

    Let be the event that describes (c).

    = ( ℎ ) × ( ℎ ) + ( ℎ ) × ( ℎ ) or East ( North/West) or West ( North/East)

    + ( ) × ( ℎ ℎ )+ ( ) × ( ℎ )

    or North ( East/West) or West ( North/East)+ ( ) × ( ℎ ℎ ) + × ℎ × 3

    or North ( East/West) or East ( North/West)

    = × × + × ×

    + × × + × ×

    + × × + × ×

    = 0.021255 + 0.024291 + 0.030702 + 0.049123 + 0.040486 + 0.05668 × 3= 0.222536 × 3 ≈ 0.6676

  • 11. In a lottery there were 24 prizes allocated at random to 24 prize winners. Ann, Ben and Cal are three of the prize winners. Of the prizes, 4 are cars, 8 are bicycles and 12 are watches. Show that the probability that Ann gets a car and Ben gets a bicycle or a watch is .

    Giving each answer either as a fraction or a decimal correct to 3 significant figures, finda. the probability that both Ann and Ben get cars, given that Cal gets a carb. the probability that either Ann or Cal (or both) gets a carc. the probability that Ann gets a car and Ben gets a car or a bicycled. the probability that Ann gets a car given that Ben gets either a car or a bicycle

    Soln:

    a. + =

    b. ℎ = × =

    ∴ ℎ ℎ = 1 − =

  • c. ∙ + ∙ = =

    d. ∙ + ∙ + ∙ + ∙ = =

    Remaining solutions to be uploaded soon. Keep checking back.

    Source: John Gabriel