Porisma

Worked solution

Derive a cookie success rate and compare two minimum-packet methods

Temasek Bakery produces a large number of “lucky” cookies during the festive season. p%p\% of these cookies contains a winning slip. The cookies are sold by packets. Each packet consists of 8 randomly chosen cookies and the mean number of cookies with a winning slip per packet is 3.2.

(i) Find the probability that a randomly chosen packet contains at most 4 cookies with a winning slip. marks

(ii) Anand buys 12 packets of cookies. Find the probability that there are more than 10 packets that contain at most 4 cookies with a winning slip. marks

(iii) Beng decides to buy nn packets of cookies. Find the least value of nn such that the probability that there is at least one packet that contain exactly 4 cookies with a winning slip is more than 0.90. marks

[2017/TJC/MYE/II/5]

CJC · Review Problems · Question 10

Answer

p=40p=40. (i) 0.8260.826; (ii) 0.3570.357; (iii) least n=9n=9.

(i)

Let X∼B(8,p/100)X\sim B(8,p/100). The mean condition 8p/100=3.28p/100=3.2 gives p=40p=40, so X∼B(8,0.4)X\sim B(8,0.4). Then q=P(X≤4)=0.8263296q=P(X\leq4)=0.8263296, giving 0.8260.826 (3 s.f.).

How did this part go?

(ii)

Let Y∼B(12,q)Y\sim B(12,q) count packets with at most four winning slips. More than ten packets means Y≥11Y\geq11. Then P(Y>10)=P(Y=11)+P(Y=12)≈0.3569729192=0.357P(Y>10)=P(Y=11)+P(Y=12)\approx0.3569729192=0.357 (3 s.f.). The source intermediate approximation is .3569729193; the final rounded answer agrees.

How did this part go?

(iii) Method 1: logarithms

Here the packet event changes to exactly four slips: r=P(X=4)=0.2322432r=P(X=4)=0.2322432. For W∼B(n,r)W\sim B(n,r), require P(W≥1)>0.9P(W\geq1)>0.9, equivalently (1−r)n<0.1(1-r)^n<0.1. Hence n>ln⁡(0.1)/ln⁡(0.7677568)≈8.7125979n>\ln(0.1)/\ln(0.7677568)\approx8.7125979, giving least n=9n=9.

How did this part go?

(iii) Method 2: source probability table

The source checks the zero-success probability directly:

nnP(W=0)P(W=0)Comparison
80.12072282>0.1>0.1
90.092685766<0.1<0.1
100.0711601<0.1<0.1

The zero-success probability decreases as n increases. Eight fails and nine passes, so the least n is 9, agreeing with the logarithmic method.

How did this part go?

Common mistakes

Do not reuse the cumulative packet probability .8263296 for the exactly-four event .2322432.

Read the hint