State Space And Kalman

Estimate a time-varying hedge ratio or beta with a Kalman filter, and know which of its three state series you are allowed to trade - the smoothed one has read the whole sample. TRIGGER - Kalman filter, Kalman smoother, RTS smoother, state space model, local level, local linear trend, time-varying beta, dynamic hedge ratio, dynamic linear model, DLM, process noise Q, observation noise R, signal-to-noise ratio; statsmodels.tsa.statespace, KalmanSmoother, MLEModel, UnobservedComponents, RecursiveLS, recursive_coefficients, smoothed_state, filtered_state, predicted_state, states.smoothed, pykalman, filterpy, simdkalman; "my Kalman beta is beautifully smooth", "how do I pick Q", "the beta path looks flat". SKIP for discrete regime labels and Markov switching (regime-detection), for the cointegrating hedge ratio and spread z-scores (stat-arb-cointegration), for GARCH conditional variance (volatility-models), and for ARIMA/ETS point forecasts (time-series-forecasting-models).

howard-lynn-ye Updated

File contents

howard-lynn-ye/fin-skills/tree/main/fin_skills/_skills/state-space-and-kalman commit bcc7e20d91

Frequently asked questions

npx skillmds@latest add howard-lynn-ye/state-space-and-kalman