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

Corrected practice final exam: probability and statistics (201-SN1-RE)

A chapter set announces its topic; a final exam does not, and that is what you need to practise before the exam.

What the set covers, the traps it targets

This practice final covers the course 201-SN1-RE, Probability and Statistics, competency 0M01 of the revised Science program: descriptive statistics, probability (counting, conditional probability and Bayes' theorem, discrete and continuous random variables, binomial and normal distributions), inference (central limit theorem, confidence intervals and hypothesis tests) and the relationship between two variables (least-squares line, correlation, chi-square test of independence).

Eleven exercises, 100 marks, three hours, in the proportions of the course specification: descriptive statistics (exercise 1), probability, the largest part (exercises 2 to 6), inference (exercises 7 to 9), regression (exercise 10) and a synthesis problem on an environmental study, road salt and wood frogs (exercise 11). The six cases of the course are all there: interval and test on a mean with a large sample (exercises 11 and 7), with Student's t distribution (exercise 8), and on a proportion (exercise 9).

By the end, you can prove what the course proves (Bayes' theorem in exercise 3, E(aX+b)E(aX+b) and V(aX+b)V(aX+b) in exercise 4, the expected value of a density by an improper integral in exercise 5, V(X‾)=σ2nV(\overline{X})=\frac{\sigma^{2}}{n} in exercise 7), choose the right distribution and write a decision in context. Pitfalls covered: the standard deviation divided by nn (exercise 1), counting twice when counting “at least one” (exercise 2), confusing P(L∣C)P(L\mid C) with P(C∣L)P(C\mid L), mutually exclusive with independent (exercise 3), adding a fixed cost to a standard deviation (exercise 4), forgetting the continuity correction (exercise 6), modelling one house with the normal distribution (exercise 7), comparing with 1.961.96 with 99 measurements or choosing H1H_{1} after the fact (exercise 8), putting p^\hat{p} in the standard error of a test (exercise 9), extrapolating a line (exercise 10) and reading causation into a chi-square test (exercise 11).

The thread of the exam: deciding under uncertainty starts with naming the model. Every calculation rests on a stated assumption, independence, normality, drawing with or without replacement, sample size, and the conclusion is only as good as the assumption. Do the exam in one sitting, calculator in hand, before opening a single solution; each exercise names the course sets to review.

  • 11 corrected exercises • 100 points • 180 minutes
  • Self-checking, 102 answers
  • Calculator
Start exercise 1

Course recap

  • • DESCRIPTIVE: s2=∑ni(ci−x‾)2n−1s^{2}=\dfrac{\sum n_{i}(c_{i}-\overline{x})^{2}}{n-1} for a sample; median and percentiles by interpolation, Pk=L+k100n−Fnc×aP_{k}=L+\dfrac{\frac{k}{100}n-F}{n_{c}}\times a; z=x−x‾sz=\dfrac{x-\overline{x}}{s}; outlier outside [Q1−1.5 IQR, Q3+1.5 IQR][Q_{1}-1.5\,IQR,\ Q_{3}+1.5\,IQR].
  • • COUNTING: A(n,k)=n!(n−k)!A(n,k)=\dfrac{n!}{(n-k)!} if order matters, (nk)=n!k! (n−k)!\dbinom{n}{k}=\dfrac{n!}{k!\,(n-k)!} otherwise; permutations of identical objects n!n1! n2!⋯\dfrac{n!}{n_{1}!\,n_{2}!\cdots}; “at least one” through the complement.
  • • PROBABILITY: P(A∣B)=P(A∩B)P(B)P(A\mid B)=\dfrac{P(A\cap B)}{P(B)}; total probability over a partition; Bayes P(Bj∣A)=P(Bj)P(A∣Bj)∑iP(Bi)P(A∣Bi)P(B_{j}\mid A)=\dfrac{P(B_{j})P(A\mid B_{j})}{\sum_{i}P(B_{i})P(A\mid B_{i})}. Independent: P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B); mutually exclusive: P(A∩B)=0P(A\cap B)=0.
  • • RANDOM VARIABLES: E(X)=∑xipiE(X)=\sum x_{i}p_{i} or ∫xf(x) dx\int x f(x)\,dx; V(X)=E(X2)−E(X)2V(X)=E(X^{2})-E(X)^{2}; E(aX+b)=aE(X)+bE(aX+b)=aE(X)+b, V(aX+b)=a2V(X)V(aX+b)=a^{2}V(X); a density is nonnegative with integral 11, F(x)=∫−∞xf(t) dtF(x)=\int_{-\infty}^{x}f(t)\,dt.
  • • DISTRIBUTIONS: binomial P(X=k)=(nk)pk(1−p)n−kP(X=k)=\binom{n}{k}p^{k}(1-p)^{n-k}, E=npE=np, V=np(1−p)V=np(1-p); normal z=x−μσz=\dfrac{x-\mu}{\sigma}, table of Φ\Phi with zz to two decimals; approximation if np≥5np\ge 5 and n(1−p)≥5n(1-p)\ge 5, with the continuity correction.
  • • INFERENCE: x‾±zsn\overline{x}\pm z\dfrac{s}{\sqrt{n}} (n≥30n\ge 30); x‾±tα/2, n−1sn\overline{x}\pm t_{\alpha/2,\,n-1}\dfrac{s}{\sqrt{n}} (n<30n<30, normal population); p^±zp^(1−p^)n\hat{p}\pm z\sqrt{\dfrac{\hat{p}(1-\hat{p})}{n}}. Test: zz or t=x‾−μ0s/nt=\dfrac{\overline{x}-\mu_{0}}{s/\sqrt{n}}, z=p^−p0p0(1−p0)/nz=\dfrac{\hat{p}-p_{0}}{\sqrt{p_{0}(1-p_{0})/n}}; H1H_{1} chosen before the data.
  • • TWO VARIABLES: a=SxySxxa=\dfrac{S_{xy}}{S_{xx}}, b=y‾−ax‾b=\overline{y}-a\overline{x}, r=SxySxxSyyr=\dfrac{S_{xy}}{\sqrt{S_{xx}S_{yy}}}; chi-square ∑(O−E)2E\sum\dfrac{(O-E)^{2}}{E}, E=row×columnn≥5E=\dfrac{\text{row}\times\text{column}}{n}\ge 5, (r−1)(c−1)(r-1)(c-1) degrees of freedom for rr rows and cc columns.

Part A: descriptive statistics (/8)

Exercise 1: The diameter of black spruces in a sample plot: grouped data and position

9 answers to check

During a forest inventory, a team marks out a 400400 m² sample plot at random in a 300300-hectare black spruce stand and measures the diameter at breast height (DBH, taken 1.31.3 m above the ground) of each of the 5050 black spruces in the plot. The data, which are fictitious, are grouped into 44 cm classes in the histogram below; these 5050 trees are treated as a sample of the black spruces of the stand.

Conventions: divisor n−1n-1 for the standard deviation of a sample; median and percentiles by interpolation within their class, Pk=L+k100n−Fnc×aP_{k}=L+\dfrac{\frac{k}{100}n-F}{n_{c}}\times a, where LL is the lower boundary of the class, FF the cumulative frequency before it, ncn_{c} its frequency and aa its width.

0481216613159528121620242832DBH (cm)count
  • a) Identify the population, the sample and the type of the variable studied.
  • b) Calculate the mean and the standard deviation of the DBH from the class midpoints.
  • c) Identify the modal class, then calculate the median by interpolation.
  • d) Compare the mean and the median, then describe the shape of the distribution using the histogram.
  • e) Calculate the 90th percentile P90P_{90} and interpret it.
  • f) One spruce in the plot measures 29.029.0 cm. Calculate its zz-score, then say whether it is unusual according to the ∣z∣>2|z|>2 benchmark.

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

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

Answers

  • a) Population: the black spruces of the stand; sample: the 5050 trees; quantitative continuous variable
  • b) x‾=18.0\overline{x}=18.0 cm, s=5.24s=5.24 cm
  • c) Modal class [16,20)[16, 20); median 17.617.6 cm
  • d) x‾>\overline{x}> median: slight right skew
  • e) P90=25.6P_{90}=25.6 cm
  • f) z=2.10z=2.10: unusual according to the benchmark
a)

Population: the black spruces of the stand, the trees the inventory is about.

Sample: the 5050 spruces of the plot.

Variable: the DBH, quantitative CONTINUOUS: it is a length, which can take any value in an interval; the tape that rounds to the millimetre does not change its nature.

Caveat: a plot is a cluster sample; neighbouring trees resemble each other more than trees drawn one by one across the whole stand, and the estimate is less precise than n=50n=50 would suggest.

b)

Class midpoints: 1010, 1414, 1818, 2222, 2626, 3030.

∑nici=6×10+13×14+15×18+9×22+5×26+2×30=900\displaystyle \displaystyle\sum n_{i}c_{i}=6\times 10+13\times 14+15\times 18+9\times 22+5\times 26+2\times 30=900

x‾=90050=18.0\overline{x}=\dfrac{900}{50}=18.0 cm

∑ni(ci−x‾)2=6×64+13×16+15×0+9×16+5×64+2×144=1344\displaystyle \displaystyle\sum n_{i}(c_{i}-\overline{x})^{2}=6\times 64+13\times 16+15\times 0+9\times 16+5\times 64+2\times 144=1344

s2=134449=27.43s^{2}=\dfrac{1344}{49}=27.43, so s=5.24s=5.24 cm.

Pitfall: dividing by n=50n=50 gives 5.185.18 cm, the standard deviation of a population; these 5050 trees are a sample.

c)

The modal class is [16,20)[16, 20), the tallest bar of the histogram (1515 trees).

Cumulative frequencies: 66, 1919, 3434. The observation of rank n2=25\frac{n}{2}=25 falls in [16,20)[16, 20), with F=19F=19 and nc=15n_{c}=15.

median=16+25−1915×4=17.6\text{median}=16+\dfrac{25-19}{15}\times 4=17.6 cm

d)

x‾=18.0\overline{x}=18.0 cm is slightly above the median, 17.617.6 cm.

The histogram stretches further to the right: from the midpoint of the modal class (1818 cm), there are 1414 cm to the boundary 3232 cm, against 1010 cm to the boundary 88 cm, and the two large trees of [28,32)[28, 32) pull the mean up.

The distribution is slightly skewed to the right. The gap between mean and median, 0.40.4 cm, is small compared with s=5.24s=5.24 cm: the skewness is weak.

e)

90100×50=45\frac{90}{100}\times 50=45; the cumulative frequencies are 3434 before [20,24)[20, 24) and 4343 before [24,28)[24, 28): the 45th tree is in [24,28)[24, 28), with F=43F=43 and nc=5n_{c}=5.

P90=24+45−435×4=25.6P_{90}=24+\dfrac{45-43}{5}\times 4=25.6 cm

About 90%90\% of the spruces in the sample have a DBH below 25.625.6 cm.

f)
z=29.0−18.05.24=2.10\displaystyle z=\dfrac{29.0-18.0}{5.24}=2.10

∣z∣>2|z|>2: the tree is unusual according to this benchmark, one of the largest in the plot.

Caveat: the ∣z∣>2|z|>2 benchmark comes from bell-shaped distributions; here, by interpolation in [28,32)[28, 32), about 48.548.5 trees out of 5050, that is 97%97\%, have a DBH below 29.029.0 cm, which confirms an extreme position without making it a measurement error.

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 B: probability (/43)

Exercise 2: Camera traps: choosing the sites, counting the sequences

6 answers to check

To monitor the Canada lynx, a team of biologists has 55 motion-triggered cameras and has identified 1212 candidate sites in its study area, numbered 11 to 1212 on the map below. Four of them, sites 77, 88, 1111 and 1212, are in a wetland. At most one camera is installed per site.

123456789101112wetlandstudy area
  • a) The five cameras are identical. Calculate the number of ways to choose the sites that receive a camera, justifying the counting tool you use.
  • b) The cameras are now of five different models, and we record which model goes on which site. Calculate the number of possible installations.
  • c) With identical cameras, calculate the number of choices of five sites that include at least one wetland site.
  • d) Calculate the number of choices of five sites that include exactly two wetland sites.
  • e) Show, by classifying the choices according to their number of wetland sites, that ∑k=04(4k)(85−k)=(125)\displaystyle\sum_{k=0}^{4}\binom{4}{k}\binom{8}{5-k}=\binom{12}{5}.
  • f) The five sites are drawn at random from the twelve, all choices being equally likely. Calculate the probability that exactly two sites are in a wetland.
  • g) One camera records six triggers in a night: three white-tailed deer, two red foxes and one lynx. Calculate the number of possible sequences of species, in the order of the triggers.

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

a)
b)
c)
d)
f)
g)
Show the solution

Answers

  • a) (125)=792\binom{12}{5}=792 (combination)
  • b) A(12,5)=95,040A(12,5)=95{,}040
  • c) 792−56=736792-56=736
  • d) (42)(83)=336\binom{4}{2}\binom{8}{3}=336
  • e) 56+280+336+112+8=79256+280+336+112+8=792: partition by the number kk of wetland sites
  • f) P=1433≈0.4242P=\frac{14}{33}\approx 0.4242
  • g) 6!3! 2! 1!=60\frac{6!}{3!\,2!\,1!}=60
a)

We choose a SET of 55 sites out of 1212: order does not matter (the cameras are identical) and there is no repetition (at most one camera per site). This is a combination.

(125)=12!5! 7!=12×11×10×9×8120=792\displaystyle \dbinom{12}{5}=\dfrac{12!}{5!\,7!}=\dfrac{12\times 11\times 10\times 9\times 8}{120}=792
b)

Model 1 has 1212 possible sites, model 2 has 1111, and so on: order now matters, this is a permutation (arrangement).

A(12,5)=12×11×10×9×8=95,040=5!×792\displaystyle A(12,5)=12\times 11\times 10\times 9\times 8=95{,}040=5!\times 792

Each set of 55 sites gives 5!=1205!=120 ways to distribute the models.

c)

We use the complement: “no wetland site” means choosing the 55 sites among the 88 others.

(125)−(85)=792−56=736\displaystyle \dbinom{12}{5}-\dbinom{8}{5}=792-56=736

Pitfall: counting “one wetland site, then 44 arbitrary sites”, 4×(114)=13204\times\binom{11}{4}=1320, counts several times the same choice when it has two or more wetland sites.

d)

Two sites among the 44 wetland sites AND three among the 88 others: multiplication principle.

(42)(83)=6×56=336\displaystyle \dbinom{4}{2}\dbinom{8}{3}=6\times 56=336
e)

Every choice of 55 sites contains exactly kk wetland sites, for a single kk between 00 and 44: the five cases form a partition of the (125)\binom{12}{5} choices.

For a fixed kk, we choose kk wetland sites and 5−k5-k others: (4k)(85−k)\binom{4}{k}\binom{8}{5-k} choices (multiplication principle).

Addition principle: 56+280+336+112+8=792=(125)56+280+336+112+8=792=\dbinom{12}{5}.

f)

The 792792 choices are equally likely, and 336336 of them are favourable.

P=336792=1433≈0.4242\displaystyle P=\dfrac{336}{792}=\dfrac{14}{33}\approx 0.4242
g)

A sequence is a permutation of 66 objects some of which are identical: 33 deer, 22 foxes, 11 lynx.

6!3! 2! 1!=72012=60\displaystyle \dfrac{6!}{3!\,2!\,1!}=\dfrac{720}{12}=60

Pitfall: 6!=7206!=720 would count as different two sequences that differ only by swapping two deer, which are indistinguishable on the list of species.

Exercise 3: Wild cat identification software: Bayes and conditional independence

8 answers to check

The photos of wild cats taken by the cameras of exercise 2 are sorted by software. On a cat photo taken at random, the animal is a bobcat, Lynx rufus (RR), with probability 0.550.55, a Canada lynx (CC) with probability 0.300.30 and a stray domestic cat (DD) with probability 0.150.15. Let LL be the event “the software displays the label Canada lynx”. The tree gives P(L∣R)P(L\mid R), P(L∣C)P(L\mid C) and P(L∣D)P(L\mid D), estimated on photos already identified by experts. Fictitious data.

RLLCLLDLL0.550.080.920.300.900.100.150.020.98
  • a) Prove, from the definition of a conditional probability, that P(C∣L)=P(C)P(L∣C)P(R)P(L∣R)+P(C)P(L∣C)+P(D)P(L∣D)P(C\mid L)=\dfrac{P(C)P(L\mid C)}{P(R)P(L\mid R)+P(C)P(L\mid C)+P(D)P(L\mid D)}.
  • b) Calculate P(L)P(L).
  • c) Calculate P(C∣L)P(C\mid L) and P(R∣L)P(R\mid L).
  • d) Are the events CC and RR mutually exclusive? Are they independent? Justify.
  • e) The same animal is photographed twice in a row. Assume that, the species being fixed, the two labels are independent. Calculate the probability that the animal is a Canada lynx given that both photos carry the label LL.
  • f) Without knowing the species, are the events L1L_{1} “the first photo is labelled LL” and L2L_{2} “the second photo is labelled LL” independent? Justify with a calculation.

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

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

Answers

  • a) Definition, multiplication rule and total probability over the partition RR, CC, DD
  • b) P(L)=0.317P(L)=0.317
  • c) P(C∣L)≈0.8517P(C\mid L)\approx 0.8517, P(R∣L)≈0.1388P(R\mid L)\approx 0.1388
  • d) Mutually exclusive, hence dependent: P(C∩R)=0≠0.165P(C\cap R)=0\neq 0.165
  • e) P(C∣L1∩L2)≈0.9855P(C\mid L_{1}\cap L_{2})\approx 0.9855
  • f) P(L1∩L2)≈0.2466≠0.3172≈0.1005P(L_{1}\cap L_{2})\approx 0.2466\neq 0.317^{2}\approx 0.1005: not independent
a)

Definition: P(C∣L)=P(C∩L)P(L)P(C\mid L)=\dfrac{P(C\cap L)}{P(L)}, and likewise P(C∩L)=P(C)P(L∣C)P(C\cap L)=P(C)P(L\mid C) (multiplication rule).

RR, CC, DD form a partition of the sample space: they are pairwise mutually exclusive and their union is certain. Hence L=(L∩R)∪(L∩C)∪(L∩D)L=(L\cap R)\cup(L\cap C)\cup(L\cap D), a union of mutually exclusive events.

Law of total probability: P(L)=P(R)P(L∣R)+P(C)P(L∣C)+P(D)P(L∣D)P(L)=P(R)P(L\mid R)+P(C)P(L\mid C)+P(D)P(L\mid D).

Substituting the numerator and the denominator gives the stated formula, which assumes P(L)>0P(L)>0.

b)
P(L)=0.55×0.08+0.30×0.90+0.15×0.02\displaystyle P(L)=0.55\times 0.08+0.30\times 0.90+0.15\times 0.02
P(L)=0.044+0.270+0.003=0.317\displaystyle P(L)=0.044+0.270+0.003=0.317
c)

P(C∣L)=0.2700.317≈0.8517P(C\mid L)=\dfrac{0.270}{0.317}\approx 0.8517 and P(R∣L)=0.0440.317≈0.1388P(R\mid L)=\dfrac{0.044}{0.317}\approx 0.1388

Nearly 14%14\% of the photos labelled “Canada lynx” actually show a bobcat: the software rarely mislabels a bobcat (8%8\%), but bobcats are almost twice as numerous.

Pitfall: confusing P(L∣C)=0.90P(L\mid C)=0.90 with P(C∣L)=0.85P(C\mid L)=0.85.

d)

Mutually exclusive: yes, an animal is not of both species at once, P(C∩R)=0P(C\cap R)=0.

Independent: no, because P(C)P(R)=0.30×0.55=0.165≠0=P(C∩R)P(C)P(R)=0.30\times 0.55=0.165\neq 0=P(C\cap R).

Two mutually exclusive events with nonzero probabilities are always dependent: knowing that it is a bobcat RULES OUT the Canada lynx.

e)

For each species, the probability of two labels LL is the square of P(L∣⋅)P(L\mid\cdot) (independence given the species).

P(L1∩L2)=0.55×0.082+0.30×0.902+0.15×0.022=0.00352+0.243+0.00006=0.24658\displaystyle P(L_{1}\cap L_{2})=0.55\times 0.08^{2}+0.30\times 0.90^{2}+0.15\times 0.02^{2}=0.00352+0.243+0.00006=0.24658
P(C∣L1∩L2)=0.2430.24658≈0.9855\displaystyle P(C\mid L_{1}\cap L_{2})=\dfrac{0.243}{0.24658}\approx 0.9855

The second label raises the probability from 0.850.85 to 0.990.99: Bayes applied twice, the posterior distribution after the first photo serving as the prior for the second.

Caveat: two successive photos of the same animal share the angle, the light and the distance; their errors are probably linked, and 0.98550.9855 is an optimistic bound, valid within the assumed model.

f)

P(L1∩L2)=0.24658P(L_{1}\cap L_{2})=0.24658 (part e) and P(L1)P(L2)=0.3172≈0.1005P(L_{1})P(L_{2})=0.317^{2}\approx 0.1005.

The two numbers differ: L1L_{1} and L2L_{2} are NOT independent.

A first label LL makes a Canada lynx more likely, hence a second label LL as well. Independence given the species does not imply independence outright.

Exercise 4: Testing swabs in pools: a random variable with two values

9 answers to check

To monitor avian influenza in wild ducks, a laboratory receives swabs taken from birds. To save tests, it groups them in pools of k=5k=5: it mixes the five swabs and runs a single test on the mixture. If the mixture is negative, the five swabs are declared negative. If it is positive, each of the five swabs is then tested separately, for six tests in all.

Model adopted: each swab is positive with probability p=0.05p=0.05, independently of the others, and the test of the mixture is positive if and only if at least one swab is. Let XX be the number of tests run for one pool.

  • a) Give the probability distribution of XX.
  • b) Calculate E(X)E(X), then the mean number of tests per swab, and compare with one test per swab.
  • c) Calculate V(X)V(X) using V(X)=E(X2)−E(X)2V(X)=E(X^{2})-E(X)^{2}, then the standard deviation σ(X)\sigma(X).
  • d) Prove that, for any discrete random variable XX and any real numbers aa and bb, E(aX+b)=aE(X)+bE(aX+b)=aE(X)+b and V(aX+b)=a2V(X)V(aX+b)=a^{2}V(X).
  • e) Each test costs 3030 dollars and preparing a pool costs 1212 dollars. Express the cost CC of a pool in terms of XX, then calculate E(C)E(C) and σ(C)\sigma(C).
  • f) The laboratory can choose the pool size kk. Show that the mean number of tests per swab is g(k)=1k+1−0.95kg(k)=\dfrac{1}{k}+1-0.95^{k}, then find the integer kk between 22 and 1010 that minimizes it.

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

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

Answers

  • a) P(X=1)=0.955≈0.7738P(X=1)=0.95^{5}\approx 0.7738, P(X=6)≈0.2262P(X=6)\approx 0.2262
  • b) E(X)≈2.1311E(X)\approx 2.1311; 0.42620.4262 test per swab
  • c) V(X)≈4.376V(X)\approx 4.376, σ(X)≈2.092\sigma(X)\approx 2.092
  • d) Linearity of the sum and ∑pi=1\sum p_{i}=1; bb cancels in the deviations
  • e) C=30X+12C=30X+12: E(C)≈75.93E(C)\approx 75.93 dollars, σ(C)≈62.76\sigma(C)\approx 62.76 dollars
  • f) k=5k=5, with g(5)≈0.4262g(5)\approx 0.4262
a)

XX takes only two values: 11 (negative mixture) or 66 (positive mixture).

The mixture is negative if all five swabs are: by independence, P(X=1)=0.955≈0.7738P(X=1)=0.95^{5}\approx 0.7738.

P(X=6)=1−0.955≈0.2262P(X=6)=1-0.95^{5}\approx 0.2262; the sum is indeed 11.

b)

E(X)=1×0.7738+6×0.2262=1+5×0.2262≈2.1311E(X)=1\times 0.7738+6\times 0.2262=1+5\times 0.2262\approx 2.1311 tests per pool.

Per swab: 2.13115≈0.4262\dfrac{2.1311}{5}\approx 0.4262 test, instead of 11.

Pooling saves on average about 57%57\% of the tests, in this model.

c)
E(X2)=12×0.7738+62×0.2262≈8.9177\displaystyle E(X^{2})=1^{2}\times 0.7738+6^{2}\times 0.2262\approx 8.9177
V(X)=8.9177−2.13112≈4.3761\displaystyle V(X)=8.9177-2.1311^{2}\approx 4.3761

σ(X)=4.3761≈2.092\sigma(X)=\sqrt{4.3761}\approx 2.092 tests.

Check: a variable with two values 55 apart has variance 52×0.7738×0.2262≈4.37615^{2}\times 0.7738\times 0.2262\approx 4.3761.

d)

Let x1,…,xnx_{1},\dots,x_{n} be the values of XX and p1,…,pnp_{1},\dots,p_{n} their probabilities, with ∑pi=1\sum p_{i}=1. aX+baX+b takes the values axi+bax_{i}+b with the same probabilities.

E(aX+b)=∑(axi+b)pi=a∑xipi+b∑pi=aE(X)+b\begin{aligned}E(aX+b)&=\sum(ax_{i}+b)p_{i}\\&=a\sum x_{i}p_{i}+b\sum p_{i}\\&=aE(X)+b\end{aligned}
V(aX+b)=∑(axi+b−aE(X)−b)2pi=a2∑(xi−E(X))2pi=a2V(X)\begin{aligned}V(aX+b)&=\sum\left(ax_{i}+b-aE(X)-b\right)^{2}p_{i}\\&=a^{2}\sum(x_{i}-E(X))^{2}p_{i}\\&=a^{2}V(X)\end{aligned}

The constant bb shifts all the values without spreading them: it disappears from the variance.

e)

C=30X+12C=30X+12, in dollars.

E(C)=30×2.1311+12≈75.93E(C)=30\times 2.1311+12\approx 75.93 dollars

σ(C)=∣30∣ σ(X)≈30×2.0919≈62.76\sigma(C)=|30|\,\sigma(X)\approx 30\times 2.0919\approx 62.76 dollars

Pitfall: adding 1212 to the standard deviation; a fixed cost does not change the spread.

f)

For a pool of kk swabs: X=1X=1 with probability 0.95k0.95^{k}, X=k+1X=k+1 otherwise.

E(X)=0.95k+(k+1)(1−0.95k)=1+k(1−0.95k)E(X)=0.95^{k}+(k+1)(1-0.95^{k})=1+k(1-0.95^{k}), and per swab g(k)=E(X)k=1k+1−0.95kg(k)=\dfrac{E(X)}{k}=\dfrac{1}{k}+1-0.95^{k}.

Values: g(4)≈0.4355g(4)\approx 0.4355; g(5)≈0.4262g(5)\approx 0.4262; g(6)≈0.4316g(6)\approx 0.4316; gg decreases from k=2k=2 to 55, then increases up to 1010.

The minimum is reached at k=5k=5: small pools require many tests of mixtures, large pools are too often positive.

Caveat: the model assumes the swabs are independent and that mixing loses no sensitivity; birds from the same pond infect one another, and diluting a weakly positive swab can mask it.

Exercise 5: The area burned by lightning fires: a density on an infinite interval

9 answers to check

In an intensive protection zone, forest fires started by lightning are detected and put out quickly, so most of them stay small. A team models the area XX burned by such a fire, in hectares, by a continuous random variable with density f(x)=k(1+x)4f(x)=\dfrac{k}{(1+x)^{4}} for x≥0x\ge 0 and f(x)=0f(x)=0 for x<0x<0, where kk is a constant. The figure shows ff for the value of kk established in a).

00.511.522.53012345area x (ha)f(x) = 3/(1 + x)⁴
  • a) Show that k=3k=3.
  • b) Find the cumulative distribution function F(x)=P(X≤x)F(x)=P(X\le x) for x≥0x\ge 0, then calculate P(X>1)P(X>1) and P(0.5≤X≤2)P(0.5\le X\le 2).
  • c) Calculate the median of XX.
  • d) Calculate the expected value E(X)E(X) using integration by parts.
  • e) Calculate E(X2)E(X^{2}), then the variance and the standard deviation of XX. Compare the expected value and the median, and interpret.
  • f) A fire has already burned more than 11 hectare when a crew arrives. Calculate the probability that it exceeds 22 hectares.
  • g) During one season, 1212 lightning fires break out in the zone, and their areas are assumed independent. Calculate the probability that at least 33 of them exceed 11 hectare.

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

b)
c)
d)
e)
f)
g)
Show the solution

Answers

  • a) ∫0+∞k(1+x)4dx=k3=1\int_{0}^{+\infty}\frac{k}{(1+x)^{4}}dx=\frac{k}{3}=1, so k=3k=3
  • b) F(x)=1−(1+x)−3F(x)=1-(1+x)^{-3}; P(X>1)=0.125P(X>1)=0.125; P(0.5≤X≤2)≈0.2593P(0.5\le X\le 2)\approx 0.2593
  • c) m=23−1≈0.260m=\sqrt[3]{2}-1\approx 0.260 ha
  • d) E(X)=0.5E(X)=0.5 ha
  • e) E(X2)=1E(X^{2})=1, V(X)=0.75V(X)=0.75, σ≈0.866\sigma\approx 0.866 ha; E(X)≈2 mE(X)\approx 2\,m: strong right skew
  • f) 827≈0.2963\frac{8}{27}\approx 0.2963
  • g) Y∼B(12, 0.125)Y\sim\mathcal{B}(12,\,0.125), P(Y≥3)≈0.1820P(Y\ge 3)\approx 0.1820
a)

A density is nonnegative with total integral 11: f≥0f\ge 0 requires k≥0k\ge 0, then

∫0+∞k(1+x)4 dx=lim⁡b→+∞[−k3(1+x)3]0b=lim⁡b→+∞(k3−k3(1+b)3)=k3\displaystyle \displaystyle\int_{0}^{+\infty}\frac{k}{(1+x)^{4}}\,dx=\lim_{b\to+\infty}\left[-\frac{k}{3(1+x)^{3}}\right]_{0}^{b}=\lim_{b\to+\infty}\left(\frac{k}{3}-\frac{k}{3(1+b)^{3}}\right)=\frac{k}{3}

k3=1\dfrac{k}{3}=1 gives k=3k=3.

b)

F(x)=∫0x3(1+t)4 dt=[−1(1+t)3]0x=1−1(1+x)3F(x)=\displaystyle\int_{0}^{x}\frac{3}{(1+t)^{4}}\,dt=\left[-\frac{1}{(1+t)^{3}}\right]_{0}^{x}=1-\frac{1}{(1+x)^{3}} for x≥0x\ge 0 (F(x)=0F(x)=0 for x<0x<0).

P(X>1)=1−F(1)=123=0.125\displaystyle P(X>1)=1-F(1)=\dfrac{1}{2^{3}}=0.125
P(0.5≤X≤2)=F(2)−F(0.5)=11.53−133≈0.2963−0.0370=0.2593\displaystyle P(0.5\le X\le 2)=F(2)-F(0.5)=\dfrac{1}{1.5^{3}}-\dfrac{1}{3^{3}}\approx 0.2963-0.0370=0.2593

For a continuous variable, P(X=0.5)=0P(X=0.5)=0: including the endpoints or not changes nothing.

c)

The median mm satisfies F(m)=12F(m)=\frac{1}{2}: (1+m)3=2(1+m)^{3}=2, so m=23−1≈0.260m=\sqrt[3]{2}-1\approx 0.260 hectare.

Half of the fires burn less than 0.260.26 ha, that is about 2,6002{,}600 m².

d)

E(X)=∫0+∞x 3(1+x)4 dxE(X)=\displaystyle\int_{0}^{+\infty}x\,\frac{3}{(1+x)^{4}}\,dx. By parts, u=xu=x and v′=3(1+x)4v'=\dfrac{3}{(1+x)^{4}}, so u′=1u'=1 and v=−1(1+x)3v=-\dfrac{1}{(1+x)^{3}}:

E(X)=lim⁡b→+∞[−x(1+x)3]0b+∫0+∞dx(1+x)3=0+[−12(1+x)2]0+∞=12\displaystyle \displaystyle E(X)=\lim_{b\to+\infty}\left[-\frac{x}{(1+x)^{3}}\right]_{0}^{b}+\int_{0}^{+\infty}\frac{dx}{(1+x)^{3}}=0+\left[-\frac{1}{2(1+x)^{2}}\right]_{0}^{+\infty}=\frac{1}{2}

The bracket tends to 00 because b(1+b)3→0\dfrac{b}{(1+b)^{3}}\to 0. E(X)=0.5E(X)=0.5 hectare.

e)

By parts again, u=x2u=x^{2} and v=−1(1+x)3v=-\dfrac{1}{(1+x)^{3}}; the bracket tends to 00:

E(X2)=∫0+∞2x(1+x)3 dx\displaystyle E(X^{2})=\int_{0}^{+\infty}\frac{2x}{(1+x)^{3}}\,dx, and with w=1+xw=1+x: 2∫1+∞w−1w3 dw=2[−1w+12w2]1+∞=2×12=1\displaystyle 2\int_{1}^{+\infty}\frac{w-1}{w^{3}}\,dw=2\left[-\frac{1}{w}+\frac{1}{2w^{2}}\right]_{1}^{+\infty}=2\times\frac{1}{2}=1

V(X)=E(X2)−E(X)2=1−0.25=0.75V(X)=E(X^{2})-E(X)^{2}=1-0.25=0.75 and σ(X)=0.75≈0.866\sigma(X)=\sqrt{0.75}\approx 0.866 hectare.

E(X)=0.5E(X)=0.5 ha is almost twice the median 0.260.26 ha: the distribution is strongly skewed to the right. A few large fires weigh heavily in the mean, while the typical fire stays small.

Caveat: the density gives a nonzero probability to huge fires; in reality, the area is bounded by the zone, and the model only holds for the order of magnitude of the fires observed.

f)
P(X>2∣X>1)=P(X>2)P(X>1)=1/271/8=827≈0.2963\displaystyle P(X>2\mid X>1)=\dfrac{P(X>2)}{P(X>1)}=\dfrac{1/27}{1/8}=\dfrac{8}{27}\approx 0.2963

The event X>2X>2 is contained in X>1X>1, hence the intersection equals X>2X>2.

Without the condition, P(X>2)≈0.0370P(X>2)\approx 0.0370: a fire that has already passed 11 ha is eight times more likely to pass 22 ha than a fire that is just starting.

g)

Each fire exceeds 11 ha with probability q=0.125q=0.125 (part b), independently of the others: the number YY of such fires follows the binomial distribution B(12, 0.125)\mathcal{B}(12,\,0.125).

P(Y=0)=0.87512≈0.2014P(Y=0)=0.875^{12}\approx 0.2014; P(Y=1)=12×0.125×0.87511≈0.3453P(Y=1)=12\times 0.125\times 0.875^{11}\approx 0.3453; P(Y=2)=(122)×0.1252×0.87510≈0.2713P(Y=2)=\dbinom{12}{2}\times 0.125^{2}\times 0.875^{10}\approx 0.2713

P(Y≥3)=1−(0.2014+0.3453+0.2713)≈0.1820\displaystyle P(Y\ge 3)=1-(0.2014+0.3453+0.2713)\approx 0.1820

Caveat: fires from the same storm, in dry and windy weather, have linked areas; independence is an assumption of the model.

00.250.50.751012345median: 0.26 haF(x) = 1 − (1 + x)⁻³area x (ha)
The cumulative distribution function F(x)=1−(1+x)−3F(x)=1-(1+x)^{-3}: the median is read where FF equals 0.50.5, near 0.260.26 ha.

Exercise 6: Tagged salmon smolts pass a dam: from the normal to the binomial distribution

8 answers to check

On a salmon river with a hydroelectric dam, biologists follow the downstream migration of smolts, the young Atlantic salmon heading for the sea. The length LL of a smolt is modelled by a normal distribution with mean μ=14.6\mu=14.6 cm and standard deviation σ=1.1\sigma=1.1 cm (fictitious values). An acoustic transmitter can only be implanted in a fish at least 1313 cm long.

For the normal distribution, round zz to two decimals and read the table of Φ(z)=P(Z≤z)\Phi(z)=P(Z\le z). This course's criterion for the normal approximation of a binomial: np≥5np\ge 5 and n(1−p)≥5n(1-p)\ge 5.

111213141516171813 cmμ = 14.6length L (cm)
  • a) Calculate the proportion of smolts that can receive a transmitter.
  • b) The biologists set aside the smallest 10%10\% of smolts. Calculate the minimum length kept, given that the table gives Φ(−1.28)≈0.10\Phi(-1.28)\approx 0.10.
  • c) Assume that each tagged smolt passes the dam alive with probability 0.930.93, independently of the others. 1010 smolts are tagged, and NN denotes the number of survivors. Justify the use of a binomial distribution for NN, then calculate the probability that they all survive, and the probability that at least 99 survive.
  • d) 400400 smolts are tagged and XX denotes the number of survivors. Calculate E(X)E(X) and σ(X)\sigma(X), then check the conditions for the normal approximation.
  • e) Calculate P(X≤360)P(X\le 360) using the normal approximation, with the continuity correction.
  • f) This year, 360360 of the 400400 tagged smolts passed the dam. Does this result cast doubt on the survival rate of 0.930.93? Justify.

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

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

Answers

  • a) z≈−1.45z\approx -1.45; P(L≥13)≈0.9265P(L\ge 13)\approx 0.9265
  • b) ℓ≈13.19\ell\approx 13.19 cm
  • c) P(N=10)≈0.4840P(N=10)\approx 0.4840, P(N≥9)≈0.8483P(N\ge 9)\approx 0.8483
  • d) E(X)=372E(X)=372, σ(X)≈5.10\sigma(X)\approx 5.10; np=372np=372, n(1−p)=28n(1-p)=28
  • e) P(X≤360)≈Φ(−2.25)=0.0122P(X\le 360)\approx\Phi(-2.25)=0.0122
  • f) Yes: about 1.2%1.2\% under the stated rate (exact: 1.55%1.55\%), the rate becomes doubtful
a)
z=13−14.61.1≈−1.45\displaystyle z=\dfrac{13-14.6}{1.1}\approx -1.45
P(L≥13)=1−Φ(−1.45)=Φ(1.45)=0.9265\displaystyle P(L\ge 13)=1-\Phi(-1.45)=\Phi(1.45)=0.9265

About 92.7%92.7\% of smolts are at least 1313 cm long.

b)

We look for ℓ\ell such that P(L<ℓ)=0.10P(L<\ell)=0.10, that is z=−1.28z=-1.28.

ℓ=μ+zσ=14.6−1.28×1.1≈13.19\ell=\mu+z\sigma=14.6-1.28\times 1.1\approx 13.19 cm

Pitfall: taking z=+1.28z=+1.28, which gives the 90th percentile, 16.0116.01 cm.

c)

NN follows a binomial distribution B(10, 0.93)\mathcal{B}(10,\,0.93): n=10n=10 fixed trials, two outcomes (survives or not), the same probability p=0.93p=0.93, trials independent by assumption.

P(N=10)=0.9310≈0.4840\displaystyle P(N=10)=0.93^{10}\approx 0.4840
P(N≥9)=0.9310+10×0.07×0.939≈0.4840+0.3643=0.8483\displaystyle P(N\ge 9)=0.93^{10}+10\times 0.07\times 0.93^{9}\approx 0.4840+0.3643=0.8483

Caveat: smolts migrate in groups; a predator waiting at the turbine outlet strikes several at once, and independence remains a modelling assumption.

d)
E(X)=np=400×0.93=372\displaystyle E(X)=np=400\times 0.93=372
σ(X)=np(1−p)=26.04≈5.10\displaystyle \sigma(X)=\sqrt{np(1-p)}=\sqrt{26.04}\approx 5.10

np=372≥5np=372\ge 5 and n(1−p)=28≥5n(1-p)=28\ge 5: the approximation by the normal distribution N(372, 5.102)N(372,\,5.10^{2}) is accepted under the course's criterion.

e)

XX is an integer: X≤360X\le 360 corresponds to Y≤360.5Y\le 360.5 for the normal variable YY.

z=360.5−3725.10≈−2.25\displaystyle z=\dfrac{360.5-372}{5.10}\approx -2.25
P(X≤360)≈Φ(−2.25)=0.0122\displaystyle P(X\le 360)\approx\Phi(-2.25)=0.0122

Pitfall: without the correction, z=−2.35z=-2.35 and we find 0.00940.0094, which leaves out half of the bar at 360360.

f)

If the survival rate were 0.930.93, 360360 survivors or fewer would be observed only about one year in 8080.

The result is therefore hard to reconcile with 0.930.93: it casts doubt on this rate, without saying why (exceptional year, predation, turbine flow).

Note: the exact calculation with the binomial distribution gives P(X≤360)≈0.0155P(X\le 360)\approx 0.0155. With pp close to 11, the distribution is somewhat skewed and the normal approximation underestimates this tail; the conclusion does not change.

This is already the reasoning of a hypothesis test, which exercises 7 to 9 make formal.

Part C: inference (/26)

Exercise 7: Radon in basements: the central limit theorem and a test on a mean

10 answers to check

Radon, a radioactive gas produced by the uranium in soils and rocks, builds up in basements. A regional (fictitious) survey measured the annual mean radon concentration in 600600 basements; the histogram below groups them into classes of 5050 Bq/m³. Assume that, for all the houses of the region, the mean is μ=95\mu=95 Bq/m³ and the standard deviation is σ=80\sigma=80 Bq/m³. In Canada, the guideline recommends taking action in a house above 200200 Bq/m³.

Useful values: z0.05=1.645z_{0.05}=1.645 and z0.01=2.326z_{0.01}=2.326, which leave an area of 0.050.05 and 0.010.01 to their right; table of Φ\Phi with zz rounded to two decimals.

050100150200050100150200250300350400450radon (Bq/m³)houses
  • a) Can the concentration XX of one house be modelled by the normal distribution with mean 9595 and standard deviation 8080? Justify using the histogram and the calculation of P(X<0)P(X<0) in this model.
  • b) Let X1,…,XnX_{1},\dots,X_{n} be the concentrations of nn houses drawn at random with replacement, and X‾\overline{X} their mean. Prove that E(X‾)=μE(\overline{X})=\mu and V(X‾)=σ2nV(\overline{X})=\dfrac{\sigma^{2}}{n}.
  • c) 5050 houses are drawn at random. State what the central limit theorem allows us to say about X‾\overline{X}, then calculate P(X‾>120)P(\overline{X}>120).
  • d) A municipality built on granite bedrock wants to know whether the mean concentration of its houses exceeds the regional mean. On 4040 houses drawn at random, it obtains x‾=118\overline{x}=118 Bq/m³ and s=86s=86 Bq/m³. State the hypotheses, then calculate the test statistic.
  • e) Conclude at the 5%5\% significance level, then at the 1%1\% level, and calculate the P-value of the test.
  • f) The mayor announces: “The test proves that our houses exceed the guideline.” Choose the correct conclusion.

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

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

Answers

  • a) No: skewed distribution, and P(X<0)≈0.1170P(X<0)\approx 0.1170 would be absurd
  • b) Linearity of EE; independence: V(∑Xi)=nσ2V(\sum X_{i})=n\sigma^{2}, hence σ2n\frac{\sigma^{2}}{n}
  • c) X‾\overline{X} approximately normal, σX‾≈11.31\sigma_{\overline{X}}\approx 11.31; P(X‾>120)≈0.0136P(\overline{X}>120)\approx 0.0136
  • d) H0:μ=95H_{0}:\mu=95, H1:μ>95H_{1}:\mu>95; z≈1.69z\approx 1.69
  • e) Reject at 5%5\%, do not reject at 1%1\%; P-value ≈0.0455\approx 0.0455
  • f) The test compares the mean with 9595; it says nothing about one house or about the 200200 guideline
a)

No. The histogram is strongly skewed to the right: a mode near 00, a long tail up to 450450 Bq/m³.

In the normal model: z=0−9580≈−1.19z=\dfrac{0-95}{80}\approx -1.19 and P(X<0)=Φ(−1.19)=0.1170P(X<0)=\Phi(-1.19)=0.1170.

This model would give 11.7%11.7\% of houses a NEGATIVE concentration, which is impossible: the normal distribution does not describe one house.

b)

Drawing with replacement: the XiX_{i} are independent and all have the distribution of the population, with expected value μ\mu and variance σ2\sigma^{2}.

E(X‾)=1n(E(X1)+⋯+E(Xn))=1n×nμ=μE(\overline{X})=\dfrac{1}{n}\left(E(X_{1})+\dots+E(X_{n})\right)=\dfrac{1}{n}\times n\mu=\mu (linearity of expectation).

V(X‾)=1n2(V(X1)+⋯+V(Xn))=nσ2n2=σ2nV(\overline{X})=\dfrac{1}{n^{2}}\left(V(X_{1})+\dots+V(X_{n})\right)=\dfrac{n\sigma^{2}}{n^{2}}=\dfrac{\sigma^{2}}{n}: V(aY)=a2V(Y)V(aY)=a^{2}V(Y), and the variance of a sum of INDEPENDENT variables is the sum of the variances.

c)

The 5050 measurements are independent and identically distributed, and n=50≥30n=50\ge 30: by the central limit theorem, X‾\overline{X} approximately follows a normal distribution, even though XX does not.

Its expected value is 9595 and its standard deviation, the standard error, is 8050≈11.31\dfrac{80}{\sqrt{50}}\approx 11.31 Bq/m³.

z=120−9511.31≈2.21z=\dfrac{120-95}{11.31}\approx 2.21 and P(X‾>120)=1−Φ(2.21)=1−0.9864=0.0136P(\overline{X}>120)=1-\Phi(2.21)=1-0.9864=0.0136

Pitfall: dividing by σ=80\sigma=80 instead of the standard error would give z≈0.31z\approx 0.31; this is a question about the MEAN of 5050 houses, not about one house.

d)

Parameter: μ\mu, the mean concentration of the municipality's houses.

H0:μ=95H_{0}:\mu=95 against H1:μ>95H_{1}:\mu>95 (right-tailed: the study is looking for an excess).

n=40≥30n=40\ge 30: by the central limit theorem, we use the normal distribution, with ss in place of σ\sigma.

z=x‾−μ0s/n=118−9586/40=2313.60≈1.69\displaystyle z=\dfrac{\overline{x}-\mu_{0}}{s/\sqrt{n}}=\dfrac{118-95}{86/\sqrt{40}}=\dfrac{23}{13.60}\approx 1.69
e)

At the 5%5\% level: z=1.69>1.645z=1.69>1.645, we reject H0H_{0}.

At the 1%1\% level: z=1.69<2.326z=1.69<2.326, we do not reject H0H_{0}.

P-value: P(Z≥1.69)=1−Φ(1.69)=1−0.9545=0.0455P(Z\ge 1.69)=1-\Phi(1.69)=1-0.9545=0.0455, between 0.010.01 and 0.050.05, which explains the two decisions.

At the 5%5\% level, the data allow us to conclude that the mean concentration of the municipality exceeds the regional mean; at the 1%1\% level, they do not.

f)

The test is about the municipal MEAN and compares it with 9595 Bq/m³, not with 200200 Bq/m³.

It says nothing about the proportion of houses above 200200 Bq/m³: with such a skewed distribution, a mean of 118118 is consistent with a majority of houses below the guideline and a few far above it.

Only a measurement in each house tells whether it must take action.

Pitfall: declaring the test invalid because the concentrations are not normal; with n=40n=40, the central limit theorem makes the statistic approximately normal.

0−2−11.6452.326z = 1.691%reject: 5%Z under H₀
The statistic under H0H_{0}: z≈1.69z\approx 1.69 falls in the 5%5\% rejection region, but not beyond 2.3262.326, the 1%1\% critical value.

Exercise 8: The calcium of a spring: Student's t interval and test

9 answers to check

A karst spring supplies a village's water system. An old hydrogeological report gave a mean calcium concentration of 48.048.0 mg/L. This year, a CEGEP laboratory takes 99 samples on dates drawn at random during the season and measures the calcium by titration. Results, in mg/L (fictitious data): 46.246.2, 48.148.1, 48.448.4, 45.845.8, 47.547.5, 45.745.7, 48.648.6, 47.347.3, 47.247.2.

Assume that the concentrations of the season follow a normal distribution. Values of Student's t distribution with 88 degrees of freedom: t0.025, 8=2.306t_{0.025,\,8}=2.306 and t0.05, 8=1.860t_{0.05,\,8}=1.860, which leave an area of 0.0250.025 and 0.050.05 to their right.

45.045.546.046.547.047.548.048.549.0old report: 48.0calcium (mg/L)
  • a) Calculate the mean x‾\overline{x} and the standard deviation ss of the sample.
  • b) Explain why Student's t distribution is used rather than the normal distribution, and give its number of degrees of freedom.
  • c) Construct the 95%95\% confidence interval for the mean concentration μ\mu of the season.
  • d) Test H0:μ=48.0H_{0}:\mu=48.0 against H1:μ≠48.0H_{1}:\mu\neq 48.0 at the 5%5\% level: test statistic, critical value and written decision.
  • e) A student compares the statistic with 1.961.96. Would his decision be different? Explain his error.
  • f) After seeing the data, a technician proposes to test H1:μ<48.0H_{1}:\mu<48.0 instead, which would lead to a rejection. Explain why this approach is refused.
  • g) Check that the decision in d) agrees with the interval in c), and say why.

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

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

Answers

  • a) x‾=47.20\overline{x}=47.20 mg/L, s≈1.091s\approx 1.091 mg/L
  • b) n<30n<30 and σ\sigma unknown, population assumed normal: Student's t with 88 df
  • c) CI95%=[46.36,48.04]CI_{95\%}=[46.36, 48.04] mg/L
  • d) t≈−2.20t\approx -2.20, ∣t∣<2.306|t|<2.306: we do not reject H0H_{0}
  • e) Yes, 1.961.96 would lead to a rejection: it is the value of the normal distribution, not of Student's t with 88 df
  • f) The direction of H1H_{1} is set before the data; chosen afterwards, the real risk doubles
  • g) 48.0∈[46.36,48.04]48.0\in[46.36, 48.04] and no rejection: a two-tailed test and the interval always agree
a)

∑xi=424.8\sum x_{i}=424.8, so x‾=424.89=47.20\overline{x}=\dfrac{424.8}{9}=47.20 mg/L.

Deviations from the mean: −1.0-1.0, 0.90.9, 1.21.2, −1.4-1.4, 0.30.3, −1.5-1.5, 1.41.4, 0.10.1, 00, whose squares add up to 9.529.52.

s=9.528=1.19≈1.091s=\sqrt{\dfrac{9.52}{8}}=\sqrt{1.19}\approx 1.091 mg/L

b)

The sample is small (n=9<30n=9<30) and the standard deviation of the population is unknown: it is estimated by ss, which adds uncertainty.

If the population is normal, T=X‾−μS/nT=\dfrac{\overline{X}-\mu}{S/\sqrt{n}} follows Student's t distribution with n−1=8n-1=8 degrees of freedom, which is more spread out than the normal distribution.

The plot of the 99 values shows neither strong skewness nor an isolated value: the normality assumption is plausible, without being proved by so few data.

c)

Standard error: s9=1.0913≈0.3636\dfrac{s}{\sqrt{9}}=\dfrac{1.091}{3}\approx 0.3636 mg/L.

Margin of error: 2.306×0.3636≈0.8392.306\times 0.3636\approx 0.839 mg/L.

CI95%=[47.20−0.84, 47.20+0.84]=[46.36,48.04]CI_{95\%}=[47.20-0.84,\ 47.20+0.84]=[46.36, 48.04] mg/L

d)
t=x‾−μ0s/n=47.20−48.00.3636≈−2.20\displaystyle t=\dfrac{\overline{x}-\mu_{0}}{s/\sqrt{n}}=\dfrac{47.20-48.0}{0.3636}\approx -2.20

Two-tailed test at 5%5\%: reject if ∣t∣>t0.025, 8=2.306|t|>t_{0.025,\,8}=2.306.

∣t∣=2.20<2.306|t|=2.20<2.306: we do not reject H0H_{0}.

At the 5%5\% level, the data do not allow us to conclude that the mean calcium concentration has changed since the report. Nor do they prove that it stayed at 48.048.0 mg/L: with 99 measurements, a real difference of nearly 11 mg/L easily goes unnoticed.

e)

Yes: with 1.961.96, ∣t∣=2.20>1.96|t|=2.20>1.96 would lead to rejecting H0H_{0}.

Pitfall: 1.961.96 is the critical value of the normal distribution; with 88 degrees of freedom, Student's t distribution has heavier tails, and the critical value rises to 2.3062.306. Using 1.961.96 makes a Type I error more often than 5%5\% of the time.

f)

The direction of H1H_{1} is set BEFORE seeing the data, from the question of the study, here “has the concentration changed?”, which is two-sided.

Choosing the side afterwards, the side where x‾\overline{x} falls, amounts to testing in both directions and keeping only the better one: the true Type I error risk of this approach is 2×5%=10%2\times 5\%=10\%, not 5%5\%.

The rejection obtained this way (t=−2.20<−1.860t=-2.20<-1.860) therefore does not have the stated value.

g)

μ0=48.0\mu_{0}=48.0 lies in [46.36,48.04][46.36, 48.04], barely, and the test does not reject H0H_{0}, barely too.

This is expected: ∣t∣≤2.306|t|\le 2.306 is equivalent to ∣x‾−μ0∣≤2.306 sn|\overline{x}-\mu_{0}|\le 2.306\,\dfrac{s}{\sqrt{n}}, that is, to μ0∈[x‾−2.306 sn, x‾+2.306 sn]\mu_{0}\in\left[\overline{x}-2.306\,\dfrac{s}{\sqrt{n}},\ \overline{x}+2.306\,\dfrac{s}{\sqrt{n}}\right]. A two-tailed test at level α\alpha and the interval with confidence level 1−α1-\alpha always reach the same decision.

0−2.3062.306−1.961.96t = −2.20normalT under H₀, 8 df
Under H0H_{0}, TT follows Student's t distribution with 88 df (purple), more spread out than the normal distribution (grey dashes). t≈−2.20t\approx -2.20 goes past −1.96-1.96 but not past −2.306-2.306: no rejection.

Exercise 9: Ticks and Lyme disease: interval and test on a proportion

9 answers to check

In a region where Lyme disease is spreading, a public health team collects blacklegged ticks by dragging a white cloth through the vegetation of sites drawn at random. It analyzes 300300 adult ticks: 6363 carry the bacterium that causes the disease, Borrelia burgdorferi. Last year, the same survey had estimated this proportion at 15%15\%. Fictitious data.

Useful values: z0.025=1.96z_{0.025}=1.96 and z0.01=2.326z_{0.01}=2.326; table of Φ\Phi with zz rounded to two decimals.

  • a) Calculate the proportion p^\hat{p} of infected ticks in the sample, then the 95%95\% confidence interval for the proportion pp in the region.
  • b) Choose the correct interpretation of the 95%95\% confidence level.
  • c) Test at the 1%1\% level whether the proportion of infected ticks has increased since last year: hypotheses, conditions, test statistic and decision.
  • d) Calculate the P-value of the test and write the conclusion.
  • e) Next year, the team wants a margin of error of at most 33 percentage points at 95%95\%. Calculate the required sample size, taking p^\hat{p} as the prior estimate, then without any prior estimate.

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

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

Answers

  • a) p^=0.21\hat{p}=0.21; CI95%=[0.164,0.256]CI_{95\%}=[0.164, 0.256]
  • b) 95%95\% of samples give an interval that contains pp
  • c) H1:p>0.15H_{1}:p>0.15; z≈2.91>2.326z\approx 2.91>2.326: reject H0H_{0}
  • d) P-value ≈0.0018\approx 0.0018: the proportion has increased (1%1\% level)
  • e) n=709n=709; without an estimate, n=1068n=1068
a)
p^=63300=0.21\displaystyle \hat{p}=\dfrac{63}{300}=0.21

Conditions: n=300≥30n=300\ge 30, np^=63≥5n\hat{p}=63\ge 5 and n(1−p^)=237≥5n(1-\hat{p})=237\ge 5.

Estimated standard error: 0.21×0.79300≈0.0235\sqrt{\dfrac{0.21\times 0.79}{300}}\approx 0.0235; margin of error: 1.96×0.0235≈0.0461.96\times 0.0235\approx 0.046.

CI95%=[0.21−0.046, 0.21+0.046]=[0.164,0.256]\displaystyle CI_{95\%}=[0.21-0.046,\ 0.21+0.046]=[0.164, 0.256]
b)

pp is a fixed, unknown number; it is the interval that varies from one sample to another.

95%95\% is the proportion of possible samples for which the METHOD produces an interval that contains pp. The interval [0.164,0.256][0.164, 0.256] itself either contains pp or does not.

c)

H0:p=0.15H_{0}:p=0.15 against H1:p>0.15H_{1}:p>0.15 (right-tailed: the study is looking for an increase).

Conditions under H0H_{0}: np0=45≥5np_{0}=45\ge 5 and n(1−p0)=255≥5n(1-p_{0})=255\ge 5.

The standard error is calculated UNDER H0H_{0}, with p0p_{0}: 0.15×0.85300≈0.02062\sqrt{\dfrac{0.15\times 0.85}{300}}\approx 0.02062.

z=0.21−0.150.02062≈2.91>2.326z=\dfrac{0.21-0.15}{0.02062}\approx 2.91>2.326: we reject H0H_{0} at the 1%1\% level.

Pitfall: putting p^\hat{p} in the standard error gives z≈2.55z\approx 2.55; the decision is the same here, but the statistic is no longer that of the test.

Caveat: ticks collected at the same site are not quite independent; drawing many sites at random limits this cluster effect.

d)

P-value: P(Z≥2.91)=1−Φ(2.91)=1−0.9982=0.0018P(Z\ge 2.91)=1-\Phi(2.91)=1-0.9982=0.0018, well below 0.010.01.

At the 1%1\% level, the data allow us to conclude that the proportion of ticks carrying Borrelia burgdorferi in the region has increased since last year.

The test does not say by how much: the interval in a) places the current proportion between about 16%16\% and 26%26\%.

e)

We want 1.96p(1−p)n≤0.031.96\sqrt{\dfrac{p(1-p)}{n}}\le 0.03, that is n≥1.962 p(1−p)0.032n\ge\dfrac{1.96^{2}\,p(1-p)}{0.03^{2}}.

With p=0.21p=0.21: n≥3.8416×0.16590.0009≈708.1n\ge\dfrac{3.8416\times 0.1659}{0.0009}\approx 708.1, so n=709n=709 ticks (rounded UP).

Without a prior estimate, take p=0.5p=0.5, which makes p(1−p)p(1-p) as large as possible: n≥3.8416×0.250.0009≈1067.1n\ge\dfrac{3.8416\times 0.25}{0.0009}\approx 1067.1, so n=1068n=1068.

Pitfall: rounding 708.1708.1 to 708708 would give a margin slightly above 33 points.

0.100.120.140.160.180.200.220.240.260.280.3095% CI: [0.164, 0.256]p₀ = 0.15proportion p
The 95%95\% confidence interval does not contain p0=0.15p_{0}=0.15, last year's proportion: consistent with the rejection in the test.

Part D: relationship between two variables (/8)

Exercise 10: Dissolved oxygen and temperature: the least-squares line and its limits

10 answers to check

On seven dates in the same year, a team measures around noon, at the same point of a well-mixed river, the water temperature xx (in °C) and the dissolved oxygen concentration yy (in mg/L). Fictitious but plausible data:

xx: 44, 88, 1212, 1515, 1919, 2222, 2525 • yy: 12.612.6, 11.511.5, 10.610.6, 9.99.9, 9.29.2, 8.68.6, 8.28.2.

Given: ∑xi=105\sum x_{i}=105, ∑yi=70.6\sum y_{i}=70.6, ∑xi2=1919\sum x_{i}^{2}=1919, ∑yi2=727.22\sum y_{i}^{2}=727.22 and ∑xiyi=987.1\sum x_{i}y_{i}=987.1. Notation: Sxx=∑xi2−(∑xi)2nS_{xx}=\sum x_{i}^{2}-\frac{(\sum x_{i})^{2}}{n}, Sxy=∑xiyi−∑xi∑yinS_{xy}=\sum x_{i}y_{i}-\frac{\sum x_{i}\sum y_{i}}{n}, and SyyS_{yy} likewise.

78910111213051015202530T (°C)dissolved O₂ (mg/L)
  • a) Calculate SxxS_{xx} and SxyS_{xy}, then the slope aa and the intercept bb of the least-squares line y^=ax+b\hat{y}=ax+b.
  • b) Prove that the least-squares line passes through the mean point (x‾,y‾)(\overline{x},\overline{y}) and that the sum of the residuals ei=yi−y^ie_{i}=y_{i}-\hat{y}_{i} is zero, given that b=y‾−ax‾b=\overline{y}-a\overline{x}.
  • c) Calculate the correlation coefficient rr and the coefficient of determination r2r^{2}, then interpret r2r^{2}.
  • d) Estimate the dissolved oxygen concentration when the water is at 1717 °C.
  • e) The residuals are, in order of temperature: 0.220.22, −0.05-0.05, −0.11-0.11, −0.19-0.19, −0.05-0.05, −0.02-0.02, 0.200.20. Describe their pattern and what it indicates.
  • f) A student predicts the dissolved oxygen during a heat wave when the water reaches 3232 °C. Calculate the prediction, then criticize it.
  • g) Choose the correct statement about causation.

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

a)
c)
d)
e)
f)
g)
Show the solution

Answers

  • a) Sxx=344S_{xx}=344, Sxy=−71.9S_{xy}=-71.9; a≈−0.2090a\approx -0.2090, b≈13.22b\approx 13.22
  • b) ax‾+b=y‾a\overline{x}+b=\overline{y} and ∑ei=n(y‾−ax‾−b)=0\sum e_{i}=n(\overline{y}-a\overline{x}-b)=0
  • c) r≈−0.9954r\approx -0.9954, r2≈0.991r^{2}\approx 0.991: 99%99\% of the variation explained
  • d) y^(17)≈9.67\hat{y}(17)\approx 9.67 mg/L (interpolation)
  • e) Arc: positive at the ends, negative in the middle; slight curvature
  • f) y^(32)≈6.53\hat{y}(32)\approx 6.53 mg/L: extrapolation, probably an underestimate
  • g) Association only, no proof of causation; the physical mechanism supports it
a)
Sxx=1919−10527=1919−1575=344\displaystyle S_{xx}=1919-\dfrac{105^{2}}{7}=1919-1575=344
Sxy=987.1−105×70.67=987.1−1059=−71.9\displaystyle S_{xy}=987.1-\dfrac{105\times 70.6}{7}=987.1-1059=-71.9

a=SxySxx=−71.9344≈−0.2090a=\dfrac{S_{xy}}{S_{xx}}=\dfrac{-71.9}{344}\approx -0.2090 mg/L per °C

x‾=15\overline{x}=15, y‾=70.67≈10.086\overline{y}=\dfrac{70.6}{7}\approx 10.086, so b=y‾−ax‾≈10.086+0.2090×15≈13.22b=\overline{y}-a\overline{x}\approx 10.086+0.2090\times 15\approx 13.22 mg/L

y^=13.22−0.209 x\hat{y}=13.22-0.209\,x: each additional degree goes with, on average, 0.210.21 mg/L less oxygen.

b)

At x=x‾x=\overline{x}: y^=ax‾+b=ax‾+y‾−ax‾=y‾\hat{y}=a\overline{x}+b=a\overline{x}+\overline{y}-a\overline{x}=\overline{y}, so the line passes through (x‾,y‾)(\overline{x},\overline{y}).

∑ei=∑(yi−axi−b)=ny‾−anx‾−nb=n(y‾−ax‾−b)=0\begin{aligned}\sum e_{i}&=\sum\left(y_{i}-ax_{i}-b\right)\\&=n\overline{y}-an\overline{x}-nb\\&=n\left(\overline{y}-a\overline{x}-b\right)=0\end{aligned}

The points above and below the line balance out exactly.

c)
Syy=727.22−70.627≈15.169\displaystyle S_{yy}=727.22-\dfrac{70.6^{2}}{7}\approx 15.169

r=SxySxxSyy=−71.9344×15.169≈−0.9954r=\dfrac{S_{xy}}{\sqrt{S_{xx}S_{yy}}}=\dfrac{-71.9}{\sqrt{344\times 15.169}}\approx -0.9954 and r2≈0.991r^{2}\approx 0.991

Very strong negative linear relationship: about 99%99\% of the variation in dissolved oxygen between these seven dates is explained by the line in terms of temperature.

d)

1717 °C is within the observed range (44 to 2525 °C): this is an interpolation.

y^=13.22−0.2090×17≈9.67\hat{y}=13.22-0.2090\times 17\approx 9.67 mg/L

e)

The residuals are positive at both ends and negative in the middle: they form an arc, not a shapeless cloud.

The relationship is slightly CURVED (convex): the line is a good summary within the range, despite r2=0.99r^{2}=0.99, but it is not the exact form of the relationship.

An rr close to −1-1 does not guarantee that a line is the right model: the residuals must be examined.

f)

y^=13.22−0.2090×32≈6.53\hat{y}=13.22-0.2090\times 32\approx 6.53 mg/L

This is an EXTRAPOLATION: 3232 °C lies outside the observed range, where nothing guarantees that the relationship stays the same.

The positive residuals at the ends show that the data curve back above the line: extended, the line probably underestimates the dissolved oxygen at 3232 °C, in this model of well-mixed water.

Pitfall: a prediction outside the range of the observed xx values does not have the reliability that r2r^{2} suggests.

g)

Regression measures an association; on its own, it does not prove that temperature causes the drop.

Here, a known physical mechanism, the solubility of a gas, which decreases as the water warms, supports a causal link; yet other factors vary with the season (photosynthesis, decomposition, flow) and also contribute.

78910111213051015202530T (°C)dissolved O₂ (mg/L)(x̄, ȳ)?ŷ = 13.22 − 0.209 x
The least-squares line passes through the mean point (green). The residuals, too small to read at this scale, are given in e); extending the line beyond 2525 °C (red) is not guaranteed.

Part E: synthesis problem (/15)

Exercise 11: Synthesis problem: road salt and wood frogs

15 answers to check

The salt spread on roads in winter runs off into nearby wetlands. To measure its effect, an ecology team draws at random 4040 ponds among those of a region located less than 200200 m from a road. Fictitious data.

Document 1. Chloride concentration measured in spring in the 4040 ponds, in mg/L: minimum 1818, Q1=46Q_{1}=46, median 7878, Q3=152Q_{3}=152, maximum 610610; the two highest values are 340340 and 610610; mean x‾=112\overline{x}=112 and standard deviation s=96s=96. Fourteen ponds exceed 120120 mg/L, the benchmark for prolonged exposure used by the study. The box plot below summarizes these data.

Document 2. In the same spring, the team records in each pond the presence or absence of wood frog egg masses, by chloride class: low (under 5050 mg/L), medium (from 5050 to 120120 mg/L), high (over 120120 mg/L).

Useful values: z0.025=1.96z_{0.025}=1.96; chi-square distribution with 22 degrees of freedom, χ0.05, 22=5.991\chi^{2}_{0.05,\,2}=5.991 and χ0.01, 22=9.210\chi^{2}_{0.01,\,2}=9.210, values that leave an area of 0.050.05 and 0.010.01 to their right.

Document 2LowMediumHighTotal
Egg masses present108321
Egg masses absent261119
Total12141440
0100200300400500600120 mg/Lchloride (mg/L)
  • a) Using document 1, calculate the interquartile range and the fences beyond which a concentration is called an outlier, then say how many ponds are outliers.
  • b) Describe the shape of the distribution, then say which measure, the mean or the median, best describes a typical pond.
  • c) Construct the 95%95\% confidence interval for the mean chloride concentration μ\mu of the ponds of the region, justifying the method despite the skewness.
  • d) A technician returns to 33 of the 4040 ponds, drawn at random without replacement. Calculate the probability that at least one of them exceeds 120120 mg/L.
  • e) For document 2, calculate the expected counts under the hypothesis of independence between the presence of egg masses and the chloride class, then check the condition for applying the chi-square test.
  • f) Carry out the chi-square test of independence: hypotheses, degrees of freedom, statistic and decision at the 5% and 1% significance levels.
  • g) Choose the conclusion the study allows you to write, and justify it using the proportions of egg masses by class.

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

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

Answers

  • a) IQR=106IQR=106 mg/L; fences −113-113 and 311311; 22 outlying ponds (340340 and 610610)
  • b) Strongly skewed to the right (x‾=112>78\overline{x}=112>78, the median): the median
  • c) CI95%≈[82.25,141.75]CI_{95\%}\approx[82.25, 141.75] mg/L
  • d) 1−26009880≈0.73681-\frac{2600}{9880}\approx 0.7368
  • e) 6.36.3, 7.357.35, 7.357.35 / 5.75.7, 6.656.65, 6.656.65: all ≥5\ge 5
  • f) 22 df; χ2≈10.12>9.210\chi^{2}\approx 10.12>9.210: independence rejected at 5%5\% and at 1%1\%
  • g) Egg masses: 83%83\%, 57%57\%, 21%21\%; relationship established, causation not proved (observational study)
a)

IQR=Q3−Q1=152−46=106IQR=Q_{3}-Q_{1}=152-46=106 mg/L

Fences: Q1−1.5 IQR=46−159=−113Q_{1}-1.5\,IQR=46-159=-113 and Q3+1.5 IQR=152+159=311Q_{3}+1.5\,IQR=152+159=311 mg/L.

No concentration is below −113-113; above 311311, there are 340340 and 610610: 22 outlying ponds.

Outlier does not mean wrong: these two ponds may lie at the foot of a salt depot or a steep slope; we keep them, and we check them.

b)

The median (7878) is much closer to Q1Q_{1} (3232 mg/L away) than to Q3Q_{3} (7474 mg/L away), the right whisker stretches out to 610610, and x‾=112>78\overline{x}=112>78, the median: the distribution is strongly skewed to the right.

The median better describes a typical pond: the mean is pulled up by a few very salty ponds.

c)

n=40≥30n=40\ge 30 and the ponds are drawn at random: by the central limit theorem, X‾\overline{X} is approximately normal despite the skewness of the concentrations; with a large nn, σ\sigma is replaced by ss.

Standard error: 9640≈15.18\dfrac{96}{\sqrt{40}}\approx 15.18 mg/L; margin of error: 1.96×15.18≈29.751.96\times 15.18\approx 29.75 mg/L.

CI95%=[112−29.75, 112+29.75]≈[82.25,141.75]CI_{95\%}=[112-29.75,\ 112+29.75]\approx[82.25, 141.75] mg/L

Caveat: with such a stretched distribution, n=40n=40 is just enough; the two outliers weigh heavily on x‾\overline{x} and on ss.

d)

Complement: none of the 33 ponds exceeds 120120 mg/L, that is, 33 ponds chosen among the 2626 others.

P=1−(263)(403)=1−26009880≈1−0.2632=0.7368\displaystyle P=1-\dfrac{\binom{26}{3}}{\binom{40}{3}}=1-\dfrac{2600}{9880}\approx 1-0.2632=0.7368

Pitfall: a binomial 1−(2640)3≈0.72541-\left(\frac{26}{40}\right)^{3}\approx 0.7254 would assume drawing WITH replacement; without replacement among 4040 ponds, we count.

e)

Expected count: row total×column total40\dfrac{\text{row total}\times\text{column total}}{40}.

Egg masses present: 21×1240=6.3\dfrac{21\times 12}{40}=6.3; 21×1440=7.35\dfrac{21\times 14}{40}=7.35; 7.357.35.

Egg masses absent: 19×1240=5.7\dfrac{19\times 12}{40}=5.7; 6.656.65; 6.656.65.

The smallest is 5.7≥55.7\ge 5: the condition on the expected counts is met, barely.

f)

H0H_{0}: the presence of egg masses and the chloride class are independent; H1H_{1}: they are related.

Degrees of freedom: (2−1)(3−1)=2(2-1)(3-1)=2.

χ2=(10−6.3)26.3+(8−7.35)27.35+(3−7.35)27.35+(2−5.7)25.7+(6−6.65)26.65+(11−6.65)26.65\displaystyle \chi^{2}=\dfrac{(10-6.3)^{2}}{6.3}+\dfrac{(8-7.35)^{2}}{7.35}+\dfrac{(3-7.35)^{2}}{7.35}+\dfrac{(2-5.7)^{2}}{5.7}+\dfrac{(6-6.65)^{2}}{6.65}+\dfrac{(11-6.65)^{2}}{6.65}
χ2≈2.173+0.057+2.574+2.402+0.064+2.845≈10.12\displaystyle \chi^{2}\approx 2.173+0.057+2.574+2.402+0.064+2.845\approx 10.12

10.12>5.99110.12>5.991 and 10.12>9.21010.12>9.210: we reject H0H_{0} at both levels.

The largest contributions come from the extreme classes: too many egg masses in low-salt water, too few in very salty water, compared with independence.

g)

Proportions of ponds with egg masses: 1012≈83%\frac{10}{12}\approx 83\% in the low class, 814≈57%\frac{8}{14}\approx 57\% in the medium class, 314≈21%\frac{3}{14}\approx 21\% in the high class.

Conclusion: at the 1%1\% level, the data show a relationship between the salinity of the ponds and the presence of wood frog egg masses; egg masses are rarer in the saltiest ponds.

The study is an OBSERVATIONAL study: it does not prove that salt CAUSES the absence of egg masses. The very salty ponds are probably also closer to busier roads (noise, road mortality, sediments); only a controlled experiment, or accounting for these factors, would settle it.

It holds for the ponds near roads in this region, the population the 4040 ponds come from.

02468101214chi-square, 2 df5.99189.211214χ² = 10.121%reject: 5%right tail enlarged (heights × 8)
Chi-square distribution with 22 degrees of freedom. Below, the right tail enlarged: χ2≈10.12\chi^{2}\approx 10.12 exceeds 5.9915.991 (5%5\%) and 9.219.21 (1%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.

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/cegep-sn1-practice-final. 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. We prepare the final exam on complete papers, working first on what earns the most marks: naming the model, choosing the right distribution and writing the conclusion in context.

Site by Studio Squalli