Questions tagged [kalman-filter]

The Kalman filter is an algorithm for estimating the mean vector and variance-covariance matrix of the unknown state in a state space model.

340 questions
Filter by
Sorted by
Tagged with
4k views

Unscented Kalman filter-negative covariance matrix

I have recently started working on the unscented Kalman filter. I coded the numerically stable version (i.e., square root Kalman filter) and used MATLAB for implementing. In the final update step, ...
363 views

Confusion related to Kalman filters density view

I was reading this book related to Kalman filters and I didn't understand a couple of things. I have also attached the screenshot of the pages from the book where I had confusion. The book is Shumway,...
187 views

Pointers for understanding the derivation of inference in linear dynamic systems

I am trying to learn about the inference and maximization basically EM of the linear dynamic systems(Kalman filters for example) from Bishop's book of Pattern Recognition and Machine Learning. However,...
760 views

Confusion related to linear dynamic systems

I was reading this book Pattern Recognition and Machine Learning by Bishop. I had a confusion related to a derivation of the linear dynamical system. In LDS we assume the latent variables to be ...
621 views

Role of kalman filter prior, the 'right' prior?

We can solve the Riccati equation and get the steady state priors for a Kalman filter. So why are people still allowed to have any prior they want? They can solve Riccati equation ex-ante and use ...
1k views

Where to start: Unevenly spaced time series, with lots of outliers or randomness

I don't really know what's possible, and would like a pointer in the right direction. I have measurements of time and position which could be anything from a person walking, a vehicle on a road, or ...
938 views

Kalman filter update returns an invalid covariance matrix?

I am trying to work through a simple introduction to the Kalman Filter but I am hitting a brick wall. I want to track the position and velocity of a target but only measure (noisily) the position. My ...
3k views

Kalman filter consistency checks and debugging

I understand the basic principles involved in Kalman filtering and I have spend some time implementing several algorithms in Matlab. The problem I'm facing now is to check if the algorithm and my code ...
163 views

Are matrix decomposition based Kalman filter algorithms faster or more robust?

I have been using linear Kalman Filters for several different applications. I wrote the implementation from scratch and it follows Welch & Bishop verbatim in the simplest way. I have also heard ...
5k views

When will a Kalman filter give better results than a simple moving average?

I recently implemented a Kalman filter on the simple example of measuring a particles position with a random velocity and acceleration. I found that Kalman filter worked well, but I then asked myself ...
442 views

Combining a linear Kalman Filter with additional linear constraints?

This question contains a relatively long prelude, since I want to explain as clearly as possible the motivation for the question. It may well be the case that I am asking the wrong question (i.e. ...
747 views

Minimal state vector for a Kalman filter

I'm trying to work my way through a text on robotics and specifically trying to make sense of Kalman filters. I've used them before but I'd like to be able to understand and make my own for new ...
190 views

Filter out information in Kalman Filter

I have a disagreement with friend over if an observable that depend on lagged observable, should be called a state variable. I have the following system: ...
1k views

How to model a biased coin with time varying bias?

Models of biased coins typically have one parameter $\theta = P(\text{Head} | \theta)$. One way to estimate $\theta$ from a series of draws is to use a beta prior and compute posterior distribution ...
1k views

Tracking and data association with Kalman filters

I am trying to solve tracking problem. At certain points in time I receive object location and I should make decision whether received object location belongs to existing track or not. If not, I ...
287 views

Learning a mapping from one time series to another with a Kalman Filter

I am interested in finding the relation between two (possibly multi dimensional) time series $x_{1:T}$ and $y_{1:T}$. I wonder how I can do that with a linear dynamical system/Kalman filter. My ...
399 views

Assumption of Gaussian distribution of acceleration

I have a data set consisting of noisy position values of a trajectory of a human hand. I want to estimate a generative model of these trajectories, and the obvious choice is a Kalman Filter/linear ...
3k views

Introductory book for multivariate statistics

I am looking for an introductory book that helps building some skills in working with multivariate distributions. For example, I want to be able to work with multivariate normal easily, something ...
2k views

Introduction to Kalman filters

What are good introductory books on Kalman filters? I like lots of examples and practical techniques, and less theory.
2k views

Estimating State Space Model in R with MARSS package and shared parameters between Q and R [closed]

I am trying to estimate the following unobserved components model using the MARSS package $y_t = \mu_t + \varepsilon_t$ $\mu_t = \mu_{t-1} + \beta_{t-1}$ $\beta_t = \beta_{t-1} + \zeta_{t}$ with ...
2k views

Which R package can estimate parameters in my Kalman Filter

I am using Kalman Filter to estimate my state variables for a time series data. But all my parameters in KF are unknown. ...
287 views

Predicting outlier series in Kalman filter

I have built a Kalman Filter model for flu forecasting as shown below. Y - Target Variable X1 - Predictor1 X2 - Predictor2 While forecasting into the future, I will NOT have data for all three ...
1k views

What's the difference between dlmSmooth and dlmFilter in R's dlm package?

Could someone please explain what the difference is between the two, and perhaps avoid the worst statistical jargon? I am currently using the dlm package to model ...
675 views

Kalman smoothing of returns vs. prices with dlmSmooth in R's dlm package?

So I am using the R code behind Fig. 3.14 in Dynamic Linear Models With R (p. 124-5) to make a dynamic version of a simple pair trading model: $$Y = \alpha + \beta X.$$ If I use log returns (<...
197 views

Problem with zero epsilon value for Kalman filter

I am coding a Kalman filter in R and I am trying to estimate the parameters dV and dW using the methods as provided in Vignette section2. However I get Epsilon=0 (which is dV for Kalman filter) for my ...
927 views

Error while using dlmModReg

I have started coding a Kalman filter in R. I am using dlmModreg to build an object of class dlm, which I am planning to use as my input to dlmFilter. But, I am stuck in the dlmModreg step itself. I ...
9k views

What is the difference between Kalman filter and moving average?

I am computing a very simple Kalman filter (random walk + noise model). I find that the output of the filter is very similar to a moving average. Is there an equivalence between the two? If not, ...
2k views

Maximum likelihood estimation procedures for state-space linear models

State-space models are represented by a state equation and an observation equation (or system of equations to be more precise). These equations are parametarized by components including a transition ...
3k views

Kalman filter vs. smoothing splines

Q: For which data is it appropriate to use state-space modeling and Kalman filtering instead of smoothing splines and vice versa? Is there some equivalence relationship between the two? I'm trying ...
379 views

Density of multivariate normal given linear condition

Given a variable $X \sim N(\mu, \Sigma)$ What is the density of $X$ given $HX = d$, $H$ and $d$ both constant I.e. we observe $X$ with rank-deficient linear operator $H$ and obtain some value $d$. ...
6k views

How to estimate parameters for a Kalman filter

In a previous question, I inquired about fitting distributions to some non-Gaussian empirical data. It was suggested to me offline, that I might try the assumption that the data is Gaussian and fit a ...
192 views

437 views

Likelihood function of DSGE model using Kalman filter

In Frank Schorfheide's class notes on likelihood functions of DSGE models, he expresses the value of the likelihood function for a given vector of parameters $\theta$, and time series $Y^T$ as: p(Y^...
2k views

What is the Unscented Kalman Filter?

What is the Unscented Kalman Filter and when is it used in preference to other types of filters? edit: I find the Wikipedia explanation a bit too technical to be readily understood.
2k views

Rewriting AR model in State-Space form

How can I rewrite an AR(p) model in state-space form? Max(p)=5 and I want to use Kalman Predictor.