Path: blob/master/notebooks/book2/08/discretized_ssm_student.ipynb
1193 views
Inference in a discretized 1d SSM
This script implements algorithms and examples for inference in a state space model with a real-valued scalar hidden state and a real-valued scalar observation. The basic method is based on discretization and the HMM smoother; a novel method is also derived based on KDE for the case where the likelihood cannot be evaluated pointwise. For details see this paper.
"Computation and visualization of posterior densities in scalar nonlinear and non-Gaussian Bayesian filtering and smoothing problems", Michael Roth and Fredrik Gustafsson Reference: https://liu.diva-portal.org/smash/get/diva2:1173608/FULLTEXT02.pdf Part of: 2017 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING (ICASSP), 2017, pp. 4686-4690. ISBN: 978-1-5090- 4117-6 Book Series: International Conference on Acoustics Speech and Signal Processing ICASSP, 1520-6149.
Original matlab code: http://users.isy.liu.se/en/rt/roth/rothICASSP2017.zip
Converted to JAX by benlau6 https://github.com/probml/pyprobml/pull/700
Setup
Data generator
We assume the model is where is the system noise and is the observation noise.
Inference
Plotting
Linear Gaussian dynamics, Student-t observations
This is from Section 5.2 of the Roth paper.