Lecture 29 Standard Tests Revisited

The most commonly used statistical tests, the zz-test, the tt-test, the chi-squared test for a variance and the FF-test, are often taught as recipes. In this lecture we will consider these tests again, from the perspective of the module: each of these tests is based on a pivot in the sense of lecture 25, and the test is performed by comparing a statistic to a quantile from a table. We will work through the one-sample tt-test in detail, including how to read the tables, and will state the variance, paired, two-sample and FF-tests in a similar way. We will conclude by giving a table which shows which test is appropriate for which question.

29.1 Tests from Pivots

Every test in this lecture is based on the following principle: the test statistic is known to follow a certain distribution under the null hypothesis, and the test rejects if the statistic exceeds a quantile of this distribution, taken from a table. Using the language of lecture 25, the test statistic is a pivot Q⁢(X,θ)Q(X,\theta) for the hypothesised value θ=θ0\theta=\theta_{0} and the test is the one which, when inverted by theorem 25.6, gives the confidence interval based on this pivot.

We use the notation zpz_{p}, tk,pt_{k,p} and χk,p2\chi^{2}_{k,p} for the quantiles from lecture 25, so that ℙ⁢(T≤tk,p)=p\mathbb{P}(T\leq t_{k,p})=p for T∼tkT\sim t_{k}. A table shows these quantiles for a few values of pp. For a one-sided test at level α\alpha, we need the (1−α)(1-\alpha)-quantile, and for a two-sided test at the same level we need the (1−α/2)(1-\alpha/2)-quantile. A pp-value in the sense of definition 20.8 cannot be found exactly in a table, but can be bracketed between two tabulated levels; we will see an example of this approach in example 29.2, below.

The most basic example is the zz-test from lecture 20: if X1,…,Xn∼N⁢(μ,σ2)X_{1},\dots,X_{n}\sim N(\mu,\sigma^{2}) are i.i.d. with known σ2\sigma^{2}, then Z=n⁢(X¯−μ0)/σZ=\sqrt{n}\,(\bar{X}-\mu_{0})/\sigma is standard normally distributed under H0:μ=μ0H_{0}\colon\mu=\mu_{0} and in examples 20.6 and 20.7 we can reject for Z>z1−αZ>z_{1-\alpha} or |Z|>z1−α/2|Z|>z_{1-\alpha/2} for the one-sided and two-sided alternative, respectively. The simplicity of this test is countered by the fact that the variance of the data is known. The rest of the lecture is concerned with how to replace ZZ when σ2\sigma^{2} is unknown.

29.2 The One-Sample tt-Test

Let X1,…,XnX_{1},\dots,X_{n} be i.i.d. N⁢(μ,σ2)N(\mu,\sigma^{2}), where both parameters are unknown, and let X¯\bar{X} and S2S^{2} be the sample mean and sample variance, respectively. If we replace σ\sigma in the definition of ZZ by the estimate SS, we get the test statistic

equation (29.1) (29.1)
T=n⁢(X¯−μ0)S.T=\frac{\sqrt{n}\,(\bar{X}-\mu_{0})}{S}.

In example 25.4 we have seen that for μ=μ0\mu=\mu_{0} this is the ratio of the standard normal variable n⁢(X¯−μ0)/σ\sqrt{n}\,(\bar{X}-\mu_{0})/\sigma to the square root of V/(n−1)V/(n-1), where V=(n−1)⁢S2/σ2∼χn−12V=(n-1)S^{2}/\sigma^{2}\sim\chi^{2}_{n-1} by proposition A.3, and that the two values are independent of each other by corollary 10.10. Consequently, T∼tn−1T\sim t_{n-1} by definition A.4. This leads to the following tests.

Proposition 29.1.

Let n≥2n\geq 2 and let X1,…,XnX_{1},\dots,X_{n} be i.i.d. N⁢(μ,σ2)N(\mu,\sigma^{2}), where the parameters μ\mu and σ2\sigma^{2} are unknown, μ0∈ℝ\mu_{0}\in\mathbb{R} and let TT be given by (29.1). Then the three tests of H0:μ=μ0H_{0}\colon\mu=\mu_{0}, which reject if

T>tn−1,1−α,T<−tn−1,1−α,or|T|>tn−1,1−α/2,T>t_{n-1,1-\alpha},\qquad T<-t_{n-1,1-\alpha},\qquad\text{or}\qquad|T|>t_{n-1,% 1-\alpha/2},

for the alternatives μ>μ0\mu>\mu_{0}, μ<μ0\mu<\mu_{0} and μ≠μ0\mu\neq\mu_{0}, respectively, have size α\alpha, independent of the value of σ2\sigma^{2}.

Proof.

Under H0H_{0} we have T∼tn−1T\sim t_{n-1} for every value of σ2\sigma^{2}, as shown above. By the definition of the quantile we have ℙ⁢(T>tn−1,1−α)=1−(1−α)=α\mathbb{P}(T>t_{n-1,1-\alpha})=1-(1-\alpha)=\alpha. This is the size of the first test. The density of the tt distribution is symmetric about zero and thus we have ℙ⁢(T<−tn−1,1−α)=ℙ⁢(T>tn−1,1−α)=α\mathbb{P}(T<-t_{n-1,1-\alpha})=\mathbb{P}(T>t_{n-1,1-\alpha})=\alpha for the second test and for the third test we have ℙ⁢(|T|>tn−1,1−α/2)=2⋅α/2=α\mathbb{P}(|T|>t_{n-1,1-\alpha/2})=2\cdot\alpha/2=\alpha. Since these probabilities do not depend on σ2\sigma^{2}, the proof is complete. ∎

These are the one-sided and two-sided one-sample tt-tests. Since tn−1,p>zpt_{n-1,p}>z_{p} for every p>1/2p>1/2, the tt-test requires a larger standardised deviation than the zz-test before it can reject the hypothesis, and this is the price we pay for estimating σ\sigma. As nn increases, this price decreases as the tn−1t_{n-1} distribution gets closer to the standard normal distribution. As in lecture 20, the one-sided tests have level α\alpha for the composite null hypotheses μ≤μ0\mu\leq\mu_{0} and μ≥μ0\mu\geq\mu_{0}, since the probability of rejection increases as μ\mu moves into the alternative.

Example 29.2.

A quantity has nominal value 1010, and ten measurements give

10.2, 9.7, 11.1, 10.8, 10.4, 9.9, 11.3, 10.6, 10.1, 10.9.10.2,\ 9.7,\ 11.1,\ 10.8,\ 10.4,\ 9.9,\ 11.3,\ 10.6,\ 10.1,\ 10.9.

Assume that the measurements are i.i.d. N⁢(μ,σ2)N(\mu,\sigma^{2}). We want to test H0:μ=10H_{0}\colon\mu=10 against H1:μ≠10H_{1}\colon\mu\neq 10 at level α=0.05\alpha=0.05. The sum of the observations is 105105, so that x¯=10.5\bar{x}=10.5; the sum of the squared deviations from x¯\bar{x} is 2.522.52, so that s2=2.52/9=0.28s^{2}=2.52/9=0.28 and s=0.529s=0.529. The observed value of the test statistic is

t=10⁢(10.5−10)0.529=2.99.t=\frac{\sqrt{10}\,(10.5-10)}{0.529}=2.99.

The row corresponding to n−1=9n-1=9 degrees of freedom in the tt-table shows that we have t9,0.95=1.833t_{9,0.95}=1.833, t9,0.975=2.262t_{9,0.975}=2.262, t9,0.99=2.821t_{9,0.99}=2.821 and t9,0.995=3.250t_{9,0.995}=3.250. For a two-sided test with level 0.050.05 we need t9,0.975=2.262t_{9,0.975}=2.262 and since |t|=2.99>2.262|t|=2.99>2.262 we can reject H0H_{0}: the data are not compatible with a mean of 1010. The same row also brackets the pp-value. The observed value 2.992.99 falls between t9,0.99t_{9,0.99} and t9,0.995t_{9,0.995} and thus the two-sided pp-value, 2⁢ℙ⁢(T≥2.99)2\,\mathbb{P}(T\geq 2.99) for T∼t9T\sim t_{9}, is between 0.010.01 and 0.020.02; the two-sided test also rejects at level 0.020.02 but not at level 0.010.01. If instead the question had been whether the measurements were high, the one-sided test for H0:μ=10H_{0}\colon\mu=10 against H1:μ>10H_{1}\colon\mu>10 at level 0.050.05 would have compared t=2.99t=2.99 to t9,0.95=1.833t_{9,0.95}=1.833 and would have rejected H0H_{0}, with a pp-value between 0.0050.005 and 0.010.01.

The tt-test is the test obtained by applying the likelihood-ratio principle from lecture 23. In exercise 23.1 the generalised likelihood-ratio statistic for H0:μ=μ0H_{0}\colon\mu=\mu_{0}, where σ2\sigma^{2} is unknown for both hypotheses, is found to be −2⁢log⁡Λ=n⁢log⁡(1+T2/(n−1))-2\log\Lambda=n\log\bigl{(}1+T^{2}/(n-1)\bigr{)}, which is a strictly increasing function of T2T^{2}. Thus, rejecting large values of −2⁢log⁡Λ-2\log\Lambda corresponds to the two-sided tt-test. Following the general method of lecture 23, we would use the critical value from the χ12\chi^{2}_{1} approximation of Wilks’ theorem, theorem 23.3; however, in this case the null distribution of TT is known exactly and the tn−1t_{n-1} quantile is the exact critical value for every nn. As nn gets large, the two approaches will be equal, since n⁢log⁡(1+t2/(n−1))→t2n\log(1+t^{2}/(n-1))\to t^{2} and tn−1,1−α/2→z1−α/2t_{n-1,1-\alpha/2}\to z_{1-\alpha/2} and then z1−α/22=χ1,1−α2z_{1-\alpha/2}^{2}=\chi^{2}_{1,1-\alpha}.

29.3 The Chi-Squared Test for a Variance

The second question we can ask a normal sample, about the spread of the sample, is whether the variance equals a given value σ02\sigma_{0}^{2}. In proposition A.3 we have seen that the pivot (n−1)⁢S2/σ2∼χn−12(n-1)S^{2}/\sigma^{2}\sim\chi^{2}_{n-1} does not depend on the mean, and the test will follow the structure of the test from the previous section.

Proposition 29.3.

Let n≥2n\geq 2 and let X1,…,XnX_{1},\dots,X_{n} be i.i.d. N⁢(μ,σ2)N(\mu,\sigma^{2}), where μ\mu and σ2\sigma^{2} are unknown, σ02>0\sigma_{0}^{2}>0 and let

equation (29.2) (29.2)
V=(n−1)⁢S2σ02.V=\frac{(n-1)S^{2}}{\sigma_{0}^{2}}.

Each of the three tests for H0:σ2=σ02H_{0}\colon\sigma^{2}=\sigma_{0}^{2}, which reject if

V>χn−1,1−α2,V<χn−1,α2,orV∉[χn−1,α/22,χn−1,1−α/22],V>\chi^{2}_{n-1,1-\alpha},\qquad V<\chi^{2}_{n-1,\alpha},\qquad\text{or}\qquad V% \notin\bigl{[}\chi^{2}_{n-1,\alpha/2},\ \chi^{2}_{n-1,1-\alpha/2}\bigr{]},

for the alternatives σ2>σ02\sigma^{2}>\sigma_{0}^{2}, σ2<σ02\sigma^{2}<\sigma_{0}^{2} and σ2≠σ02\sigma^{2}\neq\sigma_{0}^{2}, respectively, has size α\alpha, whatever the value of μ\mu.

Proof.

Under H0H_{0} we have V=(n−1)⁢S2/σ2∼χn−12V=(n-1)S^{2}/\sigma^{2}\sim\chi^{2}_{n-1} by proposition A.3, for every value of μ\mu. The first two rejection probabilities are 1−(1−α)=α1-(1-\alpha)=\alpha and α\alpha by the definition of the quantiles. For the third, the events V<χn−1,α/22V<\chi^{2}_{n-1,\alpha/2} and V>χn−1,1−α/22V>\chi^{2}_{n-1,1-\alpha/2} are disjoint and each have probability α/2\alpha/2, so the rejection probability is α\alpha. This completes the proof. ∎

Unlike the tt distribution, the chi-squared distribution is not symmetric and so we need different values from the table for the two tails of a two-sided test. This is the inverse of the confidence interval from example 25.5. Similarly, the one-sided test against σ2>σ02\sigma^{2}>\sigma_{0}^{2} has level α\alpha for the composite null hypothesis σ2≤σ02\sigma^{2}\leq\sigma_{0}^{2}, since the probability of the test to reject the null hypothesis increases with σ2\sigma^{2}. This is exercise 29.2.

The numerical carrying-out of the test is also part of that exercise, and it follows the pattern of example 29.2 with the chi-squared table in place of the tt-table. Note that tests about a variance have low power for small samples, because S2S^{2} is a much more variable estimator than X¯\bar{X}.

29.4 Paired and Two-Sample Problems

The tests so far have considered a single sample. Here we will consider three more standard tests, which compare two sets of measurements each, and are again pivot tests.

The first of these three tests is the paired tt-test. Assume that we have observed data in pairs (Xi,Yi)(X_{i},Y_{i}), i=1,…,ni=1,\dots,n, e.g. before and after measurements for the same subject. Since the two measurements for one subject are not independent, we can reduce the data for each pair to the difference Di=Xi−YiD_{i}=X_{i}-Y_{i}, model the differences as i.i.d. N⁢(μD,σD2)N(\mu_{D},\sigma_{D}^{2}) and then apply proposition 29.1 with μ0=0\mu_{0}=0: the test statistic is T=n⁢D¯/SDT=\sqrt{n}\,\bar{D}/S_{D}, constructed from the sample mean and variance of the differences, and is tn−1t_{n-1} distributed under H0:μD=0H_{0}\colon\mu_{D}=0. The model is only for the differences, as the example in exercise 29.3 shows.

The second test is the two-sample tt-test. Here we assume that X1,…,XmX_{1},\dots,X_{m} are i.i.d. N⁢(μX,σ2)N(\mu_{X},\sigma^{2}) and that Y1,…,YnY_{1},\dots,Y_{n} are i.i.d. N⁢(μY,σ2)N(\mu_{Y},\sigma^{2}), where the two samples are independent of each other, and where we assume that the unknown variances of the two populations are the same. We consider H0:μX=μYH_{0}\colon\mu_{X}=\mu_{Y}. The estimator for the common variance is now

Sp2=(m−1)⁢SX2+(n−1)⁢SY2m+n−2,S_{p}^{2}=\frac{(m-1)S_{X}^{2}+(n-1)S_{Y}^{2}}{m+n-2},

and the test statistic is

equation (29.3) (29.3)
T=X¯−Y¯Sp⁢1/m+1/n∼tm+n−2under ⁢H0.T=\frac{\bar{X}-\bar{Y}}{S_{p}\sqrt{1/m+1/n}}\sim t_{m+n-2}\qquad\text{under }% H_{0}.

The distribution of this test statistic is similar to the distribution of the test statistic for the one-sample case: under H0H_{0} the numerator is N⁢(0,σ2⁢(1/m+1/n))N\bigl{(}0,\sigma^{2}(1/m+1/n)\bigr{)}, (m+n−2)⁢Sp2/σ2(m+n-2)S_{p}^{2}/\sigma^{2} is the sum of two independent χm−12\chi^{2}_{m-1} and χn−12\chi^{2}_{n-1} variables and thus is χm+n−22\chi^{2}_{m+n-2} by definition A.2, and numerator and denominator are independent of each other by corollary 10.10, applied to each of the two samples, and the independence of the samples. Thus, the test can be used to test H0H_{0} against μX≠μY\mu_{X}\neq\mu_{Y}, rejecting if |T|>tm+n−2,1−α/2|T|>t_{m+n-2,1-\alpha/2}, and the one-sided variants of the test use tm+n−2,1−αt_{m+n-2,1-\alpha}.

The third test is the FF-test for two variances. In the same two-sample setting, but now with variances σX2\sigma_{X}^{2} and σY2\sigma_{Y}^{2} which are allowed to be different, the ratio (SX2/σX2)/(SY2/σY2)(S_{X}^{2}/\sigma_{X}^{2})\big{/}(S_{Y}^{2}/\sigma_{Y}^{2}) is the ratio of two independent chi-squared variables, divided by the degrees of freedom. Thus, it is Fm−1,n−1F_{m-1,n-1} distributed by definition A.4. Under H0:σX2=σY2H_{0}\colon\sigma_{X}^{2}=\sigma_{Y}^{2} the unknown variances cancel and the statistic F=SX2/SY2F=S_{X}^{2}/S_{Y}^{2} is Fm−1,n−1F_{m-1,n-1} distributed. The two-sided test rejects if FF does not fall into the interval [Fm−1,n−1,α/2,Fm−1,n−1,1−α/2][F_{m-1,n-1,\alpha/2},\,F_{m-1,n-1,1-\alpha/2}], where Fk,l,pF_{k,l,p} is the pp-quantile of Fk,lF_{k,l}. Normally, tables only give the upper quantiles and the lower quantiles can be found by using Fk,l,p=1/Fl,k,1−pF_{k,l,p}=1/F_{l,k,1-p}. This test is also used to check the assumption of equal variances in (29.3).

29.5 Which Test?

Table 29.1 summarises the six tests. The choice between them is determined by the following three questions: Is the parameter in question a mean or a variance? Is there one sample or two? If two samples, are the observations paired or independent? All six tests assume that the data are normally distributed. In lecture 30 we will use simulation to study what happens when this assumption is violated.

Question H0H_{0} Statistic Null distribution
one mean, σ2\sigma^{2} known μ=μ0\mu=\mu_{0} n⁢(X¯−μ0)/σ\sqrt{n}\,(\bar{X}-\mu_{0})/\sigma N⁢(0,1)N(0,1)
one mean, σ2\sigma^{2} unknown μ=μ0\mu=\mu_{0} n⁢(X¯−μ0)/S\sqrt{n}\,(\bar{X}-\mu_{0})/S tn−1t_{n-1}
paired differences μD=0\mu_{D}=0 n⁢D¯/SD\sqrt{n}\,\bar{D}/S_{D} tn−1t_{n-1}
one variance, μ\mu unknown σ2=σ02\sigma^{2}=\sigma_{0}^{2} (n−1)⁢S2/σ02(n-1)S^{2}/\sigma_{0}^{2} χn−12\chi^{2}_{n-1}
two means, common σ2\sigma^{2} μX=μY\mu_{X}=\mu_{Y} X¯−Y¯Sp⁢1/m+1/n\frac{\bar{X}-\bar{Y}}{S_{p}\sqrt{1/m+1/n}} tm+n−2t_{m+n-2}
two variances σX2=σY2\sigma_{X}^{2}=\sigma_{Y}^{2} SX2/SY2S_{X}^{2}/S_{Y}^{2} Fm−1,n−1F_{m-1,n-1}
Table 29.1: The standard tests for normal data. The pivot for each test is evaluated under H0H_{0}, and the final column gives the table from which the critical value can be found (using the (1−α)(1-\alpha)-quantile for a one-sided and the (1−α/2)(1-\alpha/2)-quantile (together with the (α/2)(\alpha/2)-quantile for the chi-squared and FF tests) for a two-sided alternative).
Summary.
  • •
    ​

    Each of the standard tests for normal data is based on the pivot from lecture 25, evaluated for the null value, and compared to a quantile of the known null distribution. The test is the inverse of the corresponding confidence interval.

  • •
    ​

    The one-sample tt-test uses T=n⁢(X¯−μ0)/S∼tn−1T=\sqrt{n}\,(\bar{X}-\mu_{0})/S\sim t_{n-1} under H0:μ=μ0H_{0}\colon\mu=\mu_{0} and rejects for T>tn−1,1−αT>t_{n-1,1-\alpha} (one-sided) or |T|>tn−1,1−α/2|T|>t_{n-1,1-\alpha/2} (two-sided). It is the likelihood-ratio test with an exact critical value.

  • •
    ​

    The chi-squared test for a variance uses V=(n−1)⁢S2/σ02∼χn−12V=(n-1)S^{2}/\sigma_{0}^{2}\sim\chi^{2}_{n-1} under H0:σ2=σ02H_{0}\colon\sigma^{2}=\sigma_{0}^{2}. A two-sided test requires both lower and upper quantiles, since the distribution is not symmetric.

  • •
    ​

    The paired tt-test is a one-sample tt-test for the differences. Similarly, the two-sample tt-test with pooled variance and the FF-test for two variances follow this pattern, using the tm+n−2t_{m+n-2} and Fm−1,n−1F_{m-1,n-1} distributions.

  • •
    ​

    The table lists only a few quantiles and often the pp-value is bracketed between two tabulated levels.

Exercise 29.1.

Eight independent measurements of a quantity with nominal value 2020 are given by

19.1, 18.6, 20.3, 19.4, 18.9, 19.8, 18.2, 19.7.19.1,\ 18.6,\ 20.3,\ 19.4,\ 18.9,\ 19.8,\ 18.2,\ 19.7.

Assume that the measurements are i.i.d. N⁢(μ,σ2)N(\mu,\sigma^{2}), where both parameters are unknown. From the tt-table we find t7,0.95=1.895t_{7,0.95}=1.895, t7,0.975=2.365t_{7,0.975}=2.365, t7,0.99=2.998t_{7,0.99}=2.998 and t7,0.995=3.499t_{7,0.995}=3.499.

  1. 1.
    ​

    Determine x¯\bar{x}, s2s^{2} and the observed value of the test statistic TT from (29.1) for μ0=20\mu_{0}=20.

  2. 2.
    ​

    For H0:μ=20H_{0}\colon\mu=20, test H1:μ<20H_{1}\colon\mu<20 at levels 0.050.05 and 0.010.01. Bracket the pp-value.

  3. 3.
    ​

    For H0:μ=20H_{0}\colon\mu=20, test H1:μ≠20H_{1}\colon\mu\neq 20 at the same two levels and bracket the pp-value.

  4. 4.
    ​

    Calculate the 99%99\% tt-interval for μ\mu from example 25.4 and discuss how it relates to your answer in the previous part.

Exercise 29.2.

A sample of n=15n=15 i.i.d. N⁢(μ,σ2)N(\mu,\sigma^{2}) observations has sample variance s2=2.9s^{2}=2.9, and the process generating the sample is known to have variance at most 1.51.5. From the chi-squared table we find χ14,0.0252=5.629\chi^{2}_{14,0.025}=5.629, χ14,0.052=6.571\chi^{2}_{14,0.05}=6.571, χ14,0.952=23.685\chi^{2}_{14,0.95}=23.685, χ14,0.9752=26.119\chi^{2}_{14,0.975}=26.119 and χ14,0.992=29.141\chi^{2}_{14,0.99}=29.141.

  1. 1.
    ​

    Test H0:σ2≤1.5H_{0}\colon\sigma^{2}\leq 1.5 against H1:σ2>1.5H_{1}\colon\sigma^{2}>1.5 at levels 0.050.05 and 0.010.01. Bracket the pp-value.

  2. 2.
    ​

    Test H0:σ2=1.5H_{0}\colon\sigma^{2}=1.5 against H1:σ2≠1.5H_{1}\colon\sigma^{2}\neq 1.5 at level 0.050.05.

  3. 3.
    ​

    Show that the power function of the one-sided test from proposition 29.3 is given by β⁢(σ2)=ℙ⁢(W>χn−1,1−α2⁢σ02/σ2)\beta(\sigma^{2})=\mathbb{P}\bigl{(}W>\chi^{2}_{n-1,1-\alpha}\,\sigma_{0}^{2}/% \sigma^{2}\bigr{)} where W∼χn−12W\sim\chi^{2}_{n-1}, and that this power function is increasing in σ2\sigma^{2}. Deduce that the test has size α\alpha for the composite null hypothesis σ2≤σ02\sigma^{2}\leq\sigma_{0}^{2}.

  4. 4.
    ​

    Using the power function, explain how it can happen that the one-sided test from part (a) and the two-sided test from part (b) can give different results at the same level.

Exercise 29.3.

The following data give the reaction times of six subjects before and after a training period.

subject 1 2 3 4 5 6
before (xix_{i}) 72 65 80 58 69 75
after (yiy_{i}) 68 66 74 55 63 70

We want to know whether the training reduced the mean reaction time. From the tt-table we find t5,0.95=2.015t_{5,0.95}=2.015, t5,0.975=2.571t_{5,0.975}=2.571, t5,0.99=3.365t_{5,0.99}=3.365 and t10,0.95=1.812t_{10,0.95}=1.812.

  1. 1.
    ​

    Write down the model and hypotheses for the paired tt-test and carry out the test at levels 0.050.05 and 0.010.01.

  2. 2.
    ​

    Determine a 95%95\% confidence interval for the mean reduction in reaction time.

  3. 3.
    ​

    Your colleague, not knowing that the two rows in the data frame give paired data, performs a two-sample tt-test (29.3). The sample variances of the two rows are sX2=59.77s_{X}^{2}=59.77 and sY2=42.80s_{Y}^{2}=42.80, respectively. What is the test statistic and the decision of your colleague at level 0.050.05? Justify your answer by showing that the paired analysis is appropriate, and that the two analyses are different.

Exercise 29.4.

In example 25.4 we have observed a sample of n=16n=16 values, where x¯=10.3\bar{x}=10.3 and s=2.1s=2.1, and we have found the 95%95\% tt-interval [9.18,11.42][9.18,11.42] for μ\mu. In example 25.5, for the same data, we have found the 95%95\% interval [2.41,10.56][2.41,10.56] for σ2\sigma^{2}. In exercise 25.4 we have seen that the hypothesis H0:μ=9H_{0}\colon\mu=9 was rejected at level 0.050.05, using theorem 25.6 alone. Now use the values t15,0.95=1.753t_{15,0.95}=1.753, t15,0.975=2.131t_{15,0.975}=2.131, χ15,0.0252=6.262\chi^{2}_{15,0.025}=6.262 and χ15,0.9752=27.488\chi^{2}_{15,0.975}=27.488.

  1. 1.
    ​

    Perform a two-sided tt-test for H0:μ=9H_{0}\colon\mu=9 and state the decision. Repeat the test for H0:μ=11.5H_{0}\colon\mu=11.5 and check that the result is consistent with the interval.

  2. 2.
    ​

    For H0:σ2=σ02H_{0}\colon\sigma^{2}=\sigma_{0}^{2}, perform a two-sided test at level 0.050.05 for σ02=2\sigma_{0}^{2}=2 and σ02=9\sigma_{0}^{2}=9, either from the interval alone or by computing the test statistic (29.2).

  3. 3.
    ​

    Perform a one-sided test for H0:μ=9.5H_{0}\colon\mu=9.5 against H1:μ>9.5H_{1}\colon\mu>9.5 at level 0.050.05. Why cannot the two-sided interval be used to answer this test? Which confidence set does this correspond to?