Research project on sparse inverse optimal transport. SISTA (Sinkhorn + ISTA) recovers a sparse cost function from an observed matching. I implemented it from scratch in NumPy, replaced its proximal-gradient step with a proximal Newton step and then a damped proximal Newton step, and applied all three to real marriage-market data.
Given an observed matching
SISTA alternates between a Sinkhorn pass, which updates the dual potentials
| Variant |
|
File |
|---|---|---|
| Proximal gradient (baseline SISTA) | Chapter_2/sista_algorithm.py |
|
| Proximal Newton | Coordinate-wise step |
Chapter_2/sista_algorithm.py |
| Damped proximal Newton | Newton direction plus backtracking line search (Armijo condition) | Chapter_2/damped_newton.py |
The gradient is
1. Newton converges about 200× faster on well-conditioned problems. With
2. Undamped Newton breaks down as
Data: Chapter_2/scaling_K_results.csv, produced by Chapter_2/NM_DNM_iterationCVnb.py.
3. Application to marriage matching. All three solvers are run on real data to identify which features drive who marries whom:
- Choo & Siow (2006): aggregate US marriages across 60 × 60 age groups, with features such as age gap and assortative-matching indicators.
- Galichon & Dupuy (2014): individual-level Big Five personality traits, height, BMI, education and health.
Chapter_1/ Foundations: logistic-regression MLE, OLS vs LASSO, LASSO vs Ridge coefficient paths
Chapter_2/ SISTA: proximal gradient, proximal Newton, damped Newton
├── sista_algorithm.py core algorithms + basic comparison
├── damped_newton.py damped (line-search) variant
├── sista_tests.py controlled experiments, one parameter changed per test
├── improved_damped.py Newton vs damped Newton experiments
└── NM_DNM_iterationCVnb.py scaling sweep over K → CSV
Chapter_3/ Application to marriage-market data
├── dataset_gen.py data extraction and feature construction
├── Choo_Siow_age_testing.py age-based matching
├── personality_traits_testing.py personality and physical traits
└── mariage_matching_3_models.py all three solvers compared on real data
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cd Chapter_2
python sista_algorithm.py # proximal gradient vs Newton
python sista_tests.py # controlled experiments
python NM_DNM_iterationCVnb.py # scaling sweep → scaling_K_results.csv
cd ../Chapter_3
python mariage_matching_3_models.py # downloads public data from GitHub on first run- Choo, E. & Siow, A. (2006). Who Marries Whom and Why. Journal of Political Economy. Data via math-econ-code/mec_optim.
- Dupuy, A. & Galichon, A. (2014). Personality Traits and the Marriage Market. Journal of Political Economy. Data via TraME-Project/TraME-Datasets.
Tools: Python · NumPy · SciPy · pandas · scikit-learn · Plotly
