Kernel ML Methods

Kernel Regularized Least Squares (KRLS)

In Hainmueller and Hazlett (2014), the use of Kernel Regularized Least Squares (KRLS) was proposed for addressing modeling and inference problems in social science. KRLS leverages machine learning techniques designed for regression and classification tasks, avoiding reliance on linearity or additivity assumptions. The method constructs a flexible hypothesis space using kernels as radial basis functions and identifies the best-fitting surface by minimizing a complexity-penalized least squares problem.

We argue that KRLS is particularly well-suited for social science applications because it avoids strong parametric assumptions while remaining interpretable, similar to generalized linear models. Additionally, it allows for the exploration of nonlinearities, interactions, and heterogeneous effects. To support other researchers, we developed an R package and a Stata routine that make these methods accessible Ferwerda, Hainmueller, and Hazlett (2017).

Resources:

References

Journal Articles

  1. Political Analysis
    Kernel regularized least squares: Reducing misspecification bias with a flexible and interpretable machine learning approach
    Jens Hainmueller, and Chad Hazlett
    Political Analysis, 2014
  2. JSS
    Kernel-based regularized least squares in R (KRLS) and Stata (krls)
    Jeremy Ferwerda, Jens Hainmueller, and Chad J Hazlett
    Journal of Statistical Software, 2017