Skip to content

Commit b2a6c87

Browse files
thomassargent30claudemmcky
authored
[exponential_families, information_projections, opt_transport, approximation_errors, turbulence_inference, phillips_*] Information Geometry section, optimal-transport links, Phillips connections (#1144)
* [exponential_families, information_projections, opt_transport, approximation_errors, turbulence_inference, phillips_*] Information Geometry section, optimal-transport links, Phillips connections Move the five information-geometry lectures into their own "Information Geometry" toc section. exponential_families: restructure around models, families and invariants (score, Fisher information, sufficiency, Chentsov, Pitman-Koopman-Darmois); add a Fisher-Rao section, a Wasserstein subsection (W2 between normals, behaviour under y = exp(x)), the Fisher-Rao distance over all densities, displacement interpolation, and two exercises. information_projections: add the Fisher-Rao path to the simplex figure; Sinkhorn potentials as shadow prices and logit choice; entropic plans as an exponential family; the entropy penalty as mutual information (cost of information); an inverse-OT estimation exercise. opt_transport: c-transform and reduced costs in the dual section; an entropic-regularization subsection using POT; links to the information-geometry lectures; typo fixes. approximation_errors: W2 rate between stationary Gaussian processes and its dependence on filtering, against the invariant KL rate. turbulence_inference: quantile shift functions for the PSID and model histograms. phillips_escaping_nash: escapes as exponential tilts of the shocks, with a table of exit times and KL costs. phillips_priors: least squares as a natural gradient; exercise on the unit dependence of stochastic-gradient learning. phillips_learning: note relating the action functional to the geometric action. Add 18 bib entries. Co-Authored-By: Claude Opus 5.5 <[email protected]> * [exponential_families, information_projections, opt_transport, phillips_*, turbulence_inference] Review fixes Copilot review comments: - exponential_families: the converse (equal Fisher information implies sufficiency) needs a connected parameter space. - information_projections: the multipliers alpha and beta, not the natural parameters alpha/eps and beta/eps, converge (up to a common constant) to the LP shadow prices. - information_projections: the inverse-OT standard error uses the profile curvature per shipment, times N; say so. - phillips_priors: the natural-gradient reading replaces the RLS moment estimate R by M(gamma); the invariance holds for the full recursion because R' = K'RK. - turbulence_inference: quantile shifts describe how quantiles move, not how individual men's earnings changed. Other text fixes: - exponential_families: move the "two sets of coordinates" sentence below the "When it does not" sentence it had split from its antecedent; entropy "changes" rather than "rises"; a flat prior is "generally" not flat; W2 = Euclidean distance only in (mu, sigma) of the lecture's parameterizations; the plotted Fisher-Rao path is the one within the normal family. - information_projections: expectation parameters are the normalized plan's totals; word order of the m-projection sentence. - opt_transport: alpha, beta converge to u, v up to a constant; the entropy term, not the spreading, is what makes the problem easy. - phillips_escaping_nash: the tilt's KL cost bounds the action integrand from above. - turbulence_inference: the crossing is near the 37th percentile. - Two captions shortened. No code changes. Co-Authored-By: Claude Opus 5.5 <[email protected]> * [exponential_families] Style pass - Italic, not bold, for the two emphasized "does" in the overview (qe-writing-005). - In-text citations for Darmois, Koopman and Pitman instead of names followed by a parenthetical cite (qe-ref-001). - Two captions cut to six words or fewer (qe-fig-004). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Matt McKay <[email protected]>
1 parent 13a05a1 commit b2a6c87

10 files changed

Lines changed: 2154 additions & 347 deletions

‎lectures/_static/quant-econ.bib‎

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6207,6 +6207,37 @@ @article{Giannitsarou2005
62076207
pages = {276--287}
62086208
}
62096209

6210+
@article{EvansHonkapohjaWilliams2010,
6211+
author = {Evans, George W. and Honkapohja, Seppo and Williams, Noah},
6212+
title = {Generalized Stochastic Gradient Learning},
6213+
journal = {International Economic Review},
6214+
year = {2010},
6215+
volume = {51},
6216+
number = {1},
6217+
pages = {237--262},
6218+
doi = {10.1111/j.1468-2354.2009.00578.x}
6219+
}
6220+
6221+
@article{Amari1998,
6222+
author = {Amari, Shun-ichi},
6223+
title = {Natural Gradient Works Efficiently in Learning},
6224+
journal = {Neural Computation},
6225+
year = {1998},
6226+
volume = {10},
6227+
number = {2},
6228+
pages = {251--276}
6229+
}
6230+
6231+
@article{HeymannVandenEijnden2008,
6232+
author = {Heymann, Matthias and Vanden-Eijnden, Eric},
6233+
title = {The Geometric Minimum Action Method: A Least Action Principle on the Space of Curves},
6234+
journal = {Communications on Pure and Applied Mathematics},
6235+
year = {2008},
6236+
volume = {61},
6237+
number = {8},
6238+
pages = {1052--1117}
6239+
}
6240+
62106241
@article{MalmendierNagel2016,
62116242
author = {Malmendier, Ulrike and Nagel, Stefan},
62126243
title = {Learning from Inflation Experiences},
@@ -6824,6 +6855,153 @@ @article{Nielsen2013
68246855
doi = {10.1109/LSP.2013.2243726}
68256856
}
68266857

6858+
@misc{NielsenMLSS2015,
6859+
author = {Nielsen, Frank},
6860+
title = {Computational Information Geometry for Machine Learning},
6861+
howpublished = {Lecture slides, Machine Learning Summer School, Sydney},
6862+
year = {2015}
6863+
}
6864+
6865+
@article{Fisher1922,
6866+
author = {Fisher, Ronald A.},
6867+
title = {On the Mathematical Foundations of Theoretical Statistics},
6868+
journal = {Philosophical Transactions of the Royal Society of London. Series A},
6869+
year = {1922},
6870+
volume = {222},
6871+
pages = {309--368},
6872+
doi = {10.1098/rsta.1922.0009}
6873+
}
6874+
6875+
@article{Darmois1935,
6876+
author = {Darmois, Georges},
6877+
title = {Sur les lois de probabilit{\'e} {\`a} estimation exhaustive},
6878+
journal = {Comptes Rendus de l'Acad{\'e}mie des Sciences},
6879+
year = {1935},
6880+
volume = {200},
6881+
pages = {1265--1266}
6882+
}
6883+
6884+
@article{Koopman1936,
6885+
author = {Koopman, Bernard O.},
6886+
title = {On Distributions Admitting a Sufficient Statistic},
6887+
journal = {Transactions of the American Mathematical Society},
6888+
year = {1936},
6889+
volume = {39},
6890+
number = {3},
6891+
pages = {399--409},
6892+
doi = {10.1090/S0002-9947-1936-1501854-3}
6893+
}
6894+
6895+
@article{Pitman1936,
6896+
author = {Pitman, Edwin J. G.},
6897+
title = {Sufficient Statistics and Intrinsic Accuracy},
6898+
journal = {Mathematical Proceedings of the Cambridge Philosophical Society},
6899+
year = {1936},
6900+
volume = {32},
6901+
pages = {567--579}
6902+
}
6903+
6904+
@article{Rao1945,
6905+
author = {Rao, C. Radhakrishna},
6906+
title = {Information and the Accuracy Attainable in the Estimation of Statistical Parameters},
6907+
journal = {Bulletin of the Calcutta Mathematical Society},
6908+
year = {1945},
6909+
volume = {37},
6910+
pages = {81--91}
6911+
}
6912+
6913+
@article{CostaSantosStrapasson2015,
6914+
author = {Costa, Sueli I. R. and Santos, Sandra A. and Strapasson, Jo{\~a}o E.},
6915+
title = {Fisher Information Distance: A Geometrical Reading},
6916+
journal = {Discrete Applied Mathematics},
6917+
year = {2015},
6918+
volume = {197},
6919+
pages = {59--69}
6920+
}
6921+
6922+
@article{KhanZhang2022,
6923+
author = {Khan, Gabriel and Zhang, Jun},
6924+
title = {When Optimal Transport Meets Information Geometry},
6925+
journal = {Information Geometry},
6926+
year = {2022},
6927+
volume = {5},
6928+
pages = {47--78},
6929+
doi = {10.1007/s41884-022-00066-w}
6930+
}
6931+
6932+
@article{AmariKarakidaOizumi2018,
6933+
author = {Amari, Shun-ichi and Karakida, Ryo and Oizumi, Masafumi},
6934+
title = {Information Geometry Connecting {W}asserstein Distance and {K}ullback--{L}eibler Divergence via the Entropy-Relaxed Transportation Problem},
6935+
journal = {Information Geometry},
6936+
year = {2018},
6937+
volume = {1},
6938+
number = {1},
6939+
pages = {13--37}
6940+
}
6941+
6942+
@article{McCann1997,
6943+
author = {McCann, Robert J.},
6944+
title = {A Convexity Principle for Interacting Gases},
6945+
journal = {Advances in Mathematics},
6946+
year = {1997},
6947+
volume = {128},
6948+
number = {1},
6949+
pages = {153--179}
6950+
}
6951+
6952+
@article{Takatsu2011,
6953+
author = {Takatsu, Asuka},
6954+
title = {{W}asserstein Geometry of {G}aussian Measures},
6955+
journal = {Osaka Journal of Mathematics},
6956+
year = {2011},
6957+
volume = {48},
6958+
number = {4},
6959+
pages = {1005--1026}
6960+
}
6961+
6962+
@article{PeyreCuturi2019,
6963+
author = {Peyr{\'e}, Gabriel and Cuturi, Marco},
6964+
title = {Computational Optimal Transport: With Applications to Data Science},
6965+
journal = {Foundations and Trends in Machine Learning},
6966+
year = {2019},
6967+
volume = {11},
6968+
number = {5--6},
6969+
pages = {355--607}
6970+
}
6971+
6972+
@article{Gelbrich1990,
6973+
author = {Gelbrich, Matthias},
6974+
title = {On a Formula for the {$L^2$} {W}asserstein Metric between Measures on {E}uclidean and {H}ilbert Spaces},
6975+
journal = {Mathematische Nachrichten},
6976+
year = {1990},
6977+
volume = {147},
6978+
number = {1},
6979+
pages = {185--203},
6980+
doi = {10.1002/mana.19901470121}
6981+
}
6982+
6983+
@article{MatejkaMcKay2015,
6984+
author = {Mat{\v{e}}jka, Filip and McKay, Alisdair},
6985+
title = {Rational Inattention to Discrete Choices: A New Foundation for the Multinomial Logit Model},
6986+
journal = {American Economic Review},
6987+
year = {2015},
6988+
volume = {105},
6989+
number = {1},
6990+
pages = {272--298},
6991+
doi = {10.1257/aer.20130047}
6992+
}
6993+
6994+
@article{DupuyGalichon2014,
6995+
author = {Dupuy, Arnaud and Galichon, Alfred},
6996+
title = {Personality Traits and the Marriage Market},
6997+
journal = {Journal of Political Economy},
6998+
year = {2014},
6999+
volume = {122},
7000+
number = {6},
7001+
pages = {1271--1319},
7002+
doi = {10.1086/677191}
7003+
}
7004+
68277005
@article{AndersonDePalmaThisse1988,
68287006
author = {Anderson, Simon P. and de Palma, Andr{\'e} and Thisse, Jacques-Fran{\c{c}}ois},
68297007
title = {A Representative Consumer Theory of the Logit Model},

‎lectures/_toc.yml‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ parts:
3434
numbered: true
3535
chapters:
3636
- file: divergence_measures
37-
- file: exponential_families
38-
- file: information_projections
39-
- file: approximation_errors
40-
- file: specification_tests
41-
- file: turbulence_inference
4237
- file: likelihood_ratio_process
4338
- file: likelihood_ratio_process_2
4439
- file: likelihood_var
@@ -57,6 +52,14 @@ parts:
5752
- file: pricing_information
5853
- file: market_diffusion
5954
- file: gallant_tauchen
55+
- caption: Information Geometry
56+
numbered: true
57+
chapters:
58+
- file: exponential_families
59+
- file: information_projections
60+
- file: approximation_errors
61+
- file: specification_tests
62+
- file: turbulence_inference
6063
- caption: Linear Programming
6164
numbered: true
6265
chapters:

‎lectures/approximation_errors.md‎

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ kernelspec:
2828

2929
## Overview
3030

31-
When an econometrician estimates a model that does not contain the process that generated the data, the maximum likelihood estimator converges, under regularity conditions, to the member of the model that is closest to the true process in the sense of Kullback–Leibler (KL) divergence.
31+
When an econometrician estimates a family of models that does not contain the process that generated the data, the maximum likelihood estimator converges, under regularity conditions, to the model in the family that is closest to the true process in the sense of Kullback–Leibler (KL) divergence.
3232

33-
In {doc}`information_projections` we called that member the **m-projection** of the true distribution onto the model.
33+
In {doc}`information_projections` we called that model the **m-projection** of the true distribution onto the family.
3434

3535
We organize this lecture around one consequence of that fact: by choosing the model, the data, and any filter that transforms the data, an econometrician chooses which projection an estimator computes.
3636

@@ -62,7 +62,7 @@ We use the following imports.
6262
import numpy as np
6363
import matplotlib.pyplot as plt
6464
from scipy import integrate
65-
from scipy.linalg import toeplitz, cho_factor, cho_solve
65+
from scipy.linalg import toeplitz, cho_factor, cho_solve, sqrtm
6666
from scipy.optimize import minimize
6767
```
6868

@@ -1046,6 +1046,50 @@ Sims's filter $1 - \kappa(L)\kappa(L^{-1})$ is zero at $\pm\pi/2$, at $\pi$, and
10461046
10471047
It removes the deterministic seasonal, whose spectral measure puts all its mass at $\pm\pi/2$, and the equality applies to what remains, as {ref}`ae_ex_invariance` shows.
10481048
1049+
The invariance belongs to the KL divergence, which compares two processes frequency by frequency through the ratio $f / g$.
1050+
1051+
A distance that measures how far probability mass must move does not have it.
1052+
1053+
The squared 2-Wasserstein distance of {doc}`exponential_families` between $N(0, \Sigma_1)$ and $N(0, \Sigma_2)$ is $\operatorname{tr}\left(\Sigma_1 + \Sigma_2 - 2 (\Sigma_1^{1/2} \Sigma_2 \Sigma_1^{1/2})^{1/2}\right)$ {cite}`Gelbrich1990`.
1054+
1055+
The covariance matrices of $T$ consecutive observations of two stationary processes are nearly diagonalized by the same Fourier basis when $T$ is large, so for two Gaussian processes with mean zero this distance, divided by $T$, converges to
1056+
1057+
$$
1058+
\frac{1}{2\pi} \int_{-\pi}^{\pi} \left( \sqrt{f(\omega)} - \sqrt{g(\omega)} \right)^2 d\omega .
1059+
$$ (ae_w2_rate)
1060+
1061+
Filtering both processes by $c(L)$ multiplies the integrand by $\lvert c(e^{-i\omega}) \rvert^2$, so the filter changes the distance even when it leaves the divergence rate unchanged.
1062+
1063+
We check {eq}`ae_w2_rate` for a first-order autoregression with $\rho = 0.8$ and white noise with variance $2$, and filter both by $1 - 0.9 L$.
1064+
1065+
```{code-cell} ipython3
1066+
def w2_squared_gaussian(S1, S2):
1067+
"""Squared 2-Wasserstein distance between N(0, S1) and N(0, S2)."""
1068+
root = sqrtm(S1)
1069+
return np.trace(S1 + S2 - 2 * np.real(sqrtm(root @ S2 @ root)))
1070+
1071+
1072+
def w2_rate(f, g):
1073+
"""(1/2π) ∫ (√f - √g)² dω on the grid."""
1074+
return np.mean((np.sqrt(f) - np.sqrt(g))**2)
1075+
1076+
1077+
f_ar, g_wn = ar_spectrum(0.8), ar_spectrum(0.0, 2.0)
1078+
for T_w in (100, 400):
1079+
S_f, S_g = toeplitz(autocov(f_ar, T_w - 1)), toeplitz(autocov(g_wn, T_w - 1))
1080+
print(f"T = {T_w}: W2² / T = {w2_squared_gaussian(S_f, S_g) / T_w:.4f}")
1081+
1082+
gain_sq = np.abs(1 - 0.9 * z)**2
1083+
print(f"formula (ae_w2_rate): {w2_rate(f_ar, g_wn):.4f}")
1084+
print(f"filtered by 1 - 0.9L: W2 rate {w2_rate(gain_sq * f_ar, gain_sq * g_wn):.4f}, "
1085+
f"KL rate {kl_rate(f_ar, g_wn):.4f} before and "
1086+
f"{kl_rate(gain_sq * f_ar, gain_sq * g_wn):.4f} after")
1087+
```
1088+
1089+
The filter leaves the KL divergence rate at its value and changes the Wasserstein rate.
1090+
1091+
{doc}`exponential_families` describes the same contrast for transformations of a single random variable.
1092+
10491093
A filter cannot delete a band of frequencies from the likelihood.
10501094
10511095
A filter whose frequency response is zero on a band makes the filtered processes linearly deterministic, and formula {eq}`ae_kl_rate`, which assumes spectral densities bounded away from zero, no longer applies.

0 commit comments

Comments
 (0)