Identifying Macro
With one history and no control group, how can anyone say what a policy did?
The part opens on Sims's price puzzle, recomputed from FRED data: a monthly VAR of production, prices and the funds rate, 1965-1995, says prices rise for three years after a hike, until commodity prices are added. A VAR alone knows six numbers and needs nine; three rotations of one Island history tell three stories. The viewer picks the monetary tightening from three unlabelled responses. Five schemes (timing, the long run, signs, an outside instrument, a change in variance) are run on the Island's structural VAR, where the truth is known, on one history and on 300; local projections against VARs; narrative and high-frequency instruments cure Part 31's price puzzle. After an intermission of the yield curve's slope since 1953, Part 30's model is estimated by the Kalman filter and Metropolis-Hastings, then without the rate observed, its posteriors mostly prior; regions and the missing intercept; shift-share designs; impulse-response matching; forecasts at the turns and what macroeconomics knows; the monetary-shock and multiplier dials; research departments and the frontier.
What you need. Part 28: the Lucas critique; Part 29: Gali's long-run VAR; Part 30: the New Keynesian model; Part 31: narrative and high-frequency shocks; Part 32: local projections and regional multipliers; Part 54: estimation and identification; Statistics, Built: time series, the Kalman filter and Bayesian computation.
- Hook
- the price puzzle
- Ideas, models and mathematics
- VARs and five ways to identify them, local projections, narrative and high-frequency shocks, estimating a DSGE model, regional evidence and the missing intercept, forecasts as tests, what macro data can and cannot say
- Agora gains
agora.macrometricson the Island- Play it
- which shock was it?
What you will be able to do
Principles and the major
- Explain why a correlation between interest rates and prices cannot by itself say what policy did.
- Read an impulse response and say what assumption produced it.
Graduate
- Estimate a VAR and identify a shock by timing, long-run, sign, instrument and variance restrictions.
- Estimate impulse responses by local projections and compare them with a VAR's.
- Estimate a small DSGE model by the Kalman filter and Metropolis-Hastings, and check its posteriors against its priors.
Research
- Prove that an external instrument and a variance change each identify a column of the impact matrix, and that projections and VARs share an estimand.
- Diagnose weak identification by likelihood profiles.
Practice
- Brief a policy committee on what the last rate rise did, with the identifying assumption of each estimate stated.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Principles and the major 8 min · Graduate 24 min · Research 27 min · Practice 9 min.
- 0The price puzzlePrinciples and the major3 min
- 1What a VAR knows, and what it does notPrinciples and the major2 min
- 2Play it: which shock was it?Principles and the major1 min
- 3Five ways to identify a shockResearch2 min
- 4The five, on the Island's historyGraduate2 min
- 5Local projectionsGraduate2 min
- 6Narrative and high-frequency shocksGraduate2 min
- Intermission: the slope of the yield curve, 1953-2026Principles and the major
- 7Estimating a DSGE modelGraduate2 min
- 8What the data cannot tell apartResearch2 min
- 9Macro from the cross-sectionGraduate2 min
- 10Matching impulse responsesGraduate2 min
- 11Forecasts, and what macroeconomics knowsGraduate2 min
- 12The Dials: what a rate rise and a dollar of spending doGraduate
- 13In practice: research departmentsPractice1 min
- 14Frontier: micro data and expectationsGraduate1 min
- Recap, problems, and the road aheadAll tracks3 min
Also on this page: Lecture · Key results · Try it · Lab · Problems · Notes and sources · Build the film.
Lecture
The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film.
The price puzzlePrinciples and the major3 min
In 1992 Christopher Sims ran the most careful vector autoregressions of the day, for five countries, asking what happens after a central bank raises its rate. We can repeat his American exercise with the data in our Data Room: industrial production, consumer prices and the federal funds rate, month by month from 1965 to 1995. Here is what consumer prices do after a one-point rise in the funds rate. They rise. For 36 months the price level is higher than it would have been, by up to 0.24 percent, and the band around the estimate does not include a fall for more than a year. Raising rates to fight inflation, it seems, raises inflation. It came to be called the price puzzle. Sims's own diagnosis was that the Federal Reserve raised rates when it saw inflation coming, using information the model did not have, so the model mistook the bank's foresight for the effect of its policy. Give the model a piece of what the bank saw, commodity prices, which move before consumer prices do, and the puzzle shrinks: after 22 months prices are lower, and after four years 1.1 percent lower. The data had not changed. The assumption had.
The question: with one history and no control group, how can anyone say what a policy did? What can a history of a few series say on its own? What assumptions turn its correlations into the effect of a policy? How are whole models of the economy estimated? And which answers survive, whatever the method?
Economics, Built. Part fifty-five: identifying macro. By the end of this part you will be able to say what a vector autoregression identifies on its own, and what it cannot; five ways of identifying a shock, each tested on the Island's history, where the true effect of policy is known; how local projections and narrative and high-frequency instruments work; how a whole model of the economy is estimated, with the Kalman filter and the Metropolis-Hastings algorithm, and what it cannot learn; and what regions, matched impulse responses and a few decades of argument have taught macroeconomics.
What it does: Sims's VAR on American data, with and without commodity prices; the question; objectives
1What a VAR knows, and what it does notPrinciples and the major2 min
In 1980 Christopher Sims proposed that macroeconomists stop imposing restrictions they could not defend. Let each variable, here output growth, inflation and the policy rate, depend on the recent past of all of them. That is a vector autoregression, and least squares estimates it equation by equation. What is left over each quarter, the surprises u, are mixtures of the shocks we care about, supply, demand and monetary policy, which nobody observes. Their covariance is B times B transposed. And here is the catch. With three variables the covariance of the surprises has six distinct numbers, but the mixing matrix B has nine. The data pin down six of them. Three must come from somewhere else.
Here is what that means on the Island. Fit a vector autoregression to 240 quarters of its history. Then take three different mixing matrices, each of which reproduces the covariance of the surprises exactly, and in each call one of the shocks monetary policy. Story one: a rise in the rate barely moves output or inflation. Story two: output edges up and inflation falls. Story three: output collapses and inflation jumps. All three fit the data equally well, to the last decimal. A vector autoregression summarizes a history; it does not, on its own, say what caused what. Every answer about the effect of policy comes from an assumption added to it, and the rest of this part is about which assumptions earn their place.
What it does: Six numbers for nine; three rotations, three stories
2Play it: which shock was it?Principles and the major1 min
Your turn. The Island's economy is hit by three kinds of shock: a change in what it can produce, a change in what people want to spend, and a surprise from the central bank. Here is what each one does, unlabelled: output in blue, inflation in orange, the policy rate in pink, over three years. Which of A, B and C is a monetary tightening? Pause, and choose.
The answer is B. The rate jumps, and output and inflation fall: that is what a tightening should do. A is a demand shock, which pushes all three up together, and C is a supply shock, which raises output and lowers inflation. But notice how you knew. You did not read it off the data; you brought an expectation about what a tightening does, its signs, and matched it. That is an identifying assumption, and Harald Uhlig made it a method: sign restrictions, one of the five we turn to next.
What it does: Three unlabelled responses; signs as an assumption
3Five ways to identify a shockResearch2 min
Three restrictions are missing. Economists have found five places to look for them. The first is timing. If the central bank sets its rate after seeing this quarter's output and prices, but its decision cannot affect them until next quarter, then the mixing matrix has zeros above its diagonal. This is the recursive ordering Sims used, and the hook showed what happens when the bank knows more than the ordering allows. The second is the long run. Olivier Blanchard and Danny Quah assumed that only supply shocks, technology and the like, can move the level of output for ever; demand and money only move it for a while. The third is signs. Harald Uhlig asked only that a tightening raise the rate and lower output and inflation, and kept every mixing matrix that obeys. The answer is a set of possibilities, not a single one. The fourth is an outside instrument: a series that moves with the monetary shock and with nothing else, such as a market surprise on the day of a decision. James Stock and Mark Watson, and Karel Mertens and Morten Ravn, showed that its covariance with the surprises traces out the shock's column. The fifth is a change in variance. If monetary shocks are larger in some quarters, say those with a policy meeting, and nothing else changes, then the difference between the two covariances points straight at the monetary shock. Roberto Rigobon called this identification through heteroskedasticity.
What it does: Timing, the long run, signs, an instrument, a change in variance
4The five, on the Island's historyGraduate2 min
On the Island we know the truth, so take one history of 240 quarters and try each scheme. In white, what a one-point rise in the rate truly does: output dips and recovers; inflation drops at once and fades. Timing gets it wrong. It forces the first-quarter effects to zero, which the Island's bank violates, so inflation barely moves and output falls less than it should. Signs give a band. For inflation it contains the truth for a year and a half; for output its middle runs well below it. The set of mixing matrices that obey the signs is wide, and how the band looks depends on how the candidates were drawn, as Christiane Baumeister and James Hamilton warned. The outside instrument lands near the truth, and so does the change in variance. One history is noisy, though; the instrument's output path wanders after two years.
So run each scheme on 300 histories and average. Timing is wrong on average, not by bad luck: inflation's first-quarter fall is minus 0.34 points, and timing says zero, by assumption, every time. The instrument and the change in variance are right on average, the variance a little noisier. And the long-run restriction answers a different question. It cannot separate demand from money, since neither moves output for ever, but it finds the supply shock: output up 1.26 percent for good, against 1.26 in truth. Each scheme is only as good as its assumption, and on the Island, unlike in the world, we can check.
What it does: One history; 300 histories; which recover the truth
5Local projectionsGraduate2 min
Every scheme so far identified a shock and then let the fitted autoregression carry it forward, one quarter at a time. That chains the answer at two years to the model's every step in between. Òscar Jordà proposed asking each horizon directly: regress output h quarters ahead on today's shock, or its instrument, with controls, and read the response off the coefficient. One regression per horizon. Mikkel Plagborg-Møller and Christian Wolf showed that, in large samples and with enough lags, the two estimate exactly the same thing. In a real sample they differ in a familiar way: a short autoregression is biased but steady; a projection is nearly unbiased but noisy.
A race on the Island: 300 histories of 200 quarters, the effect of a one-point rise in the rate on output, every method using the same instrument. In white, the truth. In grey, an autoregression with one lag, when the Island's economy has two. Its band is tight, but at four years its average is off by 0.07: it carries its error forward. In blue, four lags: less bias, more spread. In gold, local projections: nearly unbiased, but by four years the band is twice as wide. Which to prefer depends on whether you fear bias or noise more. Dake Li, Plagborg-Møller and Wolf found the same trade-off across thousands of simulated economies: projections win on bias, autoregressions on variance.
What it does: One regression per horizon; bias against variance in 300 histories
6Narrative and high-frequency shocksGraduate2 min
The outside instrument did best on the Island. Where do good instruments come from in the world? Part thirty-one met two sources. Christina and David Romer read the Federal Reserve's own records and kept only the part of each decision that its staff's forecasts could not explain: the surprise, purged of foresight. Others look at the minutes around an announcement. The move in interest-rate futures in that window can only be news about policy, because nothing else happened. There is a catch. An announcement can also tell markets what the bank knows about the economy, so part of the surprise is news about the economy itself. Emi Nakamura and Jón Steinsson called it the information effect. Either series can be the outside instrument of Chapter three; Mark Gertler and Peter Karadi used market surprises that way in an autoregression.
Part thirty-one's Island reproduces the price puzzle on purpose: its bank sees news about coming cost shocks before it sets its rate. Averaged over 200 histories, the truth: inflation falls, slowly. A recursive autoregression says it rises, by up to 0.43 points: the puzzle, made by the bank's foresight. Give the model a noisy signal of the bank's news, as Sims gave his commodity prices, and the puzzle shrinks but does not vanish. Narrative shocks and clean market surprises both recover the truth. Surprises contaminated by an information effect understate it: part of what looks like policy is the bank's news about the economy. The cure for the price puzzle was never a cleverer regression. It was a better account of why the rate moved.
What it does: The two sources; the information effect; the price puzzle cured
Intermission: the slope of the yield curve, 1953-2026Principles and the major
This chapter has no narration to read.
7Estimating a DSGE modelGraduate2 min
Autoregressions ask what the data say about one shock at a time. A dynamic stochastic general equilibrium model, a DSGE model, claims to account for everything at once, and can be estimated whole. Solve the model, here Part thirty's three equations with a demand shock, a cost shock and a monetary shock, and it becomes a state-space system: hidden states that evolve, and observed series that are combinations of them. The Kalman filter, from Part thirty-one, turns that into a likelihood: for any parameters, how probable the observed history is. Multiply by a prior, what we believed before, and Bayes's rule gives the posterior. To explore it, the Metropolis-Hastings algorithm takes a random step, keeps it if the posterior is higher and sometimes even if it is lower, and repeats thousands of times. The places it visits are draws from the posterior. Sungbae An and Frank Schorfheide set out the recipe; Frank Smets and Rafael Wouters used it to estimate a model with seven observed series that central banks still build on.
The Island's version: 200 quarters of the output gap, inflation and the policy rate, generated by the model itself with parameters we chose. Here are the first thirty years. We estimate five parameters: the slope of the Phillips curve, the inverse of the elasticity of intertemporal substitution, the rule's response to inflation and to the output gap, and the persistence of policy shocks.
The results. For each parameter, the grey line is the prior, the gold bars the posterior, and the white line the truth. With all three series observed, every posterior is far narrower than its prior and sits near the truth: the Phillips curve's slope, for instance, is 0.106, with ninety percent of the posterior between 0.089 and 0.123, against a truth of 0.1. The data have taught us something about every parameter. That is not always so, as the next chapter shows.
What it does: State space, the Kalman likelihood, Metropolis-Hastings; posteriors
8What the data cannot tell apartResearch2 min
Now estimate the same model from the same history, but suppose the policy rate is not observed: only the output gap and inflation. The Phillips curve's slope is still learned, its posterior 21 percent as wide as the prior. But look at the other four. Their posteriors are 64 to 92 percent as wide as their priors, and centred near them. The answer looks like an estimate, with a mean and a band, but it is mostly the prior coming back out. Fabio Canova and Luca Sala showed that this happens in published models: some parameters barely move the likelihood, and a Bayesian posterior hides that unless it is compared with its prior.
Here is why. Fix sigma, re-estimate the other four, and record how well the model can then fit. With the rate observed, the fit falls off sharply on either side of the best value, by 35 log points by a sigma of three: sigma is pinned. Without the rate, the fit changes by only 1.5 log points across the whole range: almost any sigma can be made to fit by adjusting the others. When the likelihood is flat, the prior decides. The cure is not a cleverer sampler; it is data that move the parameter, here the rate itself.
What it does: The rate left out; posteriors against priors; a flat profile
9Macro from the cross-sectionGraduate2 min
One history is one data point. A cross-section has many. Emi Nakamura and Jón Steinsson compared American states that receive more or less of national military spending. Part thirty-two built such a union on the Island: 48 regions over 40 years, with one central bank. Compare regions within each year, and a region that gets a point more spending than average produces 1.53 points more output: the relative multiplier, planted at 1.5. But the nation's output rises only 0.56 per point of national spending, because the central bank leans against national spending, and cannot lean against one region's. Everything national, including monetary policy's response, is soaked up by the year effects that made the comparison clean. The regional estimate is right, and answers a different question. Christian Wolf showed how a model can bridge the two: the missing intercept is the price of using the cross-section.
The same logic powers the shift-share designs of Part thirty-six's China shock. A region's exposure is its mix of industries, times national shocks to those industries. Paul Goldsmith-Pinkham, Isaac Sorkin and Henry Swift showed that such an instrument is valid if the industry shares are as good as random; Kirill Borusyak, Peter Hull and Xavier Jaravel, that it can instead be valid if the national shocks are, provided there are many of them. Either way, the answer compares regions with each other, and the effect on the nation as a whole has to come from somewhere else.
What it does: Regions and the missing intercept; shift-share designs
10Matching impulse responsesGraduate2 min
There is a middle way between estimating a whole model and estimating a single response. Lawrence Christiano, Martin Eichenbaum and Charles Evans first identified the effects of a monetary shock with an autoregression, then chose the parameters of a model to reproduce them. Estimate how the economy responds to the shock. Compute the same responses from the model, for any parameters. Weight each by how precisely it was measured, and minimize the distance: Part fifty-four's method of moments, with the responses as the moments.
On the Island: four hundred quarters of an economy like the one estimated in Chapter seven, but whose central bank surprises more often, and a market surprise as the instrument. The dots are the estimated responses of the output gap, inflation and the rate to a one-point surprise, with their standard errors. In grey, the model at a poor starting guess. In gold, the model after matching, with two parameters free: the curvature that governs how spending responds to the rate, and the slope of the Phillips curve. Sigma comes out at 1.48, against 1.5. The Phillips slope comes out at 0.072, against 0.1, and across sixty histories it ranges from 0.04 to 0.13: inflation's response is small and noisy, so the slope it implies is uncertain. The method can only be as sharp as the responses it matches.
What it does: The estimator; the model fitted to an Island's responses
11Forecasts, and what macroeconomics knowsGraduate2 min
If a model really knows what causes what, it should also forecast. Forecasting out of sample is the toughest test there is, because the model never saw the answer. The record at the turns is sobering. In August 2008 the professional forecasters expected the American economy to grow in 2009, by 1.5 percent; it shrank by 2.6 percent, more than in any year since 1946. In June 2021 the Federal Reserve's median projection had inflation falling to 2.1 percent in 2022; it was 6.1 percent. Models fitted to calm decades are least reliable at exactly the turning points that matter most. Part fifty-seven grades the forecasters, and the models, properly.
So what does macroeconomics know, and how does it know it? Valerie Ramey's survey of the shocks and their effects, and Nakamura and Steinsson's essay on identification, give a sober answer. Money is not neutral: a surprise tightening lowers output for a year or two and prices more slowly, and every credible method agrees on the sign and the delay. How much is contested: the estimates differ several times over with the method and the decades used, as the Dial will show. Regions are not the nation: relative multipliers are above one, national ones near or below it. And the clean findings, which Nakamura and Steinsson call identified moments, are the test a model must pass: not just matching averages, but reproducing what the best designs have found.
What it does: The record at the turns; what survives every method
12The Dials: what a rate rise and a dollar of spending doGraduate
This chapter has no narration to read.
What it does: A one-point tightening (two rows added); the spending multiplier
13In practice: research departmentsPractice1 min
Where is this done every day? In the research departments of central banks. They keep large estimated models, like the Federal Reserve Board's FRB/US, for forecasts and for asking what would happen under other policies. Most keep estimated DSGE models alongside them, and the New York Fed publishes its model's forecasts. They measure the market's surprise around every announcement, and keep narrative series of their own decisions up to date. They run autoregressions and projections for every new question, the first being always: what did the last hike do? And the arguments of this part, about which assumption to trust, happen inside every policy meeting's briefing, usually with three answers on the table.
What it does: Models, surprises, projections, briefings
14Frontier: micro data and expectationsGraduate1 min
What remains open. Heterogeneous-agent models, Part fifty-two's, are now estimated on aggregate series and household data together; Christian Bayer, Benjamin Born and Ralph Luetticke estimated one for the American business cycle. Micro moments, like how much of a windfall people spend, from Part twenty-two, are becoming targets that models must hit, not afterthoughts. Expectations are measured rather than assumed: Olivier Coibion, Yuriy Gorodnichenko and Rupal Kamdar argued that surveys of what households, firms and forecasters expect should discipline the Phillips curve. And instruments keep improving: surprises cleaned of the information effect, narrative series for other countries, and shocks that hit regions differently. Each new source of variation is a new restriction, and a new chance to find out which of the old ones were wrong.
What it does: Estimated HANK; micro moments; expectations as data; new instruments
Recap, problems, and the road aheadAll tracks3 min
So: with one history and no control group, how can anyone say what a policy did? Only by adding an assumption the data cannot supply, about timing, the long run, signs, an outside instrument or a change in variance, and then by testing it: where the truth is known, as on the Island; against instruments built from the bank's own records and from markets; and against regions that saw different policies. What survives every credible method is the sign and the timing of policy's effects. Their size still depends on the assumption, and an honest answer says which one.
Part fifty-five in twelve lines. On American data, a recursive autoregression says prices rise after a hike, until commodity prices are added. A vector autoregression alone knows six numbers and needs nine. You recognized a tightening by its signs, which is an assumption. On the Island, timing is wrong; an outside instrument and a change in variance are right. The long run finds supply shocks; signs give a set whose shape depends on how it was drawn. Local projections trade bias for noise. Narrative and clean market surprises cure the price puzzle. A whole model can be estimated with the Kalman filter and Metropolis-Hastings. Without the right data, its posteriors are mostly its priors. Regions identify relative effects, and the national one goes missing. Matching responses estimates a model from what a shock does. And the sign and timing of policy's effects agree across methods, while their size depends on the assumption.
The problems. Count the missing restrictions; read the zeros of a recursive ordering; the long-run restriction; why an instrument traces out a column; why a change in variance does; local projections in a simple autoregression; what to ask of a weak posterior; and a starred problem on the missing intercept. Full solutions are in the part's notes.
The reading: Kilian and Lütkepohl's book on structural autoregressions; Hamilton's chapters on vector autoregressions; Valerie Ramey's survey of shocks; and Nakamura and Steinsson on identification in macroeconomics. Then the papers, from Sims to the projections.
Next time, the end of the graduate core. It is the night before the first-year examinations: twelve problems of the kind every doctoral programme sets, four each in micro, macro and econometrics, solved the way a grader wants to see them, with the mistakes that cost marks. Part fifty-six: the core exam.
Where it goes next. Part 56 closes the graduate core with the examination: twelve problems in micro, macro and econometrics, solved the way a grader wants to see them.
Key results
The part's results in one place, for revision.
Try it
Lab 55 · Identifying macro
Identify a monetary shock in a history where the truth is known, five ways, and see which assumptions recover it; then estimate a small model of the whole economy and find out what its data can and cannot say.
python -m videos.economics.labs 55
needs numpy, scipy, matplotlib · download lab55.py ·
source on GitHubtruth: inflation and output on impact, per point of the rate -0.339, -0.133
recursive: inflation and output on impact 0.000, 0.000
proxy: inflation and output on impact -0.323, -0.113
hetero: inflation and output on impact -0.247, -0.163
sign restrictions: candidates kept, of tried 2638 of 24000
long run: supply's permanent effect on output (truth) 1.650 (1.255)
60 histories, recursive: inflation on impact, mean 0.000
60 histories, proxy: inflation on impact, mean -0.336
60 histories, hetero: inflation on impact, mean -0.337
var1: output at 16 quarters, mean and s.d. (truth -0.001) -0.057, 0.135
var4: output at 16 quarters, mean and s.d. (truth -0.001) -0.001, 0.183
lp: output at 16 quarters, mean and s.d. (truth -0.001) 0.045, 0.263
Kalman log likelihood at the truth, and with kappa 0.3 -418.8, -559.6
a short Metropolis-Hastings run: posterior means (truth) kappa 0.11 (0.1), sigma 1.35 (1.5), phi_pi 1.46 (1.5), phi_x 0.26 (0.25), rho_v 0.38 (0.4)
regions: relative multiplier with year effects; the nation's 1.53; 0.56
Timing is wrong when the bank knows more than the ordering allows; an outside instrument and a change in variance recover the truth; projections trade bias for noise; a whole model can be estimated, but only the data that move a parameter can teach anything about it; regions answer a relative question.
The code (79 lines; it asserts its own result)
"""Lab 55: identifying macro: the Island's structural VAR identified five ways against the truth, local projections
against VARs, a small New Keynesian model's Kalman likelihood and a short Metropolis-Hastings run, and the regions'
missing intercept."""
import numpy as np
from videos.coursekit import labs
from explainer.economics.agora import fiscal
from explainer.economics.agora import macrometrics as MM
from explainer.economics.island import truths
TITLE = "Identifying macro"
GOAL = ("Identify a monetary shock in a history where the truth is known, five ways, and see which assumptions recover "
"it; then estimate a small model of the whole economy and find out what its data can and cannot say.")
TASKS = [
"Make the proxy noisier (proxy_noise 3.0 in svar_simulate). How does the instrument's estimate change?",
"Let the monetary shock's variance barely change (meeting_sd 1.2). What happens to the variance scheme?",
"Estimate the New Keynesian model with only inflation observed (obs=(1,)). Which posteriors are still informative?",
]
def run(seed=0):
lab = labs.Lab()
T = truths(55)
S = T["svar"]
o = MM.schemes_one(S["T"], S["seed"] + seed, S["p"], S["h"])
tr = o["truth"]["monetary"]
lab.row("truth: inflation and output on impact, per point of the rate", f"{tr['pi'][0]:.3f}, {tr['y'][0]:.3f}")
for m in ("recursive", "proxy", "hetero"):
lab.row(f"{m}: inflation and output on impact", f"{o[m]['pi'][0]:.3f}, {o[m]['y'][0]:.3f}")
lab.row("sign restrictions: candidates kept, of tried", f"{o['sign']['accepted']} of {o['sign']['tried']}")
lab.row("long run: supply's permanent effect on output (truth)",
f"{o['long_run']['y'][-1]:.3f} ({o['truth']['supply']['y'][-1]:.3f})")
assert abs(o["recursive"]["pi"][0]) < 1e-9
mc = MM.schemes_mc(reps=60, seed=2000 + seed)
for m in ("recursive", "proxy", "hetero"):
lab.row(f"60 histories, {m}: inflation on impact, mean", f"{mc['methods'][m]['pi']['mean'][0]:.3f}")
assert abs(mc["methods"]["proxy"]["pi"]["mean"][0] - tr["pi"][0]) < 0.05
lp = MM.lp_var_mc(reps=80, seed=3000 + seed)
for m in ("var1", "var4", "lp"):
d = lp["methods"][m]
lab.row(f"{m}: output at 16 quarters, mean and s.d. (truth {lp['truth'][-1]:.3f})",
f"{d['mean'][-1]:.3f}, {d['sd'][-1]:.3f}")
N = T["nk"]
D = MM.nk_simulate(T=N["T"], seed=N["seed"])
ll0 = MM.nk_loglik(MM.NK_DEFAULT, D["Y"])
ll1 = MM.nk_loglik({**MM.NK_DEFAULT, "kappa": 0.3}, D["Y"])
lab.row("Kalman log likelihood at the truth, and with kappa 0.3", f"{ll0:.1f}, {ll1:.1f}")
assert ll0 > ll1
post = MM.nk_mh(D["Y"], draws=600, burn=200, seed=seed)
means = [f"{n} {post['chain'][:, j].mean():.2f} ({post['truth'][j]})" for j, n in enumerate(post["names"])]
lab.row("a short Metropolis-Hastings run: posterior means (truth)", ", ".join(means))
G = fiscal.regions(**T["regions"])
lab.row("regions: relative multiplier with year effects; the nation's", f"{G['b_fe']:.2f}; {G['b_nat']:.2f}")
lab.note = ("Timing is wrong when the bank knows more than the ordering allows; an outside instrument and a change "
"in variance recover the truth; projections trade bias for noise; a whole model can be estimated, but "
"only the data that move a parameter can teach anything about it; regions answer a relative question.")
fig, ax = labs.figure(2, size=(11, 4.4))
h = np.arange(len(tr["pi"]))
ax[0].plot(h, tr["pi"], color="white", label="truth")
for m, c in (("recursive", labs.PURPLE), ("proxy", labs.ORANGE), ("hetero", labs.GREEN)):
ax[0].plot(h, mc["methods"][m]["pi"]["mean"], color=c, label=m)
ax[0].set(title="inflation after a one-point rise, 60 histories", xlabel="quarters")
ax[0].legend()
for m, c in (("var1", labs.PURPLE), ("var4", labs.GREEN), ("lp", labs.ORANGE)):
d = lp["methods"][m]
ax[1].plot(h, d["mean"], color=c, label=m)
ax[1].fill_between(h, d["lo"], d["hi"], color=c, alpha=0.15)
ax[1].plot(h, lp["truth"], color="white", label="truth")
ax[1].set(title="output: projections against VARs", xlabel="quarters")
ax[1].legend()
lab.fig = fig
return lab
Now change it
- Make the proxy noisier (proxy_noise 3.0 in svar_simulate). How does the instrument's estimate change?
- Let the monetary shock's variance barely change (meeting_sd 1.2). What happens to the variance scheme?
- Estimate the New Keynesian model with only inflation observed (obs=(1,)). Which posteriors are still informative?
Problems, with solutions
Try each problem before opening its solution.
1. Counting: with n variables, how many restrictions does a structural VAR need beyond Sigma = BB'? How many does the recursive ordering supply?
Solution
B has n^2 entries and Sigma, being symmetric, gives n(n+1)/2 equations, so n(n-1)/2 more are needed: three for n = 3. A lower-triangular B has exactly n(n-1)/2 zeros above its diagonal, so the recursive ordering supplies exactly enough, which is why it identifies every shock, rightly or wrongly.
2. Timing: in a VAR of output, prices and the rate, which zeros does ordering the rate last impose, and what must the bank not know for them to hold?
Solution
The third column of B, the monetary shock, has zeros in the output and price rows: policy cannot move output or prices within the period. Ordering output first also means output does not respond within the period to the price shock. For the monetary column to be the policy shock, the bank's rate must respond only to this period's output and prices and to the past: if it also responds to news about future inflation that the VAR does not contain, that news enters the 'policy shock' and produces the price puzzle.
3. The long run: with C(1) = (I - A_1 - ... - A_p)^-1, show that only the first shock moves the first variable's level for ever if C(1)B is lower triangular.
Solution
The response of the first variable (a growth rate) at horizon h to shock j is the (1, j) entry of Psi_h B; the level's long-run response is the sum over h, which is the (1, j) entry of (sum Psi_h) B = C(1)B. If C(1)B is lower triangular, its first row is (c, 0, ..., 0): only the first shock has a permanent effect on the level.
4. An instrument: if z_t = lambda e^m_t + eta_t with eta independent of every shock, show that Cov(u_t, z_t) is proportional to b_m.
Solution
u_t = B e_t = sum_j b_j e^j_t with the shocks uncorrelated and of unit variance. Then Cov(u_t, z_t) = sum_j b_j Cov(e^j_t, lambda e^m_t + eta_t) = lambda b_m, since only the monetary shock is correlated with z. The scale is unknown, so normalize: per point of the rate on impact.
5. Heteroskedasticity: if only e^m's variance changes, show that Sigma_1 - Sigma_0 has rank one, and find b_m from it.
Solution
Sigma_r = B D_r B' with D_r diagonal; only the monetary entry differs, so Sigma_1 - Sigma_0 = (s_1^2 - s_0^2) b_m b_m', a matrix of rank one. Its only non-zero eigenvalue's eigenvector is b_m up to scale (and sign, fixed by letting the rate rise).
6. Local projections: in a VAR(1), show that the population projection coefficient at horizon h equals A^h b.
Solution
Iterating, x_{t+h} = A^{h+1} x_{t-1} + sum_{k=0..h} A^k B e_{t+h-k}. Project x_{t+h} on the shock e^j_t controlling for x_{t-1}: the shocks at other dates are uncorrelated with e^j_t and x_{t-1}, so the coefficient is the term with k = h, A^h b_j: the VAR's impulse response.
7. Weak identification: a posterior is 90% as wide as its prior. What should a referee ask for?
Solution
That the posterior be shown against the prior; that the estimate be repeated with a different prior (if the posterior moves with it, the data are silent); a likelihood profile or a check that the parameter moves the model's predictions for the observed series; and, if possible, data that would identify it, as the rate did in the film.
8. The missing intercept: in y_rt = m_l (g_rt - gbar_t) + m_a gbar_t + u_t + e_rt, show that year effects remove m_a and leave m_l.
Solution
Averaging over regions in year t gives ybar_t = m_a gbar_t + u_t + ebar_t, since the deviations average to zero. Subtracting, y_rt - ybar_t = m_l (g_rt - gbar_t) + (e_rt - ebar_t): the national terms, including m_a gbar_t and the common shock u_t, are gone. A regression with year effects estimates m_l; m_a has been absorbed into the year effects, the missing intercept.
Notes and sources
Sources
The studies the film states are listed with what each shows in dials.SHOWN[55]; the monetary-shock and multiplier
dials are in explainer/economics/dials.py (two rows added: this part's VARs, 1965-1995); the FRED series are in the
Data Room. The forecast record of Chapter 11 is Parts 1 and 28's Called it? entries. The models are stated from the
papers cited in the chapters (Sims 1980 and 1992, Blanchard and Quah 1989, Kuttner 2001, Rigobon 2003, Romer and Romer
2004, Gurkaynak, Sack and Swanson 2005, Jorda 2005, Uhlig 2005, Christiano, Eichenbaum and Evans 2005, An and
Schorfheide 2007, Smets and Wouters 2007, Canova and Sala 2009, Stock and Watson 2012 and 2018, Mertens and Ravn 2013,
Nakamura and Steinsson 2014 and 2018, Baumeister and Hamilton 2015, Gertler and Karadi 2015, Ramey 2016,
Coibion, Gorodnichenko and Kamdar 2018, Goldsmith-Pinkham, Sorkin and Swift 2020, Plagborg-Moller and Wolf 2021,
Borusyak, Hull and Jaravel 2022, Wolf 2023, Bayer, Born and Luetticke 2024, Li, Plagborg-Moller and Wolf 2024) and
computed here.
About this partfrom its README
Part 55 of a sixty-eight-part course in economics (see the series plan and the syllabus), the fifth of Act X, The Graduate Core. It asks how anyone can say what a policy did, with one history and no control group. Its answer: only by adding an assumption the data cannot supply, about timing, the long run, signs, an outside instrument or a change in variance, and then by testing it where the truth is known, against instruments built from the bank's own records and from markets, and against regions that saw different policies. What survives every credible method is the sign and the timing of policy's effects; their size still depends on the assumption.
It opens on Sims's price puzzle, recomputed from the Data Room: a monthly vector autoregression of industrial production, consumer prices and the federal funds rate, 1965-1995, with twelve lags, says the price level is higher for 36 months after a one-point rise in the funds rate, by up to 0.24%; add the producer price index for all commodities, a piece of what the Federal Reserve saw coming, and prices are lower from month 22 and 1.1% lower after four years. From there it covers:
- what a VAR identifies (Sims 1980): with three variables the surprises' covariance has six numbers and the mixing matrix nine; three rotations of one Island history fit it exactly and tell three stories (a tightening that does nothing, one that raises output, one that crashes it and raises inflation);
- Play it: three unlabelled sets of impulse responses; the monetary tightening is the one with the rate up and output and inflation down, and recognizing it by its signs is itself an identifying assumption;
- five schemes: timing (recursive ordering), the long run (Blanchard and Quah 1989), signs (Uhlig 2005), an outside instrument (Stock and Watson 2012; Mertens and Ravn 2013), a change in variance (Rigobon 2003);
- all five on the Island's structural VAR, whose truth is known: on one history and on 300, timing is wrong on average (inflation's first-quarter fall of 0.34 points per point of the rate comes out as zero by assumption), the instrument and the change in variance are right on average (-0.34), the long run recovers the supply shock (output +1.26% for good, against 1.26), and the sign set, 2,638 of 24,000 candidates, contains the truth for inflation's first year and a half but sits below it for output, as Baumeister and Hamilton warned;
- local projections (Jorda 2005) against VARs (Plagborg-Moller and Wolf 2021) in 300 histories: a VAR with one lag when the truth has two is off by 0.07 at four years; projections are nearly unbiased but their spread is twice a short VAR's;
- narrative (Romer and Romer 2004) and high-frequency (Kuttner 2001; Gurkaynak, Sack and Swanson 2005) shocks as instruments (Gertler and Karadi 2015), on Part 31's Island: a recursive VAR shows the price puzzle (inflation up 0.43), a noisy signal of the bank's news shrinks it (0.13), narrative shocks and clean surprises recover the truth, surprises with an information effect (Nakamura and Steinsson 2018) understate it;
- an intermission film of the yield curve's slope, the 10-year Treasury yield minus the 3-month bill, 1953-2026, with the NBER's recessions, as a line and a tune;
- Part 30's three-equation New Keynesian model estimated by the Kalman filter and random-walk Metropolis-Hastings (An and Schorfheide 2007; Smets and Wouters 2007) on 200 simulated quarters: with all three series observed, every posterior is 10 to 35% as wide as its prior (the Phillips slope 0.106 against 0.1);
- weak identification (Canova and Sala 2009): leave the rate out, and the posteriors of four of the five parameters are 64 to 92% as wide as their priors; the likelihood of sigma, the others re-estimated, falls 36 log points by sigma = 3 with the rate observed, and 1.5 across the whole range without it;
- cross-sectional macro: Part 32's currency union, where comparing regions recovers the relative multiplier (1.53, planted 1.5) and the nation's is 0.56 (planted 0.6): the missing intercept (Nakamura and Steinsson 2014; Wolf 2023); shift-share designs identified by shares or by shocks (Goldsmith-Pinkham, Sorkin and Swift 2020; Borusyak, Hull and Jaravel 2022);
- impulse-response matching (Christiano, Eichenbaum and Evans 2005) on 400 Island quarters: sigma 1.48 (truth 1.5), the Phillips slope 0.072 (truth 0.1) and between 0.04 and 0.13 across 60 histories;
- forecasts at the turns (the forecasters in 2008, the Federal Reserve in 2021) and what macroeconomics knows (Ramey 2016; Nakamura and Steinsson 2018);
- the Dials: the effect of a one-point tightening on industrial production, with two rows added from the hook (-0.80 without commodity prices, -1.12 with them), and the spending multiplier from Part 32;
- in practice (central banks' research departments) and a frontier of heterogeneous-agent models estimated on micro and macro data (Bayer, Born and Luetticke 2024), micro moments and expectations data (Coibion, Gorodnichenko and Kamdar 2018), and new instruments.
There is no Called it? in this part; Chapter 11 recalls Parts 1 and 28's.
What is computed and built
Everything plotted is computed by compute.py with Agora's macro-econometrics (explainer.economics.agora.macrometrics),
Part 31's monetary history (agora.cb), Part 32's regions (agora.fiscal) and the Island's Part 55 truths; the
narration states the cached numbers.
- The price puzzle. 100 x log industrial production, 100 x log CPI, (100 x log PPI, all commodities,) and the funds rate, monthly 1965-1995; a VAR(12) with a constant; the Cholesky shock to the funds rate, last, scaled to one point; 300 residual-bootstrap replications for the 16-84% bands.
- The Island's structural VAR. Output growth, inflation and the rate follow a VAR(2) driven by supply, demand and monetary shocks; the impact matrix has the monetary shock lowering output and inflation within the quarter; the demand and monetary columns are set so that only supply moves output's level in the long run; in a random half of quarters the monetary shock's s.d. doubles; a proxy is the monetary shock plus noise of s.d. 0.8. Histories of 240 quarters (200 for the projections); VAR(4) unless stated; responses per point of the rate on impact.
- Sign restrictions. 4,000 random orthonormal rotations, each column tried with both signs; kept if the rate rises and output growth and inflation fall for three quarters.
- The DSGE model. x = E x' - (1/sigma)(i - E pi') + d, pi = beta E pi' + kappa x + u, i = phi_pi pi + phi_x x + v, with AR(1) shocks (persistence 0.8, 0.6, 0.4; s.d. 0.5, 0.2, 0.25), beta 0.99, kappa 0.1, sigma 1.5, phi_pi 1.5, phi_x 0.25; measurement error s.d. 0.05; gamma priors for kappa, sigma, phi_pi and phi_x (means 0.15, 1.5, 1.5, 0.25), a beta prior for rho_v (mean 0.5); 6,000 draws after 1,500, with the proposal scaled from the inverse Hessian at the mode.
- Matching. The same model with the monetary shock's s.d. 1; 400 quarters; local projections with four lags on a proxy (the innovation plus noise of half its s.d.); weights from 60 more histories.
Chapter notes
| # | Chapter | What it does |
|---|---|---|
| 0 | The price puzzle | Sims's VAR on American data, with and without commodity prices; the question; objectives |
| 1 | What a VAR knows, and what it does not | Six numbers for nine; three rotations, three stories |
| 2 | Play it: which shock was it? | Three unlabelled responses; signs as an assumption |
| 3 | Five ways to identify a shock | Timing, the long run, signs, an instrument, a change in variance |
| 4 | The five, on the Island's history | One history; 300 histories; which recover the truth |
| 5 | Local projections | One regression per horizon; bias against variance in 300 histories |
| 6 | Narrative and high-frequency shocks | The two sources; the information effect; the price puzzle cured |
| — | Intermission | The yield curve's slope, 1953-2026, with recessions, as a line and a tune; the story so far |
| 7 | Estimating a DSGE model | State space, the Kalman likelihood, Metropolis-Hastings; posteriors |
| 8 | What the data cannot tell apart | The rate left out; posteriors against priors; a flat profile |
| 9 | Macro from the cross-section | Regions and the missing intercept; shift-share designs |
| 10 | Matching impulse responses | The estimator; the model fitted to an Island's responses |
| 11 | Forecasts, and what macroeconomics knows | The record at the turns; what survives every method |
| 12 | The Dials | A one-point tightening (two rows added); the spending multiplier |
| 13 | In practice: research departments | Models, surprises, projections, briefings |
| 14 | Frontier: micro data and expectations | Estimated HANK; micro moments; expectations as data; new instruments |
| — | Outro | The answer; twelve lines; problems; reading; next, Part 56, The Core Exam |
Notes
python -m videos.economics.labs 55: the Island's identification schemes on one history against the truth; the sign set's size; local projections against VARs; the New Keynesian model's Kalman likelihood at the truth and away from it; a short Metropolis-Hastings run; regions.- The interactive (course site): identify. The reader rotates the mixing matrix of a fitted VAR and watches the 'monetary' responses change, with the true ones beside them, then turns on the sign restrictions and sees which rotations survive.
Companion material in this repository
The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
- Hook: the puzzle; the question; objectives.
- The reduced-form VAR (Sims 1980); impulse responses; what is and is not identified.
- Play it: three unlabelled impulse responses: which shock was it?
- Identification 1: timing (recursive ordering). 2: long-run restrictions (Blanchard and Quah 1989). 3: sign restrictions (Uhlig 2005). 4: external instruments (Stock and Watson 2012; Mertens and Ravn 2013). 5: heteroskedasticity (Rigobon 2003).
- All five run on the Island's history, where the monetary shock is known: which recover it.
- Local projections (Jordà 2005); the same estimand as a VAR (Plagborg-Møller and Wolf 2021); bias against variance.
- Narrative and high-frequency shocks as instruments (Part 31); the price puzzle resolved.
- Estimating a DSGE model: the state-space form and the Kalman filter (statkit
ts); the likelihood; Bayesian estimation by Metropolis–Hastings (An and Schorfheide 2007); Smets and Wouters's shocks. - What the data cannot tell apart: weak identification in DSGE models (Canova and Sala 2009).
- Cross-sectional macro: regional multipliers and the missing intercept (Nakamura and Steinsson 2014; Wolf 2023); shift-share designs (Goldsmith-Pinkham, Sorkin and Swift 2020; Borusyak, Hull and Jaravel 2022).
- Matching impulse responses (Christiano, Eichenbaum and Evans 2005); moments from micro data in macro models.
- Forecasting as a test: the models' record around 2008 and 2021 (a pointer to Part 57).
- What macroeconomics knows and how (Nakamura and Steinsson 2018; Ramey 2016).
- Dials. 14. In practice: central-bank research departments. 15. Frontier: heterogeneous-agent models estimated on micro and macro data together; identification with expectations data.
Agora: macrometrics: VARs with the five schemes, local projections, a Kalman-filter likelihood and a
Bayesian sampler for the Part 30 model, a shift-share toolkit. Reuses statkit ts and ppl.
Dials: the monetary and fiscal rows of Parts 31 and 32, re-derived with every method.
Reading: Sims 1980, 1992; Blanchard & Quah 1989; Uhlig 2005; Jordà 2005; Stock & Watson 2012, 2018;
Plagborg-Møller & Wolf 2021; An & Schorfheide 2007; Nakamura & Steinsson 2018; Ramey 2016; Kilian & Lütkepohl;
Hamilton chs 11–13.
Build the film
python -m videos.economics.econ55.compute # the part's numbers, into .cache/econ55
python tools/build.py econ55 # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py econ55 Hook # one chapter, silent, with a contact sheet
Scenes: videos/economics/econ55. Setup: see the course page. Source of these notes: the README and the scenes' narration.
Build it
python -m videos.economics.econ55.compute # every number (about five minutes), into .cache/econ55/
python tools/qa_scene.py econ55 Island # one chapter, silent, at 480p, with a contact sheet
EXPLAINER_TTS=silent python tools/build.py econ55 -q l # the whole part, silent preview
python tools/build.py econ55 # 1080p30 with narration and the series' computed score
python -m videos.economics.labs 55 # the lab
The data are FRED's industrial production, CPI, federal funds rate and producer price index for all commodities (the
hook), and its 10-year and 3-month Treasury yields with the NBER's recession months (the intermission), registered in
SOURCES.md; every other number is computed.