Lemma) Neyman-Pearson Lemma.
Suppose f(x;θ) is joint pdf of X1,...,Xn and
ϕ(x)={10f(x;θ1)>kf(x;θ0)f(x;θ1)<kf(x;θ0) satisfying Eθ0(ϕ(x))=Pθ0(ϕ(x)=1)=α for k>0
Also, consider H0:θ=θ0 vs H1:θ=θ1
Then,
(a) ϕ(x) is MP test of level α
(b) Every level α test is size α test
(c) If ϕ′(x) is another level α MP test, then βϕ(θ0)=βϕ′(θ0) and βϕ(θ1)=βϕ′(θ1)
pf)

Corollary)
Suppose T: sufficient statistic for θ.
If g(T;θ) is pdf of T,
for H0:θ=θ0 vs H1:θ=θ1,
MP test is ϕ(x)={10g(T;θ1)>kg(T;θ0)g(T;θ1)<kg(T;θ0) satisfying Eθ0(ϕ(x))=Pθ0(ϕ(x)=1)=α for k>0
pf)

Corollary)
For H0:θ=θ0 vs H1:θ=θ1,
if ϕ(x) is size α MP test, Eθ1(ϕ(x))≥α=Eθ0(ϕ(x))
pf)

ex1) X∼b(n,θ), H0:θ=θ0 vs H1:θ=θ1(θ1>θ0)

✔︎ If ϕMP does not depend on θ1, ϕMP is a uniformly most powerful test of size α and denote ϕUMP
ex2) X1,...,Xn∼iidN(θ,1), H0:θ=0 vs H1:θ>0

ex3) X1,...,Xn∼iidN(θ,1), H0:θ=0,−1 vs H1:θ>0

✔︎ If βϕ(θ) is nondecreasing, the UMP size α test for H0:θ=θ0 vs H1:θ>θ0 becomes UMP size α test for H0:θ≤θ0 vs H1:θ>θ0
ex4) X1,...,Xn∼iidN(θ,1), H0:θ≤0 vs H1:θ>0

Def)
T has a monotone likelihood ratio(MLR) if
for every θ2>θ1, g(t;θ2)/g(t;θ1) is a monotone function on t
g(t;θ): pdf or pmf of t
ex1) T∼Exp(θ),θ2>θ1

Theorem)
For H0:θ≤θ0 vs H1:θ>θ0,
if T is sufficient statistic for θ and has nondecreasing(nonincreasing) MLR,
then T>(<)t0 is UMP size α test where α=Pθ0(T>t0)
pf)

ex1) X1,...,Xn∼iidN(θ,1), H0:θ≤0 vs H1:θ>0

ex2) X1,...,Xn∼iidN(0,θ), H0:θ≤θ0 vs H1:θ>θ0
