About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 5 years ago
  • Total downloads: 237
  • Price: Free |
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Marcelo Perlin (6 other programs)
See full specifications

scripts default iconEstimation and Simulation of State Space (Kalman Filter) Models with Matlab (Scripts) Publisher's description

This toolbox was designed to simulate and fit linear state space models.

This toolbox was designed to simulate and fit linear state space models.

The main literature I used for this particular package is Kim and Nelson (1999).

A state space model (without non stochastic coefficients) is given by:



Where x(t) is a vector of size (1,k), beta(t), u and v(t) are vectors with size [1,k] and F, Q are matrices of size [k,k]. More details about the model can be found at the reference.

The main advantage of this package is that the fitting function lets you build your own state space model by changing the input option optionsSpec. Please check the pdf document and the example scripts at the zip file for instructions of how to use it.

Some comments about the fitting code:

• So far it doesn’t handle autoregressive processes between series of the beta matrix. In other works, at the F matrix, the only estimated coefficients are in the diagonal (all non diagonal elements are zero).

• The model is estimated by Gaussian maximum likelihood with the function fminsearch. I also played around with fminunc(), but there was no improvement over fminsearch when it comes to robustness and speed.

• So far the code doesn’t handle state space models with mixture of non stochastic and stochastic coefficients, that is, when you want some variables to have stochastic coefficients and others not in the same model.

KIM, C., J., NELSON, C., R. (1999) “State Space Model with Regime Switching: Classical and Gibbs-Sampling Approaches with Applications” The MIT press.



Function for Simulation of a State Space Model

nr - number of observations to be simulated
Coeff - Coefficients of the model (check Example_Script_1_Sim for
instructions of how to use this input)

simSpec_Out - A structure with the simulated state space series
and also the simulated regressors



Function for Estimation of a state space model by means of kalman filter

dep - dependent variable

indep - independent variable with regressor (aka independent variables)

optionsSpec - (optional, default='e'). A options structure for defining your own state space model. Please check the pdf document in the zip file for instruction of how to use. The script Example_Script_2_kalmanFit.m also shows that.

specOut - A structure with the coefficients, final log likelihood,
latent variables, among other things.

System Requirements:

MATLAB 7.2 (R2006a)
Optimization Toolbox
Statistics Toolbox
Program Release Status: New Release
Program Install Support: Install and Uninstall

Estimation and Simulation of State Space (Kalman Filter) Models with Matlab (Scripts) Tags:

Click on a tag to find related softwares

Is Estimation and Simulation of State Space (Kalman Filter) Models with Matlab (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.