Hostname: page-component-74656f9884-kv2lp Total loading time: 0 Render date: 2026-11-06T05:15:39.004Z Has data issue: false hasContentIssue false

Messy Data, Robust Inference? Navigating Obstacles to Inference with bigKRLS

Published online by Cambridge University Press:  26 September 2018

Pete Mohanty*
Affiliation:
Stanford University, Statistics, Sequoia Hall, 390 Serra Mall, Stanford, CA 94305, USA. Email: pmohanty@stanford.edu
Robert Shaffer
Affiliation:
Department of Government, The University of Texas at Austin, Batts Hall 2.116, Austin, TX 78712-1704, USA. Email: rbshaffer@utexas.edu
Rights & Permissions [Opens in a new window]

Abstract

Complex models are of increasing interest to social scientists. Researchers interested in prediction generally favor flexible, robust approaches, while those interested in causation are often interested in modeling nuanced treatment structures and confounding relationships. Unfortunately, estimators of complex models often scale poorly, especially if they seek to maintain interpretability. In this paper, we present an example of such a conundrum and show how optimization can alleviate the worst of these concerns. Specifically, we introduce bigKRLS, which offers a variety of statistical and computational improvements to the Hainmueller and Hazlett (2013) Kernel-Regularized Least Squares (KRLS) approach. As part of our improvements, we decrease the estimator’s single-core runtime by 50% and reduce the estimator’s peak memory usage by an order of magnitude. We also improve uncertainty estimates for the model’s average marginal effect estimates—which we test both in simulation and in practice—and introduce new visual and statistical tools designed to assist with inference under the model. We further demonstrate the value of our improvements through an analysis of the 2016 presidential election, an analysis that would have been impractical or even infeasible for many users with existing software.

Information

Type
Articles
Copyright
Copyright © The Author(s) 2018. Published by Cambridge University Press on behalf of the Society for Political Methodology. 
Figure 0

Table 1. Overview of the KRLS estimation procedure.

Figure 1

Figure 1. “Actual” marginal effects.

Figure 2

Figure 2. Published sample sizes. Source: American Journal of Political Science and American Political Science Review, January 2015 through January 2017 (own calculation).

Figure 3

Figure 3. Runtime comparisons (worst case).

Figure 4

Figure 4. Reexpressed kernel for first differences estimation.

Figure 5

Table 2. Alternatives for the spectral decomposition’s cumulative effect on runtime.

Figure 6

Table 3. Average marginal effect estimates.

Figure 7

Figure 5. Mortality first differences.

Figure 8

Figure 6. Marginal effect of age-adjusted mortality on $\unicode[STIX]{x1D6E5}GOP$ presidential vote share, 2012–16, by proportion of White population in each county.

Figure 9

Figure 7. Marginal effect of age-adjusted mortality on $\unicode[STIX]{x1D6E5}GOP$ presidential vote share, 2012–16, by mortality.

Supplementary material: File

Mohanty and Shaffer supplementary material

Mohanty and Shaffer supplementary material 1

Download Mohanty and Shaffer supplementary material(File)
File 2.9 MB