Add unemployment dynamics lectures (linear + nonlinear)#928
Open
jstac wants to merge 3 commits into
Open
Conversation
Implements issue #910 as a self-contained pair of "Data and Empirics" lectures on Bayesian time-series modeling of US unemployment, estimated with NUTS in NumPyro. Drops the fisheries throughline and the sinh cautionary tale from the original draft. unemployment_linear.md — A Linear Model of Unemployment - Random walk (mass escapes every bounded interval) -> linear AR(1). - The "is it a random walk?" question: monthly phi crowds against 1 (~9yr half-life), annual phi ~0.81; stationary spread and half-life. - Honest account of what's wrong with the linear model: near unit root, unbounded pull, constant reversion speed. - Exercises tie to ar1_turningpts: plug-in vs posterior-integrated predictive fan charts, and a Wecker-style path statistic (max unemployment over the next 8 years). - Distinct from ar1_bayes by design: real data, the random-walk question. unemployment_nonlinear.md — A Nonlinear Model of Unemployment - Motivated by the linear model's weaknesses; saturating tanh restoring force with a bounded pull, canonical form u_{t+1}=u_t+b*tanh(l(u_t-ubar))+e. - Dynamics: 45-degree/cobweb, the separate roles of beta and lambda, iso-(beta*lambda) "ridge before estimation", stationary distribution. - Identification contrast: monthly (lambda->0, beta-lambda ridge, ~random walk) vs annual (lambda identified, ridge dissolves). - Honest linear-vs-nonlinear verdict: fitted restoring forces coincide in the data-rich center and diverge only at recession extremes. Both verified end-to-end (NUTS, 4 chains, R-hat=1.0); added to _toc.yml under Data and Empirics. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8 tasks
📖 Netlify Preview Ready!Preview URL: https://pr-928--sunny-cactus-210e3e.netlify.app Commit: 📚 Changed LecturesBuild Info
|
Connect the "is unemployment a random walk?" discussion to the natural-rate vs hysteresis debate of the 1980s-90s: - Overview now flags the debate (Friedman's natural rate vs Blanchard-Summers hysteresis), with the Nelson-Plosser irony that unemployment was their one stationary series. - A note in the phi-section explains why near-unit-root phi makes the debate hard to settle (low test power) and points to the nonlinear resolution pursued in unemployment_nonlinear. - Adds 5 references to _static/quant-econ.bib (Friedman 1968, Nelson-Plosser 1982, Blanchard-Summers 1986, Røed 1997, Kapetanios-Shin-Snell 2003). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…currence Replace the "linear pull is unbounded, which is bad" argument with a safer, positive observation: viewed linearly the data look like a random walk, yet unemployment stays in a band for decades. The linear model can reconcile these only on a knife-edge (phi just below 1); nonlinearity reconciles them structurally -- random-walk-like in normal times, with a firmer restoring force far from the natural rate that guarantees recurrence. - unemployment_linear: rename "What's unsatisfying..." to "Random walk, yet recurrent" and rewrite around the reconciliation; update the bridge prose under the scatter. Also incorporates John's Overview edits plus minor grammar fixes. - unemployment_nonlinear: reframe the Overview and conclusion to match. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #910 as a self-contained pair of lectures in the Data and Empirics section, on Bayesian time-series modeling of US unemployment (NUTS in NumPyro). Per discussion, this drops the original draft's fisheries throughline and
sinhcautionary tale, and refocuses on the dynamics of a one-dimensional model plus an honest account of what the data can and cannot support.Lectures
unemployment_linear.md— A Linear Model of Unemploymentar1_turningpts: plug-in vs. posterior-integrated predictive fan charts (the conditional-vs-extended distinction), and a Wecker-style path statistic (max unemployment over the next 8 years; P(reaches 7%) ≈ 0.32 from the end-2019 low).ar1_bayes: real data, and the random-walk question rather than the initial-condition focus.unemployment_nonlinear.md— A Nonlinear Model of Unemploymenttanhrestoring force with a bounded pull:Verification
Both lectures convert (
jupytext→py) and run end-to-end on a GPU (NUTS, 4 chains,chain_method="vectorized", R̂=1.0, 0 divergences); every figure was inspected. Added to_toc.ymlunder Data and Empirics.Notes for reviewers
{doc}links among these lectures and toar1_bayes,bayes_nonconj,ar1_turningpts).UNRATE) viapandas_datareader, consistent with existing lectures.🤖 Generated with Claude Code