Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The data set linked below contains a time series generated from the following univariate dynamic linear model: y t = F t t + v

The data set linked below contains a time series generated from the following univariate dynamic linear
model:
yt=Ftt+vt
t=Gtt-1+wt
where
Ft=1.2
Gt=0.8
0N(0,02=25)
vtN(0,v2=9)
wtN(0,w2=4)
a. Apply a Kalman filter to this data to make one-step ahead predictions of t given y1:(t-1). Create a
times-series plot containing the observations yt and one-step ahead predictions of t. Include a 95%
confidence band around your t predictions. Report the numerical values found for a40 and R40.
Here is the data:
df=structure(list(yt = c(4.775114157,6.094965658,2.054150731, 5.029304107,7.208172081,-3.908933262,5.08879584,-1.14161645, 2.872719715,7.006694276, NA,-4.063644149,0.690397699,-4.057012627, -3.158702097,-7.666647236,-3.629952752,0.223249677,0.871667252, -5.297199802,0.773616301,9.30143461, NA, NA, NA, NA, NA,-1.392325651, -1.139686324,-0.614167816,-6.790519245,-1.484028604,-0.782412553, 4.189780704,5.671506803,5.001537563,6.090001064,5.61670967, 6.988118491,-2.816103618,-4.733746488,-3.562144952,1.934662513, 4.050734641,2.401936769,-4.573637599,-6.793321296,3.009706686, -1.357926176,1.357093617,7.897002401,0.926244362,-6.135790731, -8.429459914,-9.627914759,-8.254841632,-8.023314705,-8.045145516, -8.69992485,-3.174832993,-2.638945385,-4.083487911,1.189584726, NA,-0.24675,-3.66991685,0.238810648,-0.258878453,6.013557818, 0.750807825,7.440970001,2.677808002,4.680658862,3.490279481, 2.118235201,-0.116317841,9.372043928,2.638159801,1.495362941, NA,-3.203131784,1.359388777,-5.135485155,-2.269723044,-4.148135687, -7.516736773,-2.771367807,-2.133860794,0.119136303,-2.457359522, -2.834472268,0.57665347,-0.336411705,3.845469155,-0.329544257, -4.58862382,0.132723059,-1.222440657,6.279975203,3.462652491 ), time = c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, 16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31, 32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47, 48,49,50,51,52,53,54,55,56,57,58,59,60,61

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions

Question

=+ (b) If F is continuous, then E[F(X)) =;.

Answered: 1 week ago

Question

differentiate the function ( x + 1 ) / ( x ^ 3 + x - 6 )

Answered: 1 week ago

Question

define what is meant by the term human resource management

Answered: 1 week ago