Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Problem 2Download different treasury yields (shorter and langer than 5 year term) and analyze their autocorrelations. In addition, for the growth rate of the 1 year constant treasury maturity yield...

1 answer below »
Problem 2Download different treasury yields (shorter and langer than 5 year term) and analyze their autocorrelations. In addition, for the growth rate of the 1 year constant treasury maturity yield (GS1),choose an appropriate MA(q) model. Construct 1 to 5 step ahead forecast using 1953 M XXXXXXXXXXM11 as estimation sample (training), and 2007 M XXXXXXXXXXM4 as prediction sample (test), and include a 95% confidence interval
Answered Same Day Mar 05, 2021

Solution

Aditya Kumar answered on Mar 07 2021
143 Votes
R Notebook
R Notebook
Loading Packages
equire(lu
idate)
## Loading required package: lu
idate
##
## Attaching package: 'lu
idate'
## The following object is masked from 'package:base':
##
## date
equire(tseries)
## Loading required package: tseries
## Registered S3 method overwritten by 'quantmod':
## method from
## as.zoo.data.frame zoo
equire(forecast)
## Loading required package: forecast
## Warning: package 'forecast' was built under R version 3.6.3
equire(FitAR)
## Loading required package: FitAR
## Warning: package 'FitAR' was built under R version 3.6.3
## Loading required package: lattice
## Loading required package: leaps
## Warning: package 'leaps' was built under R version 3.6.3
## Loading required package: ltsa
## Loading required package: bestglm
## Warning: package 'bestglm' was built under R version 3.6.3
##
## Attaching package: 'FitAR'
## The following object is masked from 'package:forecast':
##
## BoxCox
Importing Data
GS1 = read.csv("GS1.csv", header = TRUE)
GS10 = read.csv("GS10.csv", header = TRUE)
Converting Imported Data to Time - Series Data
GS1$DATE = as_date(GS1$DATE)
GS10$DATE = as_date(GS10$DATE)
ownames(GS1) = GS1$DATE
GS1$DATE = NULL
ownames(GS10) = GS10$DATE
GS10$DATE = NULL
Checking Auto - Co
elations and...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here