Repository navigation
Conversation
…th outputs and a drift test
…, with a drift test
States and recovers the true effect path, replaces the removed
aggregate('event') and overall_att references, teaches simultaneous bands
instead of pointwise pass/fail pre-tests, and explains why Callaway-Sant'Anna
and Sun-Abraham coincide in this configuration.
…, with a drift test Corrects the time-weights explanation (fit on control units; degenerate on the last pre-period here), uses the shipped diagnostics instead of hand-rolled ones, explains which p-values are count-based, and logs the Frank-Wolfe convergence observations in TODO.md.
…ions, with a drift test Shows both plain DiDs missing the truth while the triple difference recovers it, states the staggered truth and covers it, explains the skipped-cell warning and the two overall summaries, and drops the migration notes.
…ntions, with a drift test Card-Krueger inference is clustered by restaurant (the conclusion about significance changes), the Castle doctrine TWFE vs Callaway-Sant'Anna gap is explained by the baseline period, its pre-treatment estimates are read as a warning, and the divorce panel's skipped cohort is explained. Adds the track's changelog fragment.
02: describe the never-treated and not-yet-treated comparison-group assumptions as Callaway and Sant'Anna (2021) do - what each restricts and when each is suggested - instead of asserting that neither is weaker. 03: state the placebo method's homoskedasticity-across-units assumption (Arkhangelsky et al. 2021, Section 5), especially for a single treated unit; describe the floored placebo p-value as a resolution limit; note that the pre-treatment-fit p-value ranks against only 20 placebo fits and varies with the seed. Seed the drift-test fixture accordingly. Also coalesce adjacent output chunks in the committed notebooks (no change to any output text).
Overall assessment: ✅ Looks goodNo unmitigated P0 or P1 findings identified. Executive summary
Methodology
No additional methodology findings identified within the reviewed changes. Code QualityNo findings. The added tests use public estimator APIs and check both numerical claims and committed notebook text. PerformanceNo findings. Expensive Synthetic DiD placebo tests carry the existing MaintainabilityNo findings. Removing the five convention allowlist entries appropriately prevents regression. Tech Debt
SecurityNo findings in the changed code or notebook content. Documentation/TestsNo additional findings. Static notebook checks, rendered-quote checks, Python syntax checks, and changelog validation passed. Numerical assertions and notebook re-execution remain unverified in this review environment. |
This branch has not been deployed
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
First of the per-track tutorial repair PRs that follow the tutorial conventions and guard merged in #906. It covers the Fundamentals track:
01_basic_did,02_staggered_did,03_synthetic_did,08_triple_diff,09_real_world_examples.Each notebook now opens with the question it answers and what the reader will learn, states its estimand and identifying assumptions before the first fit, checks estimates against a stated truth where the data is simulated, clusters panel fits at the unit, and is committed with executed outputs (Rust backend) and a drift test that pins the numbers its prose quotes. The five notebooks are removed from the convention guard's
KNOWN_VIOLATIONSallowlist.Corrections of substance:
aggregate("event"), which raises in 4.0, is gone; pre-treatment estimates are read with simultaneous bands instead of pointwise pass/fail; the Callaway-Sant'Anna vs Sun-Abraham "robustness check", which compared two identical numbers, is replaced by an explanation of why they coincide; the comparison-group assumptions are described as the paper states them; the bootstrap section points to the cluster jackknife for few clusters.One library observation found on the way is logged in
TODO.md(Synthetic DiD Frank-Wolfe convergence on an ordinary panel).Methodology references (required if estimator / math changes)
Validation
tests/test_t01_basic_did_drift.py,tests/test_t02_staggered_did_drift.py,tests/test_t03_synthetic_did_drift.py,tests/test_t08_triple_diff_drift.py,tests/test_t09_real_world_examples_drift.py(new);tests/test_tutorial_conventions.py(five allowlist entries removed).mainwith outputs identical to the committed ones. The drift tests pass on both backends, including the slow placebo tests.pytest --nbmakepasses for all five on the pure-Python backend, mirroring CI. The Card-Krueger and Castle doctrine pins skip when the loaders return their synthetic fallback.Security / privacy
Changelog