About this set
Size, power and p-values; the Neyman–Pearson lemma; monotone likelihood ratio and UMP tests; likelihood ratio tests; Wald's sequential probability ratio test; chi-square tests; the sign, Wilcoxon, Mann–Whitney, linear rank and Kruskal–Wallis tests.
These are model questions written for practice at the standard of the paper; they are not questions from a past paper. Try each one before opening the answer. Every answer gives the working and a link to the section of the Unit V notes that teaches it.
The questions
Show Answer
Answer: (B) 0.10 and 0.55.
Size $=P(X\gt0.9\mid\theta=1)=0.1$. Power $$\begin{aligned}=P(X\gt0.9\mid\theta=2) &= \dfrac{2-0.9}{2} \\[4pt] &= 0.55\text{.}\end{aligned}$$ The probability of a type II error is $0.45$, which is option A's second figure.
Read this in the notes: Unit V, Basic Concepts
Show Answer
Answer: (D) 0.0668 and 0.0668.
Under $H_0$, $\bar X\sim N(0,\tfrac19)$: $\alpha=P(Z\gt1.5)=0.0668$. Under $H_1$, $$\begin{aligned}\beta &= P(\bar X\le0.5\mid\mu=1) \\[4pt] &= P(Z\le-1.5) = 0.0668\text{.}\end{aligned}$$ The cut-off lies midway between the two means, so the two errors are equal; the power is $0.9332$.
Read this in the notes: Unit V, Basic Concepts
Show Answer
Answer: (A) 0.0802.
$$\begin{aligned}p &= 2[1-\Phi(1.75)] = 2(0.0401) \\[4pt] &= 0.0802\text{.}\end{aligned}$$ $H_0$ is not rejected at the 5% level but is rejected at the 10% level. $0.0401$ is the $p$-value of the one-sided test.
Read this in the notes: Unit V, Basic Concepts
Show Answer
Answer: (C) II and III only.
(II) and (III) are true: with $n$ fixed the two errors trade off against each other, and power is the probability of rejecting a false $H_0$. (I) is false: $\alpha$ and $\beta$ are computed under different hypotheses and need not add to 1. (IV) is false: the $p$-value is the probability, under $H_0$, of a result at least as extreme as the one observed.
Read this in the notes: Unit V, Basic Concepts
Show Answer
Answer: (B) 0.224.
$P(X\gt c\mid\theta=1)=e^{-c}=0.05$ gives $c=\ln20=2.996$. Power $$\begin{aligned}=P(X\gt c\mid\theta=2) &= e^{-c/2} = \dfrac{1}{\sqrt{20}} \\[4pt] &= 0.224\text{.}\end{aligned}$$ One observation gives a poor test.
Read this in the notes: Unit V, Basic Concepts
Show Answer
Answer: (A) 0.40.
$$\begin{aligned}P(X=3\mid p=\tfrac12) &= \tfrac18 \\[4pt] &= 0.125\gt0.05\text{,}\end{aligned}$$ so always rejecting at $X=3$ gives size 0.125. Rejecting with probability $\gamma$ at $X=3$ gives size $0.125\gamma=0.05$, i.e. $\gamma=0.40$. Randomisation is needed because a discrete statistic cannot give every size exactly.
Read this in the notes: Unit V, Basic Concepts
Show Answer
Answer: (D) 0.677.
$$\begin{aligned}\beta &= P(X\le2\mid\lambda=2) = e^{-2}\left(1+2+2\right) \\[4pt] &= 5e^{-2} = 0.677\text{.}\end{aligned}$$ The size is $1-e^{-1}\left(1+1+\tfrac12\right)=0.080$ and the power is $0.323$.
Read this in the notes: Unit V, Basic Concepts
Show Answer
Answer: (C) 0.19.
The likelihood ratio $f_1/f_0=2x$ increases with $x$, so the most powerful test rejects for $x\gt c$ with $1-c=0.1$, $c=0.9$. Power $=\displaystyle\int_{0.9}^{1}2x\,dx=1-0.81=0.19$. Rejecting for small $x$ ($x\lt0.1$) would give power only 0.01.
Read this in the notes: Unit V, Neyman–Pearson Lemma
Show Answer
Answer: (A) $\sum X_i^2\gt18.31$.
$$\begin{aligned}&\dfrac{L_1}{L_0} \\[4pt] &\quad = 4^{-5}\exp\left\{\left(\tfrac12-\tfrac18\right)\sum x_i^2\right\}\end{aligned}$$ increases with $\sum x_i^2$, so the test rejects for large $\sum X_i^2$. Under $H_0$, $\sum X_i^2\sim\chi^2_{10}$, so the cut-off is 18.31. The same region is most powerful against every $\sigma^2\gt1$, hence UMP for the one-sided alternative.
Read this in the notes: Unit V, Neyman–Pearson Lemma
Show Answer
Answer: (B) I, II and III only.
(I) is the sufficiency part and (III) the necessity part of the lemma. (II) holds because the trivial test that rejects with probability $\alpha$ whatever the data has power $\alpha$, and the most powerful test can do no worse. (IV) is false: power 1 is reached only when the two distributions do not overlap.
Read this in the notes: Unit V, Neyman–Pearson Lemma
Show Answer
Answer: (D) $\{1,2\}$ and 0.7.
The likelihood ratios $p_1/p_0$ are $4,\ 1.5,\ 0.67,\ 0.25$ for $x=1,2,3,4$. Take points in decreasing order of the ratio until the size is used up: $\{1,2\}$ has size $0.1+0.2=0.3$ and power $0.4+0.3=0.7$. The region $\{3\}$ also has size 0.3 but power only 0.2.
Read this in the notes: Unit V, Neyman–Pearson Lemma
Show Answer
Answer: (A) Both (A) and (R) are true and (R) is the correct explanation of (A).
Both are true, and (R) is the proof of (A): the most powerful test is at least as powerful as any other test of the same size, in particular the trivial randomised test, whose power is $\alpha$. So a most powerful test is unbiased.
Read this in the notes: Unit V, Neyman–Pearson Lemma
Show Answer
Answer: (C) Cauchy with location $\theta$.
For the Cauchy location family $$\begin{aligned}&\dfrac{f(x;\theta_2)}{f(x;\theta_1)} \\[4pt] &\quad = \dfrac{1+(x-\theta_1)^2}{1+(x-\theta_2)^2} \to 1\end{aligned}$$ as $x\to\pm\infty$, so it cannot be monotone in $x$. One-parameter exponential families (normal, Poisson) and the uniform $(0,\theta)$ family have monotone likelihood ratio.
Read this in the notes: Unit V, Monotone Likelihood Ratio (MLR)
Show Answer
Answer: (B) $\sum X_i$ is small.
For $\theta_2\gt\theta_1$, $$\begin{aligned}&\dfrac{L(\theta_2)}{L(\theta_1)} \\[4pt] &\quad = \left(\dfrac{\theta_2}{\theta_1}\right)^ne^{-(\theta_2-\theta_1)\sum x_i}\end{aligned}$$ is decreasing in $\sum x_i$: the family has monotone likelihood ratio in $-\sum x_i$. By the Karlin–Rubin theorem the UMP test rejects for small $\sum X_i$, as expected since a large rate $\theta$ means small observations.
Read this in the notes: Unit V, Monotone Likelihood Ratio (MLR)
Show Answer
Answer: (A) I, II and IV only.
(I) and (II) are the Karlin–Rubin theorem. (III) is false: the tests most powerful against $\theta\gt\theta_0$ and against $\theta\lt\theta_0$ use opposite tails, so no single test is best against both. (IV) is true: the equal-tailed test is UMP among unbiased tests.
Read this in the notes: Unit V, Monotone Likelihood Ratio (MLR)
Show Answer
Answer: (D) Uniform on $(0,\theta)$.
For the uniform $(0,\theta)$ family the test that rejects when $X_{(n)}\gt\theta_0$ or $X_{(n)}\le\theta_0\alpha^{1/n}$ is UMP against all $\theta\ne\theta_0$; this is the classical exception. In one-parameter exponential families (the other three options) no UMP test exists for a two-sided alternative.
Read this in the notes: Unit V, UMP, UMPU, UMPI Tests
Show Answer
Answer: (C) 0.639.
Reject when $\sqrt{16}\,\bar X\gt1.645$. At $\theta=0.5$, $4\bar X\sim N(2,1)$, so the power is $$\begin{aligned}P(Z\gt1.645-2) &= P(Z\gt-0.355) \\[4pt] &= \Phi(0.355) = 0.639\text{.}\end{aligned}$$
Read this in the notes: Unit V, UMP, UMPU, UMPI Tests
Show Answer
Answer: (B) 35.
$$\begin{aligned}n &\ge \dfrac{(z_\alpha+z_\beta)^2\sigma^2}{\delta^2} \\[4pt] &= \dfrac{(1.645+1.282)^2}{0.25} \\[4pt] &= \dfrac{8.567}{0.25} = 34.3\text{,}\end{aligned}$$ so $n=35$. For the two-sided test $1.645$ is replaced by $1.96$, giving 43.
Read this in the notes: Unit V, UMP, UMPU, UMPI Tests
Show Answer
Answer: (C) (A) is true but (R) is false.
(A) is true. (R) is false: the one-sided $z$ tests are each more powerful than the two-sided test on their own side, so no test is uniformly most powerful. Those one-sided tests are biased against the other side, which is why restricting attention to unbiased tests produces a best test.
Read this in the notes: Unit V, UMP, UMPU, UMPI Tests
Show Answer
Answer: (A) 3.
The degrees of freedom equal the number of free parameters in the whole parameter space minus the number under $H_0$: $4-1=3$ (Wilks' theorem).
Read this in the notes: Unit V, Likelihood Ratio Test (LRT)
Show Answer
Answer: (D) 4.
$$\begin{aligned}\lambda &= \dfrac{L(\mu_0)}{L(\bar x)} \\[4pt] &= \exp\left\{-\dfrac{n(\bar x-\mu_0)^2}{2}\right\} = e^{-2}\text{,}\end{aligned}$$ so $-2\ln\lambda=n(\bar x-\mu_0)^2=4=z^2$ with $z=2$. Here $-2\ln\lambda$ is exactly $\chi^2_1$ under $H_0$, and the likelihood ratio test is the two-sided $z$ test.
Read this in the notes: Unit V, Likelihood Ratio Test (LRT)
Show Answer
Answer: (B) $\left(1+\dfrac{t^2}{n-1}\right)^{-1}$.
$\lambda=\left(\dfrac{\hat\sigma^2}{\hat\sigma_0^2}\right)^{n/2}$ with $\hat\sigma^2=\tfrac1n\sum(x_i-\bar x)^2$ and $\hat\sigma_0^2=\hat\sigma^2+(\bar x-\mu_0)^2$. Since $$\begin{aligned}&t^2 \\[4pt] &\quad = \dfrac{n(n-1)(\bar x-\mu_0)^2}{\sum(x_i-\bar x)^2}\text{,}\end{aligned}$$ $\lambda^{2/n}=\left(1+\dfrac{t^2}{n-1}\right)^{-1}$. Small $\lambda$ means large $|t|$: the test is the two-sided $t$ test.
Read this in the notes: Unit V, Likelihood Ratio Test (LRT)
Show Answer
Answer: (C) 0.2156.
$L(\theta)=\theta^{-n}e^{-n\bar x/\theta}$, maximised at $\hat\theta=\bar x$. $$\begin{aligned}\lambda &= \dfrac{L(\theta_0)}{L(\bar x)} \\[4pt] &= \left(\dfrac{\bar x}{\theta_0}\right)^ne^{-n(\bar x/\theta_0-1)} \\[4pt] &= 2^5e^{-5} = 0.2156\text{.}\end{aligned}$$
Read this in the notes: Unit V, Likelihood Ratio Test (LRT)
Show Answer
Answer: (A) I, II and IV only.
(I) holds because $\Theta_0\subseteq\Theta$; (II) because a small $\lambda$ means $H_0$ explains the data much worse than the best alternative; (IV) is Wilks' theorem. (III) is false: the likelihood ratio test is a general method that often gives good tests but carries no optimality guarantee.
Read this in the notes: Unit V, Likelihood Ratio Test (LRT)
Show Answer
Answer: (D) 18 and 0.105.
$A\approx\dfrac{1-\beta}{\alpha}=\dfrac{0.90}{0.05}=18$ and $$\begin{aligned}B &\approx \dfrac{\beta}{1-\alpha} = \dfrac{0.10}{0.95} \\[4pt] &= 0.105\text{.}\end{aligned}$$ Sampling continues while $B\lt\lambda_n\lt A$.
Read this in the notes: Unit V, Wald's Sequential Probability Ratio Test (SPRT)
Show Answer
Answer: (B) 0.631.
$$\begin{aligned}&\ln\lambda_n \\[4pt] &\quad = S_n\ln\dfrac{p_1}{p_0}+(n-S_n)\ln\dfrac{q_1}{q_0}\text{,}\end{aligned}$$ so $$\begin{aligned}&s \\[4pt] &\quad = \dfrac{\ln(q_0/q_1)}{\ln\dfrac{p_1q_0}{p_0q_1}} \\[4pt] &\quad = \dfrac{\ln2}{\ln3} = 0.631\text{.}\end{aligned}$$ The slope always lies between $p_0$ and $p_1$.
Read this in the notes: Unit V, Wald's Sequential Probability Ratio Test (SPRT)
Show Answer
Answer: (C) 5.30.
$Z=\ln\dfrac{f_1(X)}{f_0(X)}=X-\tfrac12$, so $E_0(Z)=-\tfrac12$. With $\ln A=2.944$, $\ln B=-2.944$: $$\begin{aligned}&E_0(N) \\[4pt] &\quad \approx \dfrac{(1-\alpha)\ln B+\alpha\ln A}{E_0(Z)} \\[4pt] &\quad = \dfrac{-2.797+0.147}{-0.5} \\[4pt] &\quad = 5.30\text{.}\end{aligned}$$ The fixed-sample test with the same errors needs $n=(1.645+1.645)^2\approx11$.
Read this in the notes: Unit V, Wald's Sequential Probability Ratio Test (SPRT)
Show Answer
Answer: (B) I, II and III only.
(I) is Stein's result, (II) the Wald–Wolfowitz optimality theorem, and (III) follows from $\dfrac{\alpha'}{1-\beta'}\le\dfrac1A$ and $\dfrac{\beta'}{1-\alpha'}\le B$. (IV) is false: the sample size is a random variable, decided by the data as they come.
Read this in the notes: Unit V, Wald's Sequential Probability Ratio Test (SPRT)
Show Answer
Answer: (A) $1-\alpha$ and $\beta$.
$L(\theta_0)$ is the probability of accepting a true $H_0$, $1-\alpha$; $L(\theta_1)$ is the probability of accepting a false $H_0$, the type II error $\beta$. Wald's formula $L(\theta)\approx\dfrac{A^{h}-1}{A^{h}-B^{h}}$ gives these at $h=1$ and $h=-1$.
Read this in the notes: Unit V, Wald's Sequential Probability Ratio Test (SPRT)
Show Answer
Answer: (D) 2.2 and 5.
Each expected frequency is 10. $\chi^2=\dfrac{4+1+0+9+4+4}{10}=2.2$ with $6-1=5$ degrees of freedom. The 5% point of $\chi^2_5$ is 11.07, so the hypothesis of an unbiased die is not rejected.
Read this in the notes: Unit V, Chi-square Tests
Show Answer
Answer: (C) 6.67 and 5.40.
$$\begin{aligned}&\chi^2 \\[4pt] &\quad = \dfrac{N(ad-bc)^2}{(a+b)(c+d)(a+c)(b+d)} \\[4pt] &\quad = \dfrac{60(300)^2}{30^4} = 6.67\text{.}\end{aligned}$$ With Yates' correction $|ad-bc|$ is reduced by $\tfrac N2=30$: $\dfrac{60(270)^2}{30^4}=5.40$. The correction always reduces the statistic.
Read this in the notes: Unit V, Chi-square Tests
Show Answer
Answer: (B) 5.
Degrees of freedom $=$ classes $-1-$ parameters estimated $=7-1-1=5$. One is lost for the condition $\sum O=\sum E$ and one for the estimated mean. For a fitted normal distribution two parameters are estimated and the figure would be 4.
Read this in the notes: Unit V, Chi-square Tests
Show Answer
Answer: (A) 6.
The data form a $3\times4$ table and the test is computed exactly as for independence: $(3-1)(4-1)=6$ degrees of freedom.
Read this in the notes: Unit V, Chi-square Tests
Show Answer
Answer: (D) 34.56; do not reject $H_0$.
$$\begin{aligned}\chi^2 &= \dfrac{(n-1)s^2}{\sigma_0^2} \\[4pt] &= \dfrac{24\times36}{25} = 34.56\end{aligned}$$ on 24 degrees of freedom. Since $34.56\lt36.42$, $H_0$ is not rejected at the 5% level.
Read this in the notes: Unit V, Chi-square Tests
Show Answer
Answer: (C) I, II and IV only.
(I), (II) and (IV) are the standard conditions. (III) is false: only large values of the statistic, i.e. large disagreement between observed and expected frequencies, are evidence against the model, so the test uses the upper tail alone.
Read this in the notes: Unit V, Chi-square Tests
Show Answer
Answer: (B) 0.447.
$$\begin{aligned}C &= \sqrt{\dfrac{\chi^2}{\chi^2+N}} = \sqrt{\dfrac{20}{100}} \\[4pt] &= \sqrt{0.2} = 0.447\text{.}\end{aligned}$$ $C$ is 0 under independence but can never reach 1.
Read this in the notes: Unit V, Chi-square Tests
Show Answer
Answer: (A) 0.109.
Under $H_0$ the number of plus signs is $\text{Bin}(10,\tfrac12)$. $$\begin{aligned}P(X\ge8) &= \dfrac{45+10+1}{1024} \\[4pt] &= 0.0547\text{,}\end{aligned}$$ and the two-sided $p$-value is $2(0.0547)=0.109$. The hypothesis of no difference is not rejected at the 5% level.
Read this in the notes: Unit V, Sign Test
Show Answer
Answer: (D) $\dfrac2\pi$.
The efficiency of the sign test is $4f(0)^2\sigma^2$, which for the normal density is $\dfrac2\pi\approx0.637$, the same as that of the median relative to the mean. $\dfrac3\pi\approx0.955$ is the figure for the Wilcoxon signed-rank test.
Read this in the notes: Unit V, Sign Test
Show Answer
Answer: (C) 2.0.
Under $H_0$ the number of plus signs has mean $\tfrac n2=50$ and standard deviation $\tfrac{\sqrt n}{2}=5$. $z=\dfrac{60-50}{5}=2.0$. With the continuity correction it is $\dfrac{59.5-50}{5}=1.9$.
Read this in the notes: Unit V, Sign Test
Show Answer
Answer: (B) 27.5 and 96.25.
$$\begin{aligned}E(T^+) &= \dfrac{n(n+1)}{4} = \dfrac{110}{4} \\[4pt] &= 27.5\end{aligned}$$ and $$\begin{aligned}V(T^+) &= \dfrac{n(n+1)(2n+1)}{24} \\[4pt] &= \dfrac{10\cdot11\cdot21}{24} = 96.25\text{.}\end{aligned}$$
Read this in the notes: Unit V, Wilcoxon Signed Rank Test
Show Answer
Answer: (A) 18.
The absolute values $1,2,3,4,5,6$ have ranks $1,\dots,6$. The positive differences $3,5,4,6$ have ranks $3,5,4,6$, so $T^+=18$; the negative ones give $T^-=1+2=3$, and $T^++T^-=21=\tfrac{n(n+1)}{2}$.
Read this in the notes: Unit V, Wilcoxon Signed Rank Test
Show Answer
Answer: (D) $\dfrac18$.
Under $H_0$ each of the $2^4=16$ assignments of signs to the ranks $1,2,3,4$ is equally likely. $T^+=0$ for one assignment (no positive ranks) and $T^+=1$ for one (only rank 1 positive), so $P(T^+\le1)=\tfrac2{16}=\tfrac18$.
Read this in the notes: Unit V, Wilcoxon Signed Rank Test
Show Answer
Answer: (A) Both (A) and (R) are true and (R) is the correct explanation of (A).
The sign test throws away the sizes of the differences; the signed-rank test keeps their order, at the price of assuming symmetry. For normal populations the efficiencies relative to the $t$ test are $\tfrac3\pi=0.955$ and $\tfrac2\pi=0.637$. Both statements are true and (R) is the reason.
Read this in the notes: Unit V, Wilcoxon Signed Rank Test
Show Answer
Answer: (C) 10 and 16.67.
$E(U)=\dfrac{mn}{2}=10$ and $$\begin{aligned}V(U) &= \dfrac{mn(m+n+1)}{12} \\[4pt] &= \dfrac{20\times10}{12} = 16.67\text{.}\end{aligned}$$
Read this in the notes: Unit V, Mann–Whitney U Test (Wilcoxon Rank-Sum)
Show Answer
Answer: (B) 11 and 5.
In the combined ordering $1,2,3,4,5,6,7$ the $X$ values have ranks 1, 4, 6, so $W=11$. $U=W-\dfrac{m(m+1)}{2}=11-6=5$: directly, 1 exceeds no $y$, 4 exceeds two, 6 exceeds three. The other count, pairs with $x\lt y$, is $mn-U=7$.
Read this in the notes: Unit V, Mann–Whitney U Test (Wilcoxon Rank-Sum)
Show Answer
Answer: (D) $\dfrac1{20}$.
Under $H_0$ all $\binom63=20$ ways of choosing which ranks belong to the first sample are equally likely. $U=0$ only when the first sample has the ranks $1,2,3$, so the probability is $\tfrac1{20}$. A two-sided test with $m=n=3$ therefore cannot reach the 5% level.
Read this in the notes: Unit V, Mann–Whitney U Test (Wilcoxon Rank-Sum)
| List I | List II |
|---|---|
| (a) Normal | (i) 1.5 |
| (b) Uniform | (ii) 0.864 |
| (c) Double exponential | (iii) $\dfrac3\pi$ |
| (d) Least possible value over all continuous distributions | (iv) 1 |
Show Answer
Answer: (C) (a)-(iii), (b)-(iv), (c)-(i), (d)-(ii).
The efficiency is $12\sigma^2\left[\int f^2(x)\,dx\right]^2$: $\tfrac3\pi\approx0.955$ for the normal, 1 for the uniform, 1.5 for the double exponential. Hodges and Lehmann showed it is never below $0.864$, so the Wilcoxon test loses little at worst and can gain a great deal for heavy-tailed populations.
Read this in the notes: Unit V, Mann–Whitney U Test (Wilcoxon Rank-Sum)
Show Answer
Answer: (B) Ansari–Bradley test.
A linear rank statistic is $\sum a(R_i)$ over one sample. The Wilcoxon scores $a(i)=i$, the normal scores $\Phi^{-1}\left(\tfrac{i}{N+1}\right)$ and the median-test scores are increasing in $i$ and detect shifts in location. The Ansari–Bradley scores (like those of Mood and Siegel–Tukey) are large in the middle and small at both ends, so they detect differences in spread.
Read this in the notes: Unit V, Linear Rank Tests for Location and Scale
Show Answer
Answer: (A) never less than 1.
By the Chernoff–Savage theorem this efficiency is at least 1 for every continuous distribution with finite variance, with equality only for the normal. The bound $0.864$ belongs to the Wilcoxon test.
Read this in the notes: Unit V, Linear Rank Tests for Location and Scale
Show Answer
Answer: (D) 7.2.
Rank sums are 6, 15, 24. $$\begin{aligned}&H \\[4pt] &\quad = \dfrac{12}{N(N+1)}\sum\dfrac{R_i^2}{n_i}-3(N+1) \\[4pt] &\quad = \dfrac{12}{90}\cdot\dfrac{36+225+576}{3}-30 \\[4pt] &\quad = 37.2-30 = 7.2\text{.}\end{aligned}$$ This complete separation is the largest value $H$ can take for three samples of 3; it is referred to $\chi^2_2$ in large samples.
Read this in the notes: Unit V, Kruskal–Wallis Test