(a) Suppose that X1,…,Xn are independent identically distributed random variables, each with density f(x)=θexp(−θx),x>0 for some unknown θ>0. Use the generalised likelihood ratio to obtain a size α test of H0:θ=1 against H1:θ=1.
(b) A die is loaded so that, if pi is the probability of face i, then p1=p2=θ1, p3=p4=θ2 and p5=p6=θ3. The die is thrown n times and face i is observed xi times. Write down the likelihood function for θ=(θ1,θ2,θ3) and find the maximum likelihood estimate of θ.
Consider testing whether or not θ1=θ2=θ3 for this die. Find the generalised likelihood ratio statistic Λ and show that
2logeΛ≈T, where T=i=1∑3ei(oi−ei)2
where you should specify oi and ei in terms of x1,…,x6. Explain how to obtain an approximate size 0.05 test using the value of T. Explain what you would conclude (and why ) if T=2.03.