MAST20005/MAST90058: Assignment 1
MAST20005/MAST90058: Assignment 1
Instructions: Questions labelled with ‘(R)’ require use of R. Please provide appropriate R
commands and their output, along with sufficient explanation and interpretation of the output
to demonstrate your understanding. Such R output should be presented in an integrated
form together with your explanations; do not attach them as separate sheets. All
other questions should be completed without reference to any R commands or output, except for
looking up quantiles of distributions where necessary. Make sure you give enough explanation
so your tutor can follow your reasoning if you happen to make a mistake. Please also try to
be as succinct as possible. Each assignment will include marks for good presentation and for
attempting all problems.
Problems:
1. (R) Let X be a random variable representing distance travelled (in kilometers) until a
tire is worn out. The following are 16 observations of X:
(a) Give basic summary statistics for these data and produce a box plot. Briefly com-
ment on center, spread and shape of the distribution.
(b) Assuming a normal distribution, compute maximum likelihood estimates for the
parameters.
(c) Draw a density histogram and superimpose a pdf for a normal distribution using the
estimated parameters.
(d) Draw a QQ plot to compare the data against the fitted normal distribution. Include
a reference line. Comment on the fit of the model to the data.
x 1 2 3
p(x) θ2 2θ(1 − θ) (1 − θ)2
1, 1, 2, 3, 1, 2, 1, 3, 2, 2, 2, 1, 3, 1, 3, 1, 1, 2, 1, 2.
1
3. Let X ∼ Unif(0, θ), a uniform distribution with an unknown endpoint θ.
(a) Suppose we have a single observation on X.
i. Find the method of moments estimator (MME) for θ and derive its mean and
variance.
ii. Find the maximum likelihood estimator (MLE) for θ and derive its mean and
variance. 2
(b) The mean square error (MSE) of an estimator is defined as MSE(θ̂) = E θ̂ − θ .
(a) Show that the MLE of µ and λ are µ̂ = n1 ni=1 ln Xi and λ̂ = n1 ni=1 (ln Xi − µ̂)2 .
P P