State Space Models in PyMC

This partly due to my priors. Try changing to:

sigma_trend = pm.InverseGamma('sigma_trend', mu=0.25, sd=.2)
sigma_mu = pm.InverseGamma('sigma_mu', mu=.8, sd=.25)

If you are using the kalman-smoothed estimate fit on data up to time T, and then using that to predict T+1, I don’t think it will lead to model over-fitting. If you are using the kalman-smoothed estimate fit on data up to time T to predict T-X, then yes, I agree it could lead to overfitting.

That is definitely a valid reason to avoid the kalman-smoothed estimate.

AR models yes, MA models require scan. See here and Brandon’s response

1 Like