Repository navigation
Description
Goal
Make the US local-area dataset stable and reliable for states, congressional districts and counties. Two measures decide it:
- the effective sample size (ESS) in each area;
- calibration performance, on the targets in the fit and on held-out targets.
#1676 and #1719 move the national and local builds to policyengine-us 2.145.3. This epic starts from the files they produce. It does not block them.
Why
The local file has many records, but few of them carry the weight. The file pools two sets of rows: the national release's households (the donor rows) and ACS PUMS households.
- September release (1,588,854 households, 4,459 targets; experiment write-up):
- National ESS is 13,646.
- The median district ESS is 33. Of the 436 districts, 352 are below 50.
- The 57,240 donor rows hold 68% of the weight after calibration.
- County proof of concept (County Files: a proof-of-concept county-calibrated dataset by 23 November #1647): the median county ESS is 5.95. Of the 3,144 counties, 3,038 have grade D (the grades are provisional).
- Results that show it:
- District poverty does not track the ACS district estimates: r = 0.08 over 30 districts (ACS-local congressional districts: SPM poverty and median income do not track ACS 2024 district estimates (r = 0.08 for poverty over 30 districts) #1673).
- State slices have 11% too many children and 6% too few adults (ACS-local state slices over-count children by 11% and under-count adults by 6%; the calibration has no age targets #1528).
Measures
Every build reports these for states, districts and counties.
| Measure | What it shows |
|---|---|
| ESS on distinct source households: national, median area, lowest area, number of areas below the floor | How many records carry each area |
| ESS after calibration against the ESS of the starting weights | What the solve costs |
| Share of the weight on donor rows | Which rows carry the areas |
| Share of targets within 10%, by family and by level | Fit |
| Error on held-out targets (folds) | Whether the fit holds outside the targets in the loss |
| Checks outside the loss: ACS district poverty and median income (#1673), state age groups (#1528) | Accuracy that the loss cannot see |
This epic does not set the floors yet. Two starting points exist:
- the gate that Chi-square design-weight penalty and softmax mass parametrization for calibration; ACS local ESS frontier #1078 adopted: no district below a quarter of its starting ESS, and none below 15;
- the shared gate that the UK local build uses: 50 rows, ESS 50 and 50 distinct source households in each area.
The floors are chosen after the baseline (decision 4).
What we know
-
The starting weights set the limit.
--acs-share 0.5gives the donor rows half the mass. A penalty cannot lift ESS above the ESS of the starting weights.ACS share Starting national ESS Starting median district ESS 0.5 (today) 36,288 80 0.7 96,034 215 0.9 479,159 1,111 In proportion to households 778,061 1,822 -
A higher ACS share costs fit on tax targets. At share 0.9, ESS after calibration is 93,524 and no district is below 50. The held-out error rises from 0.130 to 0.177, mostly on SOI targets. The ACS rows carry tax detail only as a transfer from the donor rows.
-
The L2 penalty exists and is a small lever. Chi-square design-weight penalty and softmax mass parametrization for calibration; ACS local ESS frontier #1078 added a chi-square basis to the shared solver for this lane. At λ 0.03, ESS goes from 13,646 to 20,690. The local tool has the flags, and the default is 0.
-
A mix study recommends a different pool. US support-mix bake-off: CPS years vs ACS rows vs location clones at fixed budgets #1067: three CPS years plus ACS to 1.2M households, seeded in proportion to households (ESS 276,474). Its write-up says the local mix is not chosen yet.
-
The local build fits a different target set from the national build. The national build fits 6,102 national and state targets. The local build fits 4,867, with no national rows and no age rows.
-
ACS rows carry many default values. US ACS local-area lane: deferred defaults, decisions and pins #1720 lists them. Where a target needs a value that only donor rows carry, the solve moves weight to the donor rows.
-
The new national donor is dense. Nothing above is measured on it.
Work
Step 0, in this issue: the baseline. On the first build from #1719:
- report every measure in the table above;
- add the ESS at equal weights for each district and county. This number is the ceiling that the records allow. It separates a weight problem from a record problem.
Sub-issues:
| Workstream | Issue | Main question |
|---|---|---|
| Starting weights and county support | #1727 | How do donor and ACS rows share the starting mass, and how does a county get enough records? |
| Target alignment | #1728 | Which targets does the local build fit, at each level? |
| ACS record quality | #1720 | Which default values push weight to donor rows? |
| Shared calibration machinery | #1729 | Which solver options and gates move to shared code? |
Order
- Pick λ and the gate floors last. λ is in units of the loss, so it changes when the targets or the starting weights change.
- These can start now, in parallel: the data work for targets, the US ACS local-area lane: deferred defaults, decisions and pins #1720 items, and the shared machinery. The shared machinery changes no output until a build turns it on.
- A change that moves outputs needs a build to measure it. Group such changes into few builds.
Decisions needed
- The rule for the starting weights and the mix of the pool, after step 0.
- Whether the local build fits the national and state target set of the national build.
- The county support design and the final grade thresholds (County-calibrated County Files (3,144 counties, 2026 + 2027): build epic #922).
- λ, the family multipliers, the ESS floors, and whether the ESS gate blocks a release.
Not in this epic
- Build stability: the build host (Run US dataset builds on a GCP VM #1645), memory, the size of engine bumps, certification time (Shard and cache the US release's post-export scoring passes #1595). This is a parallel lane. It has no issue yet.
- Delivery of the County Files: County-calibrated County Files (3,144 counties, 2026 + 2027): build epic #922. This epic feeds it.
- State legislative districts: SLD layer for the local artifact: per-district ACS calibration (targets, membership vintage, doctrine solve, validation) #625.
- Quality of the national build itself: US base v2: one CPS+ACS+PUF-detail pool; datasets labeled by exact record count (dense = full pool; exact-k L0 selection) #578, US certified default undercounts households (122.5M) and overcounts married couples (81.5M): no household-type or marital-status targets in the registry #880, US top-income tail is missing above $5M of AGI: Table 1.1 size-of-AGI facts never bind, and the pool's tail stratum carries capital gains only #958.
Related
- Evidence: Chi-square design-weight penalty and softmax mass parametrization for calibration; ACS local ESS frontier #1078, Weight the ACS local release's calibration targets with the national release's loss formula, from one shared implementation #1104, US support-mix bake-off: CPS years vs ACS rows vs location clones at fixed budgets #1067.
- Symptoms: ACS-local congressional districts: SPM poverty and median income do not track ACS 2024 district estimates (r = 0.08 for poverty over 30 districts) #1673, ACS-local state slices over-count children by 11% and under-count adults by 6%; the calibration has no age targets #1528, ACS-multispine staging: SSI probe finds spine-inconsistent incidence (2.6% vs 1.9% baseline rate) and weight-composition skew (ASEC 1.5 persons/hh, ESS 0.3%) #403.
- Earlier work on the local file: Rebuild the US ACS local-area artifact on the certified Build O lineage (buildl 36de5d9a is stale) #512, Build N epic: CD target surface + base rebuild bundle (quartet, assets, QRF fix, feed regen, gate hardening) #449.
- Shared code: US: use the shared Microcosm modules where no output changes #1585, One country-agnostic gate battery: phased evaluation, unconditional reporting, per-country gate selection (#578) #611.
Activity