Time series implementation questions

thanks, that makes a lot more sense now!

also makes sense, I get the use of scan as a more general way than vectorization to keep the computational graph compact (it’s strange that Stan never got a scan).

I think we agree on this: for the current implementation, the sampler (or optimizer or whatever) is moving in the space of the values of the time series rv, not the space of the innovations.

That means there could be an alternative implementation which distinguishes the innovations as the parameter and does a scan to compute the concrete values of the time series rv, which would be non-centered, and in principle better for effective sample size / second (with HMC at least). We also observed that the stochastic Heun method accelerates convergence despite require 2x function calls, so I was aiming for that. I think I see how to do it now with scan.

1 Like