test(callaway): machine-precision golden tolerances — SE-audit C6 closure#658
Merged
Conversation
…sure The no-covariate DR golden asserted ATT only, within 0.02, and never asserted the SE; measured agreement with R did on the fixture is ~6e-11 ATT / ~2e-11 relative SE (no-covariate DR is deterministic algebra — no propensity IRLS enters), so both are pinned at 1e-8 with the previously-missing SE assertion added. The reg (0.02) and ipw (0.05) ATT bands — predating the DRDID estimation-effect IF terms — tighten to 1e-8 on measured ~3e-11/~4e-11. The covariate-DR scenario keeps its documented 2e-3 band (~1e-3 DR small-sample numerics via the propensity nuisance). TODO SE-audit row updated: C6 closed; C7/C8 definitions need re-derivation from a fresh loose-tolerance inventory. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Overall Assessment ✅ Looks good — no unmitigated P0/P1 findings. Executive Summary
Methodology
Code Quality
Performance
Maintainability
Tech Debt
Security
Documentation/Tests
|
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.
Summary
didat ~6e-11 ATT / ~2e-11 relative SE (no-covariate DR is deterministic algebra — no propensity IRLS enters), yet the test asserted ATT only, within 0.02, and never asserted the SE. Both are now pinned at 1e-8 with the SE assertion added.Methodology references (required if estimator / math changes)
did2.5.1 (benchmarks/data/csdid_golden_values.json, unchanged)Validation
tests/test_csdid_ported.py(3 golden tests tightened; 1 new SE assertion). Full file passes (72).Security / privacy
Generated with Claude Code