Professional Documents
Culture Documents
A Variance Ratio Test: XM Yn F
A Variance Ratio Test: XM Yn F
12 12
H0: 1 versus H1: 1
22 22
As encountered in estimation, variances are associated with the 2 distribution. Here we have
the ratio of two variances however, so we use the F distribution.
X m
Theorem: If X ~ 2m and Y ~ 2n independently of X, then ~ Fm,n
Yn
( n1 1) s12 12
n1 1
~ Fm ,n
( n 2 1) s 22 22
n2 1
Cancelling, we get s12/s22 ~ Fm,n The F distribution has two sets of degrees of freedom
(parameters), the first associated with the numerator, the second with the denominator. Both
are related to the size of each sample.
So if we have s12 = 20 and s22 = 15, n1 = 30, n2 = 50, then 20/15 = 1.33 is a single realisation
from an F29,19 distribution. The critical value, derived from tables, is F* = 1.74 (5%), hence
cannot reject H0 as the test statistic does not exceed the critical value.
Likelihood-ratio tests
A likelihood ratio test is a hypothesis test based upon the ML principle. The principle of the
LR test is as follows: to test the hypothesis
H0: 0
H1: 0
we compare the likelihood of obtaining the sample data (a) at the hypothesised value of and
(b) at the MLE of . The likelihood in (b) must be greater than that in (a) but, if they are
fairly close we do not reject the null hypothesis.
L ( x: 0 )
LR
L ( x: MLE )
where 0 1 and L(x: ) gives the likelihood of the sample x for a value of the parameter
.
The LR is a random variable with a distribution. If we can find it (it depends, in general on
the parent distribution) then we can find a critical region for the test. Small values of LR
reject H0 in favour of the alternative (because the likelihood under the null is much less than
under the MLE).
Theorem
The random variable -2ln has a distribution that approaches that of a 2 distribution as n
, with degrees of freedom given by the number of parameters determined by H0.
Example 1
Suppose X ~ N(and a sample of size n = 100 on X yields x = 15. Use a LR test to test
H0: 0vs H1: 0.
Solution
exp x
100
1
L() =
2
1
2 so
2
i
1 1
ln L() = 100 ln 2 x
2
2
Now