Repository navigation
Add a direct test of conditional fit within each survey - #19
Draft
juaristi22 wants to merge 5 commits into
Draft
juaristi22 wants to merge 5 commits into
juaristi22 wants to merge 5 commits into
Conversation
The within-survey tables score one imputed variable at a time. This adds a paired classifier test (true against imputed values on the same receiver rows, given the predictors) and, beside it, two measures in dollars: the Wasserstein-1 distance between imputed and true values within groups of similar receivers, and each target's imputed total. - `imp conditional-fit` refits every method on the sweep's splits and seeds and writes its own run directories. 30 seeds on the three survey tasks, ten on the OpenML datasets. - `imp tables` writes three new tables from those runs. - Section 3.4 defines the measures, Section 5.7 reports them, Section 6.2 is rewritten around them, and one open question in Section 6.5 is replaced. No existing table changes. Both measures were added after the 2025 replication was scored, and the text says so. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Brings in the limitation on the hot decks' two defaults. The PDF is rebuilt in the next commit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The constrained hot deck has the best score on the paired classifier test. This adds the evidence for why, and words the paper accordingly. - A diagnostic variant of the constrained hot deck allows each donor two uses where the method allows one. It is kept out of the method registry and runs only when named. With two uses the hot deck's AUC rises on all three survey tasks in every seed, to the estimator's on the SCF and above it on the CPS. - `imp conditional-fit --value-reuse` records how many receivers share a non-zero value with another receiver, for the imputed and the true values. On SCF net worth it is about 3% for the truth and for the constrained hot deck, 30% for the nearest-neighbour hot deck and 39% for the estimator. - Section 5.7 gains a paragraph on the limit, and its OpenML and CPS passages say what the hot decks' defaults do there. Sections 6.2 and 6.5 and the conclusion no longer read the lead as closer matching. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
`imp harness --constrained-max-cells` raises the size limit under which the constrained hot deck is skipped, for one run. The four added-arms population-view runs are rerun in full with it. Every other method's rows are unchanged, and the constrained hot deck now has rows where its skip was recorded. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Brings in `imp harness --constrained-max-cells` and the four added-arms population-view runs rerun with it. The constrained hot deck now has a row in the four population-view tables. - Its limit there is six uses per donor, which forces nearly even use of the donors. Its imputed net-worth q99 is 4.9 and 8.4 times the holdout's (2022 and 2025 waves), while its classifier AUC is within 0.6 to 2.5 points of the estimator's and its coverage is the highest. - Sections 3.2, 5.5, 6.2, 6.4 and 6.5 and the conclusion no longer say it was not run there. - The option reuses `methods.constrained_cell_limit`. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
5 tasks
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.
Stacked on #17. A second PR, #20, for the check on the estimator's weighted resample, stacks on this one.
Whether this goes in the paper is for Max to rule in #21, which lists the tests run since the 25 November review. This PR holds tests 1, 2, 5 and 7 of that list.
What this adds
imp conditional-fitrefits every method on the sweep's splits and seeds. It uses 30 seeds on the three survey tasks and ten on the OpenML datasets.What it shows
SCF 2022, SCF 2025 and CPS, 30 seeds:
Section 6.2 now opens with "No method is ahead on every measure". It says which measure favours which method on which survey, and that the classifier's order depends on the test's split.
What it does not change
imp replicationleaves its files as they were.Status of these results
Both measures were added after the 2025 replication had been scored. No rule was fixed for them in advance, and Sections 3.5 and 5.7 say so. The two waves are reported on the same footing.
The constrained hot deck on the SCF-to-CPS experiment
It was not run there before, for its cost: thirteen minutes and 6 GB per split.
imp harness --constrained-max-cellsnow lets it run, and the four population-view tables have its row (ten seeds, both profiles, both waves).Checks
ruff checkis clean.imp tablesadds the two-uses row only if its three control methods have identical rows in both run directories.🤖 Generated with Claude Code