Skip to content

Move the remaining harness formalization out of the manuscript - #18

Draft
juaristi22 wants to merge 1 commit into
author-review-notesfrom
harness-carveout
Draft

juaristi22 wants to merge 1 commit into
author-review-notesfrom
harness-carveout

Conversation

@juaristi22

@juaristi22 juaristi22 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Takes the remaining general description of the population-view harness out of the manuscript. Stacked on #17, which had already reduced the harness to a working summary; this PR finishes the manuscript side of the carve-out. Text and Figure 1 only: no run, table value, \rep{} macro or reported number changes.

Refs #1 (items 1, 4 and 5). Item 3, the code extraction to popdgp, is not in this PR.

Companion draft PR, which adds the moved text to the harness's own paper: PolicyEngine/popdgp#7

What moved out, and where it now lives

The destination is paper.md in PolicyEngine/popdgp. Where that paper already said the same thing, nothing was added there.

From this PR (Section 3.3):

  • Equation 1 and its notation. The weighted sample form of the energy distance, and the sentence that set up the two weighted samples. The popdgp paper's Metrics section already gives this formula, as an expectation under the weighted empirical measures, so it was not added again. Section 3.3 describes the metric in words instead.
  • The proper-scoring property of the energy distance (Gneiting and Raftery). The popdgp paper states it; the companion PR adds the citation.
  • Coverage and reweighting. The statement that coverage depends on the candidate only through the points it contains, and the caveat that the resample to the subsample cap makes this hold only approximately. No result in this paper uses that property, because every candidate carries the same CPS weights. The popdgp paper states the property; the companion PR adds the caveat.
  • Figure 1's general notation (latent population P, views V(P), holdout H, candidate Q). Address author review notes: harness as first application, plain-language pass, limitations #17 removed these symbols from the text, so the figure used notation the paper no longer defined. The companion PR adds the notation to the popdgp paper's Summary.

Already cut by #17, and carried to the popdgp paper by the companion PR:

  • the formal-ancestry paragraph of Background 2.4 (Lohr and Raghunathan, Little and Rubin, Rässler, proper scoring, classifier two-sample tests, PRDC);
  • the three-part formal definition of the framework and the rationale for each of the four metrics;
  • scoring one candidate against several surveys at once (CPS, SIPP, PSID).

What stayed, and why

The test for each passage: a reader with only this paper must still be able to read Tables 7 and 8 and the appendix tables, and follow Sections 5.5 and 6.

  • Section 3.3 keeps the definitions of view, holdout and candidate file as they apply here; the four metrics with their direction and perfect value; the subsample cap of 2,048 and which metrics it applies to; the names joint metrics and tail metrics; and the sampling floor.
  • Why the tail metrics were added stays in 3.3, 5.5, 6.3 and the conclusion. It is a finding of this application.
  • Background 2.4 is already two sentences and a citation. Contribution 2, the SSI paragraph, Task 2 in Section 4, Sections 5.5 and 6, the abstract and the conclusion describe this application or report what it found. None of them changes.
  • The citations for each metric's source stay (Székely and Rizzo; Naeem et al.; Lopez-Paz and Oquab).

Three small additions in Section 3.3, each a fact a reader needs once the equation is gone, and each checked against the code (experiments/metrics.py, cli/harness.py):

  • the two capped metrics measure distances after each variable is standardized by the holdout's weighted mean and standard deviation;
  • PRDC is spelled out at first use;
  • coverage uses the fifth-nearest neighbour (the text said k-nearest without giving k).

Figure 1

It stays, as the diagram of this paper's experiment. It shows how the candidate file is assembled and scored in Task 2 and where the sampling-floor row comes from, which is what a reader needs for Tables 7 and 8. What goes is its general layer: the symbols and the word "latent". Every label now uses a term the text defines. The caption is "The population-view experiment", to match the table captions. The label fig:harness and the box layout are unchanged, and it is still Figure 1.

The W1 equation in Section 3.4 is now Equation 1; its one reference follows. \label{eq:energy} had no reference. \label{sec:harness} is kept.

For the authors

  • This paper's "energy distance" is the quantity the popdgp paper calls the squared energy distance (no square root is taken). Both follow the same code. I left the name as it is here, since changing it would touch table headers.
  • The citation ghenis2026popdgp reads "Software and manuscript in preparation". The only paper in the popdgp repository so far is its JOSS software note (paper.md); the methods paper has an issue there and no manuscript yet. The companion PR puts the moved text in the note, and asks its author whether it belongs in the methods paper instead.
  • gneiting2007strictly is no longer cited. I left the entry in references.bib, as Address author review notes: harness as first application, plain-language pass, limitations #17 did with the entries it stopped citing.

Checks

  • quarto render paper/index.qmd --to pdf -M latex-auto-install:false -M latex-clean:false: 58 pages, as before. The log has no overfull boxes, no undefined references or citations and no Package ijm Warning; the three caption package warnings remain. Figure 1 checked on the rendered page.
  • pytest on the base install, counted from the JUnit file: 126 run, 111 passed, 15 skipped, 0 failed. The 15 skips need the methods extra, which was not installed.
  • ruff check . passes. No Python file changed.
  • CI runs on this PR although its base is not main (the workflow has no branch filter). The test job passed at 94fbfda.

🤖 Generated with Claude Code

Refs #1. Stacked on the author-review-notes branch (#17), which already
reduced the harness to a working summary.

- Section 3.3: the energy-distance equation, its notation and the
  proper-scoring property are replaced by a description in words; the
  note on coverage and reweighting is removed. Both belong to the
  harness's own paper (PolicyEngine/popdgp).
- Section 3.3 now says that the two capped metrics work on variables
  standardized by the holdout's weighted moments, spells out PRDC, and
  gives the neighbour rank used for coverage (five).
- Figure 1 stays as the diagram of this paper's experiment, without the
  general notation (P, V(P), H, Q); its caption is "The population-view
  experiment".

No run, table value or reported number changes. The W1 equation is now
Equation 1. The build is 58 pages.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant