A bakery produces batches of cookies. On average, the proportion of flawed cookies produced is pp, where 0<p<10 < p < 1. The cookies are packed in boxes of 20. The number of flawed cookies in a box of cookies is denoted by CC.

  1. (a)

    State, in context, one assumption needed for the number of flawed cookies in a box to be well-modelled by a binomial distribution.

  2. (b)

    Given that P(C=0 or 1)=0.15P(C = 0 \text{ or } 1) = 0.15, write down an equation for the value of pp, and find this value numerically.

  3. For (c) and (d), take p=0.08p = 0.08.

  4. (c)

    Ten boxes of cookies are randomly chosen. As part of the bakery's quality control process, a box of cookies will be accepted if it contains fewer than 4 flawed cookies, otherwise it will be rejected. Find the probability there are at least 2 but no more than 5 rejected boxes.

  5. (d)

    A random sample of 15 boxes of cookies is taken and 3 of the boxes are found to be rejected. Find the probability that the third rejected box occurs on the fifteenth box.

Work through it with AI →

It won't just hand you the answer — it asks where you're stuck.How the checker works

Worked solution

9(a)

1. State one assumption for the binomial model in the context of the problem.

Assumption: Whether a cookie is flawed is independent of whether any other cookie in the box is flawed.

(Alternatively: The probability pp of a cookie being flawed is constant for all cookies in the box.)

Answer

Whether a cookie is flawed is independent of whether any other cookie in the box is flawed.

9(b)

1. Formulate the equation for $p$ using the binomial probability formula.

C∼B(20,p)C \sim \text{B}(20, p)
Given P(C=0 or 1)=0.15P(C = 0 \text{ or } 1) = 0.15,
(200)p0(1−p)20+(201)p1(1−p)19=0.15\binom{20}{0}p^0(1-p)^{20} + \binom{20}{1}p^1(1-p)^{19} = 0.15
(1−p)20+20p(1−p)19=0.15(1-p)^{20} + 20p(1-p)^{19} = 0.15

2. Solve the resulting equation numerically using a graphing calculator.

Using a graphing calculator to solve the equation (1−p)20+20p(1−p)19−0.15=0(1-p)^{20} + 20p(1-p)^{19} - 0.15 = 0 for 0<p<10 < p < 1,
p≈0.15901p \approx 0.15901
p=0.159 (to 3 s.f.)p = 0.159 \text{ (to 3 s.f.)}

Answer

Equation: (1−p)20+20p(1−p)19=0.15(1-p)^{20} + 20p(1-p)^{19} = 0.15
p=0.159p = 0.159

9(c)

1. Find the probability that a single box of cookies is rejected.

Let CC be the number of flawed cookies in a box.
C∼B(20,0.08)C \sim \text{B}(20, 0.08)

A box is rejected if it contains 4 or more flawed cookies.
P(box rejected)=P(C≥4)P(\text{box rejected}) = P(C \ge 4)
P(C≥4)=1−P(C≤3)P(C \ge 4) = 1 - P(C \le 3)
Using a graphing calculator,
P(C≥4)≈0.070615P(C \ge 4) \approx 0.070615

2. Define the binomial distribution for the number of rejected boxes.

Let RR be the number of rejected boxes out of 10 randomly chosen boxes.
R∼B(10,0.070615)R \sim \text{B}(10, 0.070615)

3. Calculate the probability of having between 2 and 5 rejected boxes inclusive.

We require P(2≤R≤5)P(2 \le R \le 5).
P(2≤R≤5)=P(R≤5)−P(R≤1)P(2 \le R \le 5) = P(R \le 5) - P(R \le 1)

Using a graphing calculator,
P(2≤R≤5)≈0.15384P(2 \le R \le 5) \approx 0.15384
≈0.154 (to 3 s.f.)\approx 0.154 \text{ (to 3 s.f.)}

Answer

0.154

9(d)

1. Set up the conditional probability relation based on the given events.

Let BB be the event that exactly 33 boxes are rejected out of the sample of 1515.
Let AA be the event that the 33rd rejected box is the 1515th box.
Since AA implies that there are exactly 33 rejected boxes in total, A⊆BA \subseteq B, which means P(A∩B)=P(A)P(A \cap B) = P(A).
We need to find P(A∣B)=P(A)P(B)P(A|B) = \frac{P(A)}{P(B)}.

2. Formulate expressions for $P(A)$ and $P(B)$.

Let prp_r be the probability of a single box being rejected.
The probability of exactly 33 rejected boxes out of 1515 is given by the binomial distribution:
P(B)=(153)pr3(1−pr)12P(B) = \binom{15}{3} p_r^3 (1-p_r)^{12}
For event AA to occur, there must be exactly 22 rejected boxes in the first 1414 boxes, followed by a rejected 1515th box:
P(A)=[(142)pr2(1−pr)12]×pr=(142)pr3(1−pr)12P(A) = \left[ \binom{14}{2} p_r^2 (1-p_r)^{12} \right] \times p_r = \binom{14}{2} p_r^3 (1-p_r)^{12}

3. Calculate the final conditional probability.

P(A∣B)=(142)pr3(1−pr)12(153)pr3(1−pr)12P(A|B) = \frac{\binom{14}{2} p_r^3 (1-p_r)^{12}}{\binom{15}{3} p_r^3 (1-p_r)^{12}}
P(A∣B)=(142)(153)=91455=15P(A|B) = \frac{\binom{14}{2}}{\binom{15}{3}} = \frac{91}{455} = \frac{1}{5}

Answer

15\frac{1}{5}

AI analysis — may contain mistakes.

Worked this one out on paper? Snap your steps and Gigle's AI math checker will circle the step where it went wrong.

More questions on this topic

  1. 1Two brothers Kai and Leo are duathlon (running and cycling) athletes who train regularly. For each day, the probability…
  2. 2In a standardized assessment test conducted annually, it is found that, on average, 1 in 5 students who sit for the test…
  3. 3A fruit seller sources his oranges from a supplier with a large plantation where 1% of the oranges are rotten. The suppl…
  4. 4A credit card company has a special 24-hour telephone hotline for customers to either report a lost credit card or to re…
  5. 5By the end of 2022, the percentages of a population who has received V dose(s) of Covid-19 vaccine are shown in the tabl…