FS1-8 Quality of tests — coverage pack

1 specification leaves · notes, questions, answers and worked methods

FS1-8.1 · Type I and Type II errors. Size and Power of Test. The power function.

  • A Type I error rejects H0H_0 when it is true; a Type II error does not reject H0H_0 when a specified alternative is true.
  • The size is P(reject H0H0 true)P(\text{reject }H_0\mid H_0\text{ true}), while the power function is π(θ)=Pθ(reject H0)\pi(\theta)=P_{\theta}(\text{reject }H_0).
  • At a specified alternative parameter, power equals 1P(Type II error)1-P(\text{Type II error}); higher power means the test is more likely to detect that departure from H0H_0.
  • A common error is to call the nominal significance level the size without calculating the attainable probability of the discrete critical region.

Tier 1 · Easy

  1. 1. In a test of H0:p=0.4H_0:p=0.4 against H1:p>0.4H_1:p>0.4, describe Type I and Type II errors in terms of pp, and define the size of the test.[4 marks]

    Answer

    • Type I: conclude that p>0.4p>0.4 when p=0.4p=0.4
    • Type II: fail to conclude that p>0.4p>0.4 when a specified value p>0.4p>0.4 is true
    • Size: P(reject H0p=0.4)P(\text{reject }H_0\mid p=0.4)

    Method: Translate the two decision errors using the null value and the direction of the alternative. The size is the probability of the Type I error evaluated at the null parameter.

Tier 2 · Standard

  1. 1. Let XBin(12,p)X\sim\operatorname{Bin}(12,p). A test of H0:p=0.3H_0:p=0.3 against H1:p>0.3H_1:p>0.3 rejects H0H_0 when X7X\geq7. Find the size, the power at p=0.5p=0.5, and the probability of a Type II error at p=0.5p=0.5.[6 marks]

    Answer

    • Size =0.03860=0.03860
    • Power at p=0.5p=0.5 is 0.387210.38721
    • Type II probability =0.61279=0.61279

    Method: The size is P0.3(X7)=x=712(12x)(0.3)x(0.7)12x=0.0386008P_{0.3}(X\geq7)=\sum_{x=7}^{12}\binom{12}{x}(0.3)^x(0.7)^{12-x}=0.0386008\ldots. At p=0.5p=0.5, power is P0.5(X7)=0.3872070P_{0.5}(X\geq7)=0.3872070\ldots. The Type II probability is its complement, 10.3872070=0.61279301-0.3872070=0.6127930\ldots.

Tier 3 · Hard

  1. 1. For XBin(12,p)X\sim\operatorname{Bin}(12,p), a test of H0:p=0.4H_0:p=0.4 against H1:p>0.4H_1:p>0.4 uses critical region X8X\geq8. Write its power function. Calculate its size, its power and Type II error probability when p=0.65p=0.65, and the expected number of rejections in 4040 independent repetitions at p=0.65p=0.65. Comment on whether it is a 5%5\% test.[9 marks]

    Answer

    • π(p)=x=812(12x)px(1p)12x\pi(p)=\sum_{x=8}^{12}\binom{12}{x}p^x(1-p)^{12-x}
    • Size =0.05731=0.05731
    • Power at p=0.65p=0.65 is 0.583350.58335
    • Type II probability =0.41665=0.41665
    • Expected rejections =23.3=23.3
    • It is not a 5%5\% test because its size exceeds 0.050.05

    Method: The power function is the critical-region probability at a general pp. At the null value, π(0.4)=0.0573099\pi(0.4)=0.0573099\ldots, which is the size. At p=0.65p=0.65, π(0.65)=0.5833451\pi(0.65)=0.5833451\ldots, so the Type II probability is 10.5833451=0.41665491-0.5833451=0.4166549\ldots. Across 4040 repetitions, the expected number rejected is 40(0.5833451)=23.333840(0.5833451)=23.3338\ldots. Since 0.05731>0.050.05731>0.05, the test does not have size at most 5%5\%.