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
36 changes: 19 additions & 17 deletions paper/figures/harness_schematic.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
% The population-view harness, schematically. Hand-authored (a design
% description, not a results exhibit); pdflatex-compatible TikZ only.
% The population-view experiment of this paper, schematically: how the
% candidate file is assembled and scored. Hand-authored (a design
% description, not a results exhibit); pdflatex-compatible TikZ only. The
% harness's general notation is in the popdgp paper, not here.
% All text is 10 pt sans serif (IJM: text in figures in Arial or similar,
% size 10).
\begin{tikzpicture}[
Expand All @@ -13,17 +15,17 @@
lab/.style={font=\sffamily\fontsize{10}{12}\selectfont\itshape, align=center},
]

% Latent population
\node[box, minimum width=4.2cm] (pop)
{latent population $P$\\[-1pt]joint of demographics,
income, wealth, \ldots};
% The population both surveys observe. The width is fixed because the two
% view boxes are placed from this box's corners.
\node[box, minimum width=193.97pt] (pop)
{one population\\[-1pt]demographics, income, wealth, \ldots};

% Two survey views
\node[box, below left=1.35cm and -2.9cm of pop, minimum width=4.2cm] (scf)
{\scf{} view $V_{\text{\scf{}}}(P)$\\[-1pt]demographics
{\scf{} view\\[-1pt]demographics
$+$ wealth; list design, \scf{} weights};
\node[box, below right=1.35cm and -2.9cm of pop, minimum width=4.2cm] (cps)
{\cps{} view $V_{\text{\cps{}}}(P)$\\[-1pt]demographics
{\cps{} view\\[-1pt]demographics
$+$ income; area design, \cps{} weights};

\draw[flow] (pop) -- (scf) node[midway, left=14pt, lab] {observed\\through};
Expand All @@ -32,15 +34,15 @@
% SCF splits
\node[box, below left=1.1cm and -3.6cm of scf, minimum width=2.5cm] (donor)
{donor split};
\node[box, below right=1.1cm and -2.6cm of scf, minimum width=2.5cm] (holdout)
{holdout $H_{\text{\scf{}}}$\\[-1pt]never used upstream};
\node[box, below right=1.1cm and -2.6cm of scf, minimum width=101.78pt] (holdout)
{holdout\\[-1pt]never used in a fit};

\draw[flow] (scf) -- (donor) node[midway, left=8pt, lab] {80\%};
\draw[flow] (scf) -- (holdout) node[midway, right=8pt, lab] {20\%};

% Candidate assembly
\node[box, below=2.4cm of cps, minimum width=4.2cm] (cand)
{candidate file $Q$\\[-1pt]real \cps{} demographics
{candidate file\\[-1pt]real \cps{} demographics
$+$ imputed wealth,\\[-2pt]under \cps{} weights};

\draw[flow] (cps) -- (cand);
Expand All @@ -51,20 +53,20 @@
% Scorecard
\node[box, below=3.2cm of donor, anchor=north west, xshift=-0.3cm,
minimum width=9.6cm] (score) at (donor.south -| donor.west)
{score $V_{\text{\scf{}}}(Q)$ against $H_{\text{\scf{}}}$, in the
\scf{} view's own variables\\[1pt]
energy distance (joint) \;$\cdot$\; coverage (support)
{candidate scored against the holdout, on the \scf{} view's
variables\\[1pt]
joint metrics: energy distance \;$\cdot$\; coverage
\;$\cdot$\; classifier AUC\\[1pt]
tail metrics (uncapped $W_1$/sd, q90/q99 ratios)};
tail metrics: $W_1$/sd, q90 and q99 ratios};

\draw[flow] (cand.south) to[out=-90, in=0]
node[pos=0.5, right=4pt, lab] {projected\\through $V_{\text{\scf{}}}$}
node[pos=0.5, right=4pt, lab] {restricted to the\\\scf{} view's variables}
(score.east);
\draw[flow] (holdout) -- (holdout |- score.north);

% Sampling-noise floor
\draw[faintflow] (donor) -- (donor |- score.north)
node[midway, left=2pt, lab, text=black!55]
{donor split\\scored as a\\reference candidate\\(sampling-noise floor)};
{donor split\\scored as a\\candidate\\(sampling floor)};

\end{tikzpicture}
Binary file modified paper/main.pdf
Binary file not shown.
39 changes: 17 additions & 22 deletions paper/sections/methodology.tex
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ \subsection{Joint metrics: the population-view harness}
section summarizes what is needed to read the results; the framework's
general treatment is in that work.

\landscapefloat{figure}{The population-view harness}{fig:harness}{%
\landscapefloat{figure}{The population-view experiment}{fig:harness}{%
\fitwidth{\tablefont\input{figures/harness_schematic}}}{%
Notes: Two surveys observe the same population. The Survey of Consumer
Finances (\scf{}) records demographics and wealth, under a design that
Expand All @@ -230,30 +230,25 @@ \subsection{Joint metrics: the population-view harness}
which is costly on large samples. For those two, each sample larger than
2,048 points is first reduced to 2,048 by a resample drawn in proportion to
weight. We call this limit the \emph{subsample cap}, and we say a metric is
capped when it applies and uncapped when the metric uses every row. Write
$X = \{(x_i, a_i)\}$ for the candidate sample and $Y = \{(y_j, b_j)\}$ for
the holdout, with weights normalized to sum to one.
capped when it applies and uncapped when the metric uses every row. Both
capped metrics measure distances between points after each variable is
standardized by the holdout's weighted mean and standard deviation, which
puts the variables on a common scale.

\paragraph{Energy distance (capped; lower is better, 0 is perfect).}
The weighted energy distance \citep{szekely2013energy}
\begin{equation}
\mathcal{E}(X, Y) = 2 \sum_{i,j} a_i b_j \lVert x_i - y_j \rVert
- \sum_{i,i'} a_i a_{i'} \lVert x_i - x_{i'} \rVert
- \sum_{j,j'} b_j b_{j'} \lVert y_j - y_{j'} \rVert
\label{eq:energy}
\end{equation}
is the sample form of a strictly proper scoring rule
\citep{gneiting2007strictly}: in expectation it is smallest only for the
true distribution.
The weighted energy distance \citep{szekely2013energy} compares the two
files as whole distributions. It is twice the weighted mean distance between
a candidate point and a holdout point, minus the weighted mean distance
between two candidate points and the weighted mean distance between two
holdout points. It is zero when the two weighted samples have the same
distribution and positive otherwise.

\paragraph{Coverage (capped; higher is better, 1 is perfect).} \prdc{}
coverage \citep{naeem2020reliable} is the weighted fraction of holdout
points with at least one candidate point inside their
$k$-nearest-neighbour radius. It asks whether the candidate reaches every
neighbourhood the holdout occupies. It depends on the candidate only through
which points it contains, so in principle reweighting the candidate cannot
change it. As implemented, the weight-proportional resample to the cap makes
that hold only approximately.
\paragraph{Coverage (capped; higher is better, 1 is perfect).} Coverage
comes from the precision, recall, density, and coverage (\prdc{}) metrics
of \citet{naeem2020reliable}. It is the weighted fraction of holdout points
that have at least one candidate point within the distance to their
fifth-nearest holdout neighbour. It asks whether the candidate reaches every
neighbourhood the holdout occupies.

\paragraph{Classifier two-sample test (uncapped; 0.5 is indistinguishable).}
A gradient-boosted classifier is trained to tell candidate rows from
Expand Down
Loading