Advanced Statistics 201-337 • CEGEP, Montreal

Corrected exercises: probability and distributions (201-337)

Here are ten corrected exercises on probability and probability distributions for the Advanced Statistics course, 201-337, at CEGEP, preceded by a list of calculations. Probability is the bridge between describing a sample, seen in the previous chapter, and making inferences about a population, which comes next. Without it, nothing can be concluded beyond the observed data. The set covers the rules of probability, mutually exclusive and independent events, conditional probability and Bayes' theorem, discrete random variables with their expected value and variance, counting (permutations and combinations), the binomial distribution, the hypergeometric distribution for sampling without replacement, the Poisson distribution, the normal distribution and z-scores, and the normal approximation to the binomial.

Exercise 0.1 opens the set with ten probabilities to compute directly from a given distribution, as in textbook drill lists: the binomial distribution with “exactly”, “at most” and “at least one”, its expected value and standard deviation, the Poisson distribution, the normal distribution read from the z-table in both directions, up to the cutoff xx such that P(X>x)=0.10P(X>x)=0.10, and the normal approximation to a binomial with the continuity correction, each with a value to find that is checked as you type it.

By the end, you can tell mutually exclusive from independent events by calculation (exercise 1), decide whether a carnival game is fair from its expected value and see what an insurer makes of it (exercise 3), recognize the right counting case depending on whether order matters and repetition is allowed, from anagrams to a round table (exercises 4 and 7), switch from the binomial to the hypergeometric distribution when sampling without replacement (exercise 6), justify a Poisson distribution and use it for phone calls or defective parts (exercise 8), apply the continuity correction by replacing 60 with 59.5 (exercise 9) and tune a production line with the normal distribution (exercise 10).

Exercise 2 holds the most counterintuitive result of the whole course, and the most useful one in real life: a screening test that is 99% reliable, applied to a rare disease, gives a person who tests positive only a 9% probability of actually being ill. It is not a paradox, it is what Bayes' theorem dictates, and it is the reason a rare disease is not screened for on a mass scale.

11 corrected exercises • 110 points • 150 minutes

This chapter is part of 201-337, every chapter with its set and sheet Before you start Revision sheet: the traps and the method for this chapter

Self-checking set Type your answers and check them question by question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points, and your right answers stay filled in when you come back.

Course recap

  • • Basic rules: 0≤P(A)≤10\leq P(A)\leq 1, P(A‾)=1−P(A)P\left(\overline{A}\right)=1-P(A), and P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B), the last term vanishing when the events are mutually exclusive.
  • • INDEPENDENT events: P(A∩B)=P(A)×P(B)P(A\cap B)=P(A)\times P(B). Do not confuse this with mutually exclusive, which means P(A∩B)=0P(A\cap B)=0: two mutually exclusive events with nonzero probabilities are NEVER independent.
  • • Conditional probability: P(A∣B)=P(A∩B)P(B)P(A\mid B)=\dfrac{P(A\cap B)}{P(B)}.
  • • Bayes' theorem: P(A∣B)=P(B∣A) P(A)P(B)P(A\mid B)=\dfrac{P(B\mid A)\,P(A)}{P(B)}, where P(B)P(B) is computed with the law of total probability.
  • • Counting: permutations n!(n−k)!\dfrac{n!}{(n-k)!} when order matters, combinations (nk)=n!k!(n−k)!\binom{n}{k}=\dfrac{n!}{k!(n-k)!} when order does not matter.
  • • BINOMIAL distribution, for nn independent trials with probability pp: P(X=k)=(nk)pk(1−p)n−kP(X=k)=\binom{n}{k}p^{k}(1-p)^{n-k}, with μ=np\mu=np and σ=np(1−p)\sigma=\sqrt{np(1-p)}.
  • • NORMAL distribution: convert to a z-score with z=x−μσz=\dfrac{x-\mu}{\sigma}, then read the table. Benchmarks: 68% within ±1σ\pm 1\sigma, 95% within ±2σ\pm 2\sigma, 99.7% within ±3σ\pm 3\sigma.
  • • Normal approximation to the binomial, acceptable when np≥5np\geq 5 AND n(1−p)≥5n(1-p)\geq 5: take μ=np\mu=np and σ=np(1−p)\sigma=\sqrt{np(1-p)}, with a CONTINUITY CORRECTION of 0.5.
  • • Discrete random variable: E(X)=∑xiP(xi)E(X)=\sum x_{i}P(x_{i}) and V(X)=E(X2)−[E(X)]2V(X)=E(X^{2})-[E(X)]^{2}. The expected value is a LONG-RUN average, not a prediction: it is often a value that XX never takes. A game is fair when E(X)=0E(X)=0.
  • • Without replacement, the binomial no longer applies: you need a conditional tree or the hypergeometric distribution (ak)(bn−k)(a+bn)\frac{\binom{a}{k}\binom{b}{n-k}}{\binom{a+b}{n}}. The binomial can still be used when the sample is no more than about 5% of the population.
  • • The four counting cases: order and repetition nkn^{k}; order without repetition n!(n−k)!\frac{n!}{(n-k)!}; neither order nor repetition (nk)\binom{n}{k}; permutations of objects that are partly identical n!n1!n2!⋯\frac{n!}{n_{1}!n_{2}!\cdots}. Circular permutations: (n−1)!(n-1)!.
  • • POISSON distribution: P(X=k)=e−λλkk!P(X=k)=\frac{e^{-\lambda}\lambda^{k}}{k!}, with E(X)=V(X)=λE(X)=V(X)=\lambda, a property that serves as a diagnostic test. The parameter is proportional to the length of the observation window. It approximates the binomial when nn is large and pp small, with λ=np\lambda=np.

Calculations: probabilities to compute

Exercise 0.1: Computing probabilities with a given distribution: ten direct calculations

For each line, compute the probability or the parameter asked for with the stated distribution, without justifying the model. Probabilities to four decimal places, expected value, standard deviation and cutoff to two decimal places. For the normal distribution, round zz to two decimal places and read the standard normal table, which gives the area to the LEFT of zz.

Three formulas and one table: P(X=k)=(nk)pk(1−p)n−kP(X=k)=\binom{n}{k}p^{k}(1-p)^{n-k} for the binomial, P(X=k)=e−λλkk!P(X=k)=\frac{e^{-\lambda}\lambda^{k}}{k!} for the Poisson distribution, and z=x−μσz=\frac{x-\mu}{\sigma} to bring any normal distribution back to the table. “At most” is computed as a sum of terms, “at least one” through the complement, and every normal probability is written with areas to the left read from the table. To approximate a binomial by a normal distribution, take μ=np\mu=np and σ=np(1−p)\sigma=\sqrt{np(1-p)}, then shift the bound by half a unit.

  • a) X∼B(6,0.3)X\sim B(6, 0.3): compute P(X=2)P(X=2).
  • b) X∼B(5,0.2)X\sim B(5, 0.2): compute P(X≤1)P(X\leq 1).
  • c) X∼B(8,0.15)X\sim B(8, 0.15): compute P(X≥1)P(X\geq 1).
  • d) X∼B(40,0.35)X\sim B(40, 0.35): compute the expected value E(X)E(X) and the standard deviation σ\sigma.
  • e) XX follows a Poisson distribution with parameter λ=2.5\lambda=2.5: compute P(X=3)P(X=3).
  • f) XX follows a Poisson distribution with parameter λ=1.2\lambda=1.2: compute P(X≤2)P(X\leq 2).
  • g) ZZ follows the standard normal distribution: compute P(Z<1.28)P(Z<1.28), then P(Z>−0.64)P(Z>-0.64).
  • h) XX follows a normal distribution with mean μ=50\mu=50 and standard deviation σ=8\sigma=8: compute P(42<X<62)P(42<X<62).
  • i) XX follows a normal distribution with mean μ=200\mu=200 and standard deviation σ=25\sigma=25: find the value xx such that P(X>x)=0.10P(X>x)=0.10.
  • j) X∼B(75,0.2)X\sim B(75, 0.2): compute P(X≥20)P(X\geq 20) with the normal approximation and the continuity correction.

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

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

Answers

  • a) P(X=2)=15(0.3)2(0.7)4≈0.3241P(X=2)=15(0.3)^{2}(0.7)^{4}\approx 0.3241
  • b) P(X≤1)=0.32768+0.4096≈0.7373P(X\leq 1)=0.32768+0.4096\approx 0.7373
  • c) P(X≥1)=1−(0.85)8≈0.7275P(X\geq 1)=1-(0.85)^{8}\approx 0.7275
  • d) E(X)=14E(X)=14; σ=9.1≈3.02\sigma=\sqrt{9.1}\approx 3.02
  • e) P(X=3)=e−2.5(2.5)36≈0.2138P(X=3)=\frac{e^{-2.5}(2.5)^{3}}{6}\approx 0.2138
  • f) P(X≤2)=2.92 e−1.2≈0.8795P(X\leq 2)=2.92\,e^{-1.2}\approx 0.8795
  • g) P(Z<1.28)=0.8997P(Z<1.28)=0.8997; P(Z>−0.64)=0.7389P(Z>-0.64)=0.7389
  • h) 0.9332−0.1587=0.77450.9332-0.1587=0.7745
  • i) x=200+1.28×25=232.0x=200+1.28\times 25=232.0
  • j) z=19.5−1512≈1.30z=\frac{19.5-15}{\sqrt{12}}\approx 1.30; P(X≥20)≈0.0968P(X\geq 20)\approx 0.0968

The move that decides everything: translate the event before computing. “Exactly kk” is a single term, “at most 1” is two, “at least one” is 1−P(X=0)1-P(X=0), and a normal probability “above” or “between” always comes back to areas to the LEFT, the only ones the table gives.

a)

P(X=2)=(62)(0.3)2(0.7)4=15×0.09×0.2401=0.324135≈0.3241P(X=2)=\binom{6}{2}(0.3)^{2}(0.7)^{4}=15\times 0.09\times 0.2401=0.324135\approx 0.3241. Pitfall: forgetting (62)=15\binom{6}{2}=15, which gives the probability of ONE single sequence, 0.02160.0216.

b)

P(X≤1)=P(X=0)+P(X=1)=(0.8)5+5(0.2)(0.8)4=0.32768+0.4096=0.73728≈0.7373P(X\leq 1)=P(X=0)+P(X=1)=(0.8)^{5}+5(0.2)(0.8)^{4}=0.32768+0.4096=0.73728\approx 0.7373. Pitfall: computing only P(X=1)P(X=1).

c)

P(X≥1)=1−P(X=0)=1−(0.85)8=1−0.27249=0.72751≈0.7275P(X\geq 1)=1-P(X=0)=1-(0.85)^{8}=1-0.27249=0.72751\approx 0.7275. Adding the terms from 1 to 8 would give the same result with eight times as much work.

d)

E(X)=np=40×0.35=14E(X)=np=40\times 0.35=14 and σ=np(1−p)=40×0.35×0.65=9.1≈3.02\sigma=\sqrt{np(1-p)}=\sqrt{40\times 0.35\times 0.65}=\sqrt{9.1}\approx 3.02. Pitfall: giving the variance 9.19.1 as the standard deviation.

e)

P(X=3)=e−2.5(2.5)33!=0.082085×15.6256≈0.2138P(X=3)=\frac{e^{-2.5}(2.5)^{3}}{3!}=\frac{0.082085\times 15.625}{6}\approx 0.2138.

f)

P(X≤2)=e−1.2(1+1.2+1.222)=0.301194×(1+1.2+0.72)=0.301194×2.92≈0.8795P(X\leq 2)=e^{-1.2}\left(1+1.2+\frac{1.2^{2}}{2}\right)=0.301194\times(1+1.2+0.72)=0.301194\times 2.92\approx 0.8795. Pitfall: forgetting the term k=0k=0, which equals e−1.2e^{-1.2} and carries a lot of weight.

g)

The table gives P(Z<1.28)=0.8997P(Z<1.28)=0.8997 directly. By the symmetry of the bell curve, P(Z>−0.64)=P(Z<0.64)=0.7389P(Z>-0.64)=P(Z<0.64)=0.7389. Pitfall: writing 1−0.7389=0.26111-0.7389=0.2611, the area on the wrong side.

h)

The two bounds give z1=42−508=−1.00z_{1}=\frac{42-50}{8}=-1.00 and z2=62−508=1.50z_{2}=\frac{62-50}{8}=1.50. So P(42<X<62)=0.9332−0.1587=0.7745P(42<X<62)=0.9332-0.1587=0.7745. Pitfall: adding the two areas instead of subtracting them.

i)

P(X>x)=0.10P(X>x)=0.10 leaves 0.900.90 to the LEFT: look for 0.900.90 inside the table, which gives z≈1.28z\approx 1.28. So x=μ+zσ=200+1.28×25=232.0x=\mu+z\sigma=200+1.28\times 25=232.0. Pitfall: looking for 0.100.10 in the table, which gives z=−1.28z=-1.28 and x=168x=168, the cutoff of the lowest 10%.

j)

μ=np=75×0.2=15\mu=np=75\times 0.2=15 and σ=75×0.2×0.8=12≈3.464\sigma=\sqrt{75\times 0.2\times 0.8}=\sqrt{12}\approx 3.464; the conditions np=15≥5np=15\geq 5 and n(1−p)=60≥5n(1-p)=60\geq 5 are met. “At least 20” starts at 19.519.5: z=19.5−153.464≈1.30z=\frac{19.5-15}{3.464}\approx 1.30, so P(X≥20)≈1−0.9032=0.0968P(X\geq 20)\approx 1-0.9032=0.0968. Pitfall: keeping 2020, or taking 20.520.5, which removes the value 20 from the event.

Check: a probability stays between 0 and 1, and an “at least one” can be cross-checked by the sum of the terms. For the normal distribution, draw the picture: if the shaded area is more than half of the bell curve, the probability must exceed 0.50.5, as in g) and h).

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: rules, random variables and distributions (/50)

Exercise 1: The rules of probability

Three rules are enough to handle the vast majority of situations: the complement, the union, and independence. Errors almost always come from confusing mutually exclusive with independent.

In a group of 40 students, 22 are taking an optional mathematics course, 18 an optional physics course, and 9 are taking both.

The figure below shows the situation.

40 studentsM: 22P: 189
  • a) Compute the probability that a student chosen at random is taking at least one of the two courses.
  • b) Compute the probability that the student is taking neither.
  • c) Are the two events mutually exclusive? Are they independent? Justify by calculation.
  • d) Explain why two mutually exclusive events with nonzero probabilities can never be independent.

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

a)
b)
c)
d)
Show the solution

Answers

  • a) P(M∪P)=0.550+0.450−0.225=0.775P(M\cup P)=0.550+0.450-0.225=0.775.
  • b) 1−0.775=0.2251-0.775=0.225, that is 9 students out of 40.
  • c) Not mutually exclusive, since P(M∩P)=0.225≠0P(M\cap P)=0.225\neq 0. Not independent either: 0.550×0.450=0.2475≠0.2250.550\times 0.450=0.2475\neq 0.225.
  • d) P(A∩B)=0P(A\cap B)=0 would force P(A)P(B)=0P(A)P(B)=0. Two mutually exclusive events with nonzero probabilities are, on the contrary, strongly dependent.
a)

Let MM be taking the mathematics course and PP taking the physics course. Then P(M)=2240=0.550P(M)=\dfrac{22}{40}=0.550, P(P)=1840=0.450P(P)=\dfrac{18}{40}=0.450 and P(M∩P)=940=0.225P(M\cap P)=\dfrac{9}{40}=0.225. So P(M∪P)=0.550+0.450−0.225=0.775P(M\cup P)=0.550+0.450-0.225=0.775. The intersection must be subtracted, otherwise the nine students taking both would be counted twice.

b)

It is the complementary event: P(M∪P‾)=1−0.775=0.225P\left(\overline{M\cup P}\right)=1-0.775=0.225, that is 9 students out of 40. Check by direct counting: 22+18−9=3122+18-9=31 students are taking at least one of the courses, so 40−31=940-31=9 remain, which confirms it.

c)

They are NOT mutually exclusive, since P(M∩P)=0.225≠0P(M\cap P)=0.225\neq 0: nine students do take both. For independence, compare P(M∩P)P(M\cap P) with the product P(M)×P(P)=0.550×0.450=0.2475P(M)\times P(P)=0.550\times 0.450=0.2475. The intersection is 0.225, a DIFFERENT value: the two events are therefore not independent. The gap is small but real, and points to a slight tendency not to combine the two courses.

d)

If AA and BB are mutually exclusive, then P(A∩B)=0P(A\cap B)=0 by definition. If they were also independent, we would have P(A∩B)=P(A)×P(B)P(A\cap B)=P(A)\times P(B), so P(A)×P(B)=0P(A)\times P(B)=0, which forces at least one of the two probabilities to be zero. As soon as both are strictly positive, the contradiction is immediate. Intuitively, two mutually exclusive events are in fact strongly DEPENDENT: knowing that one has occurred guarantees that the other has not, which is the most extreme form of dependence.

Exercise 2: Conditional probability and Bayes' theorem

Bayes' theorem reverses a conditional probability: it goes from “what is the probability of a positive test if I am ill” to “what is the probability that I am ill if my test is positive”. These two numbers have nothing to do with each other, and confusing them is the most consequential error in applied statistics.

A disease affects 0.50% of the population. A screening test detects 99% of the people who have it (sensitivity) and gives a negative result for 95% of healthy people (specificity).

The figure below shows the situation.

MTTMTT0.0050.990.010.9950.050.95
  • a) For a population of 100,000 people, draw up the table of the four categories: true positives, false positives, true negatives, false negatives.
  • b) How many positive tests are there in total? What proportion of them corresponds to people who are really ill?
  • c) Find this result again with Bayes' theorem.
  • d) The result is surprising: the test is 99% reliable, and yet a person who tests positive has only a 9% chance of being ill. Explain where the gap comes from.
  • e) What do you conclude about mass screening for a rare disease?

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

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

Answers

  • a) 500 ill, 99,500 healthy. True positives 495, false negatives 5, false positives 4,975, true negatives 94,525.
  • b) 495+4975=5470495+4975=5470 positives, of which 4955470=9.05\dfrac{495}{5470}=9.05% are really ill.
  • c) P(+)=0.0547P(+)=0.0547 and P(M∣+)=0.004950.0547=0.0905P(M\mid +)=\dfrac{0.00495}{0.0547}=0.0905, identical to the count.
  • d) False positives outnumber true positives ten to one: it is the prevalence, not the reliability, that drives the result.
  • e) Mass screening for a rare disease produces a majority of false positives. The remedy: target a high-prevalence population, or confirm with a second test.
a)

Out of 100,000 people, 0.500.50% are ill, that is 500 ill people and 99,500 healthy people. Among the 500 ill people, the test detects 99%, that is 495 TRUE POSITIVES, and misses the other 5, who are FALSE NEGATIVES. Among the 99,500 healthy people, 95% are correctly declared negative, that is 94,525 TRUE NEGATIVES, and the remaining 5%, that is 4,975 people, are FALSE POSITIVES.

b)

The total number of positive tests is 495+4975=5470495+4975=5470. Of these, only 495 correspond to people who are really ill, that is 4955470=0.0905\dfrac{495}{5470}=0.0905, or 9.05%. In other words, more than 90% of the people with a positive test are NOT ill.

c)

P(M∣+)=P(+∣M)P(M)P(+)P\left(M\mid +\right)=\dfrac{P\left(+\mid M\right)P(M)}{P(+)} with P(+)=P(+∣M)P(M)+P(+∣M‾)P(M‾)P(+)=P\left(+\mid M\right)P(M)+P\left(+\mid\overline{M}\right)P\left(\overline{M}\right). Numerically, P(+)=0.99×0.005+0.05×0.995=0.00495+0.04975=0.0547P(+)=0.99\times 0.005+0.05\times 0.995=0.00495+0.04975=0.0547. Then P(M∣+)=0.004950.0547=0.0905P\left(M\mid +\right)=\dfrac{0.00495}{0.0547}=0.0905, or 9.05%: identical to the count in b, as it should be.

d)

The gap comes from the size of the two groups. Ill people are RARE, 500 of them, so even detecting 99% of them yields only 495 true positives. Healthy people, on the other hand, are very NUMEROUS, 99,500 of them, so the 5% false positive rate, which looks small, produces 4,975 positives on its own, ten times as many. A small percentage of a very large number swamps a large percentage of a very small number. It is the PREVALENCE, missing from the talk of “99% reliability”, that drives the result.

e)

That it should be avoided, or paired with a second test. Mass screening for a rare disease produces an overwhelming majority of false positives, with needless anxiety, costly and sometimes invasive confirmation tests, and a loss of trust in screening as a result. The rational strategy is to screen only HIGH-prevalence populations, that is, people with risk factors, which raises P(M)P(M) and therefore the positive predictive value; or else to confirm every positive with a second, independent and more specific test. That is exactly how real screening protocols are designed.

Exercise 3: Discrete random variable: expected value, variance and a fair game

A carnival game: you bet 3 dollars, roll a fair die, and receive 12 dollars if a 6 comes up, 6 dollars if a 5 comes up, nothing otherwise. Let XX be the player's NET GAIN, after deducting the bet.

  • a) Write down the probability distribution of XX: the possible values and their probabilities. Check that the probabilities add up to 1.
  • b) Compute the expected value E(X)E(X) and interpret it. Is the game fair?
  • c) Compute the variance and the standard deviation of XX. What do they reveal that the expected value does not say?
  • d) The operator raises the bet to 4 dollars, everything else unchanged. Recompute the expected value and estimate the operator's profit over 1000 games. Why can the operator be almost certain of this profit?
  • e) Home insurance costs 300 dollars a year; the probability of a claim reimbursed at 20,000 dollars is 1.2% a year. Compute the insurer's expected gain and the policyholder's. Why does a rational person buy the policy anyway?

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

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

Answers

  • a) X=+9X=+9 with 16\frac{1}{6}, X=+3X=+3 with 16\frac{1}{6}, X=−3X=-3 with 46\frac{4}{6}. Sum of the probabilities: 1.
  • b) E(X)=0E(X)=0: the game is perfectly fair, but 0 is a value that XX never takes.
  • c) E(X2)=21E(X^{2})=21, V(X)=21V(X)=21, σ≈4.58\sigma\approx 4.58 dollars: neutral but risky.
  • d) E(X)=−1.00E(X)=-1.00 dollar for the player, so an expected profit of 1000 dollars over 1000 games, to within ±0.15\pm 0.15 dollar per game: the law of large numbers.
  • e) Insurer +60+60 dollars, policyholder −60-60 dollars. People buy the policy to remove the variance of a ruinous loss.
a)

Three possible outcomes. The 6 pays 12 dollars for 3 bet, so X=+9X=+9 with probability 16\frac{1}{6}. The 5 pays 6 dollars, so X=+3X=+3 with probability 16\frac{1}{6}. The four other faces pay nothing, so X=−3X=-3 with probability 46\frac{4}{6}. Check: 16+16+46=1\frac{1}{6}+\frac{1}{6}+\frac{4}{6}=1.

b)

E(X)=(9)16+(3)16+(−3)46=9+3−126=0E(X)=(9)\frac{1}{6}+(3)\frac{1}{6}+(-3)\frac{4}{6}=\frac{9+3-12}{6}=0. The game is therefore perfectly FAIR: in the long run, neither the player nor the operator wins anything. Be careful with the interpretation: the expected value is an AVERAGE gain over a large number of games, not a prediction for one game. Here, the player can never win exactly 0 dollars: the expected value is a value the variable never takes.

c)

E(X2)=(81)16+(9)16+(9)46=81+9+366=21E(X^{2})=(81)\frac{1}{6}+(9)\frac{1}{6}+(9)\frac{4}{6}=\frac{81+9+36}{6}=21. So V(X)=E(X2)−[E(X)]2=21−0=21V(X)=E(X^{2})-[E(X)]^{2}=21-0=21 and σ=21≈4.58\sigma=\sqrt{21}\approx 4.58 dollars. The expected value says the game is neutral; the standard deviation says it is RISKY: in each game, the result typically deviates from zero by more than four and a half dollars. Two games with the same expected value can carry radically different risks, and it is the variance that tells them apart. A game where you bet one dollar to win one has the same zero expected value as a million-dollar lottery: nobody would confuse the two.

d)

With a 4-dollar bet, the net gains become +8+8, +2+2 and −4-4: E(X)=8+2−166=−66=−1.00E(X)=\frac{8+2-16}{6}=-\frac{6}{6}=-1.00 dollar per game for the player, so +1.00+1.00 dollar for the operator. Over 1000 games, the expected profit is 1000 dollars. The operator can be almost certain of it thanks to the LAW OF LARGE NUMBERS: the average gain over nn games converges to the expected value, and its standard deviation is only σn\frac{\sigma}{\sqrt{n}}, here about 4.631.6≈0.15\frac{4.6}{31.6}\approx 0.15 dollar. In other words, the randomness that dominates one game becomes negligible over a thousand. That is exactly the business model of every casino: a slightly favourable expected value, repeated a very large number of times.

e)

For the insurer: E=300−(0.012)(20,000)=300−240=+60E=300-(0.012)(20{,}000)=300-240=+60 dollars per policy per year. For the policyholder, it is the opposite: −60-60 dollars. In terms of expected value, insurance is therefore a bad investment, and it always will be, otherwise no insurer would survive. People buy it all the same because the expected value is not the only decision criterion: a 20,000-dollar loss, however unlikely, can be RUINOUS, whereas a 300-dollar premium can be absorbed. Paying 60 dollars a year amounts to buying the removal of the variance, which is perfectly rational for anyone who cannot afford the worst case. The insurer, for its part, pools tens of thousands of policies and finds itself in the position of the operator in d): for the insurer, the variance has practically disappeared.

Exercise 4: Counting and the binomial distribution

The binomial distribution describes the number of successes in nn independent trials with the same probability. Its formula combines a count, the number of ways of getting kk successes, with a probability, that of one specific sequence.

A quiz has 10 multiple-choice questions, each with 4 options of which only one is correct. A student answers entirely at random.

  • a) Justify that the number of correct answers follows a binomial distribution by checking the three conditions, and give its parameters.
  • b) Compute (103)\binom{10}{3} and explain what this number counts.
  • c) Compute the probability of getting exactly 3 correct answers.
  • d) Compute the expected value and the standard deviation of the number of correct answers.
  • e) Compute the probability of getting at most 1 correct answer.

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

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

Answers

  • a) Fixed trials, two outcomes, constant pp, independence: X∼B(10,0.25)X\sim B(10, 0.25).
  • b) (103)=120\binom{10}{3}=120: the number of ways of choosing WHICH 3 questions are answered correctly.
  • c) P(X=3)=120(0.25)3(0.75)7≈0.250P(X=3)=120(0.25)^{3}(0.75)^{7}\approx 0.250.
  • d) μ=2.5\mu=2.5 and σ=1.875≈1.37\sigma=\sqrt{1.875}\approx 1.37.
  • e) P(X=0)=0.0563P(X=0)=0.0563, P(X=1)=0.1877P(X=1)=0.1877, so P(X≤1)≈0.244P(X\leq 1)\approx 0.244.
a)

The three conditions are met. First, the number of trials is FIXED: n=10n=10 questions. Second, each trial has only TWO outcomes, a right or a wrong answer, with a CONSTANT probability of success p=14=0.25p=\dfrac{1}{4}=0.25, since there is one correct option out of four on every question. Third, the trials are INDEPENDENT, as the student answers at random and the answers do not influence one another. So X∼B(10,0.25)X\sim B(10, 0.25).

b)

(103)=10!3! 7!=10×9×83×2×1=120\binom{10}{3}=\dfrac{10!}{3!\,7!}=\dfrac{10\times 9\times 8}{3\times 2\times 1}=120. This number counts the WAYS of choosing which 3 of the 10 questions are answered correctly, regardless of order: the sequence of successes on questions 1, 2 and 3 is counted once, just like the one on questions 4, 7 and 9.

c)

P(X=3)=(103)(0.25)3(0.75)7=120×0.015625×0.13348=0.250P(X=3)=\binom{10}{3}\left(0.25\right)^{3}\left(0.75\right)^{7}=120\times 0.015625\times 0.13348=0.250. About one chance in four. Each specific sequence has probability 0.253×0.7570.25^{3}\times 0.75^{7}, and there are 120 of them: the binomial coefficient really is just a counter.

d)

μ=np=10×0.25=2.5\mu=np=10\times 0.25=2.5 correct answers on average, consistent with the intuition of a quarter of 10. The standard deviation is σ=np(1−p)=10×0.25×0.75=1.875=1.37\sigma=\sqrt{np(1-p)}=\sqrt{10\times 0.25\times 0.75}=\sqrt{1.875}=1.37.

e)

“At most 1” means 0 or 1, two mutually exclusive cases whose probabilities are added. P(X=0)=(100)(0.25)0(0.75)10=0.0563P(X=0)=\binom{10}{0}\left(0.25\right)^{0}\left(0.75\right)^{10}=0.0563 and P(X=1)=(101)(0.25)1(0.75)9=10×0.25×0.0751=0.1877P(X=1)=\binom{10}{1}\left(0.25\right)^{1}\left(0.75\right)^{9}=10\times 0.25\times 0.0751=0.1877. The sum is 0.2440.244. A student answering at random therefore has almost one chance in four of getting no more than one correct answer, which is why this kind of quiz is often marked with a penalty for wrong answers. On the bar chart, each bar equals (nk)pk(1−p)n−k\binom{n}{k}p^{k}(1-p)^{n-k} and the sum of all the bars, from k=0k=0 to k=nk=n, is exactly 1.

-112345678910110.050.10.150.20.250.3E(X) = 2.5P(X = 3) ≈ 0.25P(X ≤ 1) ≈ 0.24correct answers

Exercise 5: The normal distribution and reading the table

The normal distribution describes a great many natural quantities. Every question comes down to converting to a z-score, then reading a table that gives the area under the curve.

IQ follows a normal distribution with mean 100 and standard deviation 15.

The figure below shows the situation.

557085100115130145IQ
  • a) Compute the proportion of the population with an IQ above 130.
  • b) Compute the proportion with an IQ between 85 and 115.
  • c) Check that b is consistent with the 68-95-99.7 empirical rule.
  • d) What IQ must be exceeded to be in the top 2.5%?
  • e) Why does the normal distribution describe natural quantities so often?

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

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

Answers

  • a) z=2.00z=2.00, so 1−0.9772=0.02281-0.9772=0.0228, about 2.3%.
  • b) z=−1.00z=-1.00 and z=+1.00z=+1.00: the area is 0.8413−0.1587=0.68270.8413-0.1587=0.6827.
  • c) 85 and 115 are exactly μ±σ\mu\pm\sigma: the 68.3% computed is the 68% of the empirical rule.
  • d) z=1.96z=1.96, so x=100+1.96(15)=129.4x=100+1.96(15)=129.4.
  • e) The central limit theorem: a sum of many small, independent contributions tends to a normal distribution.
a)

Convert: z=130−10015=2.00z=\dfrac{130-100}{15}=2.00. The table gives the area to the left of z=2.00z=2.00, which is 0.9772. The proportion we want is therefore 1−0.9772=0.02281-0.9772=0.0228, about 2.3% of the population.

b)

The two bounds correspond to z=85−10015=−1.00z=\dfrac{85-100}{15}=-1.00 and z=115−10015=+1.00z=\dfrac{115-100}{15}=+1.00. The area between these two z-scores is 0.8413−0.1587=0.68270.8413-0.1587=0.6827, about 68.3%.

c)

The empirical rule states that about 68% of the data lie within one standard deviation of the mean. Now 85 and 115 are exactly μ−σ\mu-\sigma and μ+σ\mu+\sigma, since σ=15\sigma=15. The result of 68.3% therefore matches perfectly: the empirical rule is nothing more than the table read at z=±1z=\pm 1, ±2\pm 2 and ±3\pm 3, rounded.

d)

Being in the top 2.5% means leaving 97.5% of the area to the left. The table gives z=1.96z=1.96 for that area. Back on the original scale: x=μ+zσ=100+1.96×15=100+29.4=129.4x=\mu+z\sigma=100+1.96\times 15=100+29.4=129.4. You must therefore exceed about 129, which is consistent with a, where the cutoff 130 left 2.3%.

e)

Because of the CENTRAL LIMIT THEOREM: whenever a quantity is the sum of a large number of small, independent contributions of similar size, its distribution tends to a normal distribution, whatever the individual distributions. That is the case for most natural traits: a person's height results from many genes and nutritional factors, a measurement error results from many tiny causes, and so on. This theorem explains why the bell curve is everywhere, and it also underpins all of the statistical inference in the next chapter.

55708510011513014568.3%2.3%129.4IQ

Part B: exam level (/50)

Exercise 6: With or without replacement: when the binomial stops working

An urn contains 12 balls: 5 red and 7 blue. Three are drawn.

The figure below shows the situation.

RRRRRBBBBBBB
  • a) The draws are made WITH replacement. Compute the probability of getting three red balls, and justify that the number of red balls follows a binomial distribution.
  • b) The draws are now made WITHOUT replacement. Recompute the probability of three red balls, first with a tree of conditional probabilities, then by counting with combinations. Check that the two methods agree.
  • c) Still without replacement, compute the probability of getting exactly one red ball.
  • d) Compute the probability of getting at least one red ball. Which method saves the most work?
  • e) The draw without replacement is repeated from an urn of 12,000 balls with the same proportions, 5000 red and 7000 blue. Compute the probability of three red balls and compare with a). State the rule of thumb that allows the binomial to be used even though there is no replacement.

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

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

Answers

  • a) (512)3=1251728≈0.0723\left(\frac{5}{12}\right)^{3}=\frac{125}{1728}\approx 0.0723. With replacement, the draws are independent.
  • b) Tree: 512⋅411⋅310=122\frac{5}{12}\cdot\frac{4}{11}\cdot\frac{3}{10}=\frac{1}{22}. Combinations: 10220=122≈0.0455\frac{10}{220}=\frac{1}{22}\approx 0.0455.
  • c) (51)(72)(123)=105220≈0.477\dfrac{\binom{5}{1}\binom{7}{2}}{\binom{12}{3}}=\dfrac{105}{220}\approx 0.477: hypergeometric distribution.
  • d) 1−35220=185220≈0.8411-\dfrac{35}{220}=\dfrac{185}{220}\approx 0.841, through the complement.
  • e) ≈0.0723\approx 0.0723, the value in a). Rule of thumb: the sample must be no more than about 5% of the population.
a)

With replacement, the urn has the same composition at every draw: the probability of red is 512\frac{5}{12} each time, and the draws are INDEPENDENT. All the conditions of the binomial are therefore met: a fixed number of trials, two outcomes, a constant probability and independence. P(3 red)=(512)3=1251728≈0.0723P(3\text{ red})=\left(\frac{5}{12}\right)^{3}=\frac{125}{1728}\approx 0.0723.

b)

Without replacement, each draw changes the urn. With the tree: P=512×411×310=601320=122≈0.0455P=\frac{5}{12}\times\frac{4}{11}\times\frac{3}{10}=\frac{60}{1320}=\frac{1}{22}\approx 0.0455. With combinations: choose 3 red balls out of 5, over all the ways of choosing 3 balls out of 12, which gives (53)(123)=10220=122\frac{\binom{5}{3}}{\binom{12}{3}}=\frac{10}{220}=\frac{1}{22}. The two methods give the same result, which is reassuring: the first follows the draws in order, the second directly counts the possible hands, ignoring order. Note that the probability has dropped from 0.0723 to 0.0455: removing the red balls as you go makes a triple clearly harder to get.

c)

Exactly one red means one red out of the 5 and two blue out of the 7: P=(51)(72)(123)=(5)(21)220=105220≈0.477P=\frac{\binom{5}{1}\binom{7}{2}}{\binom{12}{3}}=\frac{(5)(21)}{220}=\frac{105}{220}\approx 0.477. This is the HYPERGEOMETRIC distribution, the without-replacement version of the binomial.

d)

The shortest route is the complement: “at least one red” is the opposite of “no red”, that is, of three blue. P(no red)=(73)(123)=35220P(\text{no red})=\frac{\binom{7}{3}}{\binom{12}{3}}=\frac{35}{220}, so P(at least one)=1−35220=185220≈0.841P(\text{at least one})=1-\frac{35}{220}=\frac{185}{220}\approx 0.841. The other route would require adding the cases “exactly 1”, “exactly 2” and “exactly 3”, three calculations instead of one. Whenever a question says “at least one”, the reflex must be the complement.

e)

P=500012000×499911999×499811998≈0.0723P=\frac{5000}{12000}\times\frac{4999}{11999}\times\frac{4998}{11998}\approx 0.0723, that is, the value in a) to within a tenth of a percent. The reason is that removing three balls from an urn of twelve thousand hardly changes the proportions, whereas removing them from an urn of twelve upsets them completely. Rule of thumb: a draw without replacement can be treated as a binomial as long as the sample is no more than about 5% of the population. That is the case for almost every survey, where a thousand people are polled in a country of several million, and it is what justifies using the binomial, and then its normal approximation, throughout the rest of the course.

Exercise 7: Counting: the four cases and how to recognize them

Almost every counting error comes from two questions asked badly: does order matter, and is repetition allowed? Here we go through the four cases, then apply them.

  • a) How many four-digit codes can be formed? How many podiums (gold, silver, bronze) with 8 runners? How many lottery tickets choosing 6 numbers out of 49? Identify the counting case in each.
  • b) How many distinct anagrams can be formed with the letters of the word ANAGRAMME (the French spelling of anagram)? Justify the division you perform.
  • c) A committee of 5 people is to be formed from 8 women and 6 men. Compute the number of possible committees, then the number with exactly 3 women, then the number with at least one man.
  • d) The same group of 14 people must appoint a chair, a secretary and a treasurer, all different people. How many ways are there? Compare with the number of ways of simply choosing 3 people, and explain the ratio between the two numbers.
  • e) In how many ways can 5 people sit on a bench? And around a round table? Explain the difference.

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

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

Answers

  • a) Codes: 104=10,00010^{4}=10{,}000, permutation with repetition. Podiums: 336336, permutation without repetition. Lottery: (496)=13,983,816\binom{49}{6}=13{,}983{,}816, combination.
  • b) 9!3! 2!=362,88012=30,240\dfrac{9!}{3!\,2!}=\dfrac{362{,}880}{12}=30{,}240: divide by the invisible permutations of the three A's and the two M's.
  • c) (145)=2002\binom{14}{5}=2002 committees; (83)(62)=840\binom{8}{3}\binom{6}{2}=840 with three women; 2002−56=19462002-56=1946 with at least one man.
  • d) 14×13×12=218414\times 13\times 12=2184 against (143)=364\binom{14}{3}=364: the ratio is 3!=63!=6.
  • e) 5!=1205!=120 on a bench, 4!=244!=24 around a round table: only the relative arrangement matters.
a)

Four-digit code: order matters and repetition is allowed, so it is a permutation WITH repetition: 104=10,00010^{4}=10{,}000. Podium with 8 runners: order matters (gold is not silver) but there is no repetition, so it is a permutation WITHOUT repetition: 8!5!=(8)(7)(6)=336\frac{8!}{5!}=(8)(7)(6)=336. Lottery: order does not matter and there is no repetition, so it is a COMBINATION: (496)=13,983,816\binom{49}{6}=13{,}983{,}816. This last number is why a single ticket has about one chance in fourteen million, and why playing every week for a whole lifetime makes almost no difference.

b)

ANAGRAMME has 9 letters, including three A's and two M's, the other four, N, G, R and E, appearing once each. If there were no repeated letters, there would be 9!=362,8809!=362{,}880 arrangements. But the three A's are indistinguishable: each visible anagram corresponds to 3!=63!=6 ways of permuting the A's among themselves, all of which give the same word. Likewise for the two M's, with 2!=22!=2. So we divide: 9!3! 2!=362,88012=30,240\frac{9!}{3!\,2!}=\frac{362{,}880}{12}=30{,}240 distinct anagrams. The principle is general: count as if everything were distinguishable, then divide by the number of invisible permutations.

c)

Possible committees: (145)=2002\binom{14}{5}=2002. Exactly 3 women: choose 3 women out of 8 AND 2 men out of 6, so (83)(62)=(56)(15)=840\binom{8}{3}\binom{6}{2}=(56)(15)=840. At least one man: the quickest route is the complement, “no man” meaning five women, which gives (85)=56\binom{8}{5}=56 committees; so 2002−56=19462002-56=1946. Notice the “AND” in the second calculation, which translates into a multiplication, whereas the “at least” in the third calls for a subtraction.

d)

With distinct roles, order matters: (14)(13)(12)=2184(14)(13)(12)=2184 ways. Simply choosing 3 people without assigning roles gives (143)=364\binom{14}{3}=364. The ratio is 2184364=6=3!\frac{2184}{364}=6=3!: each group of three people can share out the three roles in 3!3! ways. This is exactly the relation between permutations and combinations, (nk)=P(n,k)k!\binom{n}{k}=\frac{P(n,k)}{k!}, where P(n,k)=n!(n−k)!P(n,k)=\frac{n!}{(n-k)!} counts the ordered selections: a combination is a permutation whose order has been forgotten.

e)

On a bench, the seats are distinct: 5!=1205!=120 ways. Around a round table, only the RELATIVE arrangement matters: moving everyone one seat over changes nothing about who sits next to whom. Each circular arrangement therefore corresponds to 5 linear arrangements, which leaves 5!5=4!=24\frac{5!}{5}=4!=24 ways. The rule for circular permutations, (n−1)!(n-1)!, illustrates the same principle as in b): as soon as a transformation leaves the configuration unchanged, you must divide by the number of such transformations.

Exercise 8: The Poisson distribution: counting rare events

A switchboard receives an average of 3 calls per minute, at irregular times. The number of calls received in one minute then follows a POISSON distribution with parameter λ=3\lambda=3, whose formula is P(X=k)=e−λλkk!P(X=k)=\frac{e^{-\lambda}\lambda^{k}}{k!}.

  • a) State the three conditions that justify using a Poisson distribution, and check them here.
  • b) Compute the probability of receiving no call in one minute, of receiving exactly two, and of receiving at least one.
  • c) Compute the expected value and the standard deviation of the number of calls per minute. What remarkable property does the Poisson distribution have, and how can it be used to check that a data set really follows a Poisson distribution?
  • d) We now observe a 5-minute window. Give the new parameter and compute the probability of receiving no call during it.
  • e) A production line makes 1000 parts a day, 0.30% of which are defective. Compute the probability of finding exactly 2 defective parts with the binomial distribution, then with a well-chosen Poisson distribution, and comment on the difference. Under what conditions is this approximation legitimate?

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

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

Answers

  • a) Events rare at any instant, independent, with a constant average rate. All three hold here.
  • b) P(X=0)=e−3≈0.0498P(X=0)=e^{-3}\approx 0.0498, P(X=2)≈0.224P(X=2)\approx 0.224, P(X≥1)≈0.950P(X\geq 1)\approx 0.950.
  • c) E(X)=V(X)=3E(X)=V(X)=3 and σ≈1.73\sigma\approx 1.73. A variance clearly above the mean is overdispersion: the model must be rejected.
  • d) λ=15\lambda=15 and P(X=0)=e−15≈3.1×10−7P(X=0)=e^{-15}\approx 3.1\times 10^{-7}.
  • e) Binomial 0.22420.2242, Poisson 0.22400.2240. Legitimate when nn is large and pp small, in practice n≥100n\geq 100 and np≤10np\leq 10.
a)

Three conditions: the events must be RARE on an instantaneous scale, meaning that two calls cannot arrive at exactly the same instant; they must be INDEPENDENT, the arrival of one call making the next neither more nor less likely; and the average RATE must be constant over the period studied. Here, callers do not coordinate with one another and the switchboard is assumed to be equally busy from one minute to the next: the conditions are reasonable. They would stop holding when offices open, where the rate shoots up, or if a group call triggered several callbacks. Note a fundamental difference with the binomial: here kk is not bounded by any number of trials, the tail of the distribution never stops and any whole number keeps a probability, however small.

b)

P(X=0)=e−3≈0.0498P(X=0)=e^{-3}\approx 0.0498, so about 5% of minutes have no call at all. P(X=2)=e−3(3)22!=9e−32≈0.224P(X=2)=\frac{e^{-3}(3)^{2}}{2!}=\frac{9e^{-3}}{2}\approx 0.224. P(X≥1)=1−P(X=0)≈0.950P(X\geq 1)=1-P(X=0)\approx 0.950: in 95% of minutes, the switchboard rings at least once.

c)

For a Poisson distribution, E(X)=λ=3E(X)=\lambda=3 calls and V(X)=λ=3V(X)=\lambda=3, so σ=3≈1.73\sigma=\sqrt{3}\approx 1.73 calls. The remarkable property is that the mean and the VARIANCE are equal, which no other common distribution does. It provides an immediate diagnostic test: if the counts you record have a variance clearly larger than their mean, the Poisson model must be rejected; this is called overdispersion, a typical sign that the events are not independent or that the rate varies. That is exactly what is observed for road accidents by time of day, or for sales by season.

d)

The parameter is proportional to the length of the observation window: over 5 minutes, λ=(3)(5)=15\lambda=(3)(5)=15 calls. P(X=0)=e−15≈3.1×10−7P(X=0)=e^{-15}\approx 3.1\times 10^{-7}, about one chance in three million. The contrast with the 5% of silent minutes is striking, and it shows clearly that it is not the probability per minute that gets multiplied, but the parameter.

e)

Exact distribution: binomial with parameters n=1000n=1000 and p=0.0030p=0.0030. P(X=2)=(10002)(0.0030)2(0.9970)998≈0.2242P(X=2)=\binom{1000}{2}(0.0030)^{2}(0.9970)^{998}\approx 0.2242. Poisson approximation with λ=np=(1000)(0.0030)=3\lambda=np=(1000)(0.0030)=3: P(X=2)=9e−32≈0.2240P(X=2)=\frac{9e^{-3}}{2}\approx 0.2240. The difference is under a tenth of a percent, for a far lighter calculation: the binomial requires a 998th power and a six-digit coefficient, the Poisson fits on one line. The approximation is legitimate when nn is LARGE and pp SMALL, in practice n≥100n\geq 100 and np≤10np\leq 10; the Poisson distribution is in fact the mathematical limit of the binomial as n→∞n\to\infty and p→0p\to 0 with the product npnp held constant. That explains why it is everywhere: radioactive decays, insurance claims, typos per page, goals scored in a game, any count of rare events among a very large number of opportunities.

-11234567891011120.050.10.150.20.250.3E(X) = V(X) = λ = 3calls per minute

Exercise 9: The normal approximation to the binomial

Computing a binomial probability over 100 trials would mean adding dozens of terms. The normal distribution gives an excellent approximation, provided you check its conditions and do not forget the continuity correction.

A fair coin is tossed 100 times and the number of heads is counted.

  • a) Give the exact distribution of XX, then check the conditions for the normal approximation.
  • b) Give the parameters of the approximating normal distribution.
  • c) Compute the probability of getting at least 60 heads, applying the continuity correction.
  • d) Explain why 60 is replaced by 59.5 and not by 60.
  • e) You get 68 heads out of 100. Should you suspect the coin? Justify with a z-score.

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

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

Answers

  • a) X∼B(100,0.5)X\sim B(100, 0.5), with np=n(1−p)=50≥5np=n(1-p)=50\geq 5: the approximation is valid.
  • b) μ=50\mu=50 and σ=5.0\sigma=5.0.
  • c) z=59.5−505=1.90z=\dfrac{59.5-50}{5}=1.90, so P≈0.0287P\approx 0.0287.
  • d) Without the correction we would get 0.02280.0228, 20% less: the whole number 60 occupies the band [59.5,60.5][59.5, 60.5].
  • e) z=3.50z=3.50, probability ≈0.00023\approx 0.00023: the suspicion is legitimate, fairness is rejected at 5% as well as at 1%.
a)

These are 100 independent trials with two outcomes and a constant probability p=0.5p=0.5: X∼B(100,0.5)X\sim B(100, 0.5). Conditions for the approximation: np=100×0.5=50≥5np=100\times 0.5=50\geq 5 and n(1−p)=50≥5n(1-p)=50\geq 5. Both are amply satisfied, so the approximation will be very good. It should be avoided for a very small pp with a modest nn, a case where the Poisson distribution is used instead.

b)

μ=np=50\mu=np=50 and σ=np(1−p)=100×0.5×0.5=25=5.0\sigma=\sqrt{np(1-p)}=\sqrt{100\times 0.5\times 0.5}=\sqrt{25}=5.0.

c)

We want P(X≥60)P(X\geq 60). With the continuity correction, we compute P(X>59.5)P(X>59.5) for the normal distribution: z=59.5−505.0=1.90z=\dfrac{59.5-50}{5.0}=1.90. The table gives an area of 0.9713 to the left, so P=1−0.9713=0.0287P=1-0.9713=0.0287, about 2.9%.

d)

Because we are approximating a DISCRETE distribution, where XX takes only whole-number values, by a CONTINUOUS distribution, where the probability of any single value is zero. In the continuous model, the whole number 60 is represented by the interval from 59.5 to 60.5, the band of width 1 centred on it. Including the whole number 60 in the event therefore means starting at 59.5. Leaving out this correction and taking z=2.00z=2.00 would give 0.0228 instead of 0.0287, an underestimate of 20%: the error is far from negligible, especially near a decision threshold.

e)

With 68 heads, the z-score is z=67.5−505.0=3.50z=\dfrac{67.5-50}{5.0}=3.50. Such a z-score leaves a probability of about 0.00023 to its right, two chances in ten thousand. In other words, if the coin were fair, a result this extreme or more would occur only about once in 4300 series of 100 tosses. That is unlikely enough for the suspicion to be legitimate: the hypothesis of a fair coin would be rejected at all the usual significance levels, 5% as well as 1%. This reasoning is exactly that of a hypothesis test, formalized in the next chapter.

3035404550556065700.010.020.030.040.050.060.070.080.0959.5number of heads

Exercise 10: Problem: quality control in a factory

A production line makes parts whose diameter follows a normal distribution with mean 25.00 mm and standard deviation 0.08 mm. The specifications accept parts with a diameter between 24.85 and 25.15 mm.

The line produces 5000 parts a day.

The figure below shows the situation.

24.824.92525.125.224.8525.15diameter (mm)
  • a) Compute the proportion of conforming parts.
  • b) How many parts are rejected each day?
  • c) A setting causes the mean to drift to 25.06 mm, the standard deviation staying the same. Recompute the rejection rate and comment.
  • d) The goal is to bring the rejection rate below 1% by recentring the mean at 25.00 mm. What is the largest standard deviation allowed?
  • e) In practice, is it better to recentre the mean or to reduce the standard deviation? Justify from your results.

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

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

Answers

  • a) z=±1.875z=\pm 1.875, conforming proportion ≈93.9\approx 93.9%, so 6.1% rejects.
  • b) 0.0608×5000≈3040.0608\times 5000\approx 304 parts per day.
  • c) z=−2.625z=-2.625 and z=+1.125z=+1.125: 13.5% rejects, or 673 parts. A drift of 0.06 mm doubles the scrap.
  • d) 2.576 σ≤0.152.576\,\sigma\leq 0.15 gives σ≤0.0582\sigma\leq 0.0582 mm, a 27% reduction.
  • e) Recentre first, it is a setting; reduce the standard deviation next, since that requires investing in the process.
a)

The bounds correspond to z=24.85−25.000.08=−1.875z=\dfrac{24.85-25.00}{0.08}=-1.875 and z=25.15−25.000.08=+1.875z=\dfrac{25.15-25.00}{0.08}=+1.875. The area between these two z-scores is about 0.9696−0.0304=0.93920.9696-0.0304=0.9392. About 93.9% of the parts conform, so 6.1% are rejected.

b)

0.0608×5000=3040.0608\times 5000=304 parts rejected per day, a little over 300. Over a year of 250 production days, that comes to about 76,000 lost parts.

c)

With μ=25.06\mu=25.06, the z-scores become z=24.85−25.060.08=−2.625z=\dfrac{24.85-25.06}{0.08}=-2.625 and z=25.15−25.060.08=+1.125z=\dfrac{25.15-25.06}{0.08}=+1.125. The conforming area is about 0.8697−0.0043=0.86540.8697-0.0043=0.8654, so 13.5% rejects, or 673 parts a day. A drift of only 0.06 mm, less than one standard deviation, DOUBLES the rejection rate. The process is therefore very sensitive to centring, which is why control charts monitor the mean continuously.

d)

The interval [24.85,25.15]\left[24.85, 25.15\right], that is ±0.15\pm 0.15 mm around the recentred mean, must contain 99% of the parts. This corresponds to z=±2.576z=\pm 2.576. So we require 2.576 σ≤0.152.576\,\sigma\leq 0.15, hence σ≤0.152.576=0.0582\sigma\leq\dfrac{0.15}{2.576}=0.0582 mm. The standard deviation must therefore come down from 0.08 to about 0.058 mm, a reduction of 27%.

e)

Both must be done, but in this order: recentre first. Recentring is usually cheap, it is a machine setting, and the calculation in c shows that a modest drift is very costly, doubling the rejects for 0.06 mm. Reducing the standard deviation, on the other hand, requires acting on the intrinsic variability of the process, which means better machines, a more uniform raw material or temperature control, and so heavy investment. Standard industrial practice is therefore to guarantee centring first through statistical monitoring, and only then to take on reducing the spread if the specifications still require it, as they do here, since even perfectly centred the process would reject 6.1%.

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.

Previous chapter Descriptive statistics, 201-337 Next chapter Continuous random variables and density, 201-337

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

See also

Looking for a statistics tutor in Montreal?

Get in touch for a first session. Conditional probability is where almost everyone gets lost: a well-built tree settles the question in two minutes.

Site by Studio Squalli