Math330 Exercises Week 2
-
WS2.1
Let be an IID sample from the Beta distribution with density
-
(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 ?
-
(a)
-
WS2.2
A random variable, , which follows a Geometric distribution with parameter , has probability mass function
for and . Suppose are IID random variables with the same distribution as . For
-
(a)
find the maximum likelihood estimator, , of ;
-
(b)
show that the expected information on is . Hence, or otherwise, find the asymptotic variance of ;
-
(c)
find the maximum likelihood estimator of . Show that the asymptotic standard error of this estimator is
-
(a)
-
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 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. Given that and , find the MLEs of and . Hence give the MLE of .
-
WS2.4
Is the likelihood ratio test the unique most powerful test for comparing two simple hypotheses
against
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 theread.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.
-
(a)
Explore the data: produce appropriate graphical summaries to describe the relationship between and . (You need to submit (readable) plot(s) to get full marks) (2 marks)
-
(b)
Suppose that we decide to model the s as independent, but not identical, Poisson distributed random variables, i.e.
where .
Explain why this is a reasonable model. (1 marks)
-
(c)
Derive an expression for the log-likelihood for . (2 marks)
-
(d)
Write a function that finds the log likelihood and plot this function. (Submit a plot to get full marks) (2 marks)
-
(e)
Find the MLE of . (1 mark)
-
(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)
-
(a)