Skip to content

Fix Kalman volatility date alignment - #1116

Open
bennibyx wants to merge 1 commit into
QuantEcon:mainfrom
bennibyx:fix-1108-kalman-volatility-alignment
Open

bennibyx wants to merge 1 commit into
QuantEcon:mainfrom
bennibyx:fix-1108-kalman-volatility-alignment

Conversation

@bennibyx

@bennibyx bennibyx commented Nov 9, 2026

Copy link
Copy Markdown

Summary

  • Fixes the off-by-one volatility alignment in kalman_forward.
  • Uses h[1:] when constructing the observation covariance matrices so that each observation is paired with its corresponding volatility date.

Validation

  • Ran a focused numerical check using synthetic data with deliberately different volatility values at dates 0 and 1.
  • Verified filtered means, filtered covariances, and predicted covariances.
  • git diff --check passed.

Fixes #1108

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

phillips_drifts_volatilities: kalman_forward pairs each observation with the previous date's volatility

1 participant