The sample selection model (Heckman 1979) addresses bias arising when the outcome of interest is observed only for a non-random subsample of the population. Selection bias in ordinary least squares (OLS) occurs when unobserved determinants of the outcome are correlated with unobserved determinants of the selection process. The Heckman two-step estimator corrects for this by adding the inverse Mills ratio — estimated from a first-stage probit — as a regressor in the second-stage outcome equation.
Consider a latent outcome and a selection indicator , with if (outcome is observed) and otherwise. Within the selected subsample:
If and are correlated (), OLS on the selected subsample is inconsistent because the conditioning on induces a non-zero expected value of . Standard examples: wages are only observed for employed workers (labor supply); test scores only for test-takers; disability insurance (DI) award outcomes only for applicants.
Step 1: Estimate the selection equation via probit to obtain .
Step 2: Under bivariate normality of with correlation , the conditional expectation of given selection is , where is the inverse Mills ratio (IMR). Add the estimated IMR as a regressor:
OLS on this augmented equation gives consistent estimates for . The coefficient on estimates and tests for selection ().
If the covariates in the selection equation are identical to in the outcome equation, identification rests solely on the nonlinearity of the IMR. Because the IMR is approximately linear over most of its range, local identification becomes very weak without variation in beyond . An exclusion restriction — a variable that affects selection but not the outcome — is therefore essential for robust identification. The exclusion restriction plays the same conceptual role as an instrument in Instrumental Variables estimation: it provides variation in the probability of selection that is independent of the outcome.
The selection model can be recast in the Rubin Causal Model / Instrumental Variables framework: the exclusion restriction is an instrument for selection . The Heckman two-step imposes a parametric functional form (bivariate normality) to recover — in contrast to the nonparametric IV/local average treatment effect (LATE) approach, which requires monotonicity but not distributional assumptions. The parametric assumptions enable identification without an exclusion restriction (via IMR nonlinearity) but create specification-sensitivity; the IV approach avoids distributional assumptions but requires a genuine exclusion restriction. Both are estimating something related to the average outcome conditional on selection.