Home page for accesible maths 15 Deviance and the LRT

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

Solution:

  1. a
    1. i

      For the model, the likelihood function is

      L(θ|𝐗) =i=1nθXi(1-θ)
      =(1-θ)nθXi.

      The log-likelihood is then

      l(θ|𝐗)=nlog(1-θ)+Xilog(θ),

      with derivative

      l(θ|𝐗)=-n1-θ+Xiθ.

      A candidate MLE solves l(θ^)=0, giving

      θ^=Xin+Xi.

      Moreover,

      l′′(θ|𝐗)=-n(1-θ)2-Xiθ2<0,

      so this is indeed the MLE.

      For the Fisher Information,

      IE(θ) =𝔼[-l′′(θ|𝐗)|θ=θ]
      =𝔼[n(1-θ)2-Xiθ2]
      =n(1-θ)2+nθ2𝔼[X1]
      =nθtrue(1-θ)2,

      after simplification, since 𝔼[X1]=θ/(1-θ).

    2. ii

      Using the Fisher information, the asymptotic distribution of the MLE is

      θ^(𝐗)N(θtrue,IE-1(θtrue))N(θtrue,I0-1(θ^)).
  2. b
    1. i

      Using the data, the MLE is θ^=1010+10=12. The observed information is

      IO(θ^)=10(1-1/2)2+10(1/2)2=80.

      Therefore a 95% confidence interval is

      (1/2-1.9680,1/2+1.9680)=(0.281,0.719).
    2. ii

      The deviance is given by

      D(θ) =2{l(θ^)-l(θ)}
      =2{10log(1/2)+10log(1/2)-10log(1-θ)-10log(θ)}
      =20(-2log2-log(θ(1-θ))).

      To plot the deviance calculate D(0.1) and D(0.9), and note that D(0.5)=D(θ^)=0. A 95% confidence interval is obtained by drawing a horizontal line at 3.84; the interval is all θ with D(θ)3.84.

    3. iii

      To construct a confidence interval for the mean, we would use the mean function on the deviance-based confidence interval just calculated, as this is invariant to re-parametrization.