You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package estimates by maximum likelihood a one-to-one matching model with transferable utility, in which the choice probabilities of agents on both sides of the matching market are given by the logit model. The model is similar to that proposed by Choo and Siow (2006), while the estimator is closely related to that of Dupuy and Galichon (2022), as the distributions of equilibrium transfers and matches are assumed to be observed.
Similar to Rust (1987), the estimation procedure relies on a nested fixed-point algorithm with an outer loop that searches over different vectors of parameters to maximize the log-likelihood function, and an inner loop that, for a given vector of parameters, solves for the equilibrium transfers.
The model and estimator are implemented in JAX. Using squarem-JAXopt, we apply the SQUAREM accelerator to efficiently solve the system of fixed-point equations that characterize the equilibrium transfers without relying on derivatives of the fixed-point. Through JAXopt, we leverage implicit differentiation to automatically compute the gradient of the log-likelihood function.
Model description
The matching market consists of agent of type X and Y on both sides of the market. Each agent choose who they want to match with. The deterministic match-specific payoffs of the agents of type X and Y are given as
where $\sigma^{X}$ and $\sigma^{Y}$ are scale parameters. Note that for identification the deterministic payoffs of being unmatched is normalized to zero
$$
v^{X}_{x0} = v^{Y}_{0y} = 0.
$$
In turn, the choice probabilities of being unmatched are given as
are the marginal distribution of agents of type X and Y. The distribution of equilibrium transfers can be determined from a system of fixed-point equations
that can be shown to be a contraction mapping, see Andersen (2025). Hence, iterating on this expression is guaranteed to converge to an unique solution, $t^{*}_{xy}$.
Maximum likelihood estimator
Let $\theta = (\beta^X, \beta^Y,\sigma^X,\sigma^Y)$ denote the vector of parameters to be estimated and let $\theta_{0}$ denote the true but unobserved vector of parameter values. $\theta$ is estimated by maximum likelihood, where transfers are assumed to be observed with an iid normal distributed measurement error, $\varepsilon_{xy} \sim \mathcal{N}(\mu_{\varepsilon},\sigma^{2}_{\varepsilon})$,
The full log-likelihood function is given by the sum of the log-likelihood of transfers, matched and unmatched agents of type X, and matched and unmatched agents of type Y
the log-likelihood of the matched and unmatched agents of type X is given as the negative Kullback-Leibler divergence between the observed choices, $(m_{x0},m_{xy})$, and the model consistent choice probabilities of agents of type X
and the log-likelihood of the matched and unmatched agents of type Y is given as the negative Kullback-Leibler divergence between the observed choices, $(m_{0y},m_{xy})$, and the model consistent choice probabilities of agents of type Y