Skip to content

[phillips_escaping_nash, phillips_misspecified, phillips_self_confirming, phillips_priors, phillips_learning] Information-geometry follow-ups - #1147

Merged
mmcky merged 3 commits into
mainfrom
nov_penn10inew
Nov 23, 2026
Merged

mmcky merged 3 commits into
mainfrom
nov_penn10inew

Conversation

@thomassargent30

@thomassargent30 thomassargent30 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

This PR follows up #1144. It adds the two remaining information-geometry links to the Phillips curve suite and fixes some wording.

phillips_escaping_nash: the experimentation trap and Fisher information

New paragraphs and one code cell go at the end of en_trap.

  • At the self-confirming equilibrium, the Fisher information M̄(γ)/σ₁² has eigenvalues 0.0383 and 289.9.
  • The least-informative direction lies within 0.04° of the Nash-to-Ramsey direction. Moving that way rotates the perceived curve about the point where the data sit, since both curves predict U = u at π = θu.
  • The data still reject the Ramsey belief, at θ²σ₂²/(2σ₁²) = 0.5 nats per observation.
  • A constant-gain update at the equilibrium adds noise with covariance ε² times the inverse Fisher information. Beliefs therefore jitter most along the Nash–Ramsey line. This is the escape direction that phillips_priors finds under its baseline prior.
  • Caveat: the ratio of the eigenvalues depends on coordinates. It falls from about 7,600 to 11 when inflation is measured from θu. The KL divergence does not depend on coordinates.

phillips_misspecified

  • Pythagorean identity. In pm_concept it holds along σ²_ε, because those models form an exponential family, so pm_sigma2 is moment matching. It fails along c, a curved family. A table checks both.
  • pmis_ex3. The mean term is 45% of the KL rate, which quantifies "fitting a first moment with second moments".

phillips_self_confirming

  • Rewording. "The fitting criterion is not scale-invariant" was imprecise. Rescaling the units leaves the equilibrium gain unchanged, as it must for a KL criterion. What changes the gain is σ₂ relative to ν. A code line checks this.
  • New exercise sc_ex4. It gives the KL rate of the true distribution of U given y from the Keynesian government's inverted curve: ½ log(1 + σ₁²/(θ²σ₂²)) = ½ log(ȳ_K/θU*). That is 0.347 nats per observation, about 9 observations for a likelihood ratio of 20, against about 200 in pmis_ex3. A simulation confirms it.

Smaller changes

  • Added label ppr_escape_direction in phillips_priors.
  • Removed "plays the role of" in phillips_learning, phillips_escaping_nash, phillips_priors and phillips_credibility (the three bullets that match the Bray correspondence). No uses remain in the Phillips suite.

Checks

  • escaping_nash, misspecified and self_confirming execute locally with no errors or stderr output. Every number in the text matches the printed output.
  • A subset book build exits cleanly, with no warnings from the new labels or references.

🤖 Generated with Claude Code

…ing, phillips_priors, phillips_learning] Information-geometry follow-ups

phillips_escaping_nash: state the experimentation trap in terms of
Fisher information. At the self-confirming equilibrium the eigenvalues
are 0.0383 and 289.9, and the least-informative direction is the
Nash-to-Ramsey direction, a rotation of the perceived curve about the
data. The Ramsey belief is still 0.5 nats per observation from the
truth. The noise in constant-gain updates is proportional to the
inverse Fisher information. The eigenvalue ratio depends on
coordinates (11 with inflation centered); the KL divergence does not.

phillips_misspecified: the Pythagorean identity holds along sigma^2
(an exponential family) and fails along c (a curved family), with a
numerical check; in pmis_ex3 the mean term is 45% of the KL rate.

phillips_self_confirming: correct the "not scale-invariant" sentence
(rescaling units leaves the gain unchanged; only nu/sigma_2 matters),
with a check; new exercise sc_ex4 on the KL divergence of the true
U given y from the Keynesian government's inverted curve,
(1/2) log(1 + sigma_1^2/(theta^2 sigma_2^2)) = (1/2) log(ybar_K/(theta U*)).

phillips_priors: label ppr_escape_direction; voice fix.
phillips_learning, phillips_escaping_nash: replace "plays the role of".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thomassargent30
thomassargent30 requested review from mmcky and a balanced review from Copilot November 23, 2026 00:12
@mmcky

mmcky commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

thanks @thomassargent30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues requiring resolution for the lecture updates.

No open issues 🎉

What changed in this PR

This follow-up to #1144 extends the Phillips curve lectures’ connections to information geometry, adding numerical illustrations and clarifying existing explanations.

Changes:

  • Connects Fisher information to the experimentation trap and the Nash-to-Ramsey escape direction.
  • Adds numerical checks of the Pythagorean identity and quantifies the mean’s contribution to model misspecification.
  • Clarifies scale invariance and adds an exercise measuring the divergence from the Keynesian government’s inverted curve.
File Description
lectures/​phillips_self_confirming.md Clarifies unit rescaling and adds a conditional KL-divergence exercise with simulation.
lectures/​phillips_priors.md Adds an escape-direction reference label and clarifies updating-speed wording.
lectures/​phillips_misspecified.md Explains projection geometry and adds divergence calculations.
lectures/​phillips_learning.md Clarifies the Legendre transform’s description as a rate function.
lectures/​phillips_escaping_nash.md Adds Fisher-information calculations, escape-direction links, and coordinate caveats.

Review effort: Balanced

phillips_self_confirming: the unit-invariance sentence now says that
minimizing the criterion is the same as minimizing a KL divergence rate
(the criterion itself is sigma_2^2 times a function of c), and the
lead-in says the fit depends on sigma_2 relative to the mean.

phillips_escaping_nash: Fisher information at M(gamma-bar); the two
curves disagree about unemployment when inflation is away from theta*u;
the KL direction in the text matches the printed output; the eigenvalues
print as 0.0383 and 289.9 instead of in scientific notation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mmcky

mmcky commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@thomassargent30 I've reviewed this. Every number in the text matches the printed output. I checked the derivations by hand, including all of sc_ex4. The three lectures run cleanly, and every pre-existing output and figure is unchanged.

I pushed 300df3c with small text fixes:

  • phillips_self_confirming:
    • "because the criterion is a KL divergence rate" now says that minimizing the criterion is the same as minimizing a KL divergence rate. The sentence before says the criterion is σ₂² times a function of c, so it is not itself a KL rate.
    • The lead-in now reads "the fit depends on the size of σ₂ relative to the mean".
  • phillips_escaping_nash:
    • The Fisher information is now evaluated at M̄(γ̄).
    • The curves "disagree only about unemployment when inflation is away from θu".
    • The direction of the KL divergence in the text now matches the printed output.
    • The eigenvalues print as 0.0383 and 289.9 instead of in scientific notation.

Two further points change how a result reads, so I've left them to you. Suggested wording is below, and I'm happy to push either one if you agree.

1. phillips_escaping_nash, the paragraph on coordinates. After centering, the Fisher information is diag(σ₂²/σ₁², 1/σ₁²). So the remaining ratio of 11 is 1/σ₂², which depends on the units of inflation. Measured in tenths of a percent, the centered Fisher information is diag(100, 11.1), and the slope becomes the best-informed coefficient. So "so the slope is still the least-informative coefficient" doesn't follow from the sentence before it, and it holds only in these units. In the uncentered coordinates, the alignment with the Nash–Ramsey direction survives the change of units (0.004°). Suggested replacement for the last three paragraphs of the trap section:

In those coordinates the move from Nash to Ramsey changes the slope alone, and the ratio of the eigenvalues falls from about 7,600 to $1/\sigma_2^2 \approx 11$.

Most of the large ratio comes from measuring the intercept at $\pi = 0$, about 17 standard deviations of inflation below the data.

The rest depends on the units of inflation: measured in tenths of a percent, the slope would become the best-informed coefficient.

Two things do not depend on the coordinates: the KL divergence between two beliefs, an invariant in the sense of {ref}ef_invariants, and the fact that the noise in the updates has covariance $\varepsilon^2$ times the inverse of the Fisher information ({ref}ppr_natural_gradient).

2. phillips_misspecified, the 45% in pmis_ex3. The 45% is only the direct mean term at the fitted model. Fitting the mean also pulls c away from the value that best fits the spectrum. With the same spectrum and no mean, the best fit has c ≈ 0.031 instead of 0.081. Its divergence rate is 0.0028 instead of 0.0152, so about four-fifths of the rate comes from fitting the mean. "Almost half" therefore undersells your point. Suggested change: add this to the end of the solution's code cell.

def mse_no_mean(c):
    return forecast_mse(F_star, 0.0, c, bray.ρ, bray.z)

c_0 = minimize_scalar(mse_no_mean, bounds=(1e-4, 0.99), method='bounded',
                      options={'xatol': 1e-10}).x
G_0 = bray.approx_spectrum(c_0, mse_no_mean(c_0))
print(f"no mean: c = {c_0:.4f},  KL rate = {kl_rate(F_star, 0.0, G_0):.4f}")

It prints no mean: c = 0.0306, KL rate = 0.0028. Then replace the solution's last sentence with:

The mean also pulls $c$ away from the value that best fits the spectrum.

With the same spectrum and no mean, the best fit has $c \approx 0.03$ instead of $0.08$, and the divergence rate is only about $0.003$.

So about four-fifths of what separates the true process from the perceived model comes from the model's use of second moments to fit a first moment.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

…pondence

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mmcky
mmcky merged commit 0dc4fe7 into main Nov 23, 2026
2 checks passed
@mmcky
mmcky deleted the nov_penn10inew branch November 23, 2026 03:06
mmcky pushed a commit to QuantEcon/lectures that referenced this pull request Nov 23, 2026
The nightly of 2026-11-23 re-copies 19 pool lectures whose canonical copy moved upstream: intermediate 12 (QuantEcon/lecture-python.myst#1144, QuantEcon/lecture-python.myst#1147 and QuantEcon/lecture-python.myst#1141), advanced 5 (QuantEcon/lecture-python-advanced.myst#419, QuantEcon/lecture-python-advanced.myst#421 and QuantEcon/lecture-python-advanced.myst#422) and intro 2 (QuantEcon/lecture-python-intro#876). In the merged bibliography only the header's jax input hash changes (QuantEcon/lecture-jax#377); its 1011 entries are unchanged. In sync/ledger.yml only pins and digests change.

Checked by mini:project-monorepo's recompute from a clean clone at the base, which gives the head's tree, and by the organiser's independent review: each lecture is byte-identical to its upstream copy at the new pin once the recorded asset rewrites are applied, no bibliography key is missing and no cross-reference is broken. The site-build, pool-check and drift-check runs on the head were green before merge.

Lecture content: reviewed by @mmcky ("Approve runs, then merge") in the organiser session, at head a815b36.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants