Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary A quick practical guide: estimating Kalman Filter with MATLAB code

Rating
-
Sold
-
Pages
7
Uploaded on
09-05-2022
Written in
2022/2023

This document presents a brief and accurate guide on how to estimate state space models using the Kalman filter. It is very didactic about all the steps and also presents an extra on the estimation of maximum likelihood. Including a MATLAB code for your free use. The reader will perfectly understand how the algorithm and the estimation works in around 30 minutes.

Show more Read less
Institution
Course

Content preview

A quick guide to Kalman filter and smoothing
using MATLAB




Author:
Manuel Escobar

, Economics Department University of Chile


I What to expect of this guide?

After carefully reviewing this document you will have a pretty good idea of how to estimate an unobservable
variable in a state-space model. On this purpose a MATLAB code is provided to filter and smooth a generalised
model.
This guide requires basic knowledge of matrix algebra, time series models, and MATLAB programming. In case
you do not have them, do not hesitate to consult my other simplified notes.


II The state space representation

We define a state space model as a set of equations of the form:

yt = Ht zt + Gxt + vt vt ∼ N (0, R) (1)

zt = Bzt−1 + F xt−1 + wt wt ∼ N (0, Q) (2)
Where yt is a vector of observable variables that can be explained by a vector of unobservable variables (zt )
and exogenous variables (xt ). This relationship exhibited in (1). As for the vector of unobservables, we assume
that we know its change over time (2) as a function of itself lagged one period and exogenous variables. Each
of the equations has a perturbation vector with mean 0 and fixed variance. Example 1 provides an illustration
of how to set up the state space representation.
Example 1: State-Space Representation
To exemplify the state space representation, let us consider a model to estimate the potential gross domestic
product and the neutral interest rate of the form:

y˜t = α1 yt−1 ˜ + εyt
˜ + β1 rt−1
πt = ˜ + επt
γ1 πt−1 + ψ1 yt−1
rt∗ = cgt + zt
(3)
yt∗ = ∗
yt−1 + gt−1 + wt2
gt = gt−1 + wt3
zt = ζ1 zt−1 + wt1

Where y˜t is the output gap which is equal to yt − yt∗ with yt∗ being the logarithm of potential output. Thus,
r˜t = (rt − rt∗ ) with rt∗ the neutral interest rate.


The observables in this model are yt , rt and πt , in order: the logarithm of the gross domestic product, the
monetary policy interest rate and the inflation rate, all in quarterly frequency. The rest of the equations define
the movement of the unobservables and their perturbations.


The unobservables of this model are yt∗ , rt∗ and gt , in order: the logarithm of the potential domestic product,
the neutral interest rate and the growth of the potential product.


The perturbations of this model come from εy , επ , wt1 , wt2 and wt3 .




Página 1 de 6

Connected book

Written for

Institution
Course

Document information

Summarized whole book?
No
Which chapters are summarized?
13
Uploaded on
May 9, 2022
Number of pages
7
Written in
2022/2023
Type
SUMMARY

Subjects

$8.98
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
manuelescobarpacheco

Get to know the seller

Seller avatar
manuelescobarpacheco Universidad de Chile
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions