Andrews Kasy 2019 - Median-Unbiased Estimation and Corrected Confidence Sets
Summary
For known and a normal estimate, inverting the truncated CDF in gives an -quantile-unbiased estimator . Its median version and the equal-tailed interval built from two quantiles exactly correct bias and coverage for the published study’s own parameter. With estimated, a Bonferroni construction keeps coverage at least .
Overview
Section 4 turns identification into inference. This note states Theorem 4 and Lemma 5, the corrected interval (including a caveat about endpoint ordering), the continued illustrative example (Fig 4) with recomputed numbers and code, the McCrary et al. relation, the paper’s stance on publication standards, and the Bonferroni interval for estimated . Inference is frequentist, conditional on (standard notions of bias and size control), whereas identification used an empirical-Bayes view with . Supplement extensions: optimal quantile-unbiased estimators with nuisance parameters, Bayesian inference.
Main Content
Truncated CDF and the quantile-unbiased estimator
With from Lemma 1, define
For let solve
so sits at the -quantile of the distribution implied by . (An approach used by D. Andrews 1993 and Stock and Watson 1998.)
Theorem 4
If for all , is continuous and strictly decreasing in , tends to one as and to zero as , then defined in (4) exists, is unique, and is continuous and strictly increasing in . If further is continuous in for all , then is -quantile unbiased under Definition 1:
Proof sketch: , and is uniform on under the truncated model (probability integral transform).
Lemma 5
If , for all and is almost everywhere continuous, then the assumptions of Theorem 4 hold.
Estimator and interval. The median-unbiased estimator is . The paper states the equal-tailed level set as . Other selection-corrected intervals exist: inverting UMP unbiased tests in exponential families (Fithian, Sun and Taylor 2014), weighted-average-risk-minimising unbiased estimators (Mueller and Wang 2015), or the MLE based on .
Endpoint ordering under convention (4)
With strictly decreasing in , solving (4) makes decrease in . In my numerical check (below) . The equal-tailed interval therefore has lower endpoint and upper endpoint , i.e. , which is what the code uses. The printed order in the working paper appears to use the opposite labelling of quantiles; the coverage claim is unaffected.
Illustrative example continued (Fig 4)
Corrected estimator and interval in the ten-fold-selectivity model
Setup. latent; for , otherwise. For observed published compute the median-unbiased estimate and the 95% interval; compare with and . Solution (recomputed with the code below).
published median-unbiased corrected 95% CI naive 95% CI 2.0 0.717 [-0.605, 3.075] [0.04, 3.96] 2.5 1.832 [-0.178, 4.345] [0.54, 4.46] 3.0 2.758 [0.342, 4.939] [1.04, 4.96] 4.0 3.975 [1.735, 5.959] [2.04, 5.96] 5.0 4.999 [2.977, 6.960] [3.04, 6.96] Interpretation. The corrected estimate lies below for small positive and converges to (the paper: the difference “is eventually decreasing”); the corrected interval has exactly correct coverage, is narrower than the usual one for small (width 3.68 vs 3.92 at ), wider for moderate (4.52 at ), and essentially identical from . This matches the description of Fig 4. Under selection, a is not evidence against zero: the corrected interval at contains 0.
import numpy as np
from scipy.stats import norm
from scipy.optimize import brentq
C, P_INS = 1.96, 0.1 # p(z) = 0.1 on [-C, C], 1 outside
def mass(a, b, th): return norm.cdf(b - th) - norm.cdf(a - th)
def trunc_cdf(x, th):
xi = min(max(x, -C), C)
num = P_INS * mass(-C, xi, th) + mass(-np.inf, min(x, -C), th) + (mass(C, x, th) if x > C else 0.0)
den = P_INS * mass(-C, C, th) + mass(-np.inf, -C, th) + mass(C, np.inf, th)
return num / den
def theta_hat(x, a): # solve F(x | theta) = a (equation 4)
return brentq(lambda t: trunc_cdf(x, t) - a, -15, 15)
for z in [2.0, 2.5, 3.0, 4.0, 5.0]:
lo, hi = theta_hat(z, .975), theta_hat(z, .025) # F decreases in theta
print(f"z={z}: median-unbiased={theta_hat(z, .5):.3f}, 95% CI=[{lo:.3f}, {hi:.3f}]")Relation to McCrary et al. (2016)
McCrary et al. propose conservative tests under an extreme publication bias in which insignificant results are never published. Take as in that model ( on insignificant results). Then for testing the equal-tailed interval contains zero if and only if the McCrary test fails to reject. So the present method generalises it to partial selection.
What this does not recommend
Do not change publication standards to match corrected cut-offs
The paper does not advocate adjusting publication standards to reflect the corrected critical values: if more stringent cut-offs were used in publication, the corrections would have to be adjusted (an “arms race” of selectivity). The purpose is for readers of published research to draw valid inferences taking the publication rule as given. The rule itself can be chosen on other grounds (welfare, incentives) - see Andrews Kasy 2019 - Conclusion, Optimal Publication Rules and Limitations.
Estimation error in
If is indexed by a finite-dimensional with a consistent asymptotically normal and is continuously differentiable in (true for the paper’s specifications), median-unbiased estimation is hard but valid confidence sets are straightforward.
Bonferroni interval for estimated
For consider
where is the quantile of and are delta-method standard errors of the two endpoint estimators (endpoint labelling follows the convention in the warning above). If the model for is correctly specified, Bonferroni’s inequality gives coverage at least in large samples. For a fully nonparametric (no asymptotically normal estimator), take an initial level- confidence set for and use at level .
I reconstructed the exact endpoint indices from the surrounding text (subscripts were not recoverable from the PDF text layer); the structure (level on the quantile, normal critical value at ) follows the stated Bonferroni logic: total miss probability .
Examples
Fig 4 example above; empirical use in the economics lab data: the paper’s Fig 6 compares original, adjusted (using ) and replication estimates for 18 studies (Andrews Kasy 2019 - Estimation and Replication Applications in Economics and Psychology).
Connections
- Where comes from: Andrews Kasy 2019 - Identification Using Replication Studies, Andrews Kasy 2019 - Identification Using Meta-Studies.
- Selection-adjusted inference is the frequentist cousin of shrinkage in hierarchical models: Hierarchical Models, Partial Pooling as Multiple Comparisons Correction.
- The winner’s-curse flavour of the problem: Ioannidis 2005 - Why Most Published Findings Are False - Overview.
Relevance to marketing measurement
For a reported lift with from a library with a known preference for significant winners, the corrected estimate is roughly a third of the headline in the paper’s stylised model ( vs in z units). Using such a corrected value, with its wider interval, as an informative prior in a Bayesian MMM is more defensible than the raw headline number. Choosing is the hard part; the paper’s identification results are how to estimate it.