Skip to main content

Conditional normal and Heckman Selection

Author
Affiliation

Department of Economics, University of Houston

Published

November 30, 2026

Part of Math Camp: An Introduction to Mathematics and Statistics with Applications in Economics.
Main Stam4Econ site | View this section in the book | Author: Fan Wang | DOI: 10.5281/zenodo.24696926
Date: 2026-11-30 | HTML | PDF | QMD

1 Conditional normal and Heckman Selection

1.1 Truncated expectation for the normal distribution

Often, we are interested in expectation given some truncation. Suppose we have the normal distribution, \(X \sim N(\mu, \sigma^2)\), and we want to compute the expectation of \(X\) given that \(X\) is above some threshold \(c\), i.e., \(E(X | X > c)\). This is called truncated expectation.

To derive the truncated expectation for the normal distribution, \(E(X \mid X > c)\) where \(X \sim N(\mu, \sigma^2)\), follow these steps. First:

\[ E(X \mid X > c) = \frac{\int_c^{\infty} x f_X(x) dx}{P(X > c)} \]

where \(f_X(x)\) is the normal density.

Second we can standardize the variable. Let \(z = \frac{x - \mu}{\sigma}\), so \(x = \mu + \sigma z\) and \(dx = \sigma dz\). The lower limit becomes \(z_c = \frac{c - \mu}{\sigma}\). This allows us to rewrite:

\[ \int_c^{\infty} x f_X(x) dx = \int_{z_c}^{\infty} (\mu + \sigma z) \phi(z) dz \]

where \(\phi(z)\) is the standard normal density. This splits into two terms:

\[ \mu \int_{z_c}^{\infty} \phi(z) dz + \sigma \int_{z_c}^{\infty} z \phi(z) dz \]

The first term is \(\mu [1 - \Phi(z_c)]\). For the second term, use \(\phi'(z)=-z\phi(z)\):

\[ \int_{z_c}^{\infty} z\phi(z)\,dz = \left[-\phi(z)\right]_{z_c}^{\infty} = \phi(z_c). \]

Thus, the second term is \(\sigma\phi(z_c)\).

Third, we now replace the numerator and denominator in the truncated expectation formula and have: \[ E(X \mid X > c) = \frac{\mu [1 - \Phi(z_c)] + \sigma \phi(z_c)}{1 - \Phi(z_c)} = \mu + \sigma \frac{\phi(z_c)}{1 - \Phi(z_c)} \]

Substitute back \(z_c = \frac{c - \mu}{\sigma}\):

\[ E(X \mid X > c) = \mu + \sigma \frac{\phi\left(\frac{c - \mu}{\sigma}\right)}{1 - \Phi\left(\frac{c - \mu}{\sigma}\right)} \]

1.2 Application: Heckman’s two-step correction for sample selection bias

The following discussion is based on Heckman (1979).

Now consider the wage problem. Set up now the heckman two-stage labor participation selection and wage model. In the first stage, we have a latent variable model for labor participation:

\[ Y_i^{\ast} = X_i \beta + \epsilon_i \]

where if \(Y_i^{\ast} > 0\), the individual participates in the labor market and \(W_i\) is observed, and if \(Y_i^{\ast} \le 0\) otherwise. Conditional on the observed covariates \((X_i,Z_i)\), let \(\epsilon_i \sim N(0, 1)\).

In the second stage, we have the wage equation:

\[ W_i = Z_i \gamma + u_i \]

where, conditional on \((X_i,Z_i)\), \(u_i \sim N(0, \sigma^2)\). We only observe wages for individuals who participate in the labor market, i.e., when \(Y_i^* > 0\). Assume that the errors are jointly normal conditional on the observed covariates \((X_i,Z_i)\). Therefore, the expected wage conditional on these covariates and participation is:

\[ E(W_i \mid X_i, Z_i, Y_i^* > 0) = Z_i \gamma + E(u_i \mid \epsilon_i > -X_i \beta, X_i, Z_i) \]

Suppose that \(u_i\) and \(\epsilon_i\) have conditional correlation \(\rho\). Then we can write \(u_i\) as \(u_i = \rho \sigma \epsilon_i + \eta_i\), where \(\eta_i \sim N(0, \sigma^2 (1 - \rho^2))\) is independent of \(\epsilon_i\) conditional on \((X_i,Z_i)\). Then we have:

\[ E(u_i \mid \epsilon_i > -X_i \beta, X_i, Z_i) = \rho \sigma E(\epsilon_i \mid \epsilon_i > -X_i \beta, X_i, Z_i) + E(\eta_i \mid \epsilon_i > -X_i \beta, X_i, Z_i) \] Since \(\eta_i\) is independent of \(\epsilon_i\) conditional on \((X_i,Z_i)\), we have \(E(\eta_i \mid \epsilon_i > -X_i \beta, X_i, Z_i) = 0\). Since \(\epsilon_i \sim N(0,1)\) conditional on \((X_i,Z_i)\), we can use the truncated expectation formula derived above to get:

\[ E(\epsilon_i \mid \epsilon_i > -X_i \beta) = \frac{\phi(-X_i \beta)}{1 - \Phi(-X_i \beta)} = \frac{\phi(X_i \beta)}{\Phi(X_i \beta)}. \]

Therefore, the expected wage conditional on participation is:

\[ E(W_i \mid X_i, Z_i, Y_i^* > 0) = Z_i \gamma + \rho \sigma \frac{\phi(X_i \beta)}{\Phi(X_i \beta)} \]

Even though we do not observe \(Y^{\ast}_i\), if we can estimate \(\beta\) from the first stage (e.g., via probit), we can compute the inverse Mills ratio, \(\frac{\phi(X_i \beta)}{\Phi(X_i \beta)}\), and include it as an additional regressor in the second-stage wage regression to correct for selection bias. This is the essence of Heckman’s two-step correction method.

References

Heckman, James J. 1979. “Sample Selection Bias as a Specification Error.” Econometrica 47 (1): 153–61. https://doi.org/10.2307/1912352.