Skip to main content

Implicit Differentiation

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 Implicit Differentiation

1.1 Mixture, quantiles, and implicit differentiation

From Sorensen, Wang, and Zytek (2026):

There is some distribution represented by cumualative distribution function \(F(q)\), which is a mixture of two distributions \(F_1(q)\) and \(F_r(q)\). \(q_\tau\) is the \(\tau\) quantile of the mixture distribution. The mixture distribution is defined as:

\[ \tau=F(q_\tau)= \omega_1 F_1(q_\tau)+(1-\omega_1 ) F_r(q_\tau) \]

Suppose we are looking at the wage distribution, and suppose group one is the wage distribution for immigrations, and group \(r\) is the wage distribution for natives. Then \(\omega_1\) represents the share of immigrants in the population.

Suppose \(F_1(5) = 0.5\), and \(F_r(5) = 0.25\), and suppose that \(\omega_1 = 0.1\). Then \(F(5) = 0.1 \cdot 0.5 + 0.9 \cdot 0.25 = 0.275\). This means that 50 percent of immigrants earn less than 5, and 25 percent of natives earn less than 5, and overall, 27.5 percent of the population earns less than 5.

We are interested in the marginal effect of a shift in \(\omega_1\) on the \(\tau\) quantile of the mixture distribution. Assume \(F_1\) and \(F_r\) are continuously differentiable, with corresponding densities \(f_1\) and \(f_r\), and that the mixture density is positive at \(q_\tau\). Holding \(\tau\) fixed and applying the chain rule gives:

\[ 0=[ F_1(q_\tau)-F_r(q_\tau)]+[\omega_1 f_1(q_\tau)+ (1-\omega_1 ) f_r(q_\tau)]\frac{dq_\tau }{d \omega_1} \]

Note that \(f(q_\tau)=\omega_1 f_1(q_\tau)+ (1-\omega_1 ) f_r(q_\tau)\) is the density of the mixture distribution evaluated at \(q_\tau\). So we have, after moving terms around: \[ \frac{dq_\tau }{d \omega_1}=\frac{[F_r(q_\tau)-F_1(q_\tau)]}{f(q_\tau)} \]

When wage is equal to 5, which is the 27.5th percentile of the overall wage distribution, the numerator is \(F_r(5)-F_1(5)=0.25-0.5=-0.25\), so \(\frac{dq_\tau}{d\omega_1}=-\frac{0.25}{f(5)}\). This indicates that an increase in the share of immigrants in the population would decrease the 27.5th percentile of the overall wage distribution. Given sufficient sample size, we can compute accurately the distributions of \(F_1\) and \(F_r\) at any quantiles of interest, and we can approximate the density of the mixture distribution at any quantile of interest.