top | item 42752202

(no title)

david_draco | 1 year ago

As far as I am aware, there is no symbolic computing tool yet for probability distributions? For example, multiplying two multivariate Gaussian PDFs together and getting the covariance matrix out. Or defining all the ingredients for a Kalman filter (prediction model and observing process) and getting the necessary formulas out (as in sympy's lambdify).

discuss

order

jampekka|1 year ago

Sympy can manipulate Gaussian distributions symbolically, but the Gaussian is more or less the only distribution that can be really symbolically manipulated.

Though I'm not sure Sympy can handle the conditional (Bayesian posterior) distribution needed for the Kalman filter.

In any case, you are better off working direcly with the mean and variance (or covariance matrix) if you want to play around with the Kalman filter with Sympy.

mitthrowaway2|1 year ago

The posterior is also a Gaussian, is it not?