JuliaStats / TimeModels.jl

Modeling time series in Julia
Other
57 stars 28 forks source link

Kalman smoother #35

Closed mschauer closed 9 years ago

mschauer commented 9 years ago

The smoother is missing a line P_pred = model.F * P[:, :, i] * model.F' + model.V in the loop.

mschauer commented 9 years ago

Also I think lines https://github.com/JuliaStats/TimeModels.jl/blob/master/src/Kalman.jl#L172 to L175 are wrong and have to be removed.

milktrader commented 9 years ago

Could you do a PR? And how did you discover this? Maybe we can put in a test?

I'll merge it if there is no objection after a week or so, unless someone else wants to merge it sooner

milktrader commented 9 years ago

@ElOceanografo wrote the Kalman code.

mschauer commented 9 years ago

I found it because I implemented it myself and wanted to check my implementation.

By now there are too many implementations, https://github.com/ElOceanografo/StateSpace.jl https://github.com/JuliaStats/TimeModels.jl https://github.com/wkearn/Kalman.jl https://github.com/setzler/JuliaEconomics/blob/master/Tutorials/tutorial_6_noglobals.jl https://github.com/QuantEcon/QuantEcon.jl/blob/master/src/kalman.jl and, well, https://gist.github.com/mschauer/3ffebdb8581f56341a9d

maybe we can do some serious coordination ;-) cc @wkearn, @setzler

milktrader commented 9 years ago

Agreed! I think JuliaStats would be a natural place for this. Whether it stays in TimeModels or gets its own package is a good discussion.

mschauer commented 9 years ago

Let's keep this issue for the mistake and move to https://github.com/JuliaStats/Roadmap.jl/issues/16

milktrader commented 9 years ago

Thanks for doing this!

GordStephen commented 9 years ago

Fixed in https://github.com/JuliaStats/TimeModels.jl/pull/38