Skip to the content

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

Q1. A single observation $X$ is taken from the uniform distribution on $(0,\theta)$ to test $H_0:\theta=1$ against $H_1:\theta=2$, and $H_0$ is rejected if $X\gt0.9$. The size and the power of the test are, respectively:
  1. 0.10 and 0.45
  2. 0.10 and 0.55
  3. 0.90 and 0.55
  4. 0.05 and 0.45
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

Q2. $\bar X$ is the mean of a random sample of size 9 from $N(\mu,1)$. To test $H_0:\mu=0$ against $H_1:\mu=1$, $H_0$ is rejected if $\bar X\gt0.5$. Given $\Phi(1.5)=0.9332$, the probabilities of type I and type II errors are, respectively:
  1. 0.0668 and 0.9332
  2. 0.3085 and 0.3085
  3. 0.1336 and 0.0668
  4. 0.0668 and 0.0668
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

Q3. In a two-sided $z$ test the observed value of the statistic is $z=1.75$. Given $\Phi(1.75)=0.9599$, the $p$-value is:
  1. 0.0802
  2. 0.0401
  3. 0.9599
  4. 0.0500
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

Q4. Consider the statements about a test of a simple $H_0$ against a simple $H_1$ with error probabilities $\alpha$ and $\beta$:(I) $\alpha+\beta=1$ for every test.(II) For a fixed sample size, a critical region with smaller $\alpha$ chosen in the best way has larger $\beta$.(III) The power of the test is $1-\beta$.(IV) The $p$-value is the probability that $H_0$ is true.Which of the statements are correct?
  1. I and III only
  2. III only
  3. II and III only
  4. II, III and IV only
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

Q5. A single observation $X$ is taken from the exponential distribution with mean $\theta$ to test $H_0:\theta=1$ against $H_1:\theta=2$, rejecting $H_0$ when $X\gt c$. For size $0.05$, the power of the test is about:
  1. 0.050
  2. 0.224
  3. 0.368
  4. 0.950
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

Q6. $X\sim\text{Bin}(3,p)$ is used to test $H_0:p=\tfrac12$ against $H_1:p\gt\tfrac12$. For a test of exact size $0.05$ that rejects only when $X=3$, the randomisation probability with which $H_0$ is rejected at $X=3$ is:
  1. 0.40
  2. 0.05
  3. 0.125
  4. 1.00
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

Q7. $X$ is a Poisson variate with mean $\lambda$. To test $H_0:\lambda=1$ against $H_1:\lambda=2$, $H_0$ is rejected if $X\ge3$. The probability of a type II error is:
  1. 0.080
  2. 0.323
  3. 0.920
  4. 0.677
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

Q8. A single observation $X$ has density $f_0(x)=1$ under $H_0$ and $f_1(x)=2x$ under $H_1$, on $0\lt x\lt1$. The power of the most powerful test of size $0.1$ is:
  1. 0.10
  2. 0.01
  3. 0.19
  4. 0.81
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

Q9. $X_1,\dots,X_{10}$ is a random sample from $N(0,\sigma^2)$. Given that the upper 5% point of $\chi^2_{10}$ is 18.31, the most powerful test of size 0.05 of $H_0:\sigma^2=1$ against $H_1:\sigma^2=4$ rejects $H_0$ when:
  1. $\sum X_i^2\gt18.31$
  2. $\sum X_i^2\lt18.31$
  3. $\sum X_i^2\gt73.24$
  4. $|\bar X|\gt0.62$
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

Q10. Consider the statements about the Neyman–Pearson lemma for a simple $H_0$ against a simple $H_1$:(I) A test that rejects $H_0$ when $f_1/f_0\gt k$ is most powerful of its size.(II) The power of a most powerful test of size $\alpha$ is at least $\alpha$.(III) Every most powerful test of size $\alpha$ has the likelihood-ratio form, except on a set of probability zero under both hypotheses.(IV) The power of a most powerful test is always 1.Which of the statements are correct?
  1. I and II only
  2. I, II and III only
  3. I and III only
  4. I, II, III and IV
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

Q11. A random variable $X$ takes the values 1, 2, 3, 4 with probabilities $0.1,0.2,0.3,0.4$ under $H_0$ and $0.4,0.3,0.2,0.1$ under $H_1$. The critical region and the power of the most powerful non-randomised test of size $0.3$ are:
  1. $\{3\}$ and 0.2
  2. $\{1\}$ and 0.4
  3. $\{4\}$ and 0.1
  4. $\{1,2\}$ and 0.7
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

Q12. Given below are two statements, one labelled Assertion (A) and the other Reason (R).Assertion (A): For testing a simple hypothesis against a simple alternative, the most powerful test of size $\alpha$ has power at least $\alpha$.Reason (R): The test that rejects $H_0$ with probability $\alpha$ regardless of the data has size $\alpha$ and power $\alpha$.Choose the correct answer.
  1. Both (A) and (R) are true and (R) is the correct explanation of (A)
  2. Both (A) and (R) are true but (R) is not the correct explanation of (A)
  3. (A) is true but (R) is false
  4. (A) is false but (R) is true
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

Q13. Which of the following families of distributions does NOT have a monotone likelihood ratio in the sample observation $x$?
  1. $N(\theta,1)$
  2. Poisson with mean $\theta$
  3. Cauchy with location $\theta$
  4. Uniform on $(0,\theta)$
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)

Q14. For a random sample from $f(x;\theta)=\theta e^{-\theta x}$, $x\gt0$, the UMP test of $H_0:\theta\le\theta_0$ against $H_1:\theta\gt\theta_0$ rejects $H_0$ when:
  1. $\sum X_i$ is large
  2. $\sum X_i$ is small
  3. $X_{(n)}$ is large
  4. $\prod X_i$ is large
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)

Q15. Consider the statements:(I) For a family with monotone likelihood ratio in $T$, a UMP test of $H_0:\theta\le\theta_0$ against $H_1:\theta\gt\theta_0$ exists.(II) The power function of that test is non-decreasing in $\theta$.(III) For $N(\theta,1)$, a UMP test of $H_0:\theta=\theta_0$ against $H_1:\theta\ne\theta_0$ exists.(IV) For $N(\theta,1)$, a UMP unbiased test of $H_0:\theta=\theta_0$ against $H_1:\theta\ne\theta_0$ exists.Which of the statements are correct?
  1. I, II and IV only
  2. I and II only
  3. I, II and III only
  4. I, II, III and IV
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)

Q16. For which of the following two-sided problems, $H_0:\theta=\theta_0$ against $H_1:\theta\ne\theta_0$, does a UMP test exist?
  1. $N(\theta,1)$
  2. Poisson with mean $\theta$
  3. Exponential with mean $\theta$
  4. Uniform on $(0,\theta)$
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

Q17. $\bar X$ is the mean of a sample of size 16 from $N(\theta,1)$. The UMP test of size 0.05 of $H_0:\theta\le0$ against $H_1:\theta\gt0$ is used. Given $\Phi(0.355)=0.639$, its power at $\theta=0.5$ is:
  1. 0.361
  2. 0.950
  3. 0.639
  4. 0.500
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

Q18. For testing $H_0:\mu=\mu_0$ against $H_1:\mu\gt\mu_0$ with known $\sigma$ at the 5% level ($z_{0.05}=1.645$), the smallest sample size that gives power at least 0.90 ($z_{0.10}=1.282$) when $\mu=\mu_0+0.5\,\sigma$ is:
  1. 43
  2. 35
  3. 22
  4. 69
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

Q19. Given below are two statements, one labelled Assertion (A) and the other Reason (R).Assertion (A): For testing $H_0:\mu=\mu_0$ against $H_1:\mu\ne\mu_0$ in $N(\mu,\sigma^2)$ with $\sigma$ known, the equal-tailed $z$ test is uniformly most powerful among unbiased tests.Reason (R): A uniformly most powerful test exists for this two-sided problem.Choose the correct answer.
  1. Both (A) and (R) are true and (R) is the correct explanation of (A)
  2. Both (A) and (R) are true but (R) is not the correct explanation of (A)
  3. (A) is true but (R) is false
  4. (A) is false but (R) is true
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

Q20. Independent samples are drawn from four Poisson populations with means $\lambda_1,\dots,\lambda_4$. For the likelihood ratio test of $H_0:\lambda_1=\lambda_2=\lambda_3=\lambda_4$, the large-sample distribution of $-2\ln\lambda$ under $H_0$ is chi-square with degrees of freedom:
  1. 3
  2. 4
  3. 1
  4. 7
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)

Q21. A sample of size 4 from $N(\mu,1)$ has mean $\bar x=1$. For the likelihood ratio test of $H_0:\mu=0$ against $H_1:\mu\ne0$, the value of $-2\ln\lambda$ is:
  1. 1
  2. 2
  3. $e^{-2}$
  4. 4
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)

Q22. For a sample of size $n$ from $N(\mu,\sigma^2)$ with $\sigma^2$ unknown, let $t$ be the usual one-sample $t$ statistic for $H_0:\mu=\mu_0$. The likelihood ratio $\lambda$ satisfies $\lambda^{2/n}=$
  1. $1+\dfrac{t^2}{n-1}$
  2. $\left(1+\dfrac{t^2}{n-1}\right)^{-1}$
  3. $\left(1+\dfrac{t^2}{n}\right)^{-1}$
  4. $e^{-t^2/2}$
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)

Q23. A sample of size 5 from the exponential distribution with mean $\theta$ has $\bar x=2$. For $H_0:\theta=1$ against $H_1:\theta\ne1$, the likelihood ratio $\lambda$ equals:
  1. 0.0067
  2. 0.0183
  3. 0.2156
  4. 0.5413
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)

Q24. Consider the statements about the likelihood ratio $\lambda=\dfrac{\sup_{\Theta_0}L}{\sup_{\Theta}L}$:(I) $0\le\lambda\le1$.(II) $H_0$ is rejected for small values of $\lambda$.(III) A likelihood ratio test is always uniformly most powerful.(IV) Under regularity conditions, $-2\ln\lambda$ is asymptotically chi-square under $H_0$.Which of the statements are correct?
  1. I, II and IV only
  2. I and II only
  3. II, III and IV only
  4. I, II, III and IV
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)

Q25. In Wald's sequential probability ratio test with $\alpha=0.05$ and $\beta=0.10$, the approximate boundaries $A$ (reject $H_0$ when the ratio is at least $A$) and $B$ (accept $H_0$ when it is at most $B$) are:
  1. 19 and 0.053
  2. 0.105 and 18
  3. 9.5 and 0.21
  4. 18 and 0.105
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)

Q26. The SPRT for $H_0:p=\tfrac12$ against $H_1:p=\tfrac34$ on Bernoulli observations continues while the number of successes $S_n$ lies between two parallel lines $a_0+sn$ and $a_1+sn$. The common slope $s$ is:
  1. 0.500
  2. 0.631
  3. 0.750
  4. 0.585
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)

Q27. The SPRT with $\alpha=\beta=0.05$ is used for $H_0:\theta=0$ against $H_1:\theta=1$ on observations from $N(\theta,1)$. With $\ln19=2.944$, the approximate expected sample size when $H_0$ is true is:
  1. 2.65
  2. 10.6
  3. 5.30
  4. 11.8
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)

Q28. Consider the statements about Wald's SPRT for a simple $H_0$ against a simple $H_1$:(I) It terminates with probability one.(II) Among all tests with error probabilities not exceeding $\alpha$ and $\beta$, it minimises the expected sample size under both $H_0$ and $H_1$.(III) With Wald's approximate boundaries, the true error probabilities satisfy $\alpha'+\beta'\le\alpha+\beta$.(IV) The number of observations is fixed before sampling begins.Which of the statements are correct?
  1. I and II only
  2. I, II and III only
  3. II, III and IV only
  4. I, II, III and IV
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)

Q29. Let $L(\theta)$ be the operating characteristic function (the probability of accepting $H_0$) of the SPRT of $H_0:\theta=\theta_0$ against $H_1:\theta=\theta_1$ with strength $(\alpha,\beta)$. Then $L(\theta_0)$ and $L(\theta_1)$ are approximately:
  1. $1-\alpha$ and $\beta$
  2. $\alpha$ and $1-\beta$
  3. $1-\alpha$ and $1-\beta$
  4. $\alpha$ and $\beta$
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)

Q30. A die is thrown 60 times and the faces 1 to 6 appear 8, 9, 10, 13, 12 and 8 times. The value of the chi-square statistic for testing that the die is unbiased, and its degrees of freedom, are:
  1. 22 and 5
  2. 2.2 and 6
  3. 0.37 and 5
  4. 2.2 and 5
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

Q31. A $2\times2$ table has cell frequencies $a=20$, $b=10$ (first row) and $c=10$, $d=20$ (second row). The values of the chi-square statistic for independence without and with Yates' correction are, respectively:
  1. 6.67 and 6.00
  2. 5.40 and 6.67
  3. 6.67 and 5.40
  4. 3.33 and 2.70
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

Q32. A Poisson distribution is fitted to a frequency distribution, its mean being estimated from the data, and after pooling small expected frequencies 7 classes remain. The degrees of freedom of the chi-square goodness-of-fit statistic are:
  1. 6
  2. 5
  3. 7
  4. 4
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

Q33. Samples from 3 populations are each classified into the same 4 categories. The degrees of freedom of the chi-square test of homogeneity of the three populations are:
  1. 6
  2. 12
  3. 11
  4. 9
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

Q34. A sample of 25 from a normal population has $s^2=36$ (divisor $n-1$). To test $H_0:\sigma^2=25$ against $H_1:\sigma^2\gt25$ at the 5% level, given that the upper 5% point of $\chi^2_{24}$ is 36.42, the statistic and the decision are:
  1. 36.00; do not reject $H_0$
  2. 34.56; reject $H_0$
  3. 36.00; reject $H_0$
  4. 34.56; do not reject $H_0$
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

Q35. Consider the statements about the chi-square test of goodness of fit:(I) $\sum(O-E)^2/E$ is approximately chi-square when the expected frequencies are large.(II) One degree of freedom is lost for each parameter efficiently estimated from the grouped data.(III) The test is two-tailed: very small values of the statistic also lead to rejection of the fitted model.(IV) The condition $\sum O=\sum E$ accounts for the loss of one degree of freedom.Which of the statements are correct?
  1. I and II only
  2. I and IV only
  3. I, II and IV only
  4. I, II, III and IV
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

Q36. In a contingency table with $N=80$ observations the chi-square statistic is 20. Pearson's coefficient of contingency is:
  1. 0.200
  2. 0.447
  3. 0.500
  4. 0.250
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

Q37. In 10 paired comparisons, 8 differences are positive and 2 are negative. The two-sided $p$-value of the sign test is about:
  1. 0.109
  2. 0.055
  3. 0.044
  4. 0.021
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

Q38. For normal populations, the asymptotic relative efficiency of the sign test with respect to the $t$ test is:
  1. $\dfrac3\pi$
  2. $\dfrac\pi2$
  3. $\dfrac12$
  4. $\dfrac2\pi$
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

Q39. In a sign test based on 100 non-zero differences, 60 are positive. Without a continuity correction, the normal test statistic is:
  1. 1.0
  2. 4.0
  3. 2.0
  4. 2.5
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

Q40. For the Wilcoxon signed-rank statistic $T^+$ based on $n=10$ differences (no zeros or ties), the mean and the variance under $H_0$ are:
  1. 55 and 96.25
  2. 27.5 and 96.25
  3. 27.5 and 192.5
  4. 27.5 and 38.5
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

Q41. The differences in six matched pairs are $3,\,-1,\,5,\,-2,\,4,\,6$. The Wilcoxon signed-rank statistic $T^+$ (the sum of the ranks of the positive differences) is:
  1. 18
  2. 3
  3. 15
  4. 21
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

Q42. For $n=4$ differences without ties, the exact null probability $P(T^+\le1)$ of the Wilcoxon signed-rank statistic is:
  1. $\dfrac1{16}$
  2. $\dfrac3{16}$
  3. $\dfrac14$
  4. $\dfrac18$
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

Q43. Given below are two statements, one labelled Assertion (A) and the other Reason (R).Assertion (A): For symmetric populations, the Wilcoxon signed-rank test is generally more powerful than the sign test.Reason (R): It uses the ranks of the magnitudes of the differences as well as their signs.Choose the correct answer.
  1. Both (A) and (R) are true and (R) is the correct explanation of (A)
  2. Both (A) and (R) are true but (R) is not the correct explanation of (A)
  3. (A) is true but (R) is false
  4. (A) is false but (R) is true
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

Q44. For the Mann–Whitney statistic $U$ with sample sizes $m=4$ and $n=5$ (no ties), the mean and the variance under $H_0$ are:
  1. 10 and 15
  2. 20 and 16.67
  3. 10 and 16.67
  4. 10 and 33.33
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)

Q45. Sample $X$: 1, 4, 6. Sample $Y$: 2, 3, 5, 7. The sum $W$ of the ranks of the $X$ observations in the combined sample, and the number $U$ of pairs $(x,y)$ with $x\gt y$, are:
  1. 11 and 7
  2. 11 and 5
  3. 17 and 5
  4. 10 and 6
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)

Q46. For two samples of sizes $m=n=3$ from the same continuous distribution, the probability that the Mann–Whitney statistic $U$ equals 0 is:
  1. $\dfrac1{10}$
  2. $\dfrac16$
  3. $\dfrac19$
  4. $\dfrac1{20}$
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)

Q47. Match the population in List I with the asymptotic relative efficiency of the Wilcoxon (Mann–Whitney) test with respect to the $t$ test in List II.
List IList 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
  1. (a)-(iii), (b)-(i), (c)-(iv), (d)-(ii)
  2. (a)-(iv), (b)-(iii), (c)-(i), (d)-(ii)
  3. (a)-(iii), (b)-(iv), (c)-(i), (d)-(ii)
  4. (a)-(ii), (b)-(iv), (c)-(i), (d)-(iii)
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)

Q48. Which of the following two-sample rank tests is a test for a difference in scale (dispersion) and not in location?
  1. Wilcoxon rank-sum test
  2. Ansari–Bradley test
  3. van der Waerden normal scores test
  4. Median test
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

Q49. The asymptotic relative efficiency of the normal scores (van der Waerden) test with respect to the two-sample $t$ test is:
  1. never less than 1
  2. always equal to $\dfrac3\pi$
  3. never more than 1
  4. never less than 0.864 and may be below 1
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

Q50. Three samples of size 3 have the ranks $\{1,2,3\}$, $\{4,5,6\}$ and $\{7,8,9\}$ in the combined sample. The Kruskal–Wallis statistic $H$ is:
  1. 5.6
  2. 6.0
  3. 8.0
  4. 7.2
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