Skip to content

Correctly mask obs_intercept and obs_cov when data is missing#682

Merged
jessegrabowski merged 2 commits into
mainfrom
missing-data-fix
May 14, 2026
Merged

Correctly mask obs_intercept and obs_cov when data is missing#682
jessegrabowski merged 2 commits into
mainfrom
missing-data-fix

Conversation

@jessegrabowski
Copy link
Copy Markdown
Member

Currently we don't mask obs_intercept (d) when data are missing. We don't have any models with obs_intercept, but if a user made one, her log likelihood would be wrong because the observed value would be set to -d instead of 0.

Also fixes an issue with the masking of the observation covariance (H). We had W @ H, so only the rows were masked. If a user made a model with dense observation covariance, this would render the matrix non-symmetrix. The correct masking is W @ H @ W.mT

@jessegrabowski jessegrabowski merged commit c247de4 into main May 14, 2026
29 checks passed
@jessegrabowski jessegrabowski deleted the missing-data-fix branch May 14, 2026 02:48
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.

3 participants