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

Corrected exercises: hypothesis tests (201-SN1-RE)

Here are ten corrected exercises on hypothesis tests for the CEGEP course Probability and Statistics, 201-SN1-RE, in Sciences de la nature, preceded by a list of calculations.

What the set covers, the traps it targets

They cover the null hypothesis and the alternative hypothesis, one-tailed and two-tailed tests, the significance level, the test statistic, the critical region, the pp-value, Type I and Type II errors and power, on the three cases of the course framework: the test on a mean with n≥30n\geq 30, the test on a mean with n<30n<30 using Student's t distribution, and the test on a proportion with n≥30n\geq 30, as well as the link between a test and a confidence interval.

Exercise 0.1 lines up eleven direct calculations: zz and tt statistics, standard error under H0H_{0}, critical values, pp-values and decisions. The situations then come from the natural sciences: the yield under a fertilizer (exercise 2), the phosphorus of a lake (exercise 3), the malformed frogs of one pond and then of twelve ponds (exercises 4 and 10), measuring gg in the laboratory (exercises 5 and 7), lead in drinking water against a standard (exercise 6), a catalyst (exercise 8) and the flowering duration of a plant, handled as a complete study (exercise 9).

By the end of the set, you can state H0H_{0} and H1H_{1} on the parameter (exercise 1), choose between the normal distribution and Student's t distribution, write a decision in context, prove that a two-tailed test and a confidence interval decide in the same way (exercise 5), compute the Type II error risk and the power (exercises 6 and 10), and recover a value of the Student table from an integral (exercise 7). The pitfalls covered: writing the hypotheses about x‾\overline{x} (exercise 1), discarding an inconvenient measurement (exercise 3), putting p^\hat{p} instead of p0p_{0} in the standard error (exercise 4), comparing with 1.961.96 with a small sample (exercise 7) or in a one-tailed test (exercise 8), reading the pp-value as the probability of H0H_{0} (exercise 8), and multiplying tests without counting the false alarms (exercise 10).

The thread of the set: everything is computed UNDER H0H_{0}, and nothing proves H0H_{0}. We assume the null hypothesis is true in order to calculate, with μ0\mu_{0} at the centre and p0p_{0} in the standard error; only a surprise larger than the level set in advance brings it down, and not rejecting it never proves it. Do each exercise in full before opening the solution.

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

Course recap

  • • HYPOTHESES: about a PARAMETER of the population (μ\mu or pp), never about x‾\overline{x} or p^\hat{p}. H0H_{0} carries the equality (μ=μ0\mu=\mu_{0}); H1H_{1} carries what the study wants to establish: μ≠μ0\mu\neq\mu_{0} (two-tailed), μ<μ0\mu<\mu_{0} or μ>μ0\mu>\mu_{0} (one-tailed). The choice is made BEFORE seeing the data.
  • • TEST STATISTIC, computed under H0H_{0}: mean with n≥30n\geq 30, z=x‾−μ0s/nz=\dfrac{\overline{x}-\mu_{0}}{s/\sqrt{n}} (normal distribution); mean with n<30n<30 and a normal population, t=x‾−μ0s/nt=\dfrac{\overline{x}-\mu_{0}}{s/\sqrt{n}} (Student with n−1n-1 degrees of freedom); proportion with np0≥5np_{0}\geq 5 and n(1−p0)≥5n(1-p_{0})\geq 5, z=p^−p0p0(1−p0)/nz=\dfrac{\hat{p}-p_{0}}{\sqrt{p_{0}(1-p_{0})/n}}.
  • • CRITICAL REGION at level α\alpha: two-tailed, ∣z∣>zα/2|z|>z_{\alpha/2} (1.961.96 at 5%5\%); one-tailed, z>zαz>z_{\alpha} or z<−zαz<-z_{\alpha} (1.6451.645 at 5%5\%, 2.3262.326 at 1%1\%). With Student, the critical value is read with n−1n-1 degrees of freedom.
  • • THE pp-VALUE: the probability, IF H0H_{0} is true, of getting a result at least as far from H0H_{0} as the one observed, in the direction of H1H_{1} (both tails in a two-tailed test). Reject H0H_{0} if p≤αp\leq\alpha.
  • • ERRORS: Type I, rejecting a true H0H_{0}, with probability α\alpha; Type II, not rejecting a false H0H_{0}, with probability β\beta, which depends on the true value of the parameter. Power =1−β=1-\beta. For a fixed nn, lowering α\alpha increases β\beta; increasing nn reduces β\beta.
  • • CONCLUSION: “at the 5%5\% level, the data allow (or do not allow) us to conclude that...”, in the vocabulary of the problem. Never say “we accept H0H_{0}”. A two-tailed test at level α\alpha rejects H0H_{0} exactly when μ0\mu_{0} falls outside the confidence interval of level 1−α1-\alpha.

Calculations: test statistics, p-values and decisions

Exercise 0.1: Test statistics, p-values and decisions: eleven direct calculations

12 answers to check

For each line, compute the requested quantity from the summary data, without writing a conclusion. Critical values of the normal distribution: z0.05=1.645z_{0.05}=1.645, z0.025=1.96z_{0.025}=1.96, z0.01=2.326z_{0.01}=2.326, z0.005=2.576z_{0.005}=2.576, where zαz_{\alpha} leaves an area α\alpha to its right. Normal probabilities are read from the table, with zz rounded to two decimals. Statistics to two decimals, pp-values to four decimals.

  • a) H0:μ=50H_{0}:\mu=50, x‾=52.4\overline{x}=52.4, s=6s=6, n=36n=36: compute the zz statistic.
  • b) H0:μ=12H_{0}:\mu=12, x‾=11.1\overline{x}=11.1, s=2.7s=2.7, n=81n=81: compute the zz statistic.
  • c) H0:μ=80H_{0}:\mu=80, x‾=83\overline{x}=83, s=5s=5, n=9n=9, normal population: compute the tt statistic and its number of degrees of freedom.
  • d) H0:p=0.40H_{0}:p=0.40, 230230 successes out of n=500n=500: compute the zz statistic.
  • e) H0:p=0.2H_{0}:p=0.2, n=400n=400: compute the standard error of P^\hat{P} under H0H_{0}.
  • f) Left-tailed test at the 2.5%2.5\% significance level: give the critical value of zz.
  • g) Two-tailed test, z=−2.15z=-2.15: compute the pp-value.
  • h) Right-tailed test, z=1.32z=1.32: compute the pp-value.
  • i) Two-tailed test at the 5%5\% level, z=2.05z=2.05: give the decision.
  • j) H0:μ=200H_{0}:\mu=200 against H1:μ>200H_{1}:\mu>200, σ=15\sigma=15, n=25n=25, 5%5\% level: compute the bound cc of the critical region x‾>c\overline{x}>c.
  • k) Two-tailed test at the 5%5\% level on a mean, normal population, n=15n=15, t=−2.40t=-2.40, and t0.025, 14=2.145t_{0.025,\,14}=2.145: give the decision.

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

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

Answers

  • a) z=2.40z=2.40
  • b) z=−3.00z=-3.00
  • c) t=1.80t=1.80 with 88 degrees of freedom
  • d) z≈2.74z\approx 2.74
  • e) σP^=0.02\sigma_{\hat{P}}=0.02
  • f) z=−1.96z=-1.96
  • g) p≈0.0316p\approx 0.0316
  • h) p≈0.0934p\approx 0.0934
  • i) Reject H0H_{0}
  • j) c≈204.94c\approx 204.94
  • k) Reject H0H_{0}
a)

n≥30n\geq 30: replace σ\sigma by ss and use the normal distribution.

z=x‾−μ0s/n=52.4−506/6=2.40\displaystyle z=\dfrac{\overline{x}-\mu_{0}}{s/\sqrt{n}}=\dfrac{52.4-50}{6/6}=2.40
b)
z=11.1−122.7/81=−0.90.3=−3.00\displaystyle z=\dfrac{11.1-12}{2.7/\sqrt{81}}=\dfrac{-0.9}{0.3}=-3.00

The sign tells on which side of μ0\mu_{0} the sample falls; keep it.

c)

n<30n<30 and normal population: Student's t distribution with n−1=8n-1=8 degrees of freedom.

t=83−805/9=35/3=1.80\displaystyle t=\dfrac{83-80}{5/\sqrt{9}}=\dfrac{3}{5/3}=1.80
d)

p^=230500=0.46\hat{p}=\dfrac{230}{500}=0.46 and, under H0H_{0}, σP^=0.40×0.60500≈0.02191\sigma_{\hat{P}}=\sqrt{\dfrac{0.40\times 0.60}{500}}\approx 0.02191.

z=0.46−0.400.02191≈2.74\displaystyle z=\dfrac{0.46-0.40}{0.02191}\approx 2.74
e)
σP^=0.2×0.8400=0.0004=0.02\displaystyle \sigma_{\hat{P}}=\sqrt{\dfrac{0.2\times 0.8}{400}}=\sqrt{0.0004}=0.02
f)

The whole area α=0.025\alpha=0.025 is in the left tail: the critical value leaves 2.5%2.5\% to its left, so it is −z0.025=−1.96-z_{0.025}=-1.96.

Pitfall: taking −1.645-1.645 because the test is one-tailed. 1.6451.645 corresponds to 5%5\% in one tail, not to 2.5%2.5\%.

g)

P(Z<−2.15)=1−0.9842=0.0158P(Z<-2.15)=1-0.9842=0.0158, and the test is two-tailed:

p=2×0.0158=0.0316\displaystyle p=2\times 0.0158=0.0316
h)
p=P(Z>1.32)=1−0.9066=0.0934\displaystyle p=P(Z>1.32)=1-0.9066=0.0934
i)

∣z∣=2.05>1.96|z|=2.05>1.96: zz falls in the critical region, so we reject H0H_{0} at the 5%5\% level.

j)

We reject when x‾−20015/25>1.645\dfrac{\overline{x}-200}{15/\sqrt{25}}>1.645, that is, when

x‾>200+1.645×155=204.935\displaystyle \overline{x}>200+1.645\times\dfrac{15}{5}=204.935

So c≈204.94c\approx 204.94.

k)

Student's t distribution with 1414 degrees of freedom: we reject when ∣t∣>2.145|t|>2.145. Here ∣t∣=2.40>2.145|t|=2.40>2.145: we reject H0H_{0}.

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

Part A: the basics (/50)

Exercise 1: Stating H0 and H1: seven studies, seven pairs of hypotheses

23 answers to check

A hypothesis test starts before any calculation: name the parameter of the POPULATION, write the null hypothesis H0H_{0}, which carries the equality, then the alternative hypothesis H1H_{1}, the one the study is trying to establish. These seven situations come back throughout the set.

For each of questions a) to g), give the parameter tested, the form of H1H_{1} and the reference value, then write H0H_{0} and H1H_{1}.

  • a) Fertilizer. Without fertilizer, the mean yield of a wheat variety is 3.203.20 t/ha on the station's plots. An agronomist wants to establish that his fertilizer INCREASES the mean yield.
  • b) Lead. A municipality declares the water of a network compliant only if the data establish that the mean lead concentration at the tap is BELOW a standard of 88 µg/L (a fictitious standard, set for this set).
  • c) Phosphorus. A lake association has set a management threshold of 2020 µg/L of total phosphorus (a value chosen for the exercise). It wants to know whether the mean concentration this summer EXCEEDS that threshold.
  • d) Measuring gg. A class wants to know whether its pendulum setup gives a biased value of gg, in one direction or the other, compared with the reference value 9.819.81 m/s².
  • e) Catalyst. Without a catalyst, a reaction lasts 120120 s on average under the laboratory's conditions. A chemist wants to establish that a catalyst REDUCES this mean duration.
  • f) Frogs. In control ponds, 5%5\% of frogs have a limb malformation (a fictitious rate). A biologist suspects a HIGHER rate in a pond next to farm fields.
  • g) Flowering. Old surveys give a mean flowering duration of 18.018.0 days for a woodland understory plant. A botanist wants to establish that this duration has DECREASED.
  • h) For the fertilizer, a student writes “H0:x‾=3.20H_{0}:\overline{x}=3.20 and H1:x‾>3.20H_{1}:\overline{x}>3.20”. Explain his mistake.
  • i) For the lead, a city councillor proposes H0:μ=8H_{0}:\mu=8 against H1:μ>8H_{1}:\mu>8 instead, “so that the water is declared contaminated only if it is proved”. Explain what this choice changes when the sample is small or inconclusive.

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

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

Answers

  • a) H0:μ=3.20H_{0}:\mu=3.20; H1:μ>3.20H_{1}:\mu>3.20 (right-tailed)
  • b) H0:μ=8H_{0}:\mu=8; H1:μ<8H_{1}:\mu<8 (left-tailed)
  • c) H0:μ=20H_{0}:\mu=20; H1:μ>20H_{1}:\mu>20 (right-tailed)
  • d) H0:μ=9.81H_{0}:\mu=9.81; H1:μ≠9.81H_{1}:\mu\neq9.81 (two-tailed)
  • e) H0:μ=120H_{0}:\mu=120; H1:μ<120H_{1}:\mu<120 (left-tailed)
  • f) H0:p=0.05H_{0}:p=0.05; H1:p>0.05H_{1}:p>0.05 (right-tailed)
  • g) H0:μ=18H_{0}:\mu=18; H1:μ<18H_{1}:\mu<18 (left-tailed)
  • h) The hypotheses are about the parameter μ\mu, never about x‾\overline{x}, which is known
  • i) The water would stay in service by default, without its compliance being proved
a)

Parameter μ\mu, the mean yield of all treated plots.

H0:μ=3.20H_{0}:\mu=3.20 and H1:μ>3.20H_{1}:\mu>3.20.

Right-tailed test, because only an INCREASE in yield interests the agronomist; a decrease would not lead him to adopt the fertilizer either, but that is not what he is trying to establish.

b)

Parameter μ\mu, the mean lead concentration at the tap in the network.

H0:μ=8H_{0}:\mu=8 and H1:μ<8H_{1}:\mu<8.

Left-tailed test, because it is compliance that must be PROVED: the water is declared safe only if the data place the mean below the standard.

c)

Parameter μ\mu, the mean total phosphorus concentration of the lake this summer.

H0:μ=20H_{0}:\mu=20 and H1:μ>20H_{1}:\mu>20.

Right-tailed test, because the association is only worried about an exceedance: a concentration lower than the threshold calls for no action.

d)

Parameter μ\mu, the mean of all the measurements the setup would give.

H0:μ=9.81H_{0}:\mu=9.81 and H1:μ≠9.81H_{1}:\mu\neq9.81.

Two-tailed test, because a bias in either direction is a defect of the setup: we do not know in advance on which side it falls.

e)

Parameter μ\mu, the mean reaction time with the catalyst.

H0:μ=120H_{0}:\mu=120 and H1:μ<120H_{1}:\mu<120.

Left-tailed test, because the catalyst must REDUCE the duration; a longer duration would not make it useful.

f)

Parameter pp, the proportion of malformed frogs in the pond.

H0:p=0.05H_{0}:p=0.05 and H1:p>0.05H_{1}:p>0.05.

Right-tailed test, because the suspicion is of a rate higher than that of the control ponds.

g)

Parameter μ\mu, the current mean flowering duration.

H0:μ=18H_{0}:\mu=18 and H1:μ<18H_{1}:\mu<18.

Left-tailed test, because the question is a decrease; a longer duration would be a different study.

h)

The hypotheses are about an unknown PARAMETER of the population: here μ\mu, the mean yield of all the plots that would be treated with the fertilizer.

x‾\overline{x} is a sample statistic: once the harvest is weighed, its value is known, and a hypothesis about it makes no sense.

The correct statement is H0:μ=3.20H_{0}:\mu=3.20 and H1:μ>3.20H_{1}:\mu>3.20. The equality goes in H0H_{0} even if we think “μ≤3.20\mu\leq 3.20”: it is the value under which all the calculations are done, the boundary case between the two hypotheses.

Pitfall: writing the claim to be established in H0H_{0}. A test can only reject H0H_{0} or fail to reject it; what we want to establish therefore goes in H1H_{1}.

i)

A test rejects H0H_{0} only if the data are clearly incompatible with it. With H1:μ>8H_{1}:\mu>8, a small, inconclusive sample leads to not rejecting μ=8\mu=8: contamination is not proved, and the water stays in service.

The water would therefore be declared acceptable BY DEFAULT, simply for lack of data. With H1:μ<8H_{1}:\mu<8, it is the reverse: as long as compliance is not established, the water is not declared compliant.

The choice of H1H_{1} decides who carries the burden of proof. In public health, it is compliance that must be proved, and exercise 6 puts numbers on the two errors this choice distributes.

0−1.961.962.5%2.5%two-tailedH₁: μ ≠ μ₀0−1.6455%left-tailedH₁: μ < μ₀01.6455%right-tailedH₁: μ > μ₀

Exercise 2: Test on a mean with n ≥ 30: does the fertilizer increase the yield?

9 answers to check

We return to the fertilizer of exercise 1 a). Without fertilizer, the mean yield of the variety is μ0=3.20\mu_{0}=3.20 t/ha. The fertilizer is spread on n=40n=40 plots chosen at random in the station. From the raw data, the mean yield is x‾=3.38\overline{x}=3.38 t/ha and the standard deviation s=0.52s=0.52 t/ha. We work at the level α=5%\alpha=5\%; we give z0.05=1.645z_{0.05}=1.645 and z0.01=2.326z_{0.01}=2.326.

The histogram below groups the 4040 yields into classes.

24681012142.42.83.23.644.44.8yield (t/ha)count
  • a) State H0H_{0} and H1H_{1}, naming the parameter.
  • b) The histogram is clearly skewed. Explain why we can still use the normal distribution for X‾\overline{X}, and why we are allowed to replace σ\sigma by ss.
  • c) Compute the standard error of X‾\overline{X} and the zz statistic.
  • d) Determine the critical region at the 5%5\% level, first in terms of zz, then in terms of the mean yield x‾\overline{x}.
  • e) Make the decision and write the conclusion in context.
  • f) Compute the pp-value of the test and check that it leads to the same decision.
  • g) Redo the decision at the 1%1\% level, computing the new bound of the critical region, and write the conclusion.

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

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

Answers

  • a) H0:μ=3.20H_{0}:\mu=3.20; H1:μ>3.20H_{1}:\mu>3.20, where μ\mu is the mean yield with fertilizer
  • b) Central limit theorem (n=40≥30n=40\geq 30); ss estimates σ\sigma precisely when n≥30n\geq 30
  • c) σX‾≈0.0822\sigma_{\overline{X}}\approx 0.0822 t/ha; z≈2.19z\approx 2.19
  • d) z>1.645z>1.645, that is, x‾>3.335\overline{x}>3.335 t/ha
  • e) Reject H0H_{0}: at the 5%5\% level, the data support an increase in the mean yield
  • f) p≈0.0143<0.05p\approx 0.0143<0.05: same decision
  • g) c≈3.391c\approx 3.391; do not reject H0H_{0} at the 1%1\% level
a)

The parameter is μ\mu, the mean yield of ALL the station's plots that would be treated with the fertilizer.

H0:μ=3.20H_{0}:\mu=3.20 t/ha (the fertilizer changes nothing) and H1:μ>3.20H_{1}:\mu>3.20 t/ha (it increases the mean yield). Right-tailed test.

b)

The central limit theorem is about the MEAN: for n≥30n\geq 30 independent draws, X‾\overline{X} is approximately normal with mean μ\mu and standard deviation σn\dfrac{\sigma}{\sqrt{n}}, whatever the shape of the distribution of yields, provided σ\sigma is finite.

The skewness of the histogram describes the DATA; it does not rule anything out for the distribution of X‾\overline{X}. With n=40n=40, the normal approximation is reasonable, all the more so since the skewness remains moderate.

For the same reason, with n≥30n\geq 30, ss estimates σ\sigma precisely enough for us to keep the normal distribution: this is the course's convention for a mean with n≥30n\geq 30.

Pitfall: concluding that a test is impossible because the data are not normal. That condition is needed only for n<30n<30 (exercise 3).

c)

σX‾≈sn=0.5240≈0.0822\sigma_{\overline{X}}\approx\dfrac{s}{\sqrt{n}}=\dfrac{0.52}{\sqrt{40}}\approx 0.0822 t/ha

z=x‾−μ0s/n=3.38−3.200.0822≈2.19\displaystyle z=\dfrac{\overline{x}-\mu_{0}}{s/\sqrt{n}}=\dfrac{3.38-3.20}{0.0822}\approx 2.19

The calculation is done UNDER H0H_{0}: the distribution of X‾\overline{X} is centred on μ0=3.20\mu_{0}=3.20, and it is the gap from this value that we measure in standard errors.

d)

Right-tailed test at the 5%5\% level: we reject H0H_{0} when z>1.645z>1.645.

In terms of yield: x‾−3.200.0822>1.645  ⟺  x‾>3.20+1.645×0.0822≈3.335\dfrac{\overline{x}-3.20}{0.0822}>1.645 \iff \overline{x}>3.20+1.645\times 0.0822\approx 3.335 t/ha.

The critical region is set BEFORE looking at x‾\overline{x}: it depends only on μ0\mu_{0}, the standard error and the level.

e)

z≈2.19>1.645z\approx 2.19>1.645, or equivalently x‾=3.38>3.335\overline{x}=3.38>3.335: we reject H0H_{0}.

Conclusion: at the 5%5\% level, the data from the 4040 plots allow us to conclude that the fertilizer increases the mean yield of this variety at this station.

The conclusion is about the mean yield and the station studied; it says nothing about another variety or another soil.

f)
p=P(Z>2.19)=1−0.9857=0.0143\displaystyle p=P(Z>2.19)=1-0.9857=0.0143

If the fertilizer had no effect, a mean yield of at least 3.383.38 t/ha over 4040 plots would appear in only about 1.4%1.4\% of samples.

p=0.0143<0.05p=0.0143<0.05: we reject H0H_{0}, as in e). The two rules, critical region and pp-value, always give the same decision.

g)

At the 1%1\% level, we reject when z>2.326z>2.326, that is, x‾>3.20+2.326×0.0822≈3.391\overline{x}>3.20+2.326\times 0.0822\approx 3.391 t/ha.

x‾=3.38<3.391\overline{x}=3.38<3.391 (or p=0.0143>0.01p=0.0143>0.01): we do not reject H0H_{0}.

Conclusion: at the 1%1\% level, the data do not allow us to conclude that the mean yield has increased.

Pitfall: writing “at the 1%1\% level, the fertilizer has no effect”. Not rejecting H0H_{0} does not prove it: the same data show a likely effect, just not clear enough for such a demanding level.

3.203.335x̄ = 3.38do not rejectreject: 5%X̄ under H₀

Exercise 3: Student's t test, n < 30: does the lake's phosphorus exceed the threshold?

8 answers to check

We return to the lake of exercise 1 c). This summer, the association collected n=10n=10 water samples at points and on dates chosen at random. Total phosphorus concentrations, in µg/L: 22.4,19.6,23.4,21.1,17.2,24.1,20.3,22.7,18.8,21.422.4, 19.6, 23.4, 21.1, 17.2, 24.1, 20.3, 22.7, 18.8, 21.4.

We assume that the summer concentrations follow a normal distribution. We test H0:μ=20H_{0}:\mu=20 against H1:μ>20H_{1}:\mu>20 at the 5%5\% level. Values of Student's t distribution, where tα, νt_{\alpha,\,\nu} leaves an area α\alpha to its right: t0.10, 9=1.383t_{0.10,\,9}=1.383, t0.05, 9=1.833t_{0.05,\,9}=1.833, t0.025, 9=2.262t_{0.025,\,9}=2.262 and t0.05, 8=1.860t_{0.05,\,8}=1.860.

The dot plot below places the ten measurements relative to the threshold.

1617181920212223242526threshold: 20total phosphorus (µg/L)
  • a) Compute the mean x‾\overline{x} and the standard deviation ss of the sample.
  • b) Explain why we use Student's t distribution and not the normal distribution, which condition allows it, and how the plot makes it plausible. Give the number of degrees of freedom.
  • c) Compute the tt statistic.
  • d) Make the decision at the 5%5\% level and write the conclusion.
  • e) Bracket the pp-value of the test using the table values.
  • f) A member of the association proposes to discard the lowest measurement, 17.217.2 µg/L, “surely an error”. Recompute tt without it, then explain why this second calculation has no right to replace the first one.

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

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

Answers

  • a) x‾=21.10\overline{x}=21.10 µg/L; s≈2.16s\approx 2.16 µg/L
  • b) n<30n<30 and σ\sigma unknown; population assumed normal; 99 degrees of freedom
  • c) t≈1.61t\approx 1.61
  • d) Do not reject H0H_{0}: the data do not allow us to conclude that the mean exceeds 2020 µg/L
  • e) 0.05<p<0.100.05<p<0.10
  • f) t≈2.60t\approx 2.60, but removing a measurement without an experimental reason invalidates the test
a)

x‾=211.010=21.10\overline{x}=\dfrac{211.0}{10}=21.10 µg/L.

s=∑(xi−x‾)2n−1=42.029≈2.16s=\sqrt{\dfrac{\sum (x_{i}-\overline{x})^{2}}{n-1}}=\sqrt{\dfrac{42.02}{9}}\approx 2.16 µg/L

On the calculator: statistics mode, list of the ten values, and read sxs_{x} (not σx\sigma_{x}, which divides by nn).

b)

With n=10<30n=10<30, the central limit theorem no longer guarantees that X‾\overline{X} is normal, and ss, computed on ten values, is an uncertain estimate of σ\sigma.

If the population of concentrations is NORMAL, the statistic T=X‾−μ0S/nT=\dfrac{\overline{X}-\mu_{0}}{S/\sqrt{n}} follows exactly a Student's t distribution with n−1=9n-1=9 degrees of freedom: that is the condition that replaces n≥30n\geq 30.

The plot does not prove normality, but it makes it plausible: a single hump, no strong skewness, no value isolated far from the others.

Pitfall: using z0.05=1.645z_{0.05}=1.645. The tails of Student's t distribution are heavier; its critical value, 1.8331.833, is larger.

c)
t=x‾−μ0s/n=21.10−202.161/10=1.100.683≈1.61\displaystyle t=\dfrac{\overline{x}-\mu_{0}}{s/\sqrt{n}}=\dfrac{21.10-20}{2.161/\sqrt{10}}=\dfrac{1.10}{0.683}\approx 1.61
d)

Right-tailed test, 99 degrees of freedom: we reject H0H_{0} if t>1.833t>1.833.

t≈1.61<1.833t\approx 1.61<1.833: we do not reject H0H_{0}.

Conclusion: at the 5%5\% level, these ten measurements do not allow us to conclude that the mean phosphorus concentration of the summer exceeds 2020 µg/L.

Pitfall: writing “the lake meets the threshold”. The observed mean, 21.1021.10, is above 2020; the test only says that this gap may come from the chance of ten samples.

e)

The pp-value is the area to the right of t=1.61t=1.61 under Student's t distribution with 99 degrees of freedom.

1.383<1.61<1.8331.383<1.61<1.833, so 0.05<p<0.100.05<p<0.10.

A Student table only gives a bracket; software would give p≈0.071p\approx 0.071, consistent with the bracket.

f)

Without 17.217.2: x‾≈21.53\overline{x}\approx 21.53, s≈1.77s\approx 1.77, n=9n=9, so 88 degrees of freedom and

t=21.53−201.772/9≈2.60>1.860\displaystyle t=\dfrac{21.53-20}{1.772/\sqrt{9}}\approx 2.60>1.860

This second test would reject H0H_{0}, but it is worthless: the measurement was removed AFTER seeing that it stood in the way of the desired conclusion. The data were chosen to get the result.

A measurement may be discarded only for a documented experimental reason (contaminated bottle, protocol error), decided without looking at the effect on the test. Otherwise, the decision remains that of d).

Exercise 4: Test on a proportion: the malformed frogs of the pond

11 answers to check

We return to the pond of exercise 1 f). In the region's control ponds, the proportion of frogs with a limb malformation is p0=0.05p_{0}=0.05 (a fictitious rate). In a pond next to farm fields, a team catches n=220n=220 frogs at random and finds 1919 malformed ones. We test at the 1%1\% level, with z0.01=2.326z_{0.01}=2.326.

  • a) State H0H_{0} and H1H_{1}, then compute the observed proportion p^\hat{p}.
  • b) Check the conditions for the normal approximation.
  • c) Compute the standard error of P^\hat{P} under H0H_{0}, then the zz statistic.
  • d) Make the decision at the 1%1\% level and write the conclusion.
  • e) Compute the pp-value of the test.
  • f) A student computes the standard error with p^\hat{p} instead of p0p_{0}. Compute the statistic he obtains and the decision he makes at the 1%1\% level. Explain why p0p_{0} is what must appear in the standard error.
  • g) In his report, the biologist writes: “the pesticides from the neighbouring fields cause the malformations”. Say what the test establishes, and what it does not establish.

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

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

Answers

  • a) H0:p=0.05H_{0}:p=0.05; H1:p>0.05H_{1}:p>0.05; p^=19220≈0.0864\hat{p}=\frac{19}{220}\approx 0.0864
  • b) np0=11≥5np_{0}=11\geq 5 and n(1−p0)=209≥5n(1-p_{0})=209\geq 5; sample drawn at random
  • c) σP^≈0.0147\sigma_{\hat{P}}\approx 0.0147; z≈2.47z\approx 2.47
  • d) Reject H0H_{0}: at the 1%1\% level, the proportion of malformed frogs exceeds 5%5\% in this pond
  • e) p≈0.0068p\approx 0.0068
  • f) z≈1.92z\approx 1.92: he would not reject H0H_{0}; yet the calculation is done under H0H_{0}, hence with p0p_{0}
  • g) A proportion above 5%5\% in this pond; not the cause, the study is observational
a)

Parameter: pp, the proportion of malformed frogs in the whole pond.

H0:p=0.05H_{0}:p=0.05 and H1:p>0.05H_{1}:p>0.05: right-tailed.

p^=19220≈0.0864\displaystyle \hat{p}=\dfrac{19}{220}\approx 0.0864
b)

np0=220×0.05=11≥5np_{0}=220\times 0.05=11\geq 5 and n(1−p0)=220×0.95=209≥5n(1-p_{0})=220\times 0.95=209\geq 5: under H0H_{0}, P^\hat{P} is approximately normal.

The conditions are checked with p0p_{0}, the value under which we calculate. The captures must also be random and independent: if the team had caught only the slow frogs, more often malformed, the proportion would be biased, and no calculation would fix it.

c)
σP^=p0(1−p0)n=0.05×0.95220≈0.0147\displaystyle \sigma_{\hat{P}}=\sqrt{\dfrac{p_{0}(1-p_{0})}{n}}=\sqrt{\dfrac{0.05\times 0.95}{220}}\approx 0.0147
z=p^−p0σP^=0.0864−0.050.0147≈2.47\displaystyle z=\dfrac{\hat{p}-p_{0}}{\sigma_{\hat{P}}}=\dfrac{0.0864-0.05}{0.0147}\approx 2.47
d)

We reject H0H_{0} if z>2.326z>2.326. Here z≈2.47>2.326z\approx 2.47>2.326: we reject H0H_{0}.

Conclusion: at the 1%1\% level, the data allow us to conclude that the proportion of malformed frogs in this pond exceeds the 5%5\% rate of the control ponds.

e)
p=P(Z>2.47)=1−0.9932=0.0068\displaystyle p=P(Z>2.47)=1-0.9932=0.0068

If the pond's rate were 5%5\%, we would find 1919 or more malformed frogs out of 220220 in only about 0.7%0.7\% of samples. p<0.01p<0.01: same decision as in d).

f)

With p^\hat{p}: 0.0864×0.9136220≈0.0189\sqrt{\dfrac{0.0864\times 0.9136}{220}}\approx 0.0189 and z≈0.03640.0189≈1.92<2.326z\approx\dfrac{0.0364}{0.0189}\approx 1.92<2.326: he would not reject H0H_{0}.

Yet the whole test reasons UNDER H0H_{0}: we compute the distribution of P^\hat{P} assuming p=0.05p=0.05, and in that world the standard error is 0.05×0.95220\sqrt{\frac{0.05\times 0.95}{220}}. Putting p^\hat{p} in mixes two hypotheses in the same calculation.

Pitfall: the confidence interval formula, which uses p^\hat{p} because there is no assumed value. Here the mistake costs the whole conclusion, as the figure shows.

The further p^\hat{p} is from p0p_{0}, the more the two standard errors differ, and the more this choice weighs on the decision.

g)

The test establishes only one thing: in this pond, the proportion of malformed frogs exceeds 5%5\%, with a Type I error risk of 1%1\%.

It says nothing about the CAUSE: the study is observational. The pond differs from the control ponds by the neighbouring fields, but perhaps also by its temperature, its parasites (some trematodes cause limb malformations) or its fauna.

To attribute the increase to the pesticides, one would need to measure their concentration in several ponds, or run a controlled laboratory experiment. The report should say “is associated with the proximity of the fields, without the cause being established”.

012.3264with p̂: 1.92with p₀: 2.47reject: 1%

Exercise 5: Two-tailed test and confidence interval: is the measurement of g biased?

11 answers to check

We return to the class of exercise 1 d). Each team measures the period of a pendulum and deduces a value of gg from g=4π2LT2g=\dfrac{4\pi^{2}L}{T^{2}}. Over n=50n=50 measurements, the mean is x‾=9.774\overline{x}=9.774 m/s² and the standard deviation s=0.092s=0.092 m/s². The laboratory's reference value is g0=9.81g_{0}=9.81 m/s².

We give z0.025=1.96z_{0.025}=1.96 and z0.005=2.576z_{0.005}=2.576.

  • a) State H0H_{0} and H1H_{1}, and justify the choice of a two-tailed test.
  • b) Compute the standard error and the zz statistic, then make the decision at the 5%5\% level.
  • c) Compute the pp-value of the test.
  • d) Build the 95%95\% confidence interval for μ\mu, to three decimals. Does it contain 9.819.81?
  • e) Prove that, for a two-tailed test at level α\alpha, we reject H0:μ=μ0H_{0}:\mu=\mu_{0} if and only if μ0\mu_{0} does not belong to the confidence interval of level 1−α1-\alpha built with the same standard error.
  • f) Without redoing the test, deduce the decision at the 1%1\% level from the 99%99\% confidence interval.
  • g) Write the conclusion for the class, and choose a physical cause consistent with the direction of the gap.

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

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

Answers

  • a) H0:μ=9.81H_{0}:\mu=9.81; H1:μ≠9.81H_{1}:\mu\neq 9.81 (a bias in either direction is a defect)
  • b) σX‾≈0.0130\sigma_{\overline{X}}\approx 0.0130 m/s²; z≈−2.77z\approx -2.77; reject H0H_{0}
  • c) p≈0.0056p\approx 0.0056
  • d) [9.748, 9.800][9.748,\,9.800] m/s²; it does not contain 9.819.81
  • e) ∣z∣>zα/2  ⟺  ∣x‾−μ0∣>zα/2 σX‾  ⟺  μ0∉[x‾±zα/2 σX‾]|z|>z_{\alpha/2} \iff |\overline{x}-\mu_{0}|>z_{\alpha/2}\,\sigma_{\overline{X}} \iff \mu_{0}\notin\left[\overline{x}\pm z_{\alpha/2}\,\sigma_{\overline{X}}\right]
  • f) [9.740, 9.808][9.740,\,9.808] does not contain 9.819.81: reject H0H_{0} at the 1%1\% level
  • g) The setup gives values of gg that are too low on average; large amplitude of the oscillations
a)

Parameter: μ\mu, the mean of all the values of gg this setup would give. H0:μ=9.81H_{0}:\mu=9.81 m/s² (no bias) and H1:μ≠9.81H_{1}:\mu\neq 9.81 m/s².

Two-tailed: we are looking for a defect of the setup, and we do not know in advance whether it overestimates or underestimates gg. The choice is made BEFORE seeing that x‾<9.81\overline{x}<9.81.

b)

n=50≥30n=50\geq 30: σX‾≈0.09250≈0.0130\sigma_{\overline{X}}\approx\dfrac{0.092}{\sqrt{50}}\approx 0.0130 m/s².

z=9.774−9.810.0130≈−2.77\displaystyle z=\dfrac{9.774-9.81}{0.0130}\approx -2.77

Two-tailed at the 5%5\% level: we reject if ∣z∣>1.96|z|>1.96. Here ∣z∣≈2.77>1.96|z|\approx 2.77>1.96: we reject H0H_{0}.

c)
p=2×P(Z<−2.77)=2×(1−0.9972)=2×0.0028=0.0056\displaystyle p=2\times P(Z<-2.77)=2\times(1-0.9972)=2\times 0.0028=0.0056

If the setup had no bias, a mean of 5050 measurements at least as far from 9.819.81, on one side or the other, would appear in only about 0.56%0.56\% of cases.

d)
x‾±1.96 σX‾=9.774±1.96×0.01301=9.774±0.0255\displaystyle \overline{x}\pm 1.96\,\sigma_{\overline{X}}=9.774\pm 1.96\times 0.01301=9.774\pm 0.0255

The interval is [9.748, 9.800][9.748,\,9.800] m/s²: it does not contain 9.819.81, which gives the same decision as in b).

e)

Let e=σX‾e=\sigma_{\overline{X}} be the standard error, the same in the test and in the interval. The two-tailed test rejects H0H_{0} if and only if

∣x‾−μ0e∣>zα/2  ⟺  ∣x‾−μ0∣>zα/2 e\displaystyle \left|\dfrac{\overline{x}-\mu_{0}}{e}\right|>z_{\alpha/2} \iff |\overline{x}-\mu_{0}|>z_{\alpha/2}\,e
  ⟺  μ0<x‾−zα/2 e or μ0>x‾+zα/2 e\displaystyle \iff \mu_{0}<\overline{x}-z_{\alpha/2}\,e \ \text{or}\ \mu_{0}>\overline{x}+z_{\alpha/2}\,e
  ⟺  μ0∉[x‾−zα/2 e, x‾+zα/2 e]\displaystyle \iff \mu_{0}\notin\left[\overline{x}-z_{\alpha/2}\,e,\,\overline{x}+z_{\alpha/2}\,e\right]

That is exactly the confidence interval of level 1−α1-\alpha. Each step is an equivalence, so the two rules always give the same decision.

Two conditions hold this equivalence: a TWO-TAILED test, and the same standard error on both sides. For a proportion, the test uses p0p_{0} and the interval uses p^\hat{p} (exercise 4): the equivalence is then only approximate.

f)

x‾±2.576×0.01301=9.774±0.0335\overline{x}\pm 2.576\times 0.01301=9.774\pm 0.0335, that is, [9.740, 9.808][9.740,\,9.808] m/s².

9.81>9.8089.81>9.808: the reference value lies outside the 99%99\% interval, so we reject H0H_{0} at the 1%1\% level, with no other calculation. This is consistent with p=0.0056<0.01p=0.0056<0.01.

The margin is thin: 9.819.81 is only 0.0020.002 m/s² from the bound. Rounding the standard error too early to 0.0130.013 would be enough to blur the reading.

g)

Conclusion: at the 1%1\% level, the data from the 5050 measurements allow us to conclude that the setup gives, on average, a value of gg different from 9.819.81 m/s², and lower.

g=4π2LT2g=\frac{4\pi^{2}L}{T^{2}} underestimates gg if TT is too large. The formula is valid only for small oscillations: at large amplitude, the real period lengthens, which lowers gg in every measurement, in the same direction.

A random timing error spreads the measurements without shifting them all to the same side: it increases ss, not the mean gap. Measuring LL to the centre of the mass is the correct practice.

Pitfall: concluding that gg equals 9.7749.774 m/s² in the laboratory. The test judges the SETUP, not the value of gg.

0−1.961.96z = −2.77Z under H₀9.729.749.769.789.809.829.8495% CIg₀ = 9.81g (m/s²)

Part B: problems and reasoning (/50)

Exercise 6: The two errors of a test: lead in drinking water

10 answers to check

We return to the water network of exercise 1 b), with the fictitious standard of 88 µg/L. The laboratory collects n=40n=40 tap samples, chosen at random in the network. Its years of monitoring allow the standard deviation of the concentrations to be treated as known: σ=2.4\sigma=2.4 µg/L. The municipality tests H0:μ=8H_{0}:\mu=8 against H1:μ<8H_{1}:\mu<8 at the 5%5\% level, and declares the water compliant only if it rejects H0H_{0}. We give z0.05=1.645z_{0.05}=1.645 and z0.01=2.326z_{0.01}=2.326.

The figure below shows the distribution of X‾\overline{X} if μ=8\mu=8 (null hypothesis) and if μ=7\mu=7 (water that is clearly compliant).

6789μ = 8 (H₀)μ = 7x̄ (µg/L)
  • a) Describe, in this context, the Type I error and the Type II error. Say which one this choice of H1H_{1} makes rare, and why.
  • b) Determine the critical region in terms of mean concentration: x‾<c\overline{x}<c.
  • c) Prove that, if μ=8\mu=8, the probability of rejecting H0H_{0} is 0.050.05, in the normal model of X‾\overline{X}.
  • d) The true mean of the network is in fact μ=7\mu=7 µg/L. Compute the Type II error risk β\beta and the power of the test.
  • e) The laboratory doubles its effort: n=80n=80 samples, same level. Compute the new bound cc and the new β\beta for μ=7\mu=7.
  • f) Back to n=40n=40, but at the 1%1\% level. Compute β\beta for μ=7\mu=7, then say what must be done to reduce both risks at once.
  • g) The 4040 samples give x‾=7.45\overline{x}=7.45 µg/L. Compute zz, make the decision and write the municipality's conclusion.

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

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

Answers

  • a) Type I: declaring compliant water that is not (a health risk, controlled at 5%5\%); Type II: declaring compliant water non-compliant
  • b) x‾<7.376\overline{x}<7.376 µg/L
  • c) P(X‾<c)=P(Z<−1.645)=0.05P(\overline{X}<c)=P\left(Z<-1.645\right)=0.05 when μ=8\mu=8
  • d) β≈0.161\beta\approx 0.161; power ≈0.839\approx 0.839
  • e) c≈7.559c\approx 7.559; β≈0.019\beta\approx 0.019
  • f) β≈0.378\beta\approx 0.378; increase nn
  • g) z≈−1.45z\approx -1.45; do not reject H0H_{0}: the water cannot be declared compliant
a)

TYPE I error: rejecting H0H_{0} when it is true, that is, declaring the water compliant when its mean concentration reaches the standard. It is a health risk.

TYPE II error: not rejecting H0H_{0} when H1H_{1} is true, that is, refusing to declare compliant water that is. It costs new analyses or needless work.

The level α=5%\alpha=5\% bounds the first one, the more serious: with H1:μ<8H_{1}:\mu<8, it is compliance that must be proved, and the error we control is the one that would expose the population.

b)

Standard error: σX‾=2.440≈0.3795\sigma_{\overline{X}}=\dfrac{2.4}{\sqrt{40}}\approx 0.3795 µg/L.

Left-tailed: we reject if x‾−80.3795<−1.645\dfrac{\overline{x}-8}{0.3795}<-1.645, that is,

x‾<8−1.645×0.3795≈7.376\overline{x}<8-1.645\times 0.3795\approx 7.376 µg/L

c)

If μ=8\mu=8, X‾\overline{X} is approximately normal with mean 88 and standard deviation σX‾\sigma_{\overline{X}} (n=40≥30n=40\geq 30). Then Z=X‾−8σX‾Z=\dfrac{\overline{X}-8}{\sigma_{\overline{X}}} follows the standard normal distribution.

P(reject)=P(X‾<8−1.645 σX‾)=P(X‾−8σX‾<−1.645)=P(Z<−1.645)=0.05\displaystyle P(\text{reject})=P(\overline{X}<8-1.645\,\sigma_{\overline{X}})=P\left(\dfrac{\overline{X}-8}{\sigma_{\overline{X}}}<-1.645\right)=P(Z<-1.645)=0.05

The bound cc was built for this: the level α\alpha IS the probability of rejecting H0H_{0} when it is true, up to the rounding of the table, whatever the values of σ\sigma and nn.

d)

If μ=7\mu=7, X‾\overline{X} is centred on 77 with the same standard error. We do not reject H0H_{0} when x‾≥7.376\overline{x}\geq 7.376:

β=P(X‾≥7.376)=P(Z≥7.376−70.3795)=P(Z≥0.99)=1−0.8389=0.1611\displaystyle \beta=P(\overline{X}\geq 7.376)=P\left(Z\geq\dfrac{7.376-7}{0.3795}\right)=P(Z\geq 0.99)=1-0.8389=0.1611

The power is 1−β≈0.8391-\beta\approx 0.839: water at 77 µg/L on average is declared compliant in only about 84%84\% of campaigns of 4040 samples. It is the blue area in the solution's figure.

Pitfall: believing that β=1−α=0.95\beta=1-\alpha=0.95. β\beta depends on the true value of μ\mu, which the test does not know; α\alpha and β\beta are not computed under the same distribution.

e)

σX‾=2.480≈0.2683\sigma_{\overline{X}}=\dfrac{2.4}{\sqrt{80}}\approx 0.2683 and c=8−1.645×0.2683≈7.559c=8-1.645\times 0.2683\approx 7.559 µg/L.

β=P(Z≥7.559−70.2683)=P(Z≥2.08)=1−0.9812=0.0188\displaystyle \beta=P\left(Z\geq\dfrac{7.559-7}{0.2683}\right)=P(Z\geq 2.08)=1-0.9812=0.0188

Doubling nn divides the standard error by 2\sqrt{2}: the two curves narrow, overlap much less, and β\beta goes from about 16%16\% to about 2%2\%, with α\alpha unchanged.

f)

c=8−2.326×0.3795≈7.117c=8-2.326\times 0.3795\approx 7.117 µg/L, and

β=P(Z≥7.117−70.3795)=P(Z≥0.31)=1−0.6217=0.3783\displaystyle \beta=P\left(Z\geq\dfrac{7.117-7}{0.3795}\right)=P(Z\geq 0.31)=1-0.6217=0.3783

For a fixed nn, lowering α\alpha moves the bound cc to the left: we reject less often, so we miss compliant water more often. β\beta goes from 0.1610.161 to 0.3780.378.

Only an increase in nn reduces both risks at once, as in e). A two-tailed test, for its part, would make the test LESS powerful against μ<8\mu<8.

g)

z=7.45−80.3795≈−1.45>−1.645z=\dfrac{7.45-8}{0.3795}\approx -1.45>-1.645: zz is not in the critical region, so we do not reject H0H_{0}.

Conclusion: at the 5%5\% level, the data do not establish that the mean concentration is below the standard; the water therefore cannot be declared compliant on the basis of this campaign.

Pitfall: writing “the water is contaminated”. The observed mean is below 88; it is simply not far enough from it to rule out chance. A campaign of 8080 samples, more powerful, could settle the question.

6897.376μ = 8 (H₀)μ = 7αβα = 0.05; β ≈ 0.16x̄ (µg/L)

Exercise 7: Student's t with 2 degrees of freedom: the table value proved by the integral

9 answers to check

A team measures gg by filming the free fall of a ball, and only has time for three trials: 9.529.52, 9.779.77 and 9.649.64 m/s². We assume the measurements come from a normal distribution, and we test H0:μ=9.81H_{0}:\mu=9.81 against H1:μ≠9.81H_{1}:\mu\neq 9.81 at the 5%5\% level.

With n=3n=3, the statistic T=X‾−μ0S/3T=\dfrac{\overline{X}-\mu_{0}}{S/\sqrt{3}} follows, under H0H_{0}, a Student's t distribution with 22 degrees of freedom, whose density is f(t)=(2+t2)−3/2f(t)=\left(2+t^{2}\right)^{-3/2} for every real tt. The figure compares this density with that of the standard normal distribution.

−6−4−2024623456normalStudent, 2 dfright tail enlarged (heights × 4)
  • a) Show that F(t)=12+t22+t2F(t)=\dfrac{1}{2}+\dfrac{t}{2\sqrt{2+t^{2}}} satisfies F′(t)=f(t)F'(t)=f(t), then compute its limits at −∞-\infty and at +∞+\infty. Conclude that ff is a probability density function and that FF is its cumulative distribution function.
  • b) Deduce the critical value t0.025, 2t_{0.025,\,2}, such that P(T>t0.025, 2)=0.025P(T>t_{0.025,\,2})=0.025, by solving F(t)=0.975F(t)=0.975. Compute t0.05, 2t_{0.05,\,2} in the same way.
  • c) Compute x‾\overline{x}, ss and the tt statistic.
  • d) Make the decision at the 5%5\% level and write the conclusion.
  • e) A classmate compares ∣t∣|t| with 1.961.96, “as usual”, and rejects H0H_{0}. Compute the true Type I error risk of his rule, P(∣T∣>1.96)P(|T|>1.96).
  • f) Show that the pp-value of the test is 1−∣t∣2+t21-\dfrac{|t|}{\sqrt{2+t^{2}}}, then compute it.
  • g) In exercise 5, fifty measurements detected a gap of 0.0360.036 m/s². Here the observed gap is 0.170.17 m/s², and the test does not conclude. Explain.

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

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

Answers

  • a) F′=fF'=f, lim⁡−∞F=0\lim_{-\infty}F=0, lim⁡+∞F=1\lim_{+\infty}F=1: f≥0f\geq 0 and ∫−∞+∞f=1\int_{-\infty}^{+\infty}f=1
  • b) t0.025, 2=2×0.9521−0.952≈4.303t_{0.025,\,2}=\sqrt{\frac{2\times 0.95^{2}}{1-0.95^{2}}}\approx 4.303; t0.05, 2≈2.920t_{0.05,\,2}\approx 2.920
  • c) x‾≈9.643\overline{x}\approx 9.643 m/s²; s≈0.125s\approx 0.125 m/s²; t≈−2.31t\approx -2.31
  • d) Do not reject H0H_{0}: three measurements do not allow us to conclude that there is a bias
  • e) P(∣T∣>1.96)≈0.189P(|T|>1.96)\approx 0.189, nearly four times the announced level
  • f) p=1−2.3092+2.3092≈0.147p=1-\frac{2.309}{\sqrt{2+2.309^{2}}}\approx 0.147
  • g) With n=3n=3, the standard error and the critical value are large: the test has little power
a)

Differentiate the quotient u(t)=t2+t2u(t)=\dfrac{t}{\sqrt{2+t^{2}}}:

u′(t)=2+t2−t⋅t2+t22+t2=(2+t2)−t2(2+t2)3/2=2(2+t2)3/2\displaystyle u'(t)=\dfrac{\sqrt{2+t^{2}}-t\cdot\frac{t}{\sqrt{2+t^{2}}}}{2+t^{2}}=\dfrac{(2+t^{2})-t^{2}}{(2+t^{2})^{3/2}}=\dfrac{2}{(2+t^{2})^{3/2}}

So F′(t)=12 u′(t)=(2+t2)−3/2=f(t)F'(t)=\dfrac{1}{2}\,u'(t)=(2+t^{2})^{-3/2}=f(t).

For large ∣t∣|t|, 2+t2=∣t∣1+2/t2\sqrt{2+t^{2}}=|t|\sqrt{1+2/t^{2}}, so u(t)→−1u(t)\to -1 at −∞-\infty and u(t)→1u(t)\to 1 at +∞+\infty. Hence lim⁡−∞F=0\lim_{-\infty}F=0 and lim⁡+∞F=1\lim_{+\infty}F=1.

f(t)>0f(t)>0 and ∫−∞+∞f(t) dt=lim⁡+∞F−lim⁡−∞F=1\int_{-\infty}^{+\infty}f(t)\,dt=\lim_{+\infty}F-\lim_{-\infty}F=1: ff is a density. Since F′=fF'=f and F→0F\to 0 at −∞-\infty, F(x)=∫−∞xf(t) dt=P(T≤x)F(x)=\int_{-\infty}^{x}f(t)\,dt=P(T\leq x): it is the cumulative distribution function.

b)

F(t)=0.975  ⟺  t2+t2=0.95F(t)=0.975 \iff \dfrac{t}{\sqrt{2+t^{2}}}=0.95, with t>0t>0. Squaring:

t2=0.9025 (2+t2)  ⟺  t2=2×0.90250.0975≈18.513\displaystyle t^{2}=0.9025\,(2+t^{2}) \iff t^{2}=\dfrac{2\times 0.9025}{0.0975}\approx 18.513

t0.025, 2≈4.303t_{0.025,\,2}\approx 4.303, exactly the table value. Likewise, F(t)=0.95F(t)=0.95 gives t2+t2=0.9\dfrac{t}{\sqrt{2+t^{2}}}=0.9, t2=2×0.810.19t^{2}=\dfrac{2\times 0.81}{0.19} and t0.05, 2≈2.920t_{0.05,\,2}\approx 2.920.

The Student table is therefore not a black box: each of its values is a bound of an integral of the density.

c)

x‾=9.52+9.77+9.643≈9.643\overline{x}=\dfrac{9.52+9.77+9.64}{3}\approx 9.643 m/s²

s=(−0.1233)2+0.12672+(−0.0033)22≈0.125s=\sqrt{\dfrac{(-0.1233)^{2}+0.1267^{2}+(-0.0033)^{2}}{2}}\approx 0.125 m/s²

t=9.643−9.810.125/3≈−0.16670.0722≈−2.31\displaystyle t=\dfrac{9.643-9.81}{0.125/\sqrt{3}}\approx\dfrac{-0.1667}{0.0722}\approx -2.31
d)

Two-tailed with 22 degrees of freedom: we reject if ∣t∣>4.303|t|>4.303. Here ∣t∣≈2.31<4.303|t|\approx 2.31<4.303: we do not reject H0H_{0}.

Conclusion: at the 5%5\% level, these three trials do not allow us to conclude that the filmed fall gives a biased value of gg.

e)

By symmetry of ff, P(∣T∣>1.96)=2(1−F(1.96))=1−1.962+1.962≈1−0.8109=0.189P(|T|>1.96)=2\left(1-F(1.96)\right)=1-\dfrac{1.96}{\sqrt{2+1.96^{2}}}\approx 1-0.8109=0.189

The rule “∣t∣>1.96|t|>1.96” announces a risk of 5%5\% but takes nearly 19%19\%: with two degrees of freedom, Student's tails are much heavier than those of the normal distribution (red area in the solution's figure).

Pitfall: using the normal distribution with a small sample. The classmate's rejection is not a discovery, it is the effect of the wrong table.

f)
p=P(∣T∣≥∣t∣)=2(1−F(∣t∣))=2(12−∣t∣22+t2)=1−∣t∣2+t2\displaystyle p=P(|T|\geq |t|)=2\left(1-F(|t|)\right)=2\left(\dfrac{1}{2}-\dfrac{|t|}{2\sqrt{2+t^{2}}}\right)=1-\dfrac{|t|}{\sqrt{2+t^{2}}}

With ∣t∣≈2.309|t|\approx 2.309: p≈1−2.3097.331≈1−0.853=0.147>0.05p\approx 1-\dfrac{2.309}{\sqrt{7.331}}\approx 1-0.853=0.147>0.05, same decision as in d).

g)

In exercise 5, the standard error was 0.0130.013 m/s² and the critical value 1.961.96. Here, s/3≈0.072s/\sqrt{3}\approx 0.072 m/s² and the critical value is 4.3034.303: the gap must exceed about 4.303×0.072≈0.314.303\times 0.072\approx 0.31 m/s² to be detected.

A real bias of 0.170.17 m/s² would therefore usually go unnoticed: the Type II error risk is large, the power low.

Not rejecting H0H_{0} does not prove that the filmed fall is accurate; it says that three trials are not enough to decide. To conclude, more trials are needed, which exercise 6 quantifies with β\beta.

0−4.3034.303−1.961.961.9634.30356normalStudent, 2 dfright tail enlarged (heights × 4)

Exercise 8: Five claims to correct

9 answers to check

We return to the catalyst of exercise 1 e). Without a catalyst, the reaction lasts μ0=120\mu_{0}=120 s on average. The chemist tests H0:μ=120H_{0}:\mu=120 against H1:μ<120H_{1}:\mu<120 at the 5%5\% level, on n=36n=36 trials with the catalyst; the standard deviation of the durations is about s=18s=18 s, so the standard error is 33 s.

Each of the following five claims, heard in the laboratory, is false. For each one, choose the correct statement, do the requested calculation and explain the mistake.

  • a) “The test gives a pp-value of 0.030.03: so there is a 3%3\% chance that the catalyst has no effect.”
  • b) “With x‾=116\overline{x}=116 s, the test does not reject H0H_{0}: so the catalyst has no effect at all.” Compute zz.
  • c) “The test is at the 5%5\% level, so we reject H0H_{0} as soon as ∣z∣>1.96|z|>1.96.” Compute zz for x‾=114.6\overline{x}=114.6 s and make the correct decision.
  • d) “At the 5%5\% level, when we reject H0H_{0}, we have a 5%5\% chance of being wrong.” The laboratory estimates that 10%10\% of the catalysts it tries are effective, and that the test detects an effective catalyst with a power of 0.800.80. Compute the probability that a catalyst declared effective is not.
  • e) “Increasing the number of trials decreases the Type I error risk.” For a catalyst whose true mean is 112112 s, compute β\beta with 3636 trials, then with 100100 trials (standard error 1.81.8 s).

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

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

Answers

  • a) The pp-value is computed IF H0H_{0} is true; it is not the probability of H0H_{0}
  • b) z≈−1.33z\approx -1.33: no evidence of an effect at the 5%5\% level, which is not evidence of no effect
  • c) z=−1.80<−1.645z=-1.80<-1.645: reject H0H_{0} (the rule ∣z∣>1.96|z|>1.96 belongs to the two-tailed test)
  • d) P(no effect∣reject)=0.36P(\text{no effect}\mid\text{reject})=0.36, not 0.050.05
  • e) β≈0.154\beta\approx 0.154 then β≈0.003\beta\approx 0.003: nn lowers β\beta, α\alpha stays at 5%5\%
a)

The pp-value is computed ASSUMING H0H_{0} is true: it is P(a gap at least this large∣H0)P(\text{a gap at least this large}\mid H_{0}).

Correction: “if the catalyst had no effect, a mean duration this short or shorter would appear in only 3%3\% of series of 3636 trials”.

The probability that H0H_{0} is true given the data is a different quantity, P(H0∣data)P(H_{0}\mid\text{data}), which the test does not compute; question d) shows how different it can be.

b)

z=116−1203≈−1.33>−1.645z=\dfrac{116-120}{3}\approx -1.33>-1.645: we do not reject H0H_{0}.

Correction: “at the 5%5\% level, the data do not allow us to conclude that the catalyst reduces the mean duration”.

A mean duration of 116116 s is compatible with a catalyst that has no effect, but also with a catalyst that saves a few seconds: absence of evidence is not evidence of absence.

c)
z=114.6−1203=−1.80\displaystyle z=\dfrac{114.6-120}{3}=-1.80

The test is ONE-TAILED, to the left: the whole area α=0.05\alpha=0.05 is in the left tail, and we reject if z<−1.645z<-1.645. Here −1.80<−1.645-1.80<-1.645: we reject H0H_{0}.

The rule ∣z∣>1.96|z|>1.96 belongs to the two-tailed test, which splits α\alpha between two tails. Here it would have led to not rejecting: the mistake changes the conclusion.

d)

Let EE be “the catalyst is effective” and RR “the test rejects H0H_{0}”. P(E)=0.10P(E)=0.10, P(R∣E)=0.80P(R\mid E)=0.80 (power), P(R∣E‾)=0.05P(R\mid\overline{E})=0.05 (level).

P(E‾∣R)=P(E‾) P(R∣E‾)P(E‾) P(R∣E‾)+P(E) P(R∣E)=0.9×0.050.045+0.08=0.0450.125=0.36\displaystyle P(\overline{E}\mid R)=\dfrac{P(\overline{E})\,P(R\mid\overline{E})}{P(\overline{E})\,P(R\mid\overline{E})+P(E)\,P(R\mid E)}=\dfrac{0.9\times 0.05}{0.045+0.08}=\dfrac{0.045}{0.125}=0.36

More than one “effective” catalyst in three is not. The level α=P(R∣E‾)\alpha=P(R\mid\overline{E}) is not P(E‾∣R)P(\overline{E}\mid R): this is Bayes' theorem again, and the confusion between a conditional probability and its reverse.

Correction: “when H0H_{0} is true, we reject it in 5%5\% of cases”.

e)

With 3636 trials, we reject if x‾<120−1.645×3=115.065\overline{x}<120-1.645\times 3=115.065. If μ=112\mu=112:

β=P(Z≥115.065−1123)=P(Z≥1.02)=1−0.8461≈0.154\displaystyle \beta=P\left(Z\geq\dfrac{115.065-112}{3}\right)=P(Z\geq 1.02)=1-0.8461\approx 0.154

With 100100 trials, c=120−1.645×1.8=117.039c=120-1.645\times 1.8=117.039 and β=P(Z≥117.039−1121.8)=P(Z≥2.80)=1−0.9974≈0.003\beta=P\left(Z\geq\dfrac{117.039-112}{1.8}\right)=P(Z\geq 2.80)=1-0.9974\approx 0.003.

Correction: “increasing nn decreases the Type II error risk β\beta; the Type I error risk stays equal to the chosen level, 5%5\%”. α\alpha is set by the experimenter, not by the sample size.

Exercise 9: Problem: a complete study, has the flowering period become shorter?

9 answers to check

We return to the understory plant of exercise 1 g), a trillium in a sugar maple stand. Old surveys (fictitious values) give a mean flowering duration of 18.018.0 days per plant. This spring, a botanist follows n=14n=14 plants chosen at random in the population and records the flowering duration of each, in days: 15,18,14,19,17,20,13,17,16,15,18,16,17,1915, 18, 14, 19, 17, 20, 13, 17, 16, 15, 18, 16, 17, 19.

She wants to know whether the mean flowering duration has decreased, at the 5%5\% level. Student values with 1313 degrees of freedom: t0.05, 13=1.771t_{0.05,\,13}=1.771, t0.025, 13=2.160t_{0.025,\,13}=2.160, t0.01, 13=2.650t_{0.01,\,13}=2.650. The dot plot below shows the data.

12131415161718192021reference: 18 daysflowering duration (days)
  • a) Compute the mean x‾\overline{x} and the standard deviation ss of the sample.
  • b) Choose the distribution of the test statistic. Justify this choice and say what the plot allows you to check.
  • c) State H0H_{0} and H1H_{1}, then compute the tt statistic.
  • d) Make the decision at the 5%5\% level.
  • e) Bracket the pp-value using the table values.
  • f) Compute the 95%95\% upper confidence bound, x‾+t0.05, 13 sn\overline{x}+t_{0.05,\,13}\,\dfrac{s}{\sqrt{n}}, and show that it leads to the same decision.
  • g) Write the conclusion of the study in three sentences: the result, its scope, its limits. Does the test allow the decrease to be attributed to climate warming?

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

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

Answers

  • a) x‾≈16.71\overline{x}\approx 16.71 days; s≈2.02s\approx 2.02 days
  • b) Student with 1313 degrees of freedom: n<30n<30, σ\sigma unknown, population assumed normal; the plot shows neither strong skewness nor an outlier
  • c) H0:μ=18H_{0}:\mu=18; H1:μ<18H_{1}:\mu<18; t≈−2.39t\approx -2.39
  • d) Reject H0H_{0}: t<−1.771t<-1.771
  • e) 0.01<p<0.0250.01<p<0.025
  • f) 17.67<1817.67<18: the reference value is excluded, same decision
  • g) Mean duration shorter than 1818 days in this population this spring; a single year, cause not established: no
a)

x‾=23414≈16.71\overline{x}=\dfrac{234}{14}\approx 16.71 days.

s=∑(xi−x‾)213=52.85713≈2.02s=\sqrt{\dfrac{\sum (x_{i}-\overline{x})^{2}}{13}}=\sqrt{\dfrac{52.857}{13}}\approx 2.02 days

b)

n=14<30n=14<30 and σ\sigma is unknown: if the flowering durations follow a normal distribution in the population, T=X‾−μ0S/nT=\dfrac{\overline{X}-\mu_{0}}{S/\sqrt{n}} follows a Student's t distribution with 1313 degrees of freedom.

Normality cannot be proved with 1414 values, but the plot makes it plausible: a single hump centred around 1616 or 1717 days, a range from 1313 to 2020 days, no marked skewness, no isolated value.

A duration counted in whole days is a discrete variable; the normal distribution is a model of it, reasonable when it takes many values.

c)

μ\mu: current mean flowering duration of the population. H0:μ=18H_{0}:\mu=18 and H1:μ<18H_{1}:\mu<18, left-tailed.

t=16.714−182.016/14=−1.2860.539≈−2.39\displaystyle t=\dfrac{16.714-18}{2.016/\sqrt{14}}=\dfrac{-1.286}{0.539}\approx -2.39
d)

We reject H0H_{0} if t<−1.771t<-1.771. Here t≈−2.39<−1.771t\approx -2.39<-1.771: we reject H0H_{0} at the 5%5\% level.

e)

The pp-value is the area to the left of −2.39-2.39, equal by symmetry to the area to the right of 2.392.39.

2.160<2.39<2.6502.160<2.39<2.650, so 0.01<p<0.0250.01<p<0.025: we would also reject at the 2.5%2.5\% level, but not at the 1%1\% level.

f)

16.714+1.771×2.01614≈16.714+0.954≈17.6716.714+1.771\times\dfrac{2.016}{\sqrt{14}}\approx 16.714+0.954\approx 17.67 days.

With 95%95\% confidence, the current mean duration is below 17.6717.67 days. The value 1818 is above this bound, so it is excluded: we reject H0H_{0}, as in d).

This is the same equivalence as in exercise 5, in its one-sided version: a one-tailed test at the 5%5\% level corresponds to a ONE-SIDED 95%95\% confidence bound, not to the two-sided 95%95\% interval.

g)

Result: at the 5%5\% level, the data allow us to conclude that the mean flowering duration of this population, this spring, is below the 1818 days of the old surveys; it is estimated at 16.716.7 days (0.01<p<0.0250.01<p<0.025).

Scope: the conclusion holds for this maple stand and this spring, provided the 1414 plants were indeed chosen at random.

Limits: a single season was observed, and the old reference may have been measured differently. The test compares two means, it points to no cause: heat, drought, shading or grazing can shorten a flowering period.

Pitfall: writing “climate warming has shortened the flowering period”. Attributing a cause requires series over several years, with the temperature measured, and a study designed for that purpose.

0−1.77124t = −2.39reject: 5%T under H₀, 13 df

Exercise 10: Problem: monitoring twelve ponds, false alarms and power

11 answers to check

After the study of exercise 4, a regional program monitors 1212 ponds every year. In each one, n=150n=150 frogs caught at random are examined, and we test H0:p=0.05H_{0}:p=0.05 against H1:p>0.05H_{1}:p>0.05, as in exercise 4, with the normal approximation (np0=7.5≥5np_{0}=7.5\geq 5) without continuity correction.

The chart below gives the number of malformed frogs found this year in each pond. We give z0.05=1.645z_{0.05}=1.645 and z0.10=1.282z_{0.10}=1.282.

4812161629344115768716859101071112128dashed: 7.5 expected under H₀pondmalformedout of 150
  • a) At the 5%5\% level per pond, determine the smallest number kk of malformed frogs out of 150150 that leads to rejecting H0H_{0}. How many ponds are flagged this year?
  • b) Suppose the 1212 ponds are all healthy (p=0.05p=0.05) and the tests are independent, each with a Type I error risk of 5%5\%. Let NN be the number of false alarms. Give the distribution of NN, then compute P(N≥1)P(N\geq 1) and E(N)E(N).
  • c) What level aa should be used in each pond so that the probability of at least one false alarm among the twelve is 5%5\%? This level corresponds to za≈2.63z_{a}\approx 2.63: compute the new minimum number k′k' and say how many ponds remain flagged.
  • d) At the 5%5\% level per pond, compute the power of the test against a pond where p=0.10p=0.10.
  • e) Show that, to detect p1=0.10p_{1}=0.10 with a power of 0.900.90 at the 5%5\% level, we need n≥z0.05p0(1−p0)+z0.10p1(1−p1)p1−p0\sqrt{n}\geq\dfrac{z_{0.05}\sqrt{p_{0}(1-p_{0})}+z_{0.10}\sqrt{p_{1}(1-p_{1})}}{p_{1}-p_{0}}, then compute the smallest nn.
  • f) Write the program's recommendation for pond 7.

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

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

Answers

  • a) k=12k=12; two ponds flagged, numbers 7 and 11
  • b) N∼B(12, 0.05)N\sim\mathcal{B}(12,\,0.05); P(N≥1)=1−0.9512≈0.460P(N\geq 1)=1-0.95^{12}\approx 0.460; E(N)=0.6E(N)=0.6
  • c) a=1−0.951/12≈0.00427a=1-0.95^{1/12}\approx 0.00427; k′=15k'=15; only pond 7 remains flagged
  • d) Power ≈0.802\approx 0.802
  • e) n≥14.86\sqrt{n}\geq 14.86, that is, n≥221n\geq 221
  • f) Pond 7: 1616 malformed out of 150150, signal maintained even with the corrected level; investigation recommended
a)

σP^=0.05×0.95150≈0.01780\sigma_{\hat{P}}=\sqrt{\dfrac{0.05\times 0.95}{150}}\approx 0.01780. We reject if p^>0.05+1.645×0.01780≈0.07927\hat{p}>0.05+1.645\times 0.01780\approx 0.07927.

As a count: 150×0.07927≈11.89150\times 0.07927\approx 11.89, so at least k=12k=12 malformed frogs are needed.

On the chart, two ponds reach 1212: pond 7 (1616) and pond 11 (1212). Pond 4, with 1111, is not flagged.

b)

Each healthy pond triggers a false alarm with probability 0.050.05, independently of the others: NN follows the binomial distribution with parameters 1212 and 0.050.05.

P(N≥1)=1−P(N=0)=1−0.9512≈1−0.540=0.460\displaystyle P(N\geq 1)=1-P(N=0)=1-0.95^{12}\approx 1-0.540=0.460
E(N)=12×0.05=0.6\displaystyle E(N)=12\times 0.05=0.6

Even if all the ponds were healthy, the program would flag at least one pond almost one year in two. Each test has a 5%5\% risk; a family of twelve tests has a much larger one.

c)

We want 1−(1−a)12=0.051-(1-a)^{12}=0.05, that is, (1−a)12=0.95(1-a)^{12}=0.95:

a=1−0.951/12≈0.00427\displaystyle a=1-0.95^{1/12}\approx 0.00427

With za≈2.63z_{a}\approx 2.63: p^>0.05+2.63×0.01780≈0.0968\hat{p}>0.05+2.63\times 0.01780\approx 0.0968, that is, more than 150×0.0968≈14.52150\times 0.0968\approx 14.52 malformed frogs: k′=15k'=15.

Only pond 7 (16≥1516\geq 15) remains flagged. The signal of pond 11 is consistent with one false alarm among twelve tests.

This sharing of the risk among several tests goes beyond the minimum of the course framework; it requires only the binomial distribution and independence.

d)

If p=0.10p=0.10, P^\hat{P} is approximately normal with mean 0.100.10 and standard deviation 0.10×0.90150≈0.02449\sqrt{\dfrac{0.10\times 0.90}{150}}\approx 0.02449.

Power =P(P^>0.07927)=P(Z>0.07927−0.100.02449)=P(Z>−0.85)=0.8023=P(\hat{P}>0.07927)=P\left(Z>\dfrac{0.07927-0.10}{0.02449}\right)=P(Z>-0.85)=0.8023

A pond whose rate has doubled escapes the program about one year in five: β≈0.20\beta\approx 0.20.

Pitfall: computing the power with the standard error of H0H_{0}. Under the alternative, P^\hat{P} spreads around p1p_{1}, with p1(1−p1)/n\sqrt{p_{1}(1-p_{1})/n}.

e)

We reject if p^>c\hat{p}>c, with c=p0+z0.05p0(1−p0)nc=p_{0}+z_{0.05}\sqrt{\dfrac{p_{0}(1-p_{0})}{n}} (the level fixes α\alpha).

The power is 0.900.90 or more if P(P^>c)≥0.90P(\hat{P}>c)\geq 0.90 when p=p1p=p_{1}, that is, if c≤p1−z0.10p1(1−p1)nc\leq p_{1}-z_{0.10}\sqrt{\dfrac{p_{1}(1-p_{1})}{n}}.

Substitute cc and multiply by n>0\sqrt{n}>0: n (p1−p0)≥z0.05p0(1−p0)+z0.10p1(1−p1)\sqrt{n}\,(p_{1}-p_{0})\geq z_{0.05}\sqrt{p_{0}(1-p_{0})}+z_{0.10}\sqrt{p_{1}(1-p_{1})}, hence the stated inequality.

n≥1.645×0.2179+1.282×0.30.05≈0.74310.05≈14.86\displaystyle \sqrt{n}\geq\dfrac{1.645\times 0.2179+1.282\times 0.3}{0.05}\approx\dfrac{0.7431}{0.05}\approx 14.86

n≥220.9n\geq 220.9: at least 221221 frogs must be examined per pond.

f)

Pond 7 has 1616 malformed frogs out of 150150, that is, p^≈0.107\hat{p}\approx 0.107 and z=0.1067−0.050.0178≈3.18z=\dfrac{0.1067-0.05}{0.0178}\approx 3.18: it exceeds the corrected threshold 2.632.63.

Recommendation: its signal cannot reasonably be explained by the number of tests; an investigation of this pond is justified (water, sediments, parasites), with 221221 captures next year for a powerful enough test.

Pond 11 will simply be monitored: an isolated signal among twelve tests is expected one year in two. As in exercise 4, none of these tests identifies the cause of the malformations.

Something missing from this set? A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.

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

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

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

This chapter comes back in

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

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/cegep-sn1-hypothesis-tests. 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. A hypothesis test is marked first on the method: the hypotheses on the right parameter, the right distribution, the decision and a conclusion written in context. That is where most of the exam's marks are won or lost.

Site by Studio Squalli