Question: FIN 5 3 0 9 Homework 6 Solution - Fall 2 0 2 1 ( 4 0 points ) RStudio application Consider the daily gold

FIN 5309 Homework 6 Solution - Fall 2021
(40 points) RStudio application
Consider the daily gold fixing price 10:30 am (London time) in London Bullion Market in U.S. dollars per Troy ounce from January 3,1995 to Oct 31,2019. The data can be obtained from FRED using the quantmod package. Since there are some missing values, we need to remove them before analysis. Let ??ri??). See instructions below.
install.packages("quantmod")
require(quantmod)
getSymbols('GOLDAMGBD228NLBM', src='FRED')
GOLD - GOLDAMGBD228NLBM[6982:13459]
idx -c(1:nrow(GOLD))[
is.na(GOLD)]
GOLD - GOLD[-idx]
xt-log(as.numeric(GOLD))
rt-100**diff(xt)
(a) Obtain the time plots of ?? and r?(in one page, using the command par ).
(b) Compute the first 12 lags of ACF of ?? Based on the ACF, is there a unit root in ?? Why?
(c) Let r?=100**(???-???-1) be the return series of the gold prices, in percentages. Consider the r? series. Test H0:1=dots=12=0 versus Ha:i0 for some 1i12. Draw your conclusion.
(d) Use the command ar(rt,method="mle",order.max=20) to specify the order of an AR model for r?.
(e) Build an AR model for r?, including model checking. Refine the model by excluding all estimates with t-ratio less than 1.645. Write down the fitted model.
(f) Use the fitted AR model to compute 1-step to 4-step ahead forecasts of r? at the forecast origin Oct 31,2019.
FIN 5 3 0 9 Homework 6 Solution - Fall 2 0 2 1 (

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!