Epic: a stable and reliable US local-area dataset, measured by ESS and calibration fit
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 8/100
Hướng nghiên cứu
This is an epic with open design decisions, not a starting task. The only concrete step is Step 0: on the first build from #1719, report the listed measures and add ESS at equal weights per district and county. Start from the linked sub-issues #1727, #1728, #1720 and #1729, and from the experiment write-up linked in the body. Done means the baseline numbers are posted here.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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 (#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 (#1673).
- State slices have 11% too many children and 6% too few adults (#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 #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. #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. #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. #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 #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 (#922).
- λ, the family multipliers, the ESS floors, and whether the ESS gate blocks a release.
Not in this epic
- Build stability: the build host (#1645), memory, the size of engine bumps, certification time (#1595). This is a parallel lane. It has no issue yet.
- Delivery of the County Files: #922. This epic feeds it.
- State legislative districts: #625.
- Quality of the national build itself: #578, #880, #958.
Related
- Evidence: #1078, #1104, #1067.
- Symptoms: #1673, #1528, #403.
- Earlier work on the local file: #512, #449.
- Shared code: #1585, #611.
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 6
- Merge trung bình
- 1 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 190
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PolicyEngine/microcosm
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
PolicyEngine/microcosm#1766 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PolicyEngine/microcosm#1721 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
PolicyEngine/microcosm#1701 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
County rung: a malformed-geography refusal leaves an old county_surface.json success receiptĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
PolicyEngine/microcosm#1638 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
PolicyEngine/microcosm#1431 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PolicyEngine/microcosm
Issue tương tự
-
claude-subscription-directsdk: tool calls with raw control characters in string values are droppedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NousResearch/hermes-official-plugins#538 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug(qdiffusion): EnergyModel.score_visible_logits computes biased visible/hidden on-ratios when solver returns variable solution counts per candidateCó thể đã có người làm @houzhongyu đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
qboson/kaiwu-pytorch-plugin#2133 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MakazhanAlpamys/Soup#3415 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày