Skip to content

Add SC H.4216 budget impact test#565

Closed
baogorek wants to merge 1 commit intomainfrom
add-sc-h4216-budget-impact-test
Closed

Add SC H.4216 budget impact test#565
baogorek wants to merge 1 commit intomainfrom
add-sc-h4216-budget-impact-test

Conversation

@baogorek
Copy link
Collaborator

Summary

  • Adds a test that validates the SC H.4216 reform budget impact against the RFA fiscal note (-$119.1M)
  • Asserts the model estimate falls within [-$130M, -$110M]
  • Uses .values to extract raw numpy arrays before computing weighted sums — MicroSeries.sum() already applies sampling weights internally, so (diff * weight).sum() would double-count them (producing -$4,938M instead of the correct ~-$111M)

Test plan

🤖 Generated with Claude Code

Validates that the SC H.4216 reform produces a budget impact in the
[-$130M, -$110M] range, consistent with the RFA fiscal note of -$119.1M.

Uses .values to extract raw numpy arrays from MicroSeries before
computing the weighted sum. MicroSeries.sum() is a weighted sum
(values * weights), so multiplying by weight then calling .sum() would
double-count the sampling weights.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@baogorek baogorek closed this Feb 27, 2026
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.

1 participant