Estimate a Bernoulli probability and work back from it

Question MM3-234 Simple familiar 5 marks Technology-active

Unit 3 Topic 5: Discrete random variables

The question

A factory tests phone screens. Each screen is recorded as 1 if it has a defect and 0 if it does not.

The results for a random sample of 40 screens are shown.

0010000000
0000100010
0000000100
1000001000

Let \(X=1\) if a randomly chosen screen from the factory has a defect and \(X=0\) if it does not.

  1. (a) Use the sample to estimate \(p=P(X=1)\). [1 mark]
  2. (b) Use your estimate to determine the mean and standard deviation of \(X\). [2 marks]
  3. (c) A second factory makes screens for which the standard deviation of \(X\) is 0.25. The probability that one of its screens has a defect is less than 0.5. Use technology to determine this probability, correct to three decimal places. [2 marks]

The idea. The sample proportion estimates \(p\). For a Bernoulli variable the standard deviation is \(\sqrt{p(1 - p)}\), so a given standard deviation gives a quadratic in \(p\) with two roots, and the question tells you which to keep.

Figure for question MM3-234The curve sigma equals the square root of p times 1 minus p, an arch from 0 to 1 peaking at 0.5. A point on it at p equals 0.15 has height about 0.36. A horizontal line at 0.25 crosses the arch at p equals about 0.067 and 0.933; the crossing at 0.067 is highlighted.0.20.40.60.81.00.10.20.30.40.5p\sigma
Two values of \(p\) give \(\sigma = 0.25\). Only one is below 0.5.

The answer, one mark at a time

  1. Part (a)

    Count the 1s in the table: there are 6 defects out of 40 screens. The sample proportion is your estimate of \(p\).

    \[\text{Defects: } 1 + 2 + 1 + 2 = 6\]
    \[p \approx \frac{6}{40} = 0.15\]

    determines the estimate [1 mark]

  2. Part (b)

    \(X\) is Bernoulli, so its mean is \(p\).

    \[E(X) = p = 0.15\]

    determines the mean [1 mark]

  3. The variance is \(p(1 - p)\), and the standard deviation is its square root.

    \[\sigma = \sqrt{p(1 - p)} = \sqrt{0.15 \times 0.85}\]
    \[\sigma = \sqrt{0.1275} \approx 0.36\]

    determines the standard deviation [1 mark]

  4. Part (c)

    Set the Bernoulli standard deviation equal to 0.25, then square both sides to get an equation for \(p\).

    \[\sqrt{p(1 - p)} = 0.25\]
    \[p(1 - p) = 0.0625\]

    forms an equation for \(p\) [1 mark]

  5. Solve this with your calculator's solver. It gives two values. The defect probability is less than 0.5, so keep the smaller one.

    \[p^{2} - p + 0.0625 = 0\]
    \[p \approx 0.067 \quad\text{or}\quad p \approx 0.933\]
    \[p < 0.5 \Rightarrow p = 0.067\]

    determines the probability, rejecting the solution above 0.5 [1 mark]

Answer

(a)\(\displaystyle p \approx 0.15\)
(b)\(\displaystyle E(X) = 0.15, \quad \sigma \approx 0.36\)
(c)\(\displaystyle p = 0.067\)

Watch for. In part (c), don't leave both roots. The question says the probability is less than 0.5, so you must reject 0.933.