Skip to content
Draft
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
42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,41 @@ 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.

### Conditional fit within each survey

The paired classifier test and the dollar measures of the paper's section on
conditional fit have their own runs. `imp conditional-fit` refits every method
on the sweep's splits with the sweep's seeds, so it scores the same draws, and
it writes its own run directory:

```bash
export OMP_NUM_THREADS=1
uv run imp conditional-fit --task scf_wealth --seeds 30 --out runs/conditional-fit-scf-wealth
uv run imp conditional-fit --task scf_wealth --scf-year 2025 --seeds 30 --out runs/conditional-fit-scf-wealth-2025
uv run imp conditional-fit --task cps_components --seeds 30 --out runs/conditional-fit-cps-components
for name in space_ga elevators brazilian_houses onlinenewspopularity abalone house_sales; do
uv run imp conditional-fit --task "openml_$name" --out "runs/conditional-fit-openml-$name"
done
uv run imp tables
```

The survey tasks use 30 seeds; the first ten are the sweep's. A test checks
that each run's Wasserstein-1 distances equal the sweep's, cell for cell, on
the seeds they share.

One diagnostic variant sits beside those runs: the constrained hot deck with
two uses allowed per donor, which is kept out of the method registry. Its
runs rerun three methods as controls and record how many receivers share a
value with another receiver:

```bash
ARMS=(populace_fit statmatch_hotdeck statmatch_constrained_hotdeck statmatch_constrained_hotdeck_two_uses)
uv run imp conditional-fit --task scf_wealth --seeds 30 --value-reuse --methods "${ARMS[@]}" --out runs/conditional-fit-scf-wealth-added-arms
uv run imp conditional-fit --task scf_wealth --scf-year 2025 --seeds 30 --value-reuse --methods "${ARMS[@]}" --out runs/conditional-fit-scf-wealth-2025-added-arms
uv run imp conditional-fit --task cps_components --seeds 30 --value-reuse --constrained-max-cells 200000000 --methods "${ARMS[@]}" --out runs/conditional-fit-cps-components-added-arms
uv run imp tables
```

### Arms added after the first sweeps

Seven methods joined the surface after the first sweeps were committed: the
Expand All @@ -88,10 +123,15 @@ into it:
export OMP_NUM_THREADS=1
ARMS=(populace_fit weighted_marginal statmatch_hotdeck populace_fit_ungated populace_fit_ungated_unchained populace_fit_derived populace_fit_unchained_derived statmatch_rand_hotdeck statmatch_constrained_hotdeck statmatch_rand_hotdeck_unweighted)
uv run imp sweep --task scf_wealth --methods "${ARMS[@]}" --out runs/scf-wealth-added-arms
uv run imp harness --profile populace-scale --methods "${ARMS[@]}" --out runs/scf-to-cps-harness-scale-added-arms
uv run imp harness --profile populace-scale --methods "${ARMS[@]}" --constrained-max-cells 500000000 --out runs/scf-to-cps-harness-scale-added-arms
uv run imp tables
```

`--constrained-max-cells` lets the constrained hot deck run at the population
view's size, where it is skipped by default. One split then takes about
thirteen minutes and 6 GB, so the four population-view directories take about
nine hours, one at a time.

The first three keys are controls: methods the first sweep also ran. `imp
tables` reads the two directories together and refuses to write a table
unless the controls' rows are identical in both, so the added arms appear
Expand Down
Binary file modified paper/main.pdf
Binary file not shown.
8 changes: 6 additions & 2 deletions paper/sections/appendix_scf2025.tex
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ \section{Replication on the 2025 Survey of Consumer Finances}
deck at scale, and understates the tail as it does on the earlier wave.

\landscapelongtable{Replication verdicts, within-\scf{} wealth task}{tab:scf2025-verdicts-wealth}{scf2025_verdicts_wealth}{%
Notes: Each cell gives the numbers the pre-registered rule was applied to. Dollar amounts are in each wave's own dollars; ratios and seed counts are comparable across waves. An asterisk marks a finding that the abstract or conclusion stated when the rules were frozen. The candidate is the full estimator and the ungated forest is the \microimpute{} forest. Source: authors' calculations from the 2022 and 2025 Surveys of Consumer Finances.}
Notes: Each cell gives the numbers the pre-registered rule was applied to. Dollar amounts are in each wave's own dollars; ratios and seed counts are comparable across waves. An asterisk marks a finding that the abstract or conclusion stated when the rules were frozen. The candidate is the full estimator and the ungated forest is the \microimpute{} forest. The constrained hot deck was run with its size limit raised. Source: authors' calculations from the 2022 and 2025 Surveys of Consumer Finances.}

\landscapelongtable{Replication verdicts, population view: the floor, weighting, and chaining}{tab:scf2025-verdicts-view}{scf2025_verdicts_view_a}{%
Notes: Each cell gives the numbers the pre-registered rule was applied to. ``Floor sd'' is the seed-to-seed standard deviation of the sampling-floor row. An asterisk marks a finding that the abstract or conclusion stated when the rules were frozen. The candidate is the full estimator and the ungated forest is the \microimpute{} forest. Source: authors' calculations from the 2022 and 2025 Surveys of Consumer Finances and the \cps{} ASEC.}
Expand All @@ -283,10 +283,14 @@ \section{Replication on the 2025 Survey of Consumer Finances}

\landscapefloat{table}{The population-view experiment on the 2025 wave, minimal profile}{tab:harness-2025}{%
\generatedtable{harness_2025}}{%
Notes: Table~\ref{tab:harness} rerun with the \scf{} 2025 donor: the same receiver subsample, seeds, columns and conventions. The first row is the sampling-noise floor. Cells are means over ten paired donor splits, with the standard deviation in parentheses. Energy distance and net-worth $W_1$/sd: lower is better. Coverage: higher is better. C2ST AUC: 0.5 is indistinguishable from the holdout. Net-worth q99 ratio: one is a perfect extreme tail. Bold marks the best non-reference value in a column. Source: authors' calculations from the 2025 Survey of Consumer Finances and the 2025 \cps{} ASEC.}
Notes: Table~\ref{tab:harness} rerun with the \scf{} 2025 donor: the same receiver subsample, seeds, columns and conventions. The first row is the sampling-noise floor. Cells are means over ten paired donor splits, with the standard deviation in parentheses. Energy distance and net-worth $W_1$/sd: lower is better. Coverage: higher is better. C2ST AUC: 0.5 is indistinguishable from the holdout. Net-worth q99 ratio: one is a perfect extreme tail. Bold marks the best non-reference value in a column. The constrained hot deck was run with its size limit raised. Source: authors' calculations from the 2025 Survey of Consumer Finances and the 2025 \cps{} ASEC.}

\landscapefloat{table}{The population-view experiment on the 2025 wave, production-scale profile}{tab:harness-scale-2025}{%
\generatedtable{harness_scale_2025}}{%
Notes: Table~\ref{tab:harness-scale} rerun with the \scf{} 2025 donor: the same receiver subsample, seeds, columns and conventions. The first row is the sampling-noise floor. Cells are means over ten paired donor splits, with the standard deviation in parentheses. Energy distance and net-worth $W_1$/sd: lower is better. Coverage: higher is better. C2ST AUC: 0.5 is indistinguishable from the holdout. Net-worth q99 ratio: one is a perfect extreme tail. Bold marks the best non-reference value in a column. Source: authors' calculations from the 2025 Survey of Consumer Finances and the 2023--2025 \cps{} ASEC.}

\landscapefloat{table}{Conditional fit within the \scf{}, 2025 wave}{tab:conditional-scf-2025}{%
\generatedtable{conditional_fit_scf_wealth_2025}}{%
Notes: Table~\ref{tab:conditional-scf} on the 2025 wave, with the same seeds, columns and conventions. Distances are in thousands of 2025 dollars. Cells are means over thirty paired seeds, with the standard deviation across seeds in parentheses. Bold marks the classifier AUC nearest one half and the lowest distance; the null AUC and the totals are not ranked. The row indented beneath the constrained hot deck allows each donor two uses where the method allows one; it is a diagnostic and not one of the paper's methods. Source: authors' calculations from the 2025 Survey of Consumer Finances.}

\clearpage
15 changes: 14 additions & 1 deletion paper/sections/conclusion.tex
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ \section{Conclusion}
unconditional draw, which reuse observed values, hold it within about 2
points without a gate.

Against matching the results show parity within noise. Matching that
Against matching, no method is ahead on every measure. Matching that
chooses donors in proportion to weight equals the estimator on marginal fit
within a survey. On the population view the nearest-neighbour and weighted
random hot decks' AUC is 0.7 to 2.9 points higher than the estimator's on
Expand All @@ -42,6 +42,19 @@ \section{Conclusion}
production scale. The estimator's imputed 99th percentile of net worth is 23
to 37 percent below the holdout's across the two waves.

A direct test of conditional fit within each survey, added after the
replication, separates the methods further. On a classifier that tries to
tell imputed from true values given the predictors, the estimator is ahead
of the weight-drawing hot deck on the \scf{} and behind it on the \cps{}. A
constrained hot deck that does not use the weights has the best classifier
score on all three tasks. It gives no donor's record to two receivers, which
the test's four donors for each receiver allow, and with two uses per donor
its score equals the estimator's on the \scf{}. On the \scf{} it also
imputes 1.3 to 2.0 times the
survey's total net worth, where the estimator imputes 0.98 to 1.00 times.
On the population view, where its limit is six uses per donor, its 99th
percentile of net worth is 4.9 to 8.4 times the holdout's.

Marginal metrics rank an unconditional marginal draw first on \scf{} pinball
loss as coded and tied for second of ten methods on the OpenML suite, while
the classifier separates that draw from the holdout at an AUC of 0.968,
Expand Down
97 changes: 63 additions & 34 deletions paper/sections/discussion.tex
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,9 @@ \subsection{What the ablations show}
\subsection{Comparison with matching}
\label{sec:discussion-matching}

The results do not show that the estimator outperforms a hot deck that uses
the weights. On the metrics of this paper the two are level within noise,
and the differences in the estimator's favour are about one floor standard
deviation.
No method is ahead on every measure. Whether the estimator or a hot deck
does better depends on which hot deck it is, on the survey, and on whether
the measure counts households or dollars.

Within a survey, a hot deck that draws its donor among the nearest in
proportion to weight equals the full estimator on marginal fit, where the
Expand All @@ -95,23 +94,56 @@ \subsection{Comparison with matching}
the floor's seed-to-seed standard deviation to one and a half times it, and
on the 2025 wave at scale the nearest-neighbour hot deck's AUC is the lower
of the two by 0.3 points. The constrained hot deck, which has the best
marginal fit on several within-survey columns, was not run on the population
view, so its joint scores are unknown.

Two readings of this near-parity are possible, and the experiments do not
separate them. The first is that the methods are close on these tasks. The
survey tasks have three to ten predictors and at most four targets. Whether
the estimator gains on a hot deck when there are more predictors, and close
donors become scarce, is not tested by any task here. The second is that the
metrics are weak where a difference would show. The within-survey metrics
score each imputed variable on its own and say nothing about how it varies
with the predictors. On the population view, every candidate carries the
same demographic difference between the two surveys, which raises every
candidate's AUC and leaves less room for the methods to differ: the full
estimator's AUC is 0.73 and 0.76, against a sampling floor of 0.50. And
energy distance separates only OLS from the rest. Conditional fit can be
tested directly within a survey, where the receivers' true values are known
(Section~\ref{sec:future}). We did not run that test.
marginal fit on several within-survey columns, does not carry that over
either. Its AUC on the population view is 0.6 to 2.5 points above the
estimator's across the two profiles and waves, and its imputed 99th
percentile of net worth is 4.9 to 8.4 times the holdout's, because its limit
of six uses per donor there forces nearly even use of the donors
(Section~\ref{sec:results-harness}).

The direct test of conditional fit
(Section~\ref{sec:results-conditional}) separates the methods more than
those metrics do, and it does not give one order.

Against the weighted random hot deck, which chooses donors by weight, the
estimator is ahead on the \scf{} on both conditional measures. Its AUC is the
lower in every seed of both waves (0.561 and 0.564 against 0.611 and 0.612),
and its within-group distance on net worth is lower by a factor of 1.4. On
the \cps{} the classifier puts the hot deck ahead (0.525 against 0.534), and
the two are level in dollars.

Against the constrained hot deck the two measures disagree on the \scf{}.
The classifier finds the hot deck's values harder to tell from the truth
(0.526 and 0.519). That lead comes from the hot deck's limit of one use per
donor and not from closer matches: with two uses allowed, its AUC equals the
estimator's (Section~\ref{sec:results-conditional}). In dollars the hot deck
is behind. Its within-group
distance on net worth is 2.9 and 1.6 times the estimator's, and its wealth
total is 1.97 and 1.32 times the survey's, because it chooses donors without
the weights from a sample in which wealthy households are over-represented.
On the \cps{}, where the weights carry little information about the targets,
it is ahead of the estimator on the classifier and level with it in dollars.

The earlier metrics left open whether the methods were as close as they
looked. The direct test shows that they differ. It does not say which method
is better, because that depends on the use.
The classifier gives every household the same say. The dollar measures are
moved by the few households that hold most of the wealth. A file used to
cost a policy that bears on wealth depends on totals and on the top of the
distribution, which the dollar measures score. The classifier's order also
depends on the test's split. Where donors outnumber receivers, a method that
never repeats a donor scores best on it. A production file has many more
receivers than donors, and no method that draws from donor records can avoid
repeating them there. On the population view, where the constrained hot
deck's limit is six uses per donor, its 99th percentile of net worth is 4.9
to 8.4 times the holdout's.

Two limits apply. The survey tasks have three to ten predictors and at most
four targets, and no task here tests whether the comparison changes when
there are more predictors and close donors become scarce. And the test was
run with four donors for each receiver, which is what lets a limit of one
use per donor hold. We ran one other limit and no other split
(Section~\ref{sec:future}).

\subsection{What the evaluation shows}
\label{sec:discussion-evaluation}
Expand Down Expand Up @@ -203,10 +235,8 @@ \subsection{Limitations}
the baselines were not tuned to these tasks. The 2025 wave is the only
\scf{} data that no design decision saw.

\paragraph{Arms evaluated on part of the tasks.} The constrained hot deck
took thirteen minutes per split at the population view's 20,000 receivers,
against seconds for every other method, and was not run there. The gates are
tested on targets whose sign classes are all common, not on a rare class.
\paragraph{Gates on common sign classes only.} The gates are tested on
targets whose sign classes are all common, not on a rare class.

\paragraph{Dollar basis.} The population view does not put the two surveys'
incomes on a common dollar basis: the \scf{}'s are in survey-year dollars
Expand Down Expand Up @@ -239,13 +269,13 @@ \subsection{Limitations}
\subsection{Open questions and future work}
\label{sec:future}

\paragraph{A direct test of conditional fit.} Within a survey the receivers'
true values are known, so conditional fit can be scored directly: with a
classifier that tries to tell receiver rows carrying their true values from
the same rows carrying imputed ones, or with a proper score of each method's
predictive distribution at each row. Either would show whether the
near-parity between the estimator and the weighted random hot deck belongs
to the methods or to the metrics used here.
\paragraph{Other splits, and a second test of conditional fit.} The paired
classifier test was run with one receiver for every four donors. With more
receivers than donors, every method that draws from donor records must
repeat them, and the order of the methods on the test may change. We did not
run that split. A proper score of each method's predictive distribution at
each receiver row would be a second direct test of conditional fit, and we
did not run one.

\paragraph{Harder tasks.} The survey tasks have three to ten predictors and
at most four targets, and the donor and receiver are either the same survey
Expand All @@ -262,8 +292,7 @@ \subsection{Open questions and future work}
gating and chaining on the dividend zero share; and the part of the fall in
the q90 ratio on the 2025 wave that re-basing does not account for.

\paragraph{Runs not made.} The constrained hot deck was not run on the
population view, the subsample cap was not varied, and the fragility
\paragraph{Runs not made.} The subsample cap was not varied, and the fragility
diagnostic was not run on a cross-survey file, which is the setting that
motivates it. No run uses the other four \scf{} implicates or the replicate
weights, and the gates were not tested on a rare sign class. The zero-share
Expand Down
Loading
Loading