MATH454/554: Project I

TO BE HANDED IN BY MONDAY 27/11/2017 (WEEK 8), 10:00.

This project will contribute 16% towards the final mark.

Submission: Upload the pdf of your answer and your R code file to the Moodle site. Your R code should be as .r or .txt file so that it can be copied and pasted to run. Submit also a printed copy of your report (no need for a printed copy of the R code), together with a plagiarism cover sheet, to the MSc submissions pigeon hole. Please write your student ID on your answers, not your name.

An AR(1) time series model satisfies Y0=0 and for t=1,2,,

Yt=αYt-1+ϵt,

where {ϵt}’s are independent and identically distributed according to N(0,σ2).

Suppose that we observe data y0=0,y1,,yn from the AR(1) process.

  1. 1.

    Write down the log-likelihood function for 𝜽=(α,σ2) given 𝐲=(y0,y1,,yn), (𝜽;𝐲). [2]

  2. 2.

    Derive the maximum likelihood estimates of α and σ2 given (y0,y1,,yn). [3]
    Hint: Compute α^ first and then insert α^ into the computation of σ2^.

Suppose that observation yk is missing for some 1k<n.

  1. 3.

    Show that the conditional distribution of yk given 𝐲-k (the vector 𝐲 excluding yk), α and σ2 is [2]

    yk|yk-1,yk+1,α,σ2N(α(yk-1+yk+1)α2+1,σ2α2+1).

    Hint: If X is a random variable with pdf fX(x)exp(-(x2-2μx)/(2ϕ2)) then XN(μ,ϕ2).

  2. 4.

    Write down Q(𝜽,𝜽)=𝔼θ[(𝜽;𝐲-k,Yk)|𝐲-k] and identify the moments of yk which are required to compute Q(𝜽,𝜽). [2]

  3. 5.

    Write an R routine to compute the MLE’s of 𝜽 given 𝐲-k. [5]

  4. 6.

    Apply your routine to ardata.txt, where observation 15 is missing. (Note that observation 15 is set equal to 0 in the data file.) Report the MLE’s of α and σ2. [2]