Repository navigation
Conversation
This was referenced Nov 23, 2026
bashtage
force-pushed
the
wip-varmax-summary-measurement-error
branch
2 times, most recently
from
November 25, 2026 12:13
568c42f to
2b4e64c
Compare
The summary of a VARMAX model with measurement_error=True puts the measurement variance of each equation in the table "Results for equation <name>". The index of the parameter counted from the end of the parameter vector in reverse order, so for k_endog >= 2 each table showed the variance of another equation: with measurement variances 0.11 (y1) and 0.22 (y2), the table of y1 showed 0.22 and the table of y2 showed 0.11. With three series, the tables of the first and the last equation were swapped. Changes - The table of equation i shows measurement_variance.<name of i>, the parameter at k_params - k_endog + i (the measurement variances are the last k_endog parameters, in the order of the equations). Not changed - The parameters, the likelihood and every other row of the summary. The row is still labelled measurement_variance, and the "Other parameters" table is unchanged (the same parameters are shown in the equation tables). Tests - For two and three series with different measurement variances (exact at the four decimals of the table), each equation table shows measurement_variance.<name> from params. Fails on main for both. - TestVAR_measurement_error.test_summary compared each table with the parameter at the reversed index; its measurement variances are all zero, so it passed either way. It uses the index of the equation now.
bashtage
force-pushed
the
wip-varmax-summary-measurement-error
branch
from
November 28, 2026 22:06
2b4e64c to
68a7deb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#11083, which this PR was stacked on, is merged. No conflict with #10940 or the other C12 follow-up PRs.
BUG: Show each measurement variance in its own equation table of VARMAX
The summary of a VARMAX model with measurement_error=True puts the
measurement variance of each equation in the table "Results for equation
". The index of the parameter counted from the end of the parameter
vector in reverse order, so for k_endog >= 2 each table showed the variance
of another equation: with measurement variances 0.11 (y1) and 0.22 (y2),
the table of y1 showed 0.22 and the table of y2 showed 0.11. With three
series, the tables of the first and the last equation were swapped.
Changes
parameter at k_params - k_endog + i (the measurement variances are the
last k_endog parameters, in the order of the equations).
Not changed
row is still labelled measurement_variance, and the "Other parameters"
table is unchanged (the same parameters are shown in the equation
tables).
Tests
For two and three series with different measurement variances (exact at
the four decimals of the table), each equation table shows
measurement_variance. from params. Fails on main for both.
TestVAR_measurement_error.test_summary compared each table with the
parameter at the reversed index; its measurement variances are all zero,
so it passed either way. It uses the index of the equation now.
tests added / passed.
code/documentation is well formatted.
properly formatted commit message. See
NumPy's guide.
AI Disclosure
Contributions must comply with the statsmodels AI Policy.
Tick exactly one of the following. If AI tools were used, replace the
<...>placeholders in the second option with the tool name(s) and how the tool's output was
used.
Tool(s): Claude Code (Claude Opus 5.5).
Used for: finding the bug in a coverage audit of the state space models, writing the fix and its tests, and checking them (tests failing on main, mutation check).
I have personally read, understood, and can explain every line of this diff, and
have verified the statistical/numerical correctness of the change.
🤖 Generated with Claude Code