Probability and Statistics 201-SN1-RE • CEGEP, Montreal

Corrected exercises: binomial and normal distributions (201-SN1-RE)

Here are ten corrected exercises on the binomial distribution and the normal distribution from the CEGEP Probability and Statistics course 201-SN1-RE, in the Science program, preceded by a list of calculations.

What the set covers, the traps it targets

They cover the Bernoulli trial and the conditions of the binomial distribution, the calculation of P(X=k)P(X=k) and P(X≤k)P(X\le k), the expected value and variance npnp and np(1−p)np(1-p), the normal distribution and the standard normal distribution, standardization, reading the table both ways, and the normal approximation to the binomial distribution with the continuity correction.

Exercise 0.1 opens the series with ten direct calculations, from a binomial probability to the normal approximation. By the end, you can say whether a count follows a binomial distribution and which of its conditions fails (exercise 1), prove E(X)=npE(X)=np and V(X)=np(1−p)V(X)=np(1-p) by differentiating (q+pt)n(q+pt)^{n} (exercise 2), study the normal density and justify its symmetry with an integral (exercise 3), prove standardization by a substitution and recover μ\mu and σ\sigma from two percentages (exercise 4), and approximate a binomial by a normal after checking its conditions (exercise 5).

The situations come from the natural sciences: the germination of a lot of seeds, a treatment on tomato plants, the mass of tablets, the pH of rain, the wing length of honeybees, a trial against powdery mildew on squash carried out as a full study (exercise 9), and the choice of a dilution for counting bacterial colonies (exercise 10). The pitfalls treated in detail: the shared tray that destroys independence without changing pp (exercise 1), P(Z>−a)P(Z>-a) confused with 1−Φ(a)1-\Phi(a) (exercise 3), the bound 174.5174.5 or 175.5175.5 depending on “at least” or “more than” (exercise 5), the normal that gives 4%4\% to an impossible event when n(1−p)<5n(1-p)<5 (exercise 5), and the displayed value that is an interval (exercise 7).

The thread of the series: a binomial counts, a normal measures. The binomial gives a probability to each integer, so << and ≤\le change the answer; the normal gives probability only to an interval. Going from one to the other turns each integer into an interval one unit wide: that is the whole of the continuity correction. The Poisson distribution appears in one question, beyond the minimum required by the course framework (exercise 10); the central limit theorem is the subject of the series on confidence intervals.

  • 11 corrected exercises • 110 points • 150 minutes
  • Self-checking, 89 answers
  • Calculator
Start exercise 0.1 The chapter sheet

Course recap

  • • BINOMIAL DISTRIBUTION B(n, p)\mathcal{B}(n,\,p): nn trials FIXED in advance, two outcomes, the same probability of success pp, INDEPENDENT trials. Then P(X=k)=(nk)pk(1−p)n−kP(X=k)=\binom{n}{k}p^{k}(1-p)^{n-k} for k=0,…,nk=0,\dots,n.
  • • Without replacement, the binomial remains a good approximation if the sample is at most 5%5\% of the population; beyond that, count directly.
  • • EXPECTED VALUE AND VARIANCE: E(X)=npE(X)=np, V(X)=np(1−p)V(X)=np(1-p), σ=np(1−p)\sigma=\sqrt{np(1-p)}. They are proved by differentiating G(t)=(q+pt)nG(t)=(q+pt)^{n} at t=1t=1.
  • • A binomial COUNTS: P(X=k)>0P(X=k)>0, and P(X<k)=P(X≤k−1)P(X<k)=P(X\le k-1) differs from P(X≤k)P(X\le k).
  • • NORMAL DISTRIBUTION with mean μ\mu and standard deviation σ\sigma: density f(x)=1σ2πe−12(x−μσ)2f(x)=\dfrac{1}{\sigma\sqrt{2\pi}}e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^{2}}, bell-shaped, symmetric about μ\mu, inflection points at μ±σ\mu\pm\sigma. Some textbooks write N(μ, σ2)\mathcal{N}(\mu,\,\sigma^{2}) with the VARIANCE: read the problem before dividing.
  • • A normal MEASURES: P(X=a)=0P(X=a)=0, so P(X<a)=P(X≤a)P(X<a)=P(X\le a), and a probability is an area.
  • • STANDARDIZATION: z=x−μσz=\dfrac{x-\mu}{\sigma}; the table gives Φ(z)=P(Z≤z)\Phi(z)=P(Z\le z), the area to the LEFT, with zz rounded to two decimal places. Symmetry: Φ(−z)=1−Φ(z)\Phi(-z)=1-\Phi(z). Reverse reading: x=μ+zσx=\mu+z\sigma.
  • • NORMAL APPROXIMATION of B(n, p)\mathcal{B}(n,\,p), if np≥5np\ge 5 and n(1−p)≥5n(1-p)\ge 5 (criterion of this series; name the one used at your CEGEP): μ=np\mu=np, σ=np(1−p)\sigma=\sqrt{np(1-p)}, and CONTINUITY CORRECTION: P(X≤k)≈P(Y≤k+0.5)P(X\le k)\approx P(Y\le k+0.5), P(X≥k)≈P(Y≥k−0.5)P(X\ge k)\approx P(Y\ge k-0.5).

Calculations: binomial, normal and approximation

Exercise 0.1: Computing with the binomial and normal distributions: ten direct calculations

11 answers to check

For each line, compute the requested quantity with the given distribution, without justifying the model. Give probabilities to four decimal places, and the expected value and standard deviation to two. For a normal distribution, round zz to two decimal places and read the standard normal table, which gives Φ(z)=P(Z≤z)\Phi(z)=P(Z\le z), the area to the LEFT of zz.

Three tools: P(X=k)=(nk)pk(1−p)n−kP(X=k)=\binom{n}{k}p^{k}(1-p)^{n-k} for the binomial B(n, p)\mathcal{B}(n,\,p); z=x−μσz=\dfrac{x-\mu}{\sigma} to bring any normal back to the table; and, to approximate a binomial by a normal, μ=np\mu=np, σ=np(1−p)\sigma=\sqrt{np(1-p)} and a bound shifted by half a unit.

  • a) X∼B(9, 0.7)X\sim\mathcal{B}(9,\,0.7): compute P(X=6)P(X=6).
  • b) X∼B(12, 0.1)X\sim\mathcal{B}(12,\,0.1): compute P(X≤1)P(X\le 1).
  • c) X∼B(48, 0.25)X\sim\mathcal{B}(48,\,0.25): compute E(X)E(X) and the standard deviation σ\sigma.
  • d) ZZ follows the standard normal distribution: compute P(Z<0.83)P(Z<0.83).
  • e) Compute P(Z>−1.46)P(Z>-1.46).
  • f) Compute P(−0.52<Z<1.18)P(-0.52<Z<1.18).
  • g) Find zz such that P(Z>z)=0.10P(Z>z)=0.10.
  • h) XX follows a normal distribution with mean μ=68\mu=68 and standard deviation σ=5\sigma=5: compute P(X>75)P(X>75).
  • i) XX follows a normal distribution with mean μ=120\mu=120 and standard deviation σ=15\sigma=15: find xx such that P(X<x)=0.20P(X<x)=0.20.
  • j) X∼B(80, 0.3)X\sim\mathcal{B}(80,\,0.3): compute P(X≤20)P(X\le 20) by the normal approximation, with the continuity correction.

Type your answers, the page tells you right or wrong 0/11

a)
b)
c)
d)
e)
f)
g)
h)
i)
j)
Show the solution

Answers

  • a) P(X=6)=84(0.7)6(0.3)3≈0.2668P(X=6)=84(0.7)^{6}(0.3)^{3}\approx 0.2668
  • b) P(X≤1)≈0.6590P(X\le 1)\approx 0.6590
  • c) E(X)=12E(X)=12; σ=3\sigma=3
  • d) 0.79670.7967
  • e) Φ(1.46)=0.9279\Phi(1.46)=0.9279
  • f) 0.8810−0.3015=0.57950.8810-0.3015=0.5795
  • g) z≈1.28z\approx 1.28
  • h) z=1.40z=1.40; 0.08080.0808
  • i) z≈−0.84z\approx -0.84; x=107.4x=107.4
  • j) z≈−0.85z\approx -0.85; P(X≤20)≈0.1977P(X\le 20)\approx 0.1977

The move that decides everything: translate the event before computing. “Exactly kk” is a single term, “at most 1” is two, and any normal probability “above” or “between” comes down to areas to the LEFT, the only ones the table gives.

a)
P(X=6)=(96)(0.7)6(0.3)3=84×0.117649×0.027≈0.2668\displaystyle P(X=6)=\binom{9}{6}(0.7)^{6}(0.3)^{3}=84\times 0.117649\times 0.027\approx 0.2668

Pitfall: forgetting (96)=84\binom{9}{6}=84, which counts the ways of placing the 6 successes among the 9 trials.

b)

“At most 1” groups 0 and 1:

P(X≤1)=(0.9)12+12×0.1×(0.9)11≈0.2824+0.3766=0.6590\displaystyle P(X\le 1)=(0.9)^{12}+12\times 0.1\times(0.9)^{11}\approx 0.2824+0.3766=0.6590
c)

E(X)=np=48×0.25=12E(X)=np=48\times 0.25=12 and V(X)=np(1−p)=12×0.75=9V(X)=np(1-p)=12\times 0.75=9, so σ=9=3\sigma=\sqrt{9}=3.

Pitfall: giving 99 as the standard deviation; that is the variance.

d)

Direct reading of the table: P(Z<0.83)=Φ(0.83)=0.7967P(Z<0.83)=\Phi(0.83)=0.7967.

e)

By the symmetry of the curve, the area to the right of −1.46-1.46 equals the area to the left of 1.461.46:

P(Z>−1.46)=Φ(1.46)=0.9279\displaystyle P(Z>-1.46)=\Phi(1.46)=0.9279

Check: the area to the right of a negative number is more than 0.50.5.

f)

An area between two bounds is a difference of areas to the left:

Φ(1.18)−Φ(−0.52)=0.8810−0.3015=0.5795\displaystyle \Phi(1.18)-\Phi(-0.52)=0.8810-0.3015=0.5795
g)

P(Z>z)=0.10P(Z>z)=0.10 leaves 0.900.90 to the left. In the body of the table, Φ(1.28)=0.8997\Phi(1.28)=0.8997 is the closest to 0.900.90: z≈1.28z\approx 1.28.

h)

z=75−685=1.40z=\dfrac{75-68}{5}=1.40, then P(X>75)=1−Φ(1.40)=1−0.9192=0.0808P(X>75)=1-\Phi(1.40)=1-0.9192=0.0808.

i)

Φ(z)=0.20\Phi(z)=0.20: Φ(−0.84)=0.2005\Phi(-0.84)=0.2005 is the closest, so z≈−0.84z\approx -0.84.

x=μ+zσ=120−0.84×15=107.4\displaystyle x=\mu+z\sigma=120-0.84\times 15=107.4

Pitfall: taking z=+0.84z=+0.84; a value below the mean has a negative z-score.

j)

Conditions: np=24≥5np=24\ge 5 and n(1−p)=56≥5n(1-p)=56\ge 5. Approximating normal: μ=24\mu=24, σ=16.8≈4.099\sigma=\sqrt{16.8}\approx 4.099.

“At most 20” contains the bar of 20, which ends at 20.520.5:

z=20.5−244.099≈−0.85z=\dfrac{20.5-24}{4.099}\approx -0.85, P(X≤20)≈Φ(−0.85)=0.1977P(X\le 20)\approx\Phi(-0.85)=0.1977

The exact value, from the binomial, is 0.19780.1978: the half unit provides most of the accuracy.

Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.

Part A: the basics (/50)

Exercise 1: Binomial or not: the conditions before the formula

11 answers to check

A (fictional) seed company sells a lot of 40,00040{,}000 common milkweed seeds, the host plant of the monarch butterfly. It advertises a germination rate of 85%85\%. We assume that a seed taken at random from the lot, sown alone in a pot in a germination chamber, germinates with probability 0.850.85.

A binomial distribution B(n, p)\mathcal{B}(n,\,p) counts the successes in nn Bernoulli trials. Before writing its formula, we check its four conditions: a number nn of trials FIXED in advance, two outcomes per trial, a probability of success pp that is the SAME on every trial, and INDEPENDENT trials.

  • a) Situation 1: 10 seeds are taken at random from the lot and each is sown in its own pot. Let XX be the number of seeds that germinate. Check the four conditions, justify that sampling without replacement does not matter here, and give nn and pp.
  • b) Compute P(X=8)P(X=8) and P(X≥9)P(X\ge 9).
  • c) Compute P(X<8)P(X<8) and P(X≤8)P(X\le 8). Explain why, for this variable, these two numbers are different.
  • d) Situation 2: a packet of 20 seeds contains exactly 3 that will not germinate. Six of them, taken at random without replacement, are sown. Does the number of seeds that germinate follow a binomial distribution? Compute the exact probability that all 6 germinate, then the value that the distribution B(6, 0.85)\mathcal{B}(6,\,0.85) would wrongly give.
  • e) Situation 3: 10 seeds from the lot are sown in the SAME tray of potting soil. With probability 0.10.1, the soil in the tray is contaminated by a fungus, and each seed then germinates with probability 0.400.40; otherwise, each seed germinates with probability 0.900.90, independently of the others. Check that a seed taken alone germinates with probability 0.850.85, compute the probability that all 10 seeds germinate, and say which condition of the binomial fails.

Type your answers, the page tells you right or wrong 0/11

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Four conditions met, 1010 seeds out of 40,00040{,}000: X∼B(10, 0.85)X\sim\mathcal{B}(10,\,0.85)
  • b) P(X=8)≈0.2759P(X=8)\approx 0.2759; P(X≥9)≈0.5443P(X\ge 9)\approx 0.5443
  • c) P(X<8)≈0.1798P(X<8)\approx 0.1798; P(X≤8)≈0.4557P(X\le 8)\approx 0.4557; the difference is P(X=8)P(X=8)
  • d) No; exact 12,37638,760≈0.3193\frac{12{,}376}{38{,}760}\approx 0.3193; binomial 0.37710.3771, wrongly
  • e) P(G)=0.85P(G)=0.85; P(all 10 germinate)≈0.3138P(\text{all 10 germinate})\approx 0.3138; independence fails
a)

The four conditions, checked against the situation:

1) n=10n=10 seeds, a number fixed before sowing;

2) each seed germinates (success) or does not (failure);

3) each seed comes at random from the same lot: p=0.85p=0.85 for each one;

4) each seed has its own pot: what happens to one does not change what happens to another, so the trials are independent.

The sampling is without replacement, but 10 seeds out of 40,00040{,}000 are 0.025%0.025\% of the lot. Removing one viable seed changes the proportion of viable seeds from 0.850.85 to 33,99939,999≈0.849996\dfrac{33{,}999}{39{,}999}\approx 0.849996: an invisible difference. We therefore accept X∼B(10, 0.85)X\sim\mathcal{B}(10,\,0.85), as a very good approximation.

Pitfall: reciting the four conditions without checking them against the situation; the checking is what earns the marks.

b)
P(X=8)=(108)(0.85)8(0.15)2=45×0.272491×0.0225≈0.2759\displaystyle P(X=8)=\binom{10}{8}(0.85)^{8}(0.15)^{2}=45\times 0.272491\times 0.0225\approx 0.2759

“At least 9” groups two values:

P(X≥9)=10(0.85)9(0.15)+(0.85)10≈0.3474+0.1969=0.5443\displaystyle P(X\ge 9)=10(0.85)^{9}(0.15)+(0.85)^{10}\approx 0.3474+0.1969=0.5443

More than half the time, at least 9 seeds out of 10 germinate.

Pitfall: forgetting (108)=45\binom{10}{8}=45, which counts the ways of choosing the 8 seeds that germinate; without it, you get the probability of ONE single sequence, 0.00610.0061.

c)

“Fewer than 8” stops at 7. By the complement, with the values from b):

P(X<8)=P(X≤7)=1−(0.2759+0.5443)=0.1798\displaystyle P(X<8)=P(X\le 7)=1-(0.2759+0.5443)=0.1798
P(X≤8)=P(X≤7)+P(X=8)=0.1798+0.2759=0.4557\displaystyle P(X\le 8)=P(X\le 7)+P(X=8)=0.1798+0.2759=0.4557

The two numbers differ by exactly P(X=8)≈0.2759P(X=8)\approx 0.2759: a variable that COUNTS gives a nonzero probability to each integer, and the sign, << or ≤\le, decides whether the bar of 8 is included in the calculation (figure of the solution).

This will be the central difference with the normal distribution, which MEASURES: for it, a single value has probability zero and both signs give the same number (exercise 3).

Pitfall: computing P(X≤7)P(X\le 7) term by term, eight terms; the complement needs only two, already computed.

d)

No. Without replacement in a packet of 20, the probability changes from one seed to the next: after one viable seed, 16 viable seeds remain out of 19, and the next probability is 1619≈0.842\dfrac{16}{19}\approx 0.842, no longer 1720=0.85\dfrac{17}{20}=0.85. The draws are not independent.

Here 6 seeds out of 20 are 30%30\% of the packet, far beyond the 5%5\% rule of thumb that would allow the binomial.

Exact probability, by counting: the 6 seeds are chosen among the 17 viable ones.

P=(176)(206)=12,37638,760≈0.3193\displaystyle P=\dfrac{\binom{17}{6}}{\binom{20}{6}}=\dfrac{12{,}376}{38{,}760}\approx 0.3193

Same number from the tree: 1720×1619×1518×1417×1316×1215≈0.3193\dfrac{17}{20}\times\dfrac{16}{19}\times\dfrac{15}{18}\times\dfrac{14}{17}\times\dfrac{13}{16}\times\dfrac{12}{15}\approx 0.3193.

The binomial would give (0.85)6≈0.3771(0.85)^{6}\approx 0.3771, an overestimate of 18%18\%: without replacement, each viable seed drawn makes the next one slightly less likely.

Pitfall: applying B(6, 0.85)\mathcal{B}(6,\,0.85) because “85% of the seeds are viable”; the proportion is right, the model is wrong.

e)

For a seed taken alone, by the law of total probability:

P(G)=0.1×0.40+0.9×0.90=0.04+0.81=0.85\displaystyle P(G)=0.1\times 0.40+0.9\times 0.90=0.04+0.81=0.85

For the 10 seeds, we condition only once on the state of the tray, which they all share:

P(all 10 germinate)=0.1×(0.40)10+0.9×(0.90)10≈0.00001+0.3138≈0.3138\displaystyle P(\text{all 10 germinate})=0.1\times(0.40)^{10}+0.9\times(0.90)^{10}\approx 0.00001+0.3138\approx 0.3138

The distribution B(10, 0.85)\mathcal{B}(10,\,0.85) would give (0.85)10≈0.1969(0.85)^{10}\approx 0.1969.

The condition that fails is INDEPENDENCE: all the seeds share the same soil. If one seed fails to germinate, the tray is more likely to be contaminated, which makes the failure of the others more likely: successes come together, and so do failures.

Yet each seed's probability really is 0.850.85: checking that pp is the same is not enough, you also need a reason to believe in independence, such as one pot per seed.

Pitfall: concluding that the distribution is binomial as soon as each trial has the same probability of success.

−112345678910110.050.10.150.20.250.30.350.4P(X ≥ 9) ≈ 0.544P(X ≤ 7) ≈ 0.180germinated seeds

Exercise 2: Expected value and variance of a binomial: the proof

5 answers to check

A biological treatment against tomato late blight is applied to 16 infected plants, grown in pots in separate greenhouses. We assume that each plant recovers with probability p=0.75p=0.75, independently of the others, and let XX be the number of plants that recover: X∼B(16, 0.75)X\sim\mathcal{B}(16,\,0.75). The figure shows its distribution. Throughout, q=1−pq=1-p.

Parts a) to c) are done for any nn and pp: they prove the formulas that are applied afterwards.

2468101214160.050.10.150.20.25cured plants out of 16
  • a) Using the binomial theorem, show that ∑k=0nP(X=k)=1\sum_{k=0}^{n}P(X=k)=1.
  • b) Let G(t)=(q+pt)nG(t)=(q+pt)^{n}. Show that G(t)=∑k=0nP(X=k) tkG(t)=\sum_{k=0}^{n}P(X=k)\,t^{k}, then, by differentiating, that E(X)=G′(1)=npE(X)=G'(1)=np.
  • c) By differentiating a second time, show that E(X(X−1))=G′′(1)=n(n−1)p2E\big(X(X-1)\big)=G''(1)=n(n-1)p^{2}, then that V(X)=np(1−p)V(X)=np(1-p).
  • d) Compute E(X)E(X), V(X)V(X) and the standard deviation σ\sigma for the 16 treated plants.
  • e) Show that P(X=k+1)P(X=k)=(n−k) p(k+1) q\dfrac{P(X=k+1)}{P(X=k)}=\dfrac{(n-k)\,p}{(k+1)\,q}. Deduce the most likely value of XX (the mode), compute its probability, and confirm it on the figure.

Type your answers, the page tells you right or wrong 0/5

d)
e)
Show the solution

Answers

  • a) ∑P(X=k)=(p+q)n=1\sum P(X=k)=(p+q)^{n}=1
  • b) G′(t)=np(q+pt)n−1G'(t)=np(q+pt)^{n-1}, hence E(X)=G′(1)=npE(X)=G'(1)=np
  • c) G′′(1)=n(n−1)p2G''(1)=n(n-1)p^{2}; V(X)=n(n−1)p2+np−n2p2=np(1−p)V(X)=n(n-1)p^{2}+np-n^{2}p^{2}=np(1-p)
  • d) E(X)=12E(X)=12; V(X)=3V(X)=3; σ=3≈1.73\sigma=\sqrt{3}\approx 1.73
  • e) Mode 1212 (since np−q=11.75np-q=11.75); P(X=12)≈0.2252P(X=12)\approx 0.2252
a)

The binomial theorem states that (a+b)n=∑k=0n(nk)akbn−k(a+b)^{n}=\sum_{k=0}^{n}\binom{n}{k}a^{k}b^{n-k}. With a=pa=p and b=qb=q:

∑k=0n(nk)pkqn−k=(p+q)n=1n=1\displaystyle \sum_{k=0}^{n}\binom{n}{k}p^{k}q^{n-k}=(p+q)^{n}=1^{n}=1

The n+1n+1 probabilities of the binomial distribution are exactly the terms of the expansion of (p+q)n(p+q)^{n}, hence the name of the distribution.

For the 16 plants, the 17 bars of the figure therefore add up to 1.

b)

Expand GG by the binomial theorem, with a=pta=pt and b=qb=q:

G(t)=(q+pt)n=∑k=0n(nk)(pt)kqn−k=∑k=0nP(X=k) tk\displaystyle G(t)=(q+pt)^{n}=\sum_{k=0}^{n}\binom{n}{k}(pt)^{k}q^{n-k}=\sum_{k=0}^{n}P(X=k)\,t^{k}

Differentiate both expressions. On the left, by the chain rule, G′(t)=np (q+pt)n−1G'(t)=np\,(q+pt)^{n-1}. On the right, term by term, since the sum is finite: G′(t)=∑k=1nk P(X=k) tk−1G'(t)=\sum_{k=1}^{n}k\,P(X=k)\,t^{k-1}.

At t=1t=1, the right side gives ∑k=0nk P(X=k)\sum_{k=0}^{n}k\,P(X=k), which is the definition of E(X)E(X), and the left side gives np (q+p)n−1=npnp\,(q+p)^{n-1}=np:

E(X)=np\displaystyle E(X)=np

The term k=0k=0 disappears when differentiating, which changes nothing since it equals 0×P(X=0)0\times P(X=0).

Pitfall: “proving” it by writing E(X)=n×pE(X)=n\times p “because we do nn trials with probability pp”; that is the intuition, not a proof. The proof starts from the definition E(X)=∑k P(X=k)E(X)=\sum k\,P(X=k).

c)

Second derivative, on both sides:

G′′(t)=n(n−1)p2(q+pt)n−2=∑k=2nk(k−1) P(X=k) tk−2\displaystyle G''(t)=n(n-1)p^{2}(q+pt)^{n-2}=\sum_{k=2}^{n}k(k-1)\,P(X=k)\,t^{k-2}

At t=1t=1: E(X(X−1))=n(n−1)p2E\big(X(X-1)\big)=n(n-1)p^{2}. Now E(X(X−1))=E(X2)−E(X)E\big(X(X-1)\big)=E(X^{2})-E(X), so E(X2)=n(n−1)p2+npE(X^{2})=n(n-1)p^{2}+np.

With V(X)=E(X2)−E(X)2V(X)=E(X^{2})-E(X)^{2}:

V(X)=n(n−1)p2+np−n2p2=np−np2=np(1−p)\begin{aligned}V(X)&=n(n-1)p^{2}+np-n^{2}p^{2}\\&=np-np^{2}\\&=np(1-p)\end{aligned}

Pitfall: taking G′′(1)G''(1) for E(X2)E(X^{2}); the second derivative brings down k(k−1)k(k-1), not k2k^{2}.

d)

E(X)=16×0.75=12E(X)=16\times 0.75=12 plants.

V(X)=16×0.75×0.25=3V(X)=16\times 0.75\times 0.25=3, so σ=3≈1.73\sigma=\sqrt{3}\approx 1.73 plants.

Over a large number of trials of the treatment, 12 plants out of 16 recover on average, with a typical spread of less than 2 plants around 12.

Pitfall: giving V(X)=3V(X)=3 as the standard deviation; the variance is in “plants squared”, the standard deviation, its square root, is in the unit of XX.

e)

In the quotient, pkqn−kp^{k}q^{n-k} cancels and the ratio of the coefficients remains:

P(X=k+1)P(X=k)=(nk+1)(nk)⋅pq=n−kk+1⋅pq\displaystyle \dfrac{P(X=k+1)}{P(X=k)}=\dfrac{\binom{n}{k+1}}{\binom{n}{k}}\cdot\dfrac{p}{q}=\dfrac{n-k}{k+1}\cdot\dfrac{p}{q}

The probability increases from kk to k+1k+1 as long as this ratio exceeds 1:

(n−k)p>(k+1)q  ⟺  k<np−q\displaystyle (n-k)p>(k+1)q\iff k<np-q

Here np−q=12−0.25=11.75np-q=12-0.25=11.75: the distribution rises for k=0k=0 to 1111, hence up to k=12k=12, then falls. The mode is 1212.

P(X=12)=(1612)(0.75)12(0.25)4=1820×0.031676×0.003906≈0.2252\displaystyle P(X=12)=\binom{16}{12}(0.75)^{12}(0.25)^{4}=1820\times 0.031676\times 0.003906\approx 0.2252

The figure confirms it: the bar of 12 is the tallest, a little above 0.220.22, followed by that of 13, P(X=13)≈0.2079P(X=13)\approx 0.2079.

Here the mode coincides with the expected value because np=12np=12 is an integer; in general, the mode is an integer between np−qnp-q and np+pnp+p.

Exercise 3: The standard normal density and its table

10 answers to check

The variable ZZ follows the standard normal distribution, with density φ(z)=12πe−z2/2\varphi(z)=\dfrac{1}{\sqrt{2\pi}}e^{-z^{2}/2} on R\mathbb{R}. We write Φ(z)=P(Z≤z)=∫−∞zφ(t) dt\Phi(z)=P(Z\le z)=\int_{-\infty}^{z}\varphi(t)\,dt: this is what the table gives, the area to the LEFT of zz, for zz rounded to two decimal places.

The figure shows the curve of φ\varphi and the area of part c).

−3−2−1.2500.8023z
  • a) Study where φ\varphi increases and decreases, and compute its maximum. Then show, using the second derivative, that the curve has two inflection points, at z=−1z=-1 and at z=1z=1, and compute φ(1)\varphi(1).
  • b) By substituting u=−tu=-t in the integral, show that P(Z≤−a)=P(Z≥a)P(Z\le -a)=P(Z\ge a) for every real number aa. Deduce P(Z<−1.35)P(Z<-1.35) and P(Z>−0.62)P(Z>-0.62) using the table.
  • c) Compute P(−1.25<Z<0.80)P(-1.25<Z<0.80), the shaded area of the figure.
  • d) Reverse reading: find zz such that P(Z<z)=0.90P(Z<z)=0.90, then z>0z>0 such that P(−z<Z<z)=0.95P(-z<Z<z)=0.95, then zz such that P(Z>z)=0.975P(Z>z)=0.975.
  • e) What is P(Z=0.80)P(Z=0.80)? Compare P(Z≤0.80)P(Z\le 0.80) and P(Z<0.80)P(Z<0.80), and contrast this result with part c) of exercise 1.

Type your answers, the page tells you right or wrong 0/10

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Maximum φ(0)≈0.3989\varphi(0)\approx 0.3989; inflection points at z=±1z=\pm 1, φ(1)≈0.2420\varphi(1)\approx 0.2420
  • b) P(Z<−1.35)=0.0885P(Z<-1.35)=0.0885; P(Z>−0.62)=0.7324P(Z>-0.62)=0.7324
  • c) 0.7881−0.1056=0.68250.7881-0.1056=0.6825
  • d) z≈1.28z\approx 1.28; z=1.96z=1.96; z=−1.96z=-1.96
  • e) P(Z=0.80)=0P(Z=0.80)=0; P(Z≤0.80)=P(Z<0.80)=0.7881P(Z\le 0.80)=P(Z<0.80)=0.7881
a)

φ′(z)=12π (−z) e−z2/2\varphi'(z)=\dfrac{1}{\sqrt{2\pi}}\,(-z)\,e^{-z^{2}/2}, which has the sign of −z-z, since the exponential is strictly positive.

φ\varphi increases on (−∞,0](-\infty, 0] and decreases on [0,+∞)[0, +\infty): its maximum is reached at 00.

φ(0)=12π≈0.3989\displaystyle \varphi(0)=\dfrac{1}{\sqrt{2\pi}}\approx 0.3989

Second derivative, by the product rule:

φ′′(z)=12π (z2−1) e−z2/2\displaystyle \varphi''(z)=\dfrac{1}{\sqrt{2\pi}}\,(z^{2}-1)\,e^{-z^{2}/2}

It vanishes and changes sign at z=−1z=-1 and z=1z=1: the curve is concave down on [−1,1][-1, 1] and concave up outside. The inflection points have yy-coordinate φ(±1)=e−1/22π≈0.2420\varphi(\pm 1)=\dfrac{e^{-1/2}}{\sqrt{2\pi}}\approx 0.2420.

This is the geometric meaning of the standard deviation: on every normal curve, the inflection points are one standard deviation on either side of the mean (first figure of the solution).

Pitfall: looking for the maximum by setting φ′′\varphi'' equal to zero; the second derivative gives the changes of concavity, not the extrema.

b)

P(Z≤−a)=∫−∞−aφ(t) dtP(Z\le -a)=\int_{-\infty}^{-a}\varphi(t)\,dt. With u=−tu=-t, dt=−dudt=-du, and the bounds −∞-\infty and −a-a become +∞+\infty and aa:

∫−∞−aφ(t) dt=∫+∞aφ(−u) (−du)=∫a+∞φ(u) du=P(Z≥a)\displaystyle \int_{-\infty}^{-a}\varphi(t)\,dt=\int_{+\infty}^{a}\varphi(-u)\,(-du)=\int_{a}^{+\infty}\varphi(u)\,du=P(Z\ge a)

since φ\varphi is even: φ(−u)=φ(u)\varphi(-u)=\varphi(u). Two symmetric tails have the same area.

P(Z<−1.35)=P(Z>1.35)=1−Φ(1.35)=1−0.9115=0.0885\displaystyle P(Z<-1.35)=P(Z>1.35)=1-\Phi(1.35)=1-0.9115=0.0885
P(Z>−0.62)=P(Z<0.62)=Φ(0.62)=0.7324\displaystyle P(Z>-0.62)=P(Z<0.62)=\Phi(0.62)=0.7324

Pitfall: writing P(Z>−0.62)=1−0.7324=0.2676P(Z>-0.62)=1-0.7324=0.2676. The check that prevents it: the area to the right of a NEGATIVE number contains the whole right half, so it is more than 0.50.5.

c)

An area between two bounds is a difference of two areas to the left:

P(−1.25<Z<0.80)=Φ(0.80)−Φ(−1.25)=0.7881−0.1056=0.6825\displaystyle P(-1.25<Z<0.80)=\Phi(0.80)-\Phi(-1.25)=0.7881-0.1056=0.6825

If the table only gives positive zz: Φ(−1.25)=1−Φ(1.25)=1−0.8944=0.1056\Phi(-1.25)=1-\Phi(1.25)=1-0.8944=0.1056.

Check on the figure: the shaded region contains the peak and about one standard deviation on each side; about two thirds of the total area is consistent with 0.680.68.

Pitfall: adding the two areas to the left, or subtracting in the wrong order and getting a negative number.

d)

We look for the area in the BODY of the table, then read zz in the margin.

P(Z<z)=0.90P(Z<z)=0.90: Φ(1.28)=0.8997\Phi(1.28)=0.8997 and Φ(1.29)=0.9015\Phi(1.29)=0.9015; the closer one gives z≈1.28z\approx 1.28.

P(−z<Z<z)=0.95P(-z<Z<z)=0.95 leaves 0.050.05 in the two tails, so 0.0250.025 on each side (second figure of the solution): Φ(z)=0.975\Phi(z)=0.975, and the table gives exactly z=1.96z=1.96.

P(Z>z)=0.975P(Z>z)=0.975: the area to the right is more than 0.50.5, so z<0z<0. The area to the left is 0.0250.025 and, by symmetry, z=−1.96z=-1.96.

Pitfall: looking up 0.950.95 in the table for the centred interval; you get 1.6451.645, the bound of a single 5%5\% tail.

e)

P(Z=0.80)=∫0.800.80φ(t) dt=0P(Z=0.80)=\int_{0.80}^{0.80}\varphi(t)\,dt=0: an integral over an interval of length zero.

So P(Z≤0.80)=P(Z<0.80)+P(Z=0.80)=P(Z<0.80)=0.7881P(Z\le 0.80)=P(Z<0.80)+P(Z=0.80)=P(Z<0.80)=0.7881: for a continuous variable, << and ≤\le give the same number.

In exercise 1 c), P(X≤8)P(X\le 8) and P(X<8)P(X<8) differed by P(X=8)≈0.2759P(X=8)\approx 0.2759. A binomial COUNTS, each integer carries a mass; a normal MEASURES, a single value carries no area.

A probability of zero does not mean “impossible”: here we ask for the value 0.800.80 exactly, with infinitely many decimal places. A real measurement is always an interval (exercise 7).

−4−3−2−112340.150.30.450.6maximum: 0.3989inflection at z = ±1
a) The curve of φ\varphi: maximum 0.39890.3989 at 00, inflection points at z=−1z=-1 and z=1z=1, one standard deviation from the centre.
−1.9601.960.950.0250.025
d) The centred 95%95\% interval leaves 0.0250.025 in each tail: Φ(1.96)=0.975\Phi(1.96)=0.975.

Exercise 4: Standardizing: the mass of tablets

5 answers to check

A press produces tablets whose mass XX, in milligrams, follows a normal distribution with mean μ=250\mu=250 mg and standard deviation σ=3\sigma=3 mg. The (fictional) manufacturer's quality control rejects any tablet whose mass falls outside the interval [244,256][244, 256] mg. The figure shows the density and the two tolerance limits.

The density of XX is f(x)=1σ2π e−12(x−μσ)2f(x)=\dfrac{1}{\sigma\sqrt{2\pi}}\,e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^{2}}, and ZZ denotes a variable with the standard normal distribution.

241244247250253256259tolerancetolerancemass (mg)
  • a) Show, by the substitution z=x−μσz=\dfrac{x-\mu}{\sigma} in the integral ∫abf(x) dx\int_{a}^{b}f(x)\,dx, that P(a≤X≤b)=P(a−μσ≤Z≤b−μσ)P(a\le X\le b)=P\left(\dfrac{a-\mu}{\sigma}\le Z\le\dfrac{b-\mu}{\sigma}\right).
  • b) Compute the proportion of tablets accepted.
  • c) Compute the proportion of tablets heavier than 251.8251.8 mg.
  • d) Find the mass above which the heaviest 1%1\% of tablets lie.
  • e) After an adjustment, μ\mu and σ\sigma have changed and are unknown. It is observed that 10%10\% of the tablets weigh less than 246246 mg and 5%5\% more than 256256 mg. Assuming the distribution is still normal, find μ\mu and σ\sigma.

Type your answers, the page tells you right or wrong 0/5

b)
c)
d)
e)
Show the solution

Answers

  • a) x=μ+σzx=\mu+\sigma z, dx=σ dzdx=\sigma\,dz: ∫abf(x) dx=∫zazbφ(z) dz\int_{a}^{b}f(x)\,dx=\int_{z_{a}}^{z_{b}}\varphi(z)\,dz
  • b) Φ(2)−Φ(−2)=0.9544\Phi(2)-\Phi(-2)=0.9544
  • c) z=0.60z=0.60; 0.27430.2743
  • d) z≈2.33z\approx 2.33; x≈257.0x\approx 257.0 mg
  • e) μ−1.28σ=246\mu-1.28\sigma=246 and μ+1.645σ=256\mu+1.645\sigma=256: μ≈250.38\mu\approx 250.38 mg, σ≈3.42\sigma\approx 3.42 mg
a)

In ∫ab1σ2πe−12(x−μσ)2dx\int_{a}^{b}\dfrac{1}{\sigma\sqrt{2\pi}}e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^{2}}dx, let z=x−μσz=\dfrac{x-\mu}{\sigma}, so x=μ+σzx=\mu+\sigma z and dx=σ dzdx=\sigma\,dz.

The bounds x=ax=a and x=bx=b become za=a−μσz_{a}=\dfrac{a-\mu}{\sigma} and zb=b−μσz_{b}=\dfrac{b-\mu}{\sigma}, in the same order since σ>0\sigma>0.

∫abf(x) dx=∫zazb1σ2πe−z2/2 σ dz=∫zazbφ(z) dz\displaystyle \int_{a}^{b}f(x)\,dx=\int_{z_{a}}^{z_{b}}\dfrac{1}{\sigma\sqrt{2\pi}}e^{-z^{2}/2}\,\sigma\,dz=\int_{z_{a}}^{z_{b}}\varphi(z)\,dz

The σ\sigma from dxdx cancels the one in the denominator: what remains is the density of ZZ. So P(a≤X≤b)=P(za≤Z≤zb)P(a\le X\le b)=P(z_{a}\le Z\le z_{b}), and a single table works for every normal distribution.

Pitfall: dividing by the variance σ2=9\sigma^{2}=9 instead of σ=3\sigma=3; the proof shows that it is σ\sigma that comes out of dxdx.

b)

z1=244−2503=−2.00z_{1}=\dfrac{244-250}{3}=-2.00 and z2=256−2503=2.00z_{2}=\dfrac{256-250}{3}=2.00.

P(244≤X≤256)=Φ(2.00)−Φ(−2.00)=0.9772−0.0228=0.9544\displaystyle P(244\le X\le 256)=\Phi(2.00)-\Phi(-2.00)=0.9772-0.0228=0.9544

About 95.4%95.4\% of the tablets are accepted, so 4.56%4.56\% are rejected, close to 46 per 1000.

This is the two-standard-deviation rule, recovered from the table; “95%95\%” is its rounded form.

c)

z=251.8−2503=0.60z=\dfrac{251.8-250}{3}=0.60, then P(X>251.8)=1−Φ(0.60)=1−0.7257=0.2743P(X>251.8)=1-\Phi(0.60)=1-0.7257=0.2743.

A little more than one tablet in four is heavier than 251.8251.8 mg.

Pitfall: reading 0.72570.7257 and stopping there; the table gives the area to the left, the question asks for “heavier than”.

d)

We look for xx such that P(X>x)=0.01P(X>x)=0.01, so Φ(z)=0.99\Phi(z)=0.99. The table gives Φ(2.32)=0.9898\Phi(2.32)=0.9898 and Φ(2.33)=0.9901\Phi(2.33)=0.9901: z≈2.33z\approx 2.33.

We then return to the milligram scale:

x=μ+zσ=250+2.33×3=256.99x=\mu+z\sigma=250+2.33\times 3=256.99 mg, about 257.0257.0 mg

With z≈2.326z\approx 2.326 on the calculator, x≈256.98x\approx 256.98 mg: the same answer to one decimal place.

Pitfall: answering 2.332.33; the question asks for a MASS, not a z-score.

e)

Each percentage gives an equation of the form x=μ+zσx=\mu+z\sigma.

10%10\% below 246246: Φ(z)=0.10\Phi(z)=0.10, z≈−1.28z\approx -1.28, so μ−1.28 σ=246\mu-1.28\,\sigma=246.

5%5\% above 256256: Φ(z)=0.95\Phi(z)=0.95, halfway between Φ(1.64)=0.9495\Phi(1.64)=0.9495 and Φ(1.65)=0.9505\Phi(1.65)=0.9505, so z≈1.645z\approx 1.645 and μ+1.645 σ=256\mu+1.645\,\sigma=256.

Subtracting: 2.925 σ=102.925\,\sigma=10, σ≈3.42\sigma\approx 3.42 mg, then μ=246+1.28×3.419≈250.38\mu=246+1.28\times 3.419\approx 250.38 mg.

Check: 246−250.383.42≈−1.28\dfrac{246-250.38}{3.42}\approx -1.28 and 256−250.383.42≈1.64\dfrac{256-250.38}{3.42}\approx 1.64. The adjustment slightly shifted the press off centre and increased the spread.

Pitfall: taking +1.28+1.28 for the bottom 10%10\%; a mass below the mean has a negative z-score.

Exercise 5: Approximating a binomial by a normal: conditions and the half unit

9 answers to check

To check its 85%85\% claim, the seed company of exercise 1 sows 200 seeds from the lot, one per pot. We assume that the number XX of seeds that germinate follows the distribution B(200, 0.85)\mathcal{B}(200,\,0.85). The figure shows this distribution, as bars of width 1 centred on the integers, and the curve of the normal distribution with the same mean and the same standard deviation.

Criterion of this course: the normal approximation is accepted if np≥5np\ge 5 and n(1−p)≥5n(1-p)\ge 5. Some CEGEPs require 1010, or np(1−p)≥9np(1-p)\ge 9; the method does not change, you only have to name the criterion used.

1551601651701751801850.010.020.030.040.050.060.070.080.09germinated seeds out of 200
  • a) Check the conditions for the approximation, then give the mean μ\mu and the standard deviation σ\sigma of the normal distribution that approximates XX.
  • b) Compute P(X≥175)P(X\ge 175) by the normal approximation with the continuity correction, then without it. The exact value, computed with software, is 0.18760.1876: which of the two approximations is better?
  • c) Compute P(X=170)P(X=170) by the normal approximation. What would the approximation give without the correction?
  • d) Compute P(X>175)P(X>175) by the approximation. Explain, using the bars of the figure, why the bound is not the one from part b).
  • e) Another lot advertises 99%99\% germination, and 200 seeds are sown again. Check the conditions, then compute the probability that the approximating normal assigns to “more than 200 germinated seeds”. Conclude.

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) np=170np=170, n(1−p)=30n(1-p)=30; μ=170\mu=170, σ=25.5≈5.05\sigma=\sqrt{25.5}\approx 5.05
  • b) With the correction 0.18670.1867; without 0.16110.1611; the correction is better
  • c) Φ(0.10)−Φ(−0.10)=0.0796\Phi(0.10)-\Phi(-0.10)=0.0796; without the correction, 00
  • d) Bound 175.5175.5: P(X>175)≈0.1379P(X>175)\approx 0.1379
  • e) No, n(1−p)=2<5n(1-p)=2<5; the normal gives 0.03750.0375 to an impossible event
a)

np=200×0.85=170≥5np=200\times 0.85=170\ge 5 and n(1−p)=200×0.15=30≥5n(1-p)=200\times 0.15=30\ge 5: both conditions are met.

μ=np=170\mu=np=170 and σ=np(1−p)=25.5≈5.050\sigma=\sqrt{np(1-p)}=\sqrt{25.5}\approx 5.050

We therefore replace XX by a variable YY with a normal distribution of mean 170 and standard deviation 5.0505.050.

Pitfall: taking σ=25.5\sigma=25.5; that is the variance.

b)

“At least 175” contains the bar of 175, which extends from 174.5174.5 to 175.5175.5 (first figure of the solution). The area therefore starts at 174.5174.5:

z=174.5−1705.050≈0.89z=\dfrac{174.5-170}{5.050}\approx 0.89, P(X≥175)≈1−Φ(0.89)=1−0.8133=0.1867P(X\ge 175)\approx 1-\Phi(0.89)=1-0.8133=0.1867

Without the correction: z=175−1705.050≈0.99z=\dfrac{175-170}{5.050}\approx 0.99, and 1−Φ(0.99)=1−0.8389=0.16111-\Phi(0.99)=1-0.8389=0.1611.

Differences from the exact value 0.18760.1876: 0.00090.0009 with the correction, 0.02650.0265 without it. The corrected approximation is the better one.

Without the half unit, the left half of the bar of 175 is cut off, about 12P(X=175)≈0.025\dfrac{1}{2}P(X=175)\approx 0.025: almost the whole error.

Pitfall: starting the area at 175175, or worse at 175.5175.5, which removes the whole bar of 175.

c)

A single value of XX becomes the interval of its bar:

P(X=170)≈P(169.5≤Y≤170.5)P(X=170)\approx P(169.5\le Y\le 170.5), with z=±0.55.050≈±0.10z=\pm\dfrac{0.5}{5.050}\approx\pm 0.10

Φ(0.10)−Φ(−0.10)=0.5398−0.4602=0.0796\displaystyle \Phi(0.10)-\Phi(-0.10)=0.5398-0.4602=0.0796

The exact value is (200170)(0.85)170(0.15)30≈0.0788\binom{200}{170}(0.85)^{170}(0.15)^{30}\approx 0.0788: the approximation is very good.

Without the correction, we would compute P(Y=170)=0P(Y=170)=0: a normal measures, it gives probability only to an interval. The continuity correction is exactly what turns a counted integer into a measured interval.

d)

“More than 175” starts at 176: the bar of 175 is EXCLUDED, and the bar of 176 starts at 175.5175.5.

P(X>175)=P(X≥176)≈P(Y≥175.5)P(X>175)=P(X\ge 176)\approx P(Y\ge 175.5), z=175.5−1705.050≈1.09z=\dfrac{175.5-170}{5.050}\approx 1.09

1−Φ(1.09)=1−0.8621=0.13791-\Phi(1.09)=1-0.8621=0.1379 (exact value: 0.13680.1368).

Rule: first translate the event into integers (X≥175X\ge 175 or X≥176X\ge 176), then take the OUTER edge of the bar at the boundary of the event: k−0.5k-0.5 for X≥kX\ge k, k+0.5k+0.5 for X≤kX\le k.

The choice between >> and ≥\ge, which makes no difference for YY, changes the answer here by about 0.050.05: that is the bar of 175, P(X=175)≈0.0508P(X=175)\approx 0.0508.

e)

np=198np=198, but n(1−p)=200×0.01=2<5n(1-p)=200\times 0.01=2<5: the second condition fails, the approximation is not allowed.

The calculation shows why. With μ=198\mu=198 and σ=1.98≈1.407\sigma=\sqrt{1.98}\approx 1.407, “more than 200” corresponds to Y>200.5Y>200.5:

z=200.5−1981.407≈1.78z=\dfrac{200.5-198}{1.407}\approx 1.78, 1−Φ(1.78)=1−0.9625=0.03751-\Phi(1.78)=1-0.9625=0.0375

The normal gives almost 4%4\% to an impossible event: XX never exceeds n=200n=200. The exact distribution is very skewed, pressed against its bound (second figure of the solution), whereas the normal is symmetric.

The exact calculation remains simple: P(X=200)=(0.99)200≈0.1340P(X=200)=(0.99)^{200}\approx 0.1340, while the normal would give Φ(1.78)−Φ(1.07)=0.9625−0.8577=0.1048\Phi(1.78)-\Phi(1.07)=0.9625-0.8577=0.1048.

Pitfall: checking only np≥5np\ge 5; with pp close to 1, it is the other condition that fails.

1551601651701751801850.010.020.030.040.050.060.070.080.09174.5germinated seeds out of 200
b) The bar of 175 starts at 174.5174.5: the green area under the curve covers the orange bars of X≥175X\ge 175.
1901911921931941951961971981992002012022032040.050.10.150.20.250.30.35more than 200:impossiblegerminated out of 200, p = 0.99
e) With p=0.99p=0.99, the distribution is pressed against 200; the normal spills over beyond 200.5200.5 (red), onto impossible values.

Part B: problems and reasoning (/50)

Exercise 6: The pH of rain: a normal, then a binomial

6 answers to check

An air quality monitoring station (fictional data) measures the pH of each rain event. Over several years, the pH of an event is well described by a normal distribution with mean μ=4.90\mu=4.90 and standard deviation σ=0.35\sigma=0.35. For comparison, unpolluted rain has a pH close to 5.65.6, because of dissolved carbon dioxide.

A rain event is called “very acidic” if its pH is below 4.304.30. The figure gives the density of the pH and the three thresholds of the exercise.

3.84.24.655.45.84.304.505.60pH of a rain event
  • a) The pH is a logarithmic quantity, bounded in practice. Show that the normal model assigns a negligible probability to a pH above 7, then compute the proportion of events with a pH between 4.504.50 and 5.605.60.
  • b) Compute the probability pp that an event is very acidic.
  • c) A season has 40 rain events, and YY denotes the number of very acidic events. Discuss the conditions for a binomial distribution, in particular independence, then give E(Y)E(Y) assuming Y∼B(40, p)Y\sim\mathcal{B}(40,\,p).
  • d) Can the distribution of YY be approximated by a normal distribution? Compute P(Y≥4)P(Y\ge 4).
  • e) This season, the station recorded 6 very acidic events. Compute P(Y≥6)P(Y\ge 6) in the model, then write what can be concluded from it, and what cannot.

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) z=6z=6 for pH 77: negligible; Φ(2.00)−Φ(−1.14)=0.8501\Phi(2.00)-\Phi(-1.14)=0.8501
  • b) p=Φ(−1.71)=0.0436p=\Phi(-1.71)=0.0436
  • c) Independence accepted as an assumption; E(Y)=1.744E(Y)=1.744
  • d) No, np<5np<5; P(Y≥4)≈0.0955P(Y\ge 4)\approx 0.0955
  • e) P(Y≥6)≈0.0074P(Y\ge 6)\approx 0.0074: signal of a change, without proof of its cause
a)

For a pH of 7: z=7−4.900.35=6.00z=\dfrac{7-4.90}{0.35}=6.00. The table stops around z=3.5z=3.5, where the area to the right is already below 0.00030.0003; for z=6z=6, it is about 10−910^{-9}: negligible.

The model also gives a nonzero probability to a negative pH, but at z=−14z=-14: no practical consequence. A model does not have to be true everywhere, only where it is used.

z1=4.50−4.900.35≈−1.14z_{1}=\dfrac{4.50-4.90}{0.35}\approx -1.14 and z2=5.60−4.900.35=2.00z_{2}=\dfrac{5.60-4.90}{0.35}=2.00

P(4.50<pH<5.60)=Φ(2.00)−Φ(−1.14)=0.9772−0.1271=0.8501\displaystyle P(4.50<\text{pH}<5.60)=\Phi(2.00)-\Phi(-1.14)=0.9772-0.1271=0.8501

About 85%85\% of the events have a pH in this range.

b)

z=4.30−4.900.35≈−1.71z=\dfrac{4.30-4.90}{0.35}\approx -1.71, and p=Φ(−1.71)=1−Φ(1.71)=1−0.9564=0.0436p=\Phi(-1.71)=1-\Phi(1.71)=1-0.9564=0.0436.

A little more than 4 events in 100 are very acidic, in this model.

Pitfall: rounding zz to −1.7-1.7; the table is read to two decimal places, and Φ(−1.70)=0.0446\Phi(-1.70)=0.0446 already changes the third digit.

c)

The number of trials is fixed (n=40n=40 events), each event is very acidic or not, and the probability p=0.0436p=0.0436 is assumed to be the same throughout the season.

Independence is the weakest assumption: two events close together often come from the same air mass and have similar pH values. We accept it here as an assumption of the model, to be checked against the data.

E(Y)=np=40×0.0436=1.744\displaystyle E(Y)=np=40\times 0.0436=1.744

On average, fewer than two very acidic events per season.

d)

No: np=1.744<5np=1.744<5. The distribution of YY is very skewed, pressed against 0 (figure of the solution), and a symmetric curve would describe it poorly. We compute with the binomial itself.

P(Y≥4)=1−P(Y≤3)=1−∑k=03(40k)(0.0436)k(0.9564)40−k\displaystyle P(Y\ge 4)=1-P(Y\le 3)=1-\sum_{k=0}^{3}\binom{40}{k}(0.0436)^{k}(0.9564)^{40-k}

P(Y=0)≈0.1681P(Y=0)\approx 0.1681, P(Y=1)≈0.3065P(Y=1)\approx 0.3065, P(Y=2)≈0.2725P(Y=2)\approx 0.2725, P(Y=3)≈0.1574P(Y=3)\approx 0.1574

P(Y≥4)≈1−0.9045=0.0955\displaystyle P(Y\ge 4)\approx 1-0.9045=0.0955

Pitfall: approximating by a normal because n=40n=40 seems large; it is npnp that decides, and it is less than 2.

e)

P(Y≥6)=1−P(Y≤5)≈0.0074P(Y\ge 6)=1-P(Y\le 5)\approx 0.0074: in the model, roughly one season in 135 would have 6 or more very acidic events.

What can be concluded: such a season would be very rare if the model (normal pH with mean 4.904.90, independent events) described this season well. The observation is therefore a signal that something has changed: the mean pH has dropped, or the acidic events come in clusters.

What cannot be concluded: which of these explanations is the right one, or that pollution has “certainly” increased. A rare event is not impossible, and a single season does not settle the matter. The chapter on hypothesis tests gives the framework for deciding with a risk of error fixed in advance.

Pitfall: computing P(Y=6)P(Y=6); rarity is judged on “6 or more”, because 7 or 8 events would be even more surprising.

4.34.95.5p ≈ 0.0436pH of one event012345678Y ≥ 6: 0.0074very acidic events out of 40

Exercise 7: Honeybee wings: a rounded measurement is an interval

9 answers to check

An entomology team measures under a stereo microscope the length LL of the forewing of 200 worker bees from an apiary, to the nearest tenth of a millimetre. The table and the histogram give the counts for each displayed value. We model LL by a normal distribution with mean μ=9.20\mu=9.20 mm and standard deviation σ=0.15\sigma=0.15 mm (fictional but plausible values).

The instrument rounds to the nearest tenth: a displayed value of 9.39.3 means 9.25≤L<9.359.25\le L<9.35.

Displayed value (mm)Count
8.82
8.99
9.021
9.141
9.250
9.343
9.423
9.59
9.62
Total200
8.78.88.999.19.29.39.49.59.69.7102030405060countmm
  • a) Compute, in the model, the probability that the displayed value is 9.39.3, and compare it with the observed relative frequency. What is P(L=9.3)P(L=9.3), and why is it not the same question?
  • b) Compute the count expected by the model for the displayed value 9.09.0, and compare it with the observed count.
  • c) Compute, in the model, the proportion of worker bees whose displayed value is strictly greater than 9.59.5. Also compute P(L>9.5)P(L>9.5) and say which of the two numbers answers the question.
  • d) Find the 90th percentile of LL, the length that 90%90\% of the wings do not exceed.
  • e) 25 worker bees are sampled at random from a hive of several tens of thousands of individuals, and WW denotes the number of them whose displayed value is at least 9.49.4. Justify that WW approximately follows a binomial distribution, then compute E(W)E(W) and P(W≥5)P(W\ge 5).

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Φ(1.00)−Φ(0.33)=0.2120\Phi(1.00)-\Phi(0.33)=0.2120, observed 0.2150.215; P(L=9.3)=0P(L=9.3)=0
  • b) P=0.1112P=0.1112; 200×0.1112≈22.2200\times 0.1112\approx 22.2 expected, 21 observed
  • c) P(L≥9.55)=0.0099P(L\ge 9.55)=0.0099 answers; P(L>9.5)=0.0228P(L>9.5)=0.0228 does not
  • d) L90≈9.39L_{90}\approx 9.39 mm
  • e) W∼B(25, 0.1587)W\sim\mathcal{B}(25,\,0.1587); E(W)≈3.97E(W)\approx 3.97; P(W≥5)≈0.3638P(W\ge 5)\approx 0.3638
a)

Displayed value 9.39.3: we compute P(9.25≤L<9.35)P(9.25\le L<9.35).

z1=9.25−9.200.15≈0.33z_{1}=\dfrac{9.25-9.20}{0.15}\approx 0.33 and z2=9.35−9.200.15=1.00z_{2}=\dfrac{9.35-9.20}{0.15}=1.00

Φ(1.00)−Φ(0.33)=0.8413−0.6293=0.2120\displaystyle \Phi(1.00)-\Phi(0.33)=0.8413-0.6293=0.2120

Observed relative frequency: 43200=0.215\dfrac{43}{200}=0.215. Model and data agree to within three thousandths.

P(L=9.3)=0P(L=9.3)=0: the true length of a wing is never exactly 9.3000…9.3000\ldots mm. What we observe is not a value, it is the rounding class that contains it.

This is the same idea as the continuity correction of exercise 5: a displayed number, like a counted integer, stands for an interval whose width is the precision.

b)

Displayed value 9.09.0: 8.95≤L<9.058.95\le L<9.05, with z1=8.95−9.200.15≈−1.67z_{1}=\dfrac{8.95-9.20}{0.15}\approx -1.67 and z2=9.05−9.200.15=−1.00z_{2}=\dfrac{9.05-9.20}{0.15}=-1.00.

P=Φ(−1.00)−Φ(−1.67)=0.1587−0.0475=0.1112\displaystyle P=\Phi(-1.00)-\Phi(-1.67)=0.1587-0.0475=0.1112

Expected count: 200×0.1112≈22.2200\times 0.1112\approx 22.2 worker bees, against 21 observed.

The curve in the solution overlays on the histogram the expected counts per class, about 200×0.1×f(x)200\times 0.1\times f(x): the model follows the data well. Judging the gap between observed and expected counts formally is the job of the chi-square test.

c)

“Displayed strictly above 9.59.5” means displayed 9.69.6 or more, so L≥9.55L\ge 9.55.

z=9.55−9.200.15≈2.33z=\dfrac{9.55-9.20}{0.15}\approx 2.33, P(L≥9.55)=1−0.9901=0.0099P(L\ge 9.55)=1-0.9901=0.0099

The direct calculation P(L>9.5)P(L>9.5) gives z=2.00z=2.00 and 1−0.9772=0.02281-0.9772=0.0228, more than double: it counts the wings displayed as 9.59.5, from 9.509.50 to 9.559.55 mm, which the question excludes.

The data give 2 wings displayed as 9.69.6 out of 200, that is 0.010.01: it is indeed 0.00990.0099 that answers the question.

Pitfall: standardizing the displayed value instead of the boundary of its class; it is the forgotten half unit, in another form.

d)

Φ(z)=0.90\Phi(z)=0.90 gives z≈1.28z\approx 1.28, hence:

L90=9.20+1.28×0.15=9.392L_{90}=9.20+1.28\times 0.15=9.392 mm, about 9.399.39 mm

With z≈1.2816z\approx 1.2816 on the calculator, we also get 9.3929.392 mm: 90%90\% of the worker bees have a wing shorter than about 9.399.39 mm.

e)

Each sampled worker bee either has or does not have a displayed value of at least 9.49.4, that is L≥9.35L\ge 9.35:

p=1−Φ(1.00)=0.1587\displaystyle p=1-\Phi(1.00)=0.1587

The sampling is without replacement, but 25 worker bees out of several tens of thousands are less than 0.1%0.1\% of the hive, well under 5%5\%: pp hardly moves from one draw to the next. Taken at random from the whole hive, and not from a single frame, the worker bees make independence reasonable. Hence W∼B(25, 0.1587)W\sim\mathcal{B}(25,\,0.1587), as a good approximation.

E(W)=25×0.1587≈3.97\displaystyle E(W)=25\times 0.1587\approx 3.97

np≈3.97<5np\approx 3.97<5: no normal approximation. By the complement, five terms:

P(W≥5)=1−P(W≤4)≈1−0.6362=0.3638\displaystyle P(W\ge 5)=1-P(W\le 4)\approx 1-0.6362=0.3638

More than one sample in three contains at least 5 worker bees with long wings.

8.78.88.999.19.29.39.49.59.69.7102030405060modelcountmm

Exercise 8: Five statements to correct

6 answers to check

Each of the following five statements was found on a student's paper, and each one is false. For each, explain the error, give the correct statement and support it with the requested calculation.

  • a) “If X∼B(50, 0.5)X\sim\mathcal{B}(50,\,0.5), the most likely value is 25, so P(X=25)=0.5P(X=25)=0.5.” Compute P(X=25)P(X=25).
  • b) “The normal approximation of B(n, p)\mathcal{B}(n,\,p) is valid as soon as n≥30n\ge 30.” Compute npnp for the distribution B(400, 0.005)\mathcal{B}(400,\,0.005) and conclude.
  • c) “For the mass XX of the tablets in exercise 4, P(X≤250)=0.5P(X\le 250)=0.5, but P(X<250)P(X<250) is slightly smaller, since the value 250 is removed.” Compute P(X<250)P(X<250).
  • d) “The diameter DD of the balls in a bearing follows a normal distribution with mean 6.0006.000 mm and standard deviation 0.0020.002 mm, so no ball exceeds 6.0066.006 mm.” Compute P(D>6.006)P(D>6.006), then the number of balls expected above 6.0066.006 mm in a production run of 100,000100{,}000 balls.
  • e) “If X∼B(100, 0.25)X\sim\mathcal{B}(100,\,0.25), P(X≥30)P(X\ge 30) is approximated by P(Y≥30.5)P(Y\ge 30.5), where YY follows the approximating normal.” Compute the correct approximation of P(X≥30)P(X\ge 30).

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) P(X=25)≈0.1123P(X=25)\approx 0.1123: the mode does not have probability 0.50.5
  • b) np=2<5np=2<5: the approximation is not allowed despite n=400n=400
  • c) P(X<250)=P(X≤250)=0.5P(X<250)=P(X\le 250)=0.5
  • d) P(D>6.006)≈0.0013P(D>6.006)\approx 0.0013; about 135 balls out of 100,000100{,}000
  • e) Bound 29.529.5: P(X≥30)≈0.1492P(X\ge 30)\approx 0.1492
a)

The mode is indeed 25, but being the most likely value does not mean having probability 0.50.5: the 51 values share a total probability of 1.

P(X=25)=(5025)(0.5)50≈0.1123\displaystyle P(X=25)=\binom{50}{25}(0.5)^{50}\approx 0.1123

So there is almost an 89%89\% chance of NOT getting exactly 25. By symmetry, P(X≤24)=P(X≥26)=1−0.11232≈0.4439P(X\le 24)=P(X\ge 26)=\dfrac{1-0.1123}{2}\approx 0.4439.

Correction: “the mode is 25, and P(X=25)≈0.11P(X=25)\approx 0.11.”

b)

The criterion is about npnp and n(1−p)n(1-p), not about nn alone. For B(400, 0.005)\mathcal{B}(400,\,0.005), n=400n=400, but:

np=400×0.005=2<5\displaystyle np=400\times 0.005=2<5

The distribution is pressed against 0: P(X=0)=(0.995)400≈0.1347P(X=0)=(0.995)^{400}\approx 0.1347. The normal with mean 2 and standard deviation 1.99≈1.41\sqrt{1.99}\approx 1.41 would place, with the correction, an area P(Y<−0.5)=Φ(−1.77)=0.0384P(Y<-0.5)=\Phi(-1.77)=0.0384 on negative values, which are impossible.

The threshold n≥30n\ge 30 comes from another result, the central limit theorem, studied in the next chapter.

Correction: “the approximation is accepted if np≥5np\ge 5 and n(1−p)≥5n(1-p)\ge 5.”

c)

XX is continuous: P(X=250)=0P(X=250)=0, and removing a value with probability zero changes nothing.

P(X<250)=P(X≤250)=Φ(0)=0.5\displaystyle P(X<250)=P(X\le 250)=\Phi(0)=0.5

The statement applies to a variable that MEASURES the rule for a variable that COUNTS. For the binomial of exercise 1, P(X<8)P(X<8) and P(X≤8)P(X\le 8) really did differ.

d)

“No ball” is too strong: the normal density is strictly positive everywhere, it only gives very small probabilities far from the mean.

z=6.006−6.0000.002=3.00z=\dfrac{6.006-6.000}{0.002}=3.00, P(D>6.006)=1−Φ(3.00)=1−0.9987=0.0013P(D>6.006)=1-\Phi(3.00)=1-0.9987=0.0013

The exact calculation gives 0.001350.00135. Out of 100,000100{,}000 balls, about 135135 are therefore expected above 6.0066.006 mm (130130 with the rounded table value).

Correction: “about 0.13%0.13\% of the balls exceed 6.0066.006 mm: a small proportion but not zero, which makes more than a hundred balls in a large production run”. This is why a manufacturer sorts its balls instead of relying on the model.

e)

“At least 30” contains the bar of 30, which starts at 29.529.5; starting at 30.530.5 removes that whole bar.

μ=25\mu=25, σ=18.75≈4.330\sigma=\sqrt{18.75}\approx 4.330, z=29.5−254.330≈1.04z=\dfrac{29.5-25}{4.330}\approx 1.04

P(X≥30)≈1−Φ(1.04)=1−0.8508=0.1492P(X\ge 30)\approx 1-\Phi(1.04)=1-0.8508=0.1492, for an exact value of 0.14950.1495.

With 30.530.5, we would get z≈1.27z\approx 1.27 and 1−0.8980=0.10201-0.8980=0.1020: the error, 0.0470.047, is roughly P(X=30)≈0.046P(X=30)\approx 0.046, the forgotten bar.

Exercise 9: Full study: a treatment against powdery mildew on squash

6 answers to check

On an experimental farm (fictional data), powdery mildew, a fungus that covers the leaves with a white felt, infects 40%40\% of untreated squash plants by the end of summer, according to several seasons of monitoring. A biological treatment is tested on 150 plants, planted in spaced-out blocks. At the end of the season, 45 treated plants are infected.

Question of the study: is this result compatible with a treatment that has NO effect, or does it suggest it works? We reason within the model “the treatment does nothing”, in which each treated plant is infected with probability 0.400.40. The figure shows the distribution of the number of infected plants in this model, and the observation.

35404550556065707580850.010.020.030.040.050.060.070.08observedinfected plants out of 150
  • a) In this model, let XX be the number of infected plants. Which condition of the binomial distribution does the contagion of powdery mildew threaten? Which choice in the protocol protects it?
  • b) Give the distribution of XX, its expected value and its standard deviation.
  • c) Check the conditions for the normal approximation, then compute P(X≤45)P(X\le 45) with the continuity correction.
  • d) Compute P(X≤45)P(X\le 45) without the correction. The exact value, computed with software, is 0.00710.0071: compare the two approximations.
  • e) Give the observed proportion of infected plants with the treatment, then write the conclusion of the study in three steps: the result, what it means, its limitations.

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Independence; spaced-out blocks and random placement
  • b) X∼B(150, 0.40)X\sim\mathcal{B}(150,\,0.40); E(X)=60E(X)=60; σ=6\sigma=6
  • c) np=60np=60, n(1−p)=90n(1-p)=90; z≈−2.42z\approx -2.42; P(X≤45)≈0.0078P(X\le 45)\approx 0.0078
  • d) Without the correction 0.00620.0062; exact 0.00710.0071; conclusion unchanged
  • e) 30%30\% observed: very unlikely result with no effect, effectiveness suggested, not proven
a)

Contagion threatens INDEPENDENCE: an infected plant releases spores that infect its neighbours, so infected plants appear in clusters. The total number would then vary much more than a binomial predicts.

Planting in spaced-out blocks, and placing the treated plants at random in the field, limits these exchanges: independence can then be accepted as a working assumption, without being taken as certain.

The other conditions hold: n=150n=150 fixed, two outcomes per plant, p=0.40p=0.40 for each plant in the model.

b)
X∼B(150, 0.40)\displaystyle X\sim\mathcal{B}(150,\,0.40)

E(X)=150×0.40=60E(X)=150\times 0.40=60 plants, V(X)=60×0.60=36V(X)=60\times 0.60=36, σ=6\sigma=6 plants

If the treatment did nothing, we would expect 60 infected plants, typically give or take 6. We observe 45, that is 15 fewer: 2.52.5 standard deviations below the expected value.

c)

np=60≥5np=60\ge 5 and n(1−p)=90≥5n(1-p)=90\ge 5: the approximation by the normal distribution with mean 60 and standard deviation 6 is accepted.

“At most 45” contains the bar of 45, which ends at 45.545.5 (figure of the solution):

z=45.5−606≈−2.42z=\dfrac{45.5-60}{6}\approx -2.42, P(X≤45)≈Φ(−2.42)=1−0.9922=0.0078P(X\le 45)\approx\Phi(-2.42)=1-0.9922=0.0078

Fewer than one season in a hundred would give 45 or fewer infected plants if the treatment had no effect.

d)

Without the correction: z=45−606=−2.50z=\dfrac{45-60}{6}=-2.50, Φ(−2.50)=0.0062\Phi(-2.50)=0.0062.

Compared with the exact value 0.00710.0071, the corrected approximation is off by 0.00070.0007 (about 10%10\% in relative terms), the one without correction by 0.00090.0009 (about 13%13\%).

So far out in the tail, the approximation loses relative accuracy, even when corrected: the binomial is slightly skewed, the normal is not. The conclusion, however, does not change: the probability stays below 1%1\%.

Lesson of method: when software gives the exact value, report it; the approximation is for reasoning by hand and for checking an order of magnitude.

e)

Observed proportion: 45150=0.30\dfrac{45}{150}=0.30, that is 30%30\% of plants infected with the treatment, against 40%40\% expected with no effect.

Result: 45 infected plants out of 150 treated, when the no-effect model predicts 60, give or take 6.

Meaning: if the treatment had no effect, a result this low or lower would occur only with a probability of about 0.0070.007, less than once in a hundred. The data are therefore hard to reconcile with the absence of an effect, and suggest that the treatment reduces infection.

Limitations: the conclusion rests on the model (independent plants, a 40%40\% rate assumed stable from one season to the next); a drier season would reduce powdery mildew even without treatment. An untreated control plot in the same season would remove this doubt. The chapter on hypothesis tests formalizes this reasoning with a threshold fixed in advance.

Pitfall: writing “the treatment is 99.2%99.2\% effective”; 0.00780.0078 is a probability computed by ASSUMING the treatment is ineffective, not the probability that it is effective.

35404550556065707580850.010.020.030.040.050.060.070.0845.5infected plants out of 150

Exercise 10: Full study: which dilution for counting colonies?

11 answers to check

To estimate the concentration of bacteria in lake water, a laboratory spreads 0.10.1 mL of a suspension on a Petri dish; after incubation, each bacterium deposited gives a visible colony. A dish is kept only if it has 30 to 300 colonies: below that, chance weighs too heavily; above it, the colonies touch each other. This is the convention of this laboratory, common in microbiology.

Model: the suspension is a well-mixed 10 mL tube containing NN bacteria. Each bacterium ends up in the 0.10.1 mL taken with probability p=0.110=0.01p=\dfrac{0.1}{10}=0.01, independently of the others. The number XX of colonies therefore follows the distribution B(N, 0.01)\mathcal{B}(N,\,0.01). The figure shows the dilution protocol.

lake water10 mL1 mL+ 9 mL1/10 dilution10 mL1 mL+ 9 mL1/100 dilution10 mL0.1 mLPetri dishcolonies counted
  • a) For a very dilute suspension, N=400N=400. Compute E(X)E(X) and V(X)V(X), and say whether the normal approximation is allowed.
  • b) Still for N=400N=400, compute the exact probability of a dish with no colony at all, then P(X≤2)P(X\le 2).
  • c) Beyond the minimum required by the course framework: when NN is large and pp small, the Poisson distribution with parameter λ=Np\lambda=Np, P(X=k)=e−λλkk!P(X=k)=\dfrac{e^{-\lambda}\lambda^{k}}{k!}, approximates the binomial. Compute P(X≤2)P(X\le 2) with λ=4\lambda=4 and compare with the result of b).
  • d) A previous analysis estimates the lake water at about 25,00025{,}000 bacteria per millilitre. The tube of raw water then contains N=250,000N=250{,}000 bacteria, the tube diluted tenfold N=25,000N=25{,}000, and the tube diluted a hundredfold N=2500N=2500. Give E(X)E(X) for each; then compute, by the normal approximation with the continuity correction, the probability that a dish is kept (30 to 300 colonies) for the 1/10 dilution and for the 1/100 dilution.
  • e) Which dilution should the laboratory spread? A dish of this dilution has 238 colonies: estimate the concentration of the lake water in bacteria per millilitre, and say what limits this estimate.

Type your answers, the page tells you right or wrong 0/11

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) E(X)=4E(X)=4; V(X)=3.96V(X)=3.96; no, Np<5Np<5
  • b) P(X=0)≈0.0180P(X=0)\approx 0.0180; P(X≤2)≈0.2366P(X\le 2)\approx 0.2366
  • c) 13 e−4≈0.238113\,e^{-4}\approx 0.2381, difference 0.00150.0015
  • d) E(X)=2500E(X)=2500, 250250, 2525; dish kept: 0.99930.9993 for 1/10, 0.18410.1841 for 1/100
  • e) The 1/10 dilution; 23,80023{,}800 bacteria per mL, give or take about fifteen colonies per dish
a)

E(X)=Np=400×0.01=4E(X)=Np=400\times 0.01=4 colonies and V(X)=Np(1−p)=4×0.99=3.96V(X)=Np(1-p)=4\times 0.99=3.96.

Np=4<5Np=4<5: the normal approximation is not allowed. We compute with the binomial itself.

b)

P(X=0)=(0.99)400≈0.0180P(X=0)=(0.99)^{400}\approx 0.0180: about one dish in 56 would stay empty, even though the tube contains 400 bacteria.

P(X≤2)=(0.99)400+400(0.01)(0.99)399+(4002)(0.01)2(0.99)398\displaystyle P(X\le 2)=(0.99)^{400}+400(0.01)(0.99)^{399}+\binom{400}{2}(0.01)^{2}(0.99)^{398}
P(X≤2)≈0.0180+0.0725+0.1462=0.2366\displaystyle P(X\le 2)\approx 0.0180+0.0725+0.1462=0.2366

Almost one dish in four has 2 colonies or fewer: such a sparse dish says very little about NN.

c)
P(X≤2)≈e−4(1+4+422)=13 e−4≈0.2381\displaystyle P(X\le 2)\approx e^{-4}\left(1+4+\dfrac{4^{2}}{2}\right)=13\,e^{-4}\approx 0.2381

The difference from the binomial is 0.00150.0015; for an empty dish, e−4≈0.0183e^{-4}\approx 0.0183 against 0.01800.0180.

The Poisson distribution only needs λ\lambda, not NN: it is the natural distribution for counting rare events in a volume. It is not required by the framework of this course and serves here as a check.

d)

E(X)=0.01 NE(X)=0.01\,N: 25002500 colonies for the raw water, 250250 for the 1/10 dilution, 2525 for the 1/100 dilution.

Raw water: 2500 colonies expected, far beyond 300; the dish cannot be read.

1/10 dilution: μ=250\mu=250, σ=25,000×0.01×0.99=247.5≈15.73\sigma=\sqrt{25{,}000\times 0.01\times 0.99}=\sqrt{247.5}\approx 15.73, conditions easily met.

P(30≤X≤300)≈P(29.5≤Y≤300.5)P(30\le X\le 300)\approx P(29.5\le Y\le 300.5), with z1=29.5−25015.73≈−14.02z_{1}=\dfrac{29.5-250}{15.73}\approx -14.02 and z2=300.5−25015.73≈3.21z_{2}=\dfrac{300.5-250}{15.73}\approx 3.21

P≈Φ(3.21)−Φ(−14.02)≈0.9993−0=0.9993\displaystyle P\approx\Phi(3.21)-\Phi(-14.02)\approx 0.9993-0=0.9993

1/100 dilution: μ=25\mu=25, σ=24.75≈4.97\sigma=\sqrt{24.75}\approx 4.97, and np=25≥5np=25\ge 5. The bound 300 is more than 55 standard deviations away: only the bound 30 matters.

z=29.5−254.97≈0.90z=\dfrac{29.5-25}{4.97}\approx 0.90, P(30≤X≤300)≈1−Φ(0.90)=1−0.8159=0.1841P(30\le X\le 300)\approx 1-\Phi(0.90)=1-0.8159=0.1841

e)

Only the 1/10 dilution almost always gives a dish that is kept, more than 999 times out of 1000. The raw water saturates the dish, and the 1/100 dilution reaches 30 colonies only about one time in five (figure of the solution). The laboratory therefore spreads the 1/10 dilution.

The 238 colonies come from 0.10.1 mL of the 1/10 dilution, that is from 0.010.01 mL of lake water:

2380.01=23,800\dfrac{238}{0.01}=23{,}800 bacteria per millilitre

This is an estimate, subject to the randomness of sampling: with σ≈15.7\sigma\approx 15.7 colonies, another dish from the same suspension would typically have about fifteen more or fewer. Laboratories spread several dishes and take the average.

Pitfall: forgetting one of the two factors of 10, that of the dilution or that of the volume spread, and announcing 23802380 bacteria per millilitre.

501001502002503003500.010.020.030.040.050.060.070.080.091/100: μ = 251/10: μ = 250countable: 30 to 300raw water: μ = 2500 →
Something missing from this set? A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.

Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space. Rather not create an account? Write to me directly.

What is it about?
I read every request myself, nobody else sees it. No need to write your name or your school.
When your request is dealt with, you hear about it by email and in your space.

By sending, you agree that I read your request to answer it. It is kept with your account, erased with it, and never published: privacy policy.

This chapter comes back in

The chapters that build on it, later in the year or in the years that follow.

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/cegep-sn1-binomial-normal-distributions. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

Looking for a probability and statistics tutor in Montreal?

Get in touch for a first session. The binomial and normal distributions come back in every exam of the course, then throughout the inference chapters: knowing which distribution to choose, checking its conditions and placing the right bound earns marks on every question.

Site by Studio Squalli