Porisma

Worked solution

Find the largest sample meeting a strict probability bound

On average 1 in 100 light bulbs made by a factory is faulty. A sample contains n light bulbs and X counts the faulty bulbs. (i) State in context two assumptions needed for a binomial model. (ii) Require P(X=0)>0.5P(X=0)>0.5. Find the largest possible n.

CJC · Lecture · Example 4

(i) State assumptions about the bulbs

The probability that each selected bulb is faulty stays constant at 0.01, and whether a bulb is faulty is independent of whether the other bulbs are faulty. As the Teacher note emphasizes, describe independence of events or trials, not “independent probability”. When the needed binomial conditions are not supplied, make the modelling assumptions explicit.

How did this part go?

(ii) Formula and logarithm method

Let X count faulty bulbs among n, with X∼B(n,0.01)X\sim B(n,0.01). Then P(X=0)>0.5P(X=0)>0.5 gives (n0)(0.01)0(0.99)n>0.5\binom n0(0.01)^0(0.99)^n>0.5, hence 0.99n>0.50.99^n>0.5. Taking logs gives ln⁡(0.99n)>ln⁡0.5\ln(0.99^n)>\ln0.5, so nln⁡0.99>ln⁡0.5n\ln0.99>\ln0.5. Because ln⁡0.99<0\ln0.99<0, reverse the inequality when dividing: n<ln⁡0.5/ln⁡0.99=68.9676…n<\ln0.5/\ln0.99=68.9676\ldots. The largest integer n is 68. The sign reversal is the distinct Teacher warning.

How did this part go?

(ii) Calculator method and boundary evidence

  1. Press Y=. 2. Press 2nd, VARS, select A:binompdf(, then ENTER. 3. Set trials:X, p:0.01, x value:0, choose Paste, then ENTER. The Y-editor contains Y1=binompdf(X,0.01,0). Here the calculator’s X input stands for the varying trial count n. 4. Press 2nd, GRAPH and scroll to the first probability below 0.5. Present the source boundary table, as the Teacher note specifically requires:
Sample size nP(X=0)P(X=0)
670.50999
680.50489
690.49984

At 68 the probability exceeds 0.5; at 69 it does not. Thus the largest sample is 68. For a fixed p=0.01, the no-fault probability 0.99ⁿ decreases with n, so this boundary comparison establishes the largest value.

How did this part go?

Refine a coarse calculator search

The source continuation explains TblStart (starting value) and ΔTbl (row increment). Press 2nd, WINDOW, set TblStart=0, ΔTbl=10, with independent/dependent entries on Auto. Press 2nd, GRAPH. The table brackets the crossing between n=60 and n=70. The screenshot shows ERROR at n=0 in this calculator command; this is a calculator-domain limitation, not a claim that the mathematical zero-trial distribution is invalid. Next set TblStart=60, ΔTbl=1 through 2nd, WINDOW, then 2nd, GRAPH to locate the exact integer boundary. The full coarse and refined source tables are retained in the diagram.

How did this part go?

Compare your sketch

Find the largest integer sample size

  1. 1. Name the varying input

    The random variable counts faulty bulbs, while the calculator X below represents the sample size n. Require P(no faulty bulbs) > 0.5 with fault probability 0.01.

  2. 2. Enter the probability function

    Open Y=. Through 2nd → VARS → A:binompdf(, set trials to X, p to 0.01 and x value to 0. Select Paste, then ENTER.

    Y1
    binompdf(X,0.01,0)
  3. 3. Bracket the boundary

    Press 2nd → WINDOW for TABLE SETUP. Begin with TblStart=0 and ΔTbl=10, with independent and dependent entries on Auto. Open TABLE with 2nd → GRAPH; the crossing is between 60 and 70.

  4. 4. Refine to neighbouring integers

    Return to TABLE SETUP. Use TblStart=60 and ΔTbl=1, then reopen TABLE.

    Refine to neighbouring integers
    nDisplayed P(no faults)
    670.50999
    680.50489
    690.49984

    Largest qualifying integer: n = 68

The inequality is strict: 68 qualifies and 69 does not. For this fixed model, 0.99ⁿ decreases with n. The original coarse table shows ERROR at n=0 for this calculator command; that is not a mathematical rejection of the zero-trial distribution. Full source tables remain below.

View original calculator screens
Expand diagram

Use the scrollbars or arrow keys to inspect details.

Nine focused panels retain the source Y-editor, DISTR menu, binompdf wizard with trial variable X,p.01,x0, expression Y1, fine table 60–70, coarse table setup TblStart 0/delta 10 and table with source ERROR at 0, refined setup 60/delta 1 and final table. All relevant values retained. X on the calculator is the varied sample-size input, not the faulty-count random variable. Decorative chrome omitted.
Nine focused panels retain the source Y-editor, DISTR menu, binompdf wizard with trial variable X,p.01,x0, expression Y1, fine table 60–70, coarse table setup TblStart 0/delta 10 and table with source ERROR at 0, refined setup 60/delta 1 and final table. All relevant values retained. X on the calculator is the varied sample-size input, not the faulty-count random variable. Decorative chrome omitted.
Nine focused panels retain the source Y-editor, DISTR menu, binompdf wizard with trial variable X,p.01,x0, expression Y1, fine table 60–70, coarse table setup TblStart 0/delta 10 and table with source ERROR at 0, refined setup 60/delta 1 and final table. All relevant values retained. X on the calculator is the varied sample-size input, not the faulty-count random variable. Decorative chrome omitted.
Open original screens (new tab)

Common mistakes

Reverse the inequality when dividing by a negative logarithm; show the neighboring integer probabilities.

Read the hint