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 M5- 2007 M11 as estimation sample (training), and 2007 M12- 2008 M4 as prediction sample (test), and include a 95% confidence interval
Answered Same DayMar 05, 2021

Answer To: Problem 2Download different treasury yields (shorter and langer than 5 year term) and analyze their...

Aditya Kumar answered on Mar 07 2021
130 Votes
R Notebook
R Notebook
Loading Packages
require(lubridate)
## Loading required package: lubridate
##
## Attaching package: 'lub
ridate'
## The following object is masked from 'package:base':
##
## date
require(tseries)
## Loading required package: tseries
## Registered S3 method overwritten by 'quantmod':
## method from
## as.zoo.data.frame zoo
require(forecast)
## Loading required package: forecast
## Warning: package 'forecast' was built under R version 3.6.3
require(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)
rownames(GS1) = GS1$DATE
GS1$DATE = NULL
rownames(GS10) = GS10$DATE
GS10$DATE = NULL
Checking Auto - Correlations 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