Andrews Kasy 2019 - Setting and the Truncated Sampling Model
Summary
A population of latent studies draws true effects and results ; each is published with probability . Published results then follow a reweighted density whose reweighting factor is , and the likelihood for a given is scaled by . This single truncation formula drives everything else in the paper.
Overview
This note defines the data-generating process, derives the truncated likelihood, works through the paper’s ten-fold-selectivity example (bias and coverage), and records the alternative observability and manipulation settings.
Main Content
Definition 1 - Truncated sampling process
The triples are jointly i.i.d. across latent studies with
means the study is published. Let , and ; we observe i.i.d. draws . The density is known and continuous; are scalar; is the conditional publication probability and reflects both researcher and journal decisions (not disentangled).
The case where all latent studies estimate the same parameter is nested by taking degenerate.
Lemma 1 - Truncated likelihood
Under Definition 1, the density of a published given its true effect is
Proof sketch: Bayes’ rule: and because .
For fixed , selection reweights the distribution of published results by . As varies for fixed , the likelihood is scaled by , the publication probability of a latent study with effect .
Study-level covariates. The conditional independence may hold only conditional on observables (journal, topic, design). Then (1) becomes . The paper conditions on journal and year of first circulation in robustness checks (supplement) but suppresses in theory.
Illustrative example (Sec. 2.1)
Journal that is ten times more likely to publish significant results
Setup. Experiments report (normality as an asymptotic approximation; is a scale normalisation). The journal publishes with probability and results outside that interval with probability : . Compare the usual estimator and the usual interval . Solution. By Lemma 1, . The median of the published solves and the coverage of the usual interval is . Recomputed numerically (script below):
median of published median bias coverage of naive 95% CI 0.0 0.000 0.000 0.655 0.5 1.318 0.818 0.803 1.0 2.143 1.143 0.886 2.0 2.576 0.576 0.951 3.0 3.169 0.169 0.968 Interpretation. Published results over-estimate the magnitude of the effect (for the median is above ; at the median bias is zero only by symmetry, yet the interval already covers just 65.5%), and nominal 95% intervals under-cover for small and over-cover for somewhat larger , matching the paper’s Fig 1. These numbers are my recomputation of the model in the paper’s text, not a table printed in it.
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): # integral of phi(z - th) over [a, b]
return norm.cdf(b - th) - norm.cdf(a - th)
def trunc_cdf(x, th): # F_{X|Theta}(x | th) for the published z-statistic
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
for th in [0, 0.5, 1, 2, 3]:
med = brentq(lambda x: trunc_cdf(x, th) - .5, -10, 15)
cov = trunc_cdf(th + C, th) - trunc_cdf(th - C, th)
print(f"theta={th}: median={med:.3f} bias={med-th:.3f} coverage={cov:.3f}")Alternative observability (Sec. 2.2)
Observability variants
Truncated (baseline): observe only when - likelihood (1). Censoring: the existence of unpublished studies is known (e.g. from pre-registrations) without their results. Observe i.i.d. with ; likelihood
Unpublished results observed (as in Franco, Malhotra and Simonovits 2014): likelihood . In both richer cases the truncated likelihood (1) arises as a limited-information (conditional) likelihood, conditioning on publication decisions (and, in the third case, on unpublished results), so identification and inference remain valid; extra information can only add insight.
Manipulation of results
The analysis takes as known, which limits scope for researchers to inflate latent results (Brodeur et al. 2016). Forms of -hacking that fit the model: running many independent analyses (each following known ) and writing up only significant ones is a special case. More general manipulation is represented by depending on both and , handled in Section 3.1.3 (Andrews Kasy 2019 - Identification Using Replication Studies).
Examples
The ten-fold-selectivity example above; its continuation with replication data is in Andrews Kasy 2019 - Identification Using Replication Studies, with meta-study data in Andrews Kasy 2019 - Identification Using Meta-Studies, and with corrected inference in Andrews Kasy 2019 - Median-Unbiased Estimation and Corrected Confidence Sets.
Connections
- The standard funnel-plot picture of the same selection: Sterne 2011 - Funnel Plots and the Causes of Asymmetry.
- -hacking and forking paths as sources of selection: Researcher Degrees of Freedom, Gelman Loken 2013 - Garden of Forking Paths - Overview.
Relevance to marketing measurement
is “this test result made it into the experiment library”; is the estimated lift; is how much the team favours significant, positive, or surprising lifts. The censoring variant corresponds to a test registry that logs that a test ran but not its outcome.