Distribution proposal/enhancement: GaussianRandomWalk for irregularly spaced observations #5433
Replies: 5 comments 2 replies
-
Bonus points to demonstrate/implement how to do posterior prediction with interpolation between observations. I think it's less trivial than a straight regression model? |
Beta Was this translation helpful? Give feedback.
-
This is a nice suggestion! If i'm slow on feedback its because im currently (more like struggling) to implement a 1d fixed step implementation. Let me push that over the line (with lots of help from Ricardo and Michael, many thanks as welll) and I'll be back here. |
Beta Was this translation helpful? Give feedback.
-
Bump. Wondered if there were any more thoughts on this idea. In particular, @ricardoV94? PS. I think my example would be better if the level of observation noise was much higher, and the sigma on the random walk was fixed and low. You'd hope to see some effects of smoothing that way. |
Beta Was this translation helpful? Give feedback.
-
Here is the original example with a https://gist.github.com/ricardoV94/4dc16748f99edcc162489352eed8fac7 |
Beta Was this translation helpful? Give feedback.
-
As far as I understand, the existing
GaussianRandomWalk
distribution implicitly assumes regularly spaced observations in time because the variance at each timestep is constant.The proposal would be to either create a new distribution for irregularly spaced observations or to generalise the implementation of the current distribution.
At this point I am not familiar enough with the backend to implement this, but the basic approach would be to:
So it would still be a cumulative sum of normals, but as far as I can work out, the mu and std would be multiplied by the time delta between observations.
Quick bit of code to illustrate...
Which seems to work pretty well.
Beta Was this translation helpful? Give feedback.
All reactions