Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions PLAN.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Experiment plan

The paper's claim structure: (1) survey imputation in common practice is
weight-blind in ways that distort population statistics; (2) populace-fit's
weight-blind in ways that distort population statistics; (2) microcosm-fit's
estimator — a regime-gated, sequentially-chained, weighted-bootstrap
quantile-regression forest — addresses this by construction; (3) each of its
three design choices earns its place empirically, against standard methods and
Expand Down Expand Up @@ -71,7 +71,7 @@ table, not drift.
wealth, jointly). `scf_sample_reference` — the donor split scored as a
candidate — anchors the sampling-noise floor. Two profiles: **minimal**
(6 shared predictors, 2 targets, ASEC 2025 receiver — the controlled
instantiation) and **populace-scale** (10 shared predictors incl. edcl/
instantiation) and **production-scale** (10 shared predictors incl. edcl/
race/housecl/lf, pooled ASEC 2023–2025 receiver mirroring the production
spine, 4 chain-ordered targets with the exact balance-sheet identity
networth = fin + nfin − debt). The scale profile tests whether the joint
Expand All @@ -93,7 +93,7 @@ table, not drift.
weights: transfer beyond economic microdata.

Full multi-view synthesis (CPS+SIPP+PSID candidates scored on all views at
once) is the populace release-gate use case and future work; PSID requires
once) is the microcosm release-gate use case and future work; PSID requires
registered access and is out of scope here.

## Protocol
Expand Down Expand Up @@ -138,7 +138,7 @@ weighted classifier two-sample AUC, and closed-form reweight fragility
- Adapters, metrics, views, task registry, `imp sweep`/`imp harness`:
implemented with tests.
- Remaining: data loaders finalize → full runs → results/discussion prose →
PyPI publication of populace-frame/populace-fit + standalone quickstart.
PyPI publication of microcosm-frame/microcosm-fit + standalone quickstart.

## Relationship to prior work in this org

Expand Down
46 changes: 40 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# imputation-paper

Paper and experiment workspace for populace's weight-aware imputation
Paper and experiment workspace for Microcosm's weight-aware imputation
approach: the regime-gated, sequentially-chained, weighted-bootstrap
quantile-regression forest in
[`populace-fit`](https://github.com/PolicyEngine/populace/tree/main/packages/populace-fit),
[`microcosm-fit`](https://github.com/PolicyEngine/microcosm/tree/main/packages/microcosm-fit),
benchmarked against standard survey-imputation methods (plain QRF, OLS,
quantile regression, hot-deck statistical matching) with ablations attributing
the gains to each design choice.
the gains to each design choice. (Microcosm was first released under the name
Populace; the reported sweeps pin a pre-rename commit, so the experiment code
and its pinned dependencies keep the legacy `populace` spellings.)

Sibling of [l0-paper](https://github.com/PolicyEngine/l0-paper) (which covers
record selection and weighting; this paper covers filling records in) and the
Expand All @@ -23,9 +25,41 @@ uv run imp figures runs/toy-sweep # aggregates to summary.csv / summary.tex
quarto render paper/index.qmd # builds the manuscript
```

### SCF 2025 replication

The paper's SCF experiments run on the 2022 wave. The 2025 wave (released
2026-10-09) is a replication on data no method was tuned on; the rules were
committed first, in `docs/scf-2025-replication-criteria.md`.

```bash
uv sync --extra methods
export OMP_NUM_THREADS=1 # one OpenMP thread per run; see note below
uv run imp sweep --task scf_wealth --scf-year 2025 --out runs/scf-wealth-2025
uv run imp harness --profile minimal --scf-year 2025 # runs/scf-to-cps-harness-2025
uv run imp harness --profile populace-scale --scf-year 2025 # runs/scf-to-cps-harness-scale-2025
uv run imp scf-checks # weights, balance-sheet identity, Fed Table 2, both waves
uv run imp hotdeck-reuse # aggregate donor reuse behind hot deck's 2025 tail
uv run imp pinball-weighting # pinball loss as coded vs with weighted imputed quantiles
uv run imp replication # docs/scf-2025-replication/comparison.md + appendix inputs
uv run imp tables # also writes the *_2025.tex tables
```

Diagnostic arms: `--scf-year 2022` into `*-2022-rerun` (does today's
environment reproduce the committed runs?) and `--scf-year 2022
--scf-dollar-year 2025` into `*-2022-in-2025-dollars` (the change of dollar
basis alone). The Fed replaced `scfp2022s.zip` on 2026-10-09 with a copy in
2025 dollars; the loader identifies each extract by SHA-256 and returns the
survey year's dollars by default, so the paper's 2022 inputs are unchanged
whichever copy is cached. With the default OpenMP thread count (one per
core), several runs side by side oversubscribe the CPU; on a loaded machine
cells ran many times slower. With one thread per run the 2022
rerun reproduces the committed runs (see the comparison document's
diagnostics).

The real method surface installs with the `methods` extra
(`uv sync --extra methods`), which pulls populace-fit/populace-frame (git),
microimpute (PyPI), and py-statmatch (git). CI deliberately runs without it:
(`uv sync --extra methods`), which pulls populace-fit/populace-frame (git,
pinned to a pre-rename commit of the microcosm repo), microimpute (PyPI), and
py-statmatch (git). CI deliberately runs without it:
the registry imports methods lazily, and sweeps record unavailable methods in
`skipped.csv` rather than failing or silently dropping them.

Expand All @@ -45,7 +79,7 @@ the registry imports methods lazily, and sweeps record unavailable methods in

## Boundary

- populace packages must not import from this repository.
- microcosm packages must not import from this repository.
- Sweeps take explicit, pinned inputs; they do not discover artifacts from
working directories.
- Every number in the manuscript regenerates from a committed run config;
Expand Down
Loading
Loading