回帰係数が既知であるため、帰無仮説が単純な場合の最初の作業が容易になります。次に、十分な統計は。ここで、zは残差です。ヌル下での分布はカイ二乗によってスケーリングもσ 2 0&自由度とは、サンプルサイズに等しいn個T=∑z2zσ20n。
下の尤度の比書き留め&σ = σ 2&確認、それはの増加関数だとTの任意のためのσ 2 > σ 1:σ=σ1σ=σ2Tσ2>σ1
対数尤度比の関数である、&に正比例T正の傾きを持つσ2>σ1。
ℓ(σ2;T,n)−ℓ(σ1;T,n)=n2⋅[log(σ21σ22)+Tn⋅(1σ21−1σ22)]
Tσ2>σ1
そうカーリン-ルビン定理によって片側検定の各対H A:σ < σ 0&H 0:σ = σ 0対H A:σ < σ 0は一様に最も強力です。明らかに何のUMPテストありませんH 0:σ = σ 0対H Aは:σ ≠ σ 0。ここで説明したようにH0:σ=σ0HA:σ<σ0H0:σ=σ0HA:σ<σ0H0:σ=σ0HA:σ≠σ0σ>σ0σ<σ0
σ=σ^σσ=σ0
σ^2=Tn
ℓ(σ^;T,n)−ℓ(σ0;T,n)=n2⋅[log(nσ20T)+Tnσ20−1]
This is a fine statistic for quantifying how much the data support HA:σ≠σ0 over H0:σ=σ0. And confidence intervals formed from inverting the likelihood-ratio test have the appealing property that all parameter values inside the interval have higher likelihood than those outside. The asymptotic distribution of twice the log-likelihood ratio is well known, but for an exact test, you needn't try to work out its distribution—just use the tail probabilities of the corresponding values of T in each tail.
If you can't have a uniformly most powerful test, you might want one that's most powerful against the alternatives closest to the null. Find the derivative of the log-likelihood function with respect to σ—the score function:
dℓ(σ;T,n)dσ=Tσ3−nσ
Evaluating its magnitude at σ0 gives a locally most powerful test of H0:σ=σ0 vs HA:σ≠σ0. Because the test statistic's bounded below, with small samples the rejection region may be confined to the upper tail. Again, the asymptotic distribution of the squared score is well known, but you can get an exact test in the same way as for the LRT.
Another approach is to restrict your attention to unbiased tests, viz those for which the power under any alternative exceeds the size. Check your sufficient statistic has a distribution in the exponential family; then for a size α test, ϕ(T)=1 if T<c1 or T>c2, else ϕ(T)=0, you can find the uniformly most powerful unbiased test by solving
E(ϕ(T))E(Tϕ(T))=α=αET
A plot helps show the bias in the equal-tail-areas test & how it arises:
At values of σ a little over σ0 the increased probability of the test statistics' falling in the the upper-tail rejection rejection doesn't compensate for the reduced probability of its falling in the lower-tail rejection region & the power of the test drops below its size.
Being unbiased is good; but it's not self-evident that having a power slightly lower than the size over a small region of the parameter space within the alternative is so bad as to rule out a test altogether.
Two of the above two-tailed tests coincide (for this case, not in general):
The LRT is UMP among unbiased tests. In cases where this isn't true the LRT may still be asymptotically unbiased.
I think all, even the one-tailed tests, are admissible, i.e. there's no test more powerful or as powerful under all alternatives—you can make the test more powerful against alternatives in one direction only by making it less powerful against alternatives in the other direction. As the sample size increases, the chi-squared distribution becomes more & more symmetric, & all the two-tailed tests will end up being much the same (another reason for using the easy equal-tailed test).
With the composite null hypothesis, the arguments become a little more complicated, but I think you can get practically the same results, mutatis mutandis. Note that one but not the other of the one-tailed tests is UMP!