Skip to content

Add DiD OVB sensitivity analysis and reproduction benchmarks - #835

Open
wenddymacro wants to merge 8 commits into
igerber:mainfrom
wenddymacro:codex/ovb-reproduction-benchmarks
Open

wenddymacro wants to merge 8 commits into
igerber:mainfrom
wenddymacro:codex/ovb-reproduction-benchmarks

Conversation

@wenddymacro

Copy link
Copy Markdown
Contributor

Summary

  • Add the clean-room Python DiD OVB sensitivity estimator and result objects.
  • Add R/Python parity fixtures, simulation runners, and the minimum-wage application benchmark.
  • Add the required API, README, LLM guide, tutorial, source-to-doc mapping, and changelog documentation.

Verification

  • ruff check diff_diff tests
  • black --check diff_diff tests benchmarks/python/benchmark_did_ovb_minwage.py
  • mypy diff_diff
  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 .venv/bin/pytest -q tests/test_docs_ia.py tests/test_did_ovb_sensitivity.py tests/test_did_ovb_r_parity.py tests/test_changelog_fragments.py — 138 passed.
  • R application oracle runs on the 584 treated / 1,377 control minimum-wage sample.

The application benchmark documents the numerical difference between R ranger and sklearn forests while using shared units and cross-fitting folds.

@igerber

igerber commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Thanks for this contribution, and apologies for the slow response.

Before evaluating the implementation, we put a paper review on file as the methodology reference (#904). Working through it, we'd like to hold off on merging for now:

  • The paper is a v1 preprint (16 Sep 2026) and leaves a few user-visible points open. In particular, the critical-value convention is inconsistent: Theorem 2 uses a one-sided Φ⁻¹(1-α) per endpoint, while Table 1 and the RV definitions use a two-sided interval. That choice changes every reported bound, RV, and XRV.
  • The reference package is still a development version, so parity fixtures captured now may go stale.

One item is independent of that and worth fixing whenever you pick this back up: ν²_0s is currently the control-arm plug-in mean of ω², whereas the paper's Eq. 11 is a debiased score with a treated-arm term (and a matching influence function).

We'll revisit once there is a v2, a package release, or clarification from the authors. The work isn't wasted - the review in #904 lists what an implementation needs to match.

This branch has not been deployed

No deployments
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.

2 participants