How to use these solu­tions

These are step-by-step worked solu­tions to the twelve ques­tions of Prob­a­bil­ity: Mixed Prac­tice. Try each ques­tion on your own first, then com­pare. Before cal­cu­lat­ing any­thing, decide which tool the ques­tion needs: a con­di­tional prob­a­bil­ity P(A∣B)=P(A∩B)P(B)\displaystyle P(A \mid B) = \frac{P(A \cap B)}{P(B)}, the mul­ti­pli­ca­tion rule for inde­pen­dent events, the the­o­rem of total prob­a­bil­ity, or Bayes' the­o­rem to reverse a con­di­tion. Each solu­tion below starts by mak­ing that choice.

Ques­tion 1: Inter­sec­tion, con­di­tional prob­a­bil­ity and a test for inde­pen­dence

The prob­lem

P(A)=0.7P(A) = 0.7, P(B)=0.5P(B) = 0.5 and P(A∪B)=0.85P(A \cup B) = 0.85. Find P(A∩B)P(A \cap B) and P(A∣B)P(A \mid B), and decide whether AA and BB are inde­pen­dent.

Under­stand­ing the prob­lem

You know the prob­a­bil­ity of each event and of "AA or BB". You must find the prob­a­bil­ity of "both AA and BB", then the prob­a­bil­ity of AA once you know BB has hap­pened, and finally check the inde­pen­dence con­di­tion P(A∩B)=P(A) P(B)P(A \cap B) = P(A)\,P(B).

The idea

Use the addi­tion rule P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B) to find the inter­sec­tion, then the def­i­n­i­tion of con­di­tional prob­a­bil­ity.

Step-by-step solu­tion

Step 1. Rearrange the addi­tion rule for P(A∩B)P(A \cap B).

P(A∩B)=P(A)+P(B)−P(A∪B)=0.7+0.5−0.85=0.35P(A \cap B) = P(A) + P(B) - P(A \cup B) = 0.7 + 0.5 - 0.85 = 0.35

Step 2. Con­di­tional prob­a­bil­ity of AA given BB.

P(A∣B)=P(A∩B)P(B)=0.350.5=0.7\displaystyle P(A \mid B) = \frac{P(A \cap B)}{P(B)} = \frac{0.35}{0.5} = 0.7

Step 3. Test inde­pen­dence: com­pare P(A∩B)P(A \cap B) with P(A)P(B)P(A)P(B).

P(A) P(B)=0.7×0.5=0.35=P(A∩B)P(A)\,P(B) = 0.7 \times 0.5 = 0.35 = P(A \cap B)

They are equal, so AA and BB are inde­pen­dent.

Check­ing the answer

Another way to see it: P(A∣B)=0.7=P(A)P(A \mid B) = 0.7 = P(A). Know­ing BB hap­pened does not change the chance of AA, which is exactly what inde­pen­dence means.

Answer

P(A∩B)=0.35P(A \cap B) = 0.35; P(A∣B)=0.7P(A \mid B) = 0.7; AA and BB are inde­pen­dent, since 0.35=0.7×0.50.35 = 0.7 \times 0.5.

Ques­tion 2: Draw­ing two cards with­out replace­ment

The prob­lem

Two cards are drawn one after the other with­out replace­ment from a pack of 5252. Find (a) the prob­a­bil­ity that both are aces, and (b) the prob­a­bil­ity that the sec­ond is an ace given that the first was not.

Under­stand­ing the prob­lem

"With­out replace­ment" means the first card is not put back, so the pack for the sec­ond draw has 5151 cards, and what it con­tains depends on the first card. There are 44 aces in a pack.

The idea

Use the mul­ti­pli­ca­tion rule P(E1∩E2)=P(E1) P(E2∣E1)P(E_1 \cap E_2) = P(E_1)\,P(E_2 \mid E_1), work­ing out the sec­ond prob­a­bil­ity from the pack that is left.

Step-by-step solu­tion

Part (a)

Step 1. First card an ace: 44 aces out of 5252 cards.

P(first ace)=452\displaystyle P(\text{first ace}) = \frac{4}{52}

Step 2. Given the first was an ace, 33 aces remain among 5151 cards.

P(second ace∣first ace)=351\displaystyle P(\text{second ace} \mid \text{first ace}) = \frac{3}{51}

Step 3. Mul­ti­ply and sim­plify.

P(both aces)=452⋅351=122652=1221\displaystyle P(\text{both aces}) = \frac{4}{52}\cdot\frac{3}{51} = \frac{12}{2652} = \frac{1}{221}

Part (b)

Step 1. If the first card was not an ace, all 44 aces are still in the 5151 cards that remain.

P(second ace∣first not ace)=451\displaystyle P(\text{second ace} \mid \text{first not ace}) = \frac{4}{51}

Check­ing the answer

Count­ing check for (a): the num­ber of ways to choose 22 aces is 4C2=6^4C_2 = 6, and to choose any 22 cards is 52C2=1326^{52}C_2 = 1326; 61326=1221\displaystyle \tfrac{6}{1326} = \tfrac{1}{221}.

Answer

(a) 1221\displaystyle \frac{1}{221}; (b) 451\displaystyle \frac{4}{51}.

Ques­tion 3: Wait­ing for the first six

The prob­lem

A die is thrown until a six appears. Find the prob­a­bil­ity that it takes exactly three throws.

Under­stand­ing the prob­lem

"Exactly three throws" means the first throw is not a six, the sec­ond is not a six, and the third is a six. The throws are inde­pen­dent of each other.

The idea

Write the event as a sequence of inde­pen­dent out­comes and mul­ti­ply their prob­a­bil­i­ties.

Step-by-step solu­tion

Step 1. Prob­a­bil­ity of not a six on one throw: 56\displaystyle \frac{5}{6}. Prob­a­bil­ity of a six: 16\displaystyle \frac{1}{6}.

Step 2. The event is "not six, not six, six". Mul­ti­ply, since the throws are inde­pen­dent.

P=56⋅56⋅16=25216\displaystyle P = \frac{5}{6}\cdot\frac{5}{6}\cdot\frac{1}{6} = \frac{25}{216}

Check­ing the answer

25216≈0.116\displaystyle \tfrac{25}{216} \approx 0.116, which is less than the chance of a six on the first throw (≈0.167\approx 0.167), as it should be: wait­ing longer is less likely.

Answer

(56)216=25216\displaystyle \left(\frac{5}{6}\right)^2\frac{1}{6} = \frac{25}{216}.

Com­mon mis­take to avoid

Answer­ing (16)3\displaystyle \left(\tfrac{1}{6}\right)^3 or for­get­ting that the first two throws must fail.

Ques­tion 4: Exactly one of three peo­ple solves a puz­zle

The prob­lem

Three peo­ple inde­pen­dently try a puz­zle, with suc­cess prob­a­bil­i­ties 12\displaystyle \tfrac{1}{2}, 13\displaystyle \tfrac{1}{3} and 15\displaystyle \tfrac{1}{5}. Find the prob­a­bil­ity that exactly one of them solves it.

Under­stand­ing the prob­lem

"Exactly one" means one per­son suc­ceeds and the other two fail. There are three ways this can hap­pen, depend­ing on who the suc­cess­ful per­son is. These three ways can­not hap­pen together, so their prob­a­bil­i­ties add.

The idea

For each per­son, mul­ti­ply their suc­cess prob­a­bil­ity by the fail­ure prob­a­bil­i­ties of the other two (inde­pen­dence). Then add the three cases.

Step-by-step solu­tion

Step 1. Fail­ure prob­a­bil­i­ties: 1−12=12\displaystyle 1 - \tfrac{1}{2} = \tfrac{1}{2}, 1−13=23\displaystyle 1 - \tfrac{1}{3} = \tfrac{2}{3}, 1−15=45\displaystyle 1 - \tfrac{1}{5} = \tfrac{4}{5}.

Step 2. Only the first suc­ceeds.

12⋅23⋅45=830\displaystyle \frac{1}{2}\cdot\frac{2}{3}\cdot\frac{4}{5} = \frac{8}{30}

Step 3. Only the sec­ond suc­ceeds.

12⋅13⋅45=430\displaystyle \frac{1}{2}\cdot\frac{1}{3}\cdot\frac{4}{5} = \frac{4}{30}

Step 4. Only the third suc­ceeds.

12⋅23⋅15=230\displaystyle \frac{1}{2}\cdot\frac{2}{3}\cdot\frac{1}{5} = \frac{2}{30}

Step 5. Add the three mutu­ally exclu­sive cases.

8+4+230=1430=715\displaystyle \frac{8 + 4 + 2}{30} = \frac{14}{30} = \frac{7}{15}

Check­ing the answer

The prob­a­bil­ity that nobody solves it is 12⋅23⋅45=830\displaystyle \tfrac{1}{2}\cdot\tfrac{2}{3}\cdot\tfrac{4}{5} = \tfrac{8}{30}. The prob­a­bil­ity that two or more solve it works out to 830\displaystyle \tfrac{8}{30} as well (4+1+2+130\displaystyle \tfrac{4 + 1 + 2 + 1}{30}, count­ing "first and sec­ond only", "first and third only", "sec­ond and third only" and "all three"). Then 830+1430+830=1\displaystyle \tfrac{8}{30} + \tfrac{14}{30} + \tfrac{8}{30} = 1.

Answer

715\displaystyle \frac{7}{15}.

Ques­tion 5: Three chil­dren, given at least one boy

The prob­lem

A fam­ily has three chil­dren. Given that at least one is a boy, find the prob­a­bil­ity that all three are boys.

Under­stand­ing the prob­lem

Assume each child is equally likely to be a boy or a girl, inde­pen­dently. The sam­ple space has 23=82^3 = 8 equally likely out­comes (BBB, BBG, …, GGG). You are told that at least one child is a boy, which removes only GGG.

The idea

Use P(A∣B)=P(A∩B)P(B)\displaystyle P(A \mid B) = \frac{P(A \cap B)}{P(B)} with AA = "all boys" and BB = "at least one boy". Since "all boys" already includes "at least one boy", A∩B=AA \cap B = A.

Step-by-step solu­tion

Step 1. P(A)=P(BBB)=18\displaystyle P(A) = P(BBB) = \frac{1}{8}.

Step 2. P(B)=1−P(GGG)=1−18=78\displaystyle P(B) = 1 - P(GGG) = 1 - \frac{1}{8} = \frac{7}{8}.

Step 3. A∩B=AA \cap B = A, so

P(A∣B)=1/87/8=17\displaystyle P(A \mid B) = \frac{1/8}{7/8} = \frac{1}{7}

Check­ing the answer

Count directly: of the 77 out­comes with at least one boy, only BBB has three boys. So the answer is 17\displaystyle \tfrac{1}{7}.

Answer

17\displaystyle \frac{1}{7}.

Ques­tion 6: Bayes' the­o­rem with glasses

The prob­lem

In a class, 45%45\% of stu­dents are girls. 20%20\% of girls and 30%30\% of boys wear glasses. A stu­dent cho­sen at ran­dom wears glasses. Find the prob­a­bil­ity that the stu­dent is a girl.

Under­stand­ing the prob­lem

You are given the chance of glasses for girls and for boys, but you are asked the reverse: the chance of a girl given glasses. Revers­ing a con­di­tion is the job of Bayes' the­o­rem. Boys are 100%−45%=55%100\% - 45\% = 55\% of the class.

The idea

Let GG = girl, BB = boy, EE = wears glasses. Bayes' the­o­rem:

P(G∣E)=P(G) P(E∣G)P(G) P(E∣G)+P(B) P(E∣B)\displaystyle P(G \mid E) = \frac{P(G)\,P(E \mid G)}{P(G)\,P(E \mid G) + P(B)\,P(E \mid B)}

Step-by-step solu­tion

Step 1. Write down the given val­ues.

P(G)=0.45,P(B)=0.55,P(E∣G)=0.2,P(E∣B)=0.3P(G) = 0.45,\quad P(B) = 0.55,\quad P(E \mid G) = 0.2,\quad P(E \mid B) = 0.3

Step 2. Prob­a­bil­ity of a girl with glasses.

P(G) P(E∣G)=0.45×0.2=0.09P(G)\,P(E \mid G) = 0.45 \times 0.2 = 0.09

Step 3. Prob­a­bil­ity of a boy with glasses.

P(B) P(E∣B)=0.55×0.3=0.165P(B)\,P(E \mid B) = 0.55 \times 0.3 = 0.165

Step 4. Total prob­a­bil­ity of glasses.

P(E)=0.09+0.165=0.255P(E) = 0.09 + 0.165 = 0.255

Step 5. Apply Bayes' the­o­rem and sim­plify (0.09=901000\displaystyle 0.09 = \tfrac{90}{1000}, 0.255=2551000\displaystyle 0.255 = \tfrac{255}{1000}, and 90255=617\displaystyle \tfrac{90}{255} = \tfrac{6}{17}).

P(G∣E)=0.090.255=90255=617\displaystyle P(G \mid E) = \frac{0.09}{0.255} = \frac{90}{255} = \frac{6}{17}

Check­ing the answer

Imag­ine 10001000 stu­dents: 450450 girls, of whom 9090 wear glasses; 550550 boys, of whom 165165 wear glasses. Of the 255255 with glasses, 9090 are girls: 90255=617≈0.35\displaystyle \tfrac{90}{255} = \tfrac{6}{17} \approx 0.35.

Answer

P(girl∣glasses)=617\displaystyle P(\text{girl} \mid \text{glasses}) = \frac{6}{17}.

Ques­tion 7: Which bag did the red ball come from?

The prob­lem

Bag A has 44 red and 66 black balls; bag B has 77 red and 33 black. A die is thrown: on 11 or 22 a ball is drawn from A, oth­er­wise from B. The ball drawn is red. Find the prob­a­bil­ity that it came from bag A.

Under­stand­ing the prob­lem

The die decides the bag: bag A with prob­a­bil­ity 26=13\displaystyle \tfrac{2}{6} = \tfrac{1}{3}, bag B with prob­a­bil­ity 46=23\displaystyle \tfrac{4}{6} = \tfrac{2}{3}. You know the result (red) and want the prob­a­bil­ity of the cause (bag A). That is Bayes' the­o­rem.

The idea

Let E1E_1 = bag A cho­sen, E2E_2 = bag B cho­sen, RR = red ball. Com­pute P(E1)P(R∣E1)P(E_1)P(R \mid E_1) and P(E2)P(R∣E2)P(E_2)P(R \mid E_2), then divide the first by their sum.

Step-by-step solu­tion

Step 1. Prob­a­bil­i­ties of choos­ing each bag.

P(E1)=13,P(E2)=23\displaystyle P(E_1) = \frac{1}{3}, \qquad P(E_2) = \frac{2}{3}

Step 2. Prob­a­bil­ity of red from each bag.

P(R∣E1)=410=25,P(R∣E2)=710\displaystyle P(R \mid E_1) = \frac{4}{10} = \frac{2}{5}, \qquad P(R \mid E_2) = \frac{7}{10}

Step 3. Mul­ti­ply for each path.

P(E1)P(R∣E1)=13⋅25=215,P(E2)P(R∣E2)=23⋅710=715\displaystyle P(E_1)P(R \mid E_1) = \frac{1}{3}\cdot\frac{2}{5} = \frac{2}{15}, \qquad P(E_2)P(R \mid E_2) = \frac{2}{3}\cdot\frac{7}{10} = \frac{7}{15}

Step 4. Bayes' the­o­rem.

P(E1∣R)=2/152/15+7/15=29\displaystyle P(E_1 \mid R) = \frac{2/15}{2/15 + 7/15} = \frac{2}{9}

Check­ing the answer

The total prob­a­bil­ity of red is 915=35\displaystyle \tfrac{9}{15} = \tfrac{3}{5}. Bag A is cho­sen less often and has fewer red balls, so a small answer like 29≈0.22\displaystyle \tfrac{2}{9} \approx 0.22 makes sense.

Answer

P(bag A∣red)=29\displaystyle P(\text{bag A} \mid \text{red}) = \frac{2}{9}.

Ques­tion 8: Inde­pen­dent events and their com­ple­ments

The prob­lem

AA and BB are inde­pen­dent, P(A)=0.4P(A) = 0.4 and P(A∩B)=0.16P(A \cap B) = 0.16. Find P(B)P(B) and P(A′∩B′)P(A' \cap B').

Under­stand­ing the prob­lem

Inde­pen­dence gives P(A∩B)=P(A) P(B)P(A \cap B) = P(A)\,P(B), which lets you find P(B)P(B). A′∩B′A' \cap B' means "nei­ther AA nor BB". If AA and BB are inde­pen­dent, so are A′A' and B′B'.

The idea

Solve 0.16=0.4×P(B)0.16 = 0.4 \times P(B), then mul­ti­ply the com­ple­ment prob­a­bil­i­ties.

Step-by-step solu­tion

Step 1. Use inde­pen­dence.

P(A) P(B)=P(A∩B)⟹P(B)=0.160.4=0.4\displaystyle P(A)\,P(B) = P(A \cap B) \quad\Longrightarrow\quad P(B) = \frac{0.16}{0.4} = 0.4

Step 2. Com­ple­ments: P(A′)=1−0.4=0.6P(A') = 1 - 0.4 = 0.6 and P(B′)=1−0.4=0.6P(B') = 1 - 0.4 = 0.6.

Step 3. Since A′A' and B′B' are inde­pen­dent,

P(A′∩B′)=P(A′) P(B′)=0.6×0.6=0.36P(A' \cap B') = P(A')\,P(B') = 0.6 \times 0.6 = 0.36

Check­ing the answer

With­out using inde­pen­dence of com­ple­ments: P(A∪B)=0.4+0.4−0.16=0.64P(A \cup B) = 0.4 + 0.4 - 0.16 = 0.64, so P(A′∩B′)=1−P(A∪B)=0.36P(A' \cap B') = 1 - P(A \cup B) = 0.36. Same answer.

Answer

P(B)=0.4P(B) = 0.4; P(A′∩B′)=0.36P(A' \cap B') = 0.36.

Ques­tion 9: Bayes' the­o­rem for an insur­ance claim

The prob­lem

An insur­ance com­pany insures 30003000 scooter rid­ers, 50005000 car dri­vers and 20002000 truck dri­vers. The prob­a­bil­i­ties of an acci­dent are 0.020.02, 0.040.04 and 0.100.10 respec­tively. One of the insured peo­ple has an acci­dent. Find the prob­a­bil­ity that the per­son is a scooter rider.

Under­stand­ing the prob­lem

There are 3000+5000+2000=100003000 + 5000 + 2000 = 10000 insured peo­ple. You know the acci­dent chance for each group, and you want the reverse: given an acci­dent, the chance the per­son is from the scooter group. That is Bayes' the­o­rem.

The idea

Let E1,E2,E3E_1, E_2, E_3 be "scooter rider", "car dri­ver", "truck dri­ver", and AA = acci­dent. Then

P(E1∣A)=P(E1)P(A∣E1)∑iP(Ei)P(A∣Ei)\displaystyle P(E_1 \mid A) = \frac{P(E_1)P(A \mid E_1)}{\sum_i P(E_i)P(A \mid E_i)}

Work­ing with the actual num­bers of expected acci­dents is sim­pler and gives the same ratio.

Step-by-step solu­tion

Step 1. Prob­a­bil­i­ties of each group.

P(E1)=300010000=0.3,P(E2)=0.5,P(E3)=0.2\displaystyle P(E_1) = \frac{3000}{10000} = 0.3,\quad P(E_2) = 0.5,\quad P(E_3) = 0.2

Step 2. Prod­ucts for each group.

0.3×0.02=0.006,0.5×0.04=0.02,0.2×0.10=0.020.3 \times 0.02 = 0.006,\qquad 0.5 \times 0.04 = 0.02,\qquad 0.2 \times 0.10 = 0.02

Step 3. Total prob­a­bil­ity of an acci­dent.

P(A)=0.006+0.02+0.02=0.046P(A) = 0.006 + 0.02 + 0.02 = 0.046

Step 4. Bayes' the­o­rem.

P(E1∣A)=0.0060.046=646=323\displaystyle P(E_1 \mid A) = \frac{0.006}{0.046} = \frac{6}{46} = \frac{3}{23}

Check­ing the answer

In peo­ple: expected acci­dents are 3000×0.02=603000 \times 0.02 = 60 scooter rid­ers, 5000×0.04=2005000 \times 0.04 = 200 car dri­vers and 2000×0.10=2002000 \times 0.10 = 200 truck dri­vers, 460460 in all. The share from scoot­ers is 60460=323≈0.13\displaystyle \tfrac{60}{460} = \tfrac{3}{23} \approx 0.13.

Answer

323\displaystyle \frac{3}{23}.

Ques­tion 10: A head fol­lowed by a six

The prob­lem

A coin is tossed. If it shows heads, a die is thrown and the num­ber noted; if tails, a card is drawn from a pack. Find the prob­a­bil­ity of a head fol­lowed by a six.

Under­stand­ing the prob­lem

The event needs two things in order: the coin shows heads, and then the die (which is thrown only after heads) shows six. The card branch is irrel­e­vant to this event.

The idea

Mul­ti­pli­ca­tion rule: P(H∩6)=P(H) P(6∣H)P(H \cap 6) = P(H)\,P(6 \mid H).

Step-by-step solu­tion

Step 1. P(H)=12\displaystyle P(H) = \frac{1}{2}.

Step 2. Given heads, the die is fair: P(6∣H)=16\displaystyle P(6 \mid H) = \frac{1}{6}.

Step 3. Mul­ti­ply.

P(H∩6)=12⋅16=112\displaystyle P(H \cap 6) = \frac{1}{2}\cdot\frac{1}{6} = \frac{1}{12}

Check­ing the answer

On the heads branch there are 66 equally likely out­comes H1,…,H6H1, \ldots, H6, shar­ing prob­a­bil­ity 12\displaystyle \tfrac{1}{2}, so each has 112\displaystyle \tfrac{1}{12}.

Answer

112\displaystyle \frac{1}{12}.

Ques­tion 11: Mutu­ally exclu­sive events can­not be inde­pen­dent

The prob­lem

Prove that mutu­ally exclu­sive events AA and BB with P(A)>0P(A) > 0 and P(B)>0P(B) > 0 can­not be inde­pen­dent.

Under­stand­ing the prob­lem

You must show that two con­di­tions can­not both hold. Mutu­ally exclu­sive means A∩B=∅A \cap B = \varnothing. Inde­pen­dent means P(A∩B)=P(A) P(B)P(A \cap B) = P(A)\,P(B). Both prob­a­bil­i­ties are given to be pos­i­tive.

The idea

Com­pute P(A∩B)P(A \cap B) in two ways, from each con­di­tion, and show the results clash.

Step-by-step solu­tion

Step 1. Since AA and BB are mutu­ally exclu­sive, A∩B=∅A \cap B = \varnothing, so

P(A∩B)=P(∅)=0P(A \cap B) = P(\varnothing) = 0

Step 2. Since P(A)>0P(A) > 0 and P(B)>0P(B) > 0, their prod­uct is pos­i­tive.

P(A) P(B)>0P(A)\,P(B) > 0

Step 3. So P(A∩B)=0≠P(A) P(B)P(A \cap B) = 0 \ne P(A)\,P(B). The con­di­tion for inde­pen­dence fails, and AA and BB can­not be inde­pen­dent.

Check­ing the answer

Exam­ple: on a die, A={1}A = \{1\} and B={2}B = \{2\}. They are mutu­ally exclu­sive; P(A)P(B)=136\displaystyle P(A)P(B) = \tfrac{1}{36} but P(A∩B)=0P(A \cap B) = 0. Know­ing AA hap­pened tells you for cer­tain that BB did not, which is the oppo­site of inde­pen­dence.

Answer

P(A∩B)=0P(A \cap B) = 0, whereas P(A)P(B)>0P(A)P(B) > 0; since these dif­fer, AA and BB are not inde­pen­dent.

Ques­tion 12: Bat­ter­ies tested with­out replace­ment

The prob­lem

A shelf has 33 faulty and 77 good bat­ter­ies. Two are tested one after the other with­out replace­ment. Given that the sec­ond is good, find the prob­a­bil­ity that the first was faulty.

Under­stand­ing the prob­lem

Let F1F_1 = first bat­tery faulty, G1G_1 = first good, G2G_2 = sec­ond good. You want P(F1∣G2)P(F_1 \mid G_2): a con­di­tion on a later event, ask­ing about an ear­lier one. That is a rever­sal, so use the con­di­tional prob­a­bil­ity for­mula with the total prob­a­bil­ity of G2G_2.

The idea

P(F1∣G2)=P(F1∩G2)P(G2),\displaystyle P(F_1 \mid G_2) = \frac{P(F_1 \cap G_2)}{P(G_2)},

where P(G2)=P(F1)P(G2∣F1)+P(G1)P(G2∣G1)P(G_2) = P(F_1)P(G_2 \mid F_1) + P(G_1)P(G_2 \mid G_1) by total prob­a­bil­ity.

Step-by-step solu­tion

Step 1. Numer­a­tor: first faulty (310\displaystyle \tfrac{3}{10}), then, with 99 left of which 77 are good, sec­ond good (79\displaystyle \tfrac{7}{9}).

P(F1∩G2)=310⋅79=2190=730\displaystyle P(F_1 \cap G_2) = \frac{3}{10}\cdot\frac{7}{9} = \frac{21}{90} = \frac{7}{30}

Step 2. The other way to get a good sec­ond bat­tery: first good (710\displaystyle \tfrac{7}{10}), then 66 good among 99 (69\displaystyle \tfrac{6}{9}).

P(G1∩G2)=710⋅69=4290\displaystyle P(G_1 \cap G_2) = \frac{7}{10}\cdot\frac{6}{9} = \frac{42}{90}

Step 3. Total prob­a­bil­ity of G2G_2.

P(G2)=2190+4290=6390=710\displaystyle P(G_2) = \frac{21}{90} + \frac{42}{90} = \frac{63}{90} = \frac{7}{10}

(This matches the sym­me­try argu­ment: before any­thing is known, the sec­ond bat­tery is as likely to be good as the first, 710\displaystyle \tfrac{7}{10}.)

Step 4. Divide.

P(F1∣G2)=7/307/10=1030=13\displaystyle P(F_1 \mid G_2) = \frac{7/30}{7/10} = \frac{10}{30} = \frac{1}{3}

Check­ing the answer

Think of it this way: given the sec­ond bat­tery is good, the first is one of the other 99 bat­ter­ies, of which 33 are faulty and 66 good. So the chance it is faulty is 39=13\displaystyle \tfrac{3}{9} = \tfrac{1}{3}.

Answer

13\displaystyle \frac{1}{3}.