LR指数数据测试的概述。
令X1,X2,…,Xn是来自Exp(rate=λ),的随机样本
,因此E(Xi)=μ=1/λ.
为x>0,密度函数是f(x)=λe−λx和CDF是F(x)=1−e−λx.
1. Test statistic is sample minimum.
Let V=X(1)=minn(Xi). Then
V∼Exp(nλ). As an outline of the proof,
P(V>v)=P(X1>v,…,Xn>v)=[e−λv]n=e−nλv,
so that P(V≤v)=1−e−nλv, for v>0.
H9:μ≤μ0Ha:μ>μ0,α=5%,VV>c, where
P(V>c|μ=μ0)=0.05.
For the specific case in which n=100 and μ0=10,λ0=0.1,
we have exponential rate 10=n/μ0=100/10=10, so that c=0.2295
from R, where the exponential distribution is parameterized by the rate.
qexp(.95, 10)
[1] 0.2995732
1 - pexp(0.2996, 10)
[1] 0.04998662
Accordingly, the power against the alternative μa=100 (rate n/μa=1) is about 74%.
1 - pexp(0.2996, 1)
[1] 0.7411146
2. Test statistic is the sample mean.
Oxford U. class notes (second page) show that
the likelihood ratio test of H0:μ≤μ0 against H0:μ>μ0
at the 5% level of significance rejects for X¯>c, where P(X¯>c|μ=μ0)=0.5.
Furthermore, one can show using moment generating functions that
X¯∼Gamma(n,nλ).
For the specific case in which n=100 and μ0=10,λ0=0.1, we have X¯∼Gamma(100,10), so that c=11.7.
qgamma(.95, 100, 10)
[1] 11.69971
1 - pgamma(11.7, 100, 10)
[1] 0.04997338
Accordingly, power against the alternative μa=14 is about 95.6%.
1 - pgamma(11.7, 100, 100/14)
[1] 0.9562513
Clearly, for purposes of testing hypotheses about the exponential mean μ, the information in the sufficient statistic X¯ is much greater than the
information in the sample minimum.