Skip to content

Q in Kalman module is not valid discrete-time process noise covariance #150

@pavelkomarov

Description

@pavelkomarov

I'm trying to extend the Kalman module to handle irregular time steps, and I realized that, per all the math this relies on, technically if you have process noise entering in the whichever-derivative-dimension, then when you integrate the continuous time system you should have entries all over the matrix in the discrete-time Q. Discrete-time Q with only entry q in its bottom-right corner is just adding more sampling noise at measurement time. It's approximately right, because all the other entries of Q get higher powers of dt and so shrink rapidly, and the parameter space is still only the q:r ratio (#139), but the frequency plot does change. Here is with old Q:

Image

And here is with what Q should be:

Image

I'm going to double check the math and make Q the correct thing in the discrete case.

Metadata

Metadata

Assignees

Labels

researchwhen a task requires some experimentation or diving into papers and math

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions