Math330 Exercises Week 2

  • WS2.1

    Let X1,,Xn be an IID sample from the Beta(α,1) distribution with density

    f(x|α)={αxα-1 when 0x10otherwise.
    • (a)

      Write down the likelihood and log-likelihood for the problem of estimating α.

    • (b)

      Calculate the MLE, α^ and its asymptotic distribution.

    • (c)

      What is the asymptotic distribution of logα^?


  • WS2.2

    A random variable, R, which follows a Geometric distribution with parameter θ(0θ1), has probability mass function

    f(r;θ)=θr(1-θ)

    for r=0,1,2, and E(R)=θ/(1-θ). Suppose R1,,Rn are IID random variables with the same distribution as R. For R1,,Rn

    • (a)

      find the maximum likelihood estimator, θ^, of θ;

    • (b)

      show that the expected information on θ is n/[θ(1-θ)2]. Hence, or otherwise, find the asymptotic variance of θ^;

    • (c)

      find the maximum likelihood estimator of Pr(R5). Show that the asymptotic standard error of this estimator is 5θ4.5(1-θ)/n.


  • WS2.3

    This question will be relevant to the online quiz on Moodle

    The Health Survey for England (HSE) in 2009 contains 3395 valid BMI measurements on adults. A sub-sample of 100 of these is in the data file bmi2009.csv (you will need this for the quiz, but not for this workshop).

    Recall that BMI>30 means ‘obese’. 26 of the 100 sampled people are thus classed as obese. Suppose the true population proportion θ, of obese persons, is of interest. Construct an appropriate likelihood function for θ, calculate the MLE, its variance, and a 95% confidence interval for θ based on the asymptotic distribution of the MLE.

    It is also of interest to model actual BMI values as Normal(μ,σ2). Given that i=1nxi=2719.253 and i=1nxi2=76629.74, find the MLEs of μ and σ2. Hence give the MLE of ϕ=μσ.

  • WS2.4

    Is the likelihood ratio test the unique most powerful test for comparing two simple hypotheses

    H0:θ0=a

    against

    H1:θ0=b.

    Discuss. State on which set another most powerful test can differ from the likelihood ratio test if the most powerful test is not unique.

  • CW2.4

    For this question you will need to download the data cloth.rda and read it into R. Recall this is done using the read.table function.

    Description
    
    The data comprise lengths of cloth samples
    and the numbers of flaws found in them.
    35 observations on 2 variables:
    
    x    The length of the roll of cloth.
    y    The number of flaws found in the roll.
    
    1. (a)

      Explore the data: produce appropriate graphical summaries to describe the relationship between x and y. (You need to submit (readable) plot(s) to get full marks) (2 marks)

    2. (b)

      Suppose that we decide to model the Yis as independent, but not identical, Poisson distributed random variables, i.e.

      Yixi,λPois(xiλ)

      where i=1,32.

      Explain why this is a reasonable model. (1 marks)

    3. (c)

      Derive an expression for the log-likelihood for λ. (2 marks)

    4. (d)

      Write a function that finds the log likelihood and plot this function. (Submit a plot to get full marks) (2 marks)

    5. (e)

      Find the MLE of λ. (1 mark)

    6. (f)

      Find a deviance based 95 % CI for λ (you could do this numerically using uniroot, or use R to plot the deviance and do by eye). (2 marks)