Incorrect inference of hidden states in state space models

Thanks a lot! The links you shared are very useful.