The Core Exam
Can you do it with the book closed?
The night before the first-year examinations: an envelope with three papers, and where the core came from (Samuelson's Foundations, Mas-Colell, Whinston and Green, Ljungqvist and Sargent, Hayashi, Gali). Twelve questions, each with a pause before its solution and the mistakes that cost marks: a consumer at an increasing block tariff (demand by segments, Slutsky with virtual income, the compensating variation), an exchange economy with smoke (the Pareto line and Pigou's tax, with an is/ought card), a first-price auction with a reserve (the boundary beta(r) = r, revenue 5/12 and a simulation), screening with two types and a continuum, a capital tax in the Ramsey model (the phase diagram and the jump), benefits that expire (backward induction and the exit spike's evidence); after an intermission of the median duration of unemployment since 1967, discretion and commitment, why r < rho in Aiyagari's economy, storms that identify a demand curve, GMM for the Euler equation with its J test, staggered timing where two-way fixed effects halves the effect or flips its sign, and Blanchard and Quah's long-run restriction. Then how answers are marked, what to do when stuck, and where each question is still open.
What you need. Parts 5-6: demand and welfare; Part 15: externalities; Part 16: auctions; Parts 10, 13 and 14: screening; Part 20: the Ramsey model; Parts 24 and 42: search and unemployment insurance; Parts 28 and 30: discretion and the three-equation model; Part 52: Aiyagari; Part 4: instruments; Part 54: GMM; Part 55: long-run restrictions; Statistics, Built: difference-in-differences.
- Hook
- the night before
- Ideas, models and mathematics
- twelve first-year exam problems, micro, macro and econometrics, solved on screen with the grader's eye
- Agora gains
- the exam's numbers
- Play it
- try each before the solution
What you will be able to do
Principles and the major
- Solve a consumer's problem on a kinked budget and say where the consumer ends up.
- Explain why a market with an externality is inefficient, and what tax fixes it.
Graduate
- Solve the core's standard problems: an auction with a reserve, a screening menu, a Ramsey transition, a search problem with a deadline, discretion against commitment.
- Identify a demand curve with an instrument, estimate an Euler equation by GMM with the J test, and identify a VAR by a long-run restriction.
- Read what two-way fixed effects estimates when adoption is staggered.
Research
- Prove that an Aiyagari economy's interest rate lies below the rate of time preference, and that the reservation wage falls as benefits run out.
- Derive the screening menu for a continuum of types by the envelope theorem and virtual types.
Practice
- Write an answer a grader, a referee or a manager can check: the set-up, the condition, the answer in a box, and a test of it.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Principles and the major 18 min · Graduate 38 min · Research 50 min · Practice 20 min.
- 0The night beforePrinciples and the major4 min
- 1Micro: a kinked budgetPrinciples and the major5 min
- 2Micro: an externality in an exchange economyPrinciples and the major4 min
- 3Micro: a first-price auction with a reserveGraduate4 min
- 4Micro: screeningResearch3 min
- 5Macro: the Ramsey model with a tax on capitalGraduate3 min
- 6Macro: a McCall worker whose benefits expireGraduate3 min
- Intermission: how long a spell of unemployment lasts, 1967-2026Principles and the major
- 7Macro: the three-equation model under discretionGraduate3 min
- 8Macro: why r lies below the rate of time preferenceResearch3 min
- 9Econometrics: identifying a demand curvePrinciples and the major3 min
- 10Econometrics: GMM for an Euler equationGraduate3 min
- 11Econometrics: staggered difference-in-differencesResearch3 min
- 12Econometrics: a VAR with a long-run restrictionResearch3 min
- 13How the exam is marked, and what to do when stuckPractice2 min
- 14Frontier: where each problem is still openGraduate2 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 night beforePrinciples and the major4 min
It is eleven at night, the night before the first-year examinations. On the desk is an envelope that will not be opened until nine tomorrow morning. Inside are three papers, the core of every doctoral programme in economics: microeconomics, macroeconomics and econometrics, four questions each. Every question tonight is one of those, and every one of them rests on something this series has already built. We will work all twelve the way a grader wants to see them: the set-up, the condition that pins the answer down, the answer in a box, and a check. And after each, the mistakes that cost marks, which are rarely the ones students fear.
The core has a history. In 1947 Paul Samuelson's Foundations of Economic Analysis argued that most of economics is either a maximization or an equilibrium, and should be written in mathematics; the first-year examination still has that shape. In 1995 Andreu Mas-Colell, Michael Whinston and Jerry Green published the micro book that a generation of first-year students has carried. In 2000 Lars Ljungqvist and Thomas Sargent made dynamic programming the language of macro, and Fumio Hayashi made the generalized method of moments the language of econometrics. And by 2008, with Jordi Galí's book, the three-equation New Keynesian model had become a core topic. Each of tonight's questions comes from this canon.
Before any question, a way of reading one. First: who chooses what, and what do they take as given? A consumer chooses a bundle, taking prices as given; a central bank chooses inflation, taking expectations as given or not. Second: what condition pins the answer down? A first-order condition, a Bellman equation, market clearing, a population moment. Third: solve it, writing the reason for each step in the margin, and put the answer in a box, because a grader is looking for it. Fourth: check it. Does it reduce to something you know in a special case? Are the units right? Do the signs make sense? Half of all lost marks would have been saved by the fourth step.
So the question for tonight: can you do it with the book closed? Can you set up a problem without being told the method? Can you find the condition that pins the answer down? Can you check your answer before a grader does? And do you know which of these ideas are settled, and which are still open?
Economics, Built. Part fifty-six: the core exam. By the end of this part you will have worked four micro questions: a consumer with a kinked budget, an economy with an externality, an auction with a reserve price, and a screening contract; four macro questions: a tax on capital in the Ramsey model, a job seeker whose benefits run out, a central bank that cannot commit, and why a precautionary economy's interest rate lies below the rate of time preference; and four econometrics questions: identifying a demand curve, estimating an Euler equation by GMM, reading two-way fixed effects when adoption is staggered, and identifying a VAR from the long run. You will see how such answers are marked and what to do when stuck, and where each problem's idea is still being argued about.
What it does: The envelope; where the core came from; how to read a problem; the question; objectives
1Micro: a kinked budgetPrinciples and the major5 min
Question one. A consumer has Cobb-Douglas utility, 0.4 log x plus 0.6 log y, and an income of 100. Good y costs one. Good x costs one for each of the first twenty units, and two for each unit beyond: an increasing block tariff, like many electricity and water bills. Part a: find the demand. Part b: decompose the effect of a small rise in the second price into substitution and income effects. Part c: the second price rises to 2.5; find the compensating variation and compare it with the Laspeyres approximation. This is your turn: pause, and try part a before the solution.
Part a. A kinked budget has more than one candidate, so check each piece. On the first segment the price is one, and Cobb-Douglas spends forty percent of income on x: forty units. But the first segment stops at twenty, so the consumer is not there. The second segment is part of a straight line with price two that would cut the y axis at 120: the virtual income, 100 plus the twenty units bought one cheaper than the margin. Against that line, demand is 0.4 times 120 over 2: 24 units of x, which is beyond twenty, so it is on the segment, with 72 of y. That is the answer; box it. Had both candidates failed, the answer would be the kink itself, twenty units, with a marginal rate of substitution between the two prices. And check: twenty at one, four at two, seventy-two of y: exactly 100.
The picture. The budget has two pieces: slope minus one to twenty units, then slope minus two. Extend the second piece and it meets the y axis at the virtual income, 120. The indifference curve through twenty-four and seventy-two is tangent to the second piece. Lower the taste for x to 0.3 and the consumer bunches at the kink: there the marginal rate of substitution is 1.71, between the two prices, so neither moving left nor right pays. Bunching at kinks is how Part forty-one measured how people respond to taxes.
Part b. On the second segment demand is 0.4 times virtual income over the second price, and virtual income itself depends on that price. The substitution effect is the Hicksian slope: the change at fixed virtual income, minus twelve, plus x times the income derivative, 24 times 0.2: minus 7.2. The income effect is the subtle part. A higher second price makes the consumer poorer only on the units bought at that price, x minus twenty, so the income effect is four times 0.2, and the total is minus 8.0. Check by differentiating demand directly: 0.4 times 80 over p, plus 20; its slope at two is minus eight. The answer most often written puts the income effect on all twenty-four units and gets minus twelve.
Part c. At a second price of 2.5, virtual income is 130 and demand 20.8, still on the second segment. On that segment the indirect utility is log of virtual income minus 0.4 log of the price, so the income that restores the old utility is 120 times 1.25 to the 0.4, minus 130: a compensating variation of 1.20. The Laspeyres approximation, the extra cost of the old bundle, is four units times half a unit of money: 2.0. It is larger because it ignores substitution, and here substitution is large: the marginal units fall from four to about one. The tempting wrong answer charges the rise on all twenty-four units: twelve, six times too much.
Where marks are lost. Checking one segment and stopping. Putting the income effect on every unit. Forgetting that virtual income moves with the price. And measuring welfare as if every unit had become dearer. The idea to keep: a kinked budget is two straight budgets and a corner; solve all three and keep the one that is feasible.
What it does: Demand by segments; Slutsky with virtual income; the compensating variation (Play it)
2Micro: an externality in an exchange economyPrinciples and the major4 min
Question two. Two consumers have quasilinear utility in a good x and money y, and A's consumption of x harms B, half a unit of money per unit, like smoke from a fire. There are ten units of x and twenty of y, and each owns half. Part a: the competitive equilibrium. Part b: the Pareto set. Part c: a tax that gets there, and what it is worth. Pause, and set up part b before you watch it.
Part a. Each consumer sets the marginal utility of x, four over x, equal to its price; with ten units to share, each takes five, at a price of 0.8. No one trades: the endowment already is the equilibrium, because A pays no attention to the smoke. Part b. With quasilinear utility, money moves utility one for one between the two, so an allocation is efficient exactly when it maximizes the sum of utilities. That sets A's marginal benefit, less the harm it does, equal to B's marginal benefit: A should have 3.57 units, not five. The Pareto set is every allocation with 3.57 units for A, whatever the split of money. Part c. A tax of 0.5 on each unit A consumes, equal to the marginal harm, with the revenue handed back, does it: the market price falls to 0.62 and A pays 1.12. The total gain is 0.37 units of money.
The box. A's origin is bottom left and B's top right; the endowment, in the middle, is also the equilibrium. Through it, A's indifference curve and B's, and B's is tilted by the smoke. They cross, so there is a lens of allocations both prefer: A uses less x and is paid for it. The Pareto set is the vertical line at 3.57; without the externality it would be the line at five. After the tax, A sells B about one and a half units, and there the two curves are tangent.
Here the question steps from is to ought. What is: the tax moves the economy onto the Pareto set, and total surplus rises by 0.37. What it does not settle: every point on that vertical line is efficient, and they differ only in who has the money. Whether the revenue goes to A, to B or elsewhere, and whether B has a right to clean air in the first place, as Coase asked, is a judgment, not a theorem. A full answer says so in one sentence, and earns the mark for it.
Where marks are lost. Calling the equilibrium efficient because no one wants to trade. Finding the Pareto set from each consumer's first-order condition, which only finds the equilibrium again. Taxing the wrong person or the wrong good. And forgetting to return the revenue. The idea to keep: tax the source at the marginal harm, evaluated at the efficient allocation; here the harm is constant, so that is easy, but in general it is not.
What it does: Equilibrium, the Pareto set, Pigou's tax; the box; is and ought
3Micro: a first-price auction with a reserveGraduate4 min
Question three. Two bidders, values uniform between zero and one, a first-price sealed-bid auction, and a reserve price of one half. Part a: the equilibrium bid. Part b: expected revenue, with and without the reserve. Part c: why would a seller who values the object at nothing refuse to sell it for less than a half? Pause, and write the bidder's problem.
Part a. Guess that the rival uses an increasing bid function, beta. A bidder of value v who bids b wins when the rival's value is below beta inverse of b, which with uniform values is just beta inverse of b. Differentiate, and evaluate where the bid is the bidder's own equilibrium bid: v times beta prime, plus beta, equals v. The left side is the derivative of v times beta, so v beta equals v squared over two, plus a constant. The constant comes from the boundary, and this is where marks are won: a bidder whose value is exactly the reserve can only bid the reserve, so beta of r is r, and the constant is r squared over two. So beta of v is v squared plus a quarter, over two v, for values above a half; below, no bid at all.
Part b. Use revenue equivalence: expected revenue is the expected virtual value of the winner, v minus one minus F over f, which with uniform values is two v minus one, counted only when the object sells. The integral is five twelfths, about 0.417, against a third with no reserve. The price of that gain: with probability one quarter both values are below the reserve and the object is not sold. A check by simulation: in 400 thousand auctions, the first-price room raises 0.417 and a second-price room with the same reserve 0.417. Part c. Selling to a bidder whose virtual value is negative lowers expected revenue: the seller gains the low price but must offer every higher type the same deal. Roger Myerson showed the best reserve sets the virtual value to zero: one half, however many bidders there are. The reserve raises revenue and destroys some trade.
The picture. With no reserve each bidder bids half their value. With the reserve, the bid starts at the reserve itself and lies above the old one: a bidder who would have won cheaply now faces a floor, and raises the bid to stay competitive. And a check that the bid is a best response: for a bidder with value 0.8, the expected payoff from every bid between the reserve and 0.8 peaks at 0.556, exactly beta of 0.8.
Where marks are lost. The wrong boundary condition, which gives the no-reserve bid back. Letting types below the reserve bid. Forgetting that sometimes nothing is sold. And calling the reserve efficient. The idea to keep: bids come from a first-order condition and a boundary; revenue comes from virtual values, which is Part sixteen's argument in one line.
What it does: The bid function and its boundary; revenue by formula and simulation
4Micro: screeningResearch3 min
Question four. A seller can make any quality q at a cost of q squared over two. A buyer of type theta values quality at theta per unit. The seller cannot see the type, so it offers a menu of qualities and prices, and lets each buyer choose. Part a: two types, a low type of one with probability two thirds and a high type of two. Part b: types spread uniformly between one and two. Pause, and decide which constraints bind.
Part a. Four constraints, and the art is knowing which bind. The low type must be willing to buy; the high type must not want the low type's item. Both bind at the optimum: the low type pays its full value, and the high type pays its value less what it could get by pretending. Substitute, and profit depends on the two qualities alone. The high type gets the efficient quality, two: no distortion at the top. The low type's quality is cut to 0.5, because every unit it gets raises the rent the high type can claim. Prices 0.5 and 3.5; the high type keeps a rent of 0.5; profit 0.75, against 1.00 if the seller could see types. And check the two constraints you ignored: they hold.
Part b. With a continuum, use the envelope theorem: a buyer's surplus rises with type at the rate of the quality it buys, and the lowest type gets nothing. Integrating the rents by parts turns profit into virtual surplus: quality times the virtual type, theta minus one minus F over f, less cost. Maximize type by type: quality is two theta minus two, efficient only at the top, zero at the bottom. Prices follow from the envelope condition: theta squared minus one. Profit is two thirds, against seven sixths if types were visible; and since quality rises with type, no one wants another type's item.
The picture. In grey, the quality each type would get if the seller could see it. In blue, the screening menu: below it everywhere except the top, and zero at the bottom. In gold, the two-type answer, the same shape in two points. On the right, the rent each type keeps, theta minus one squared: the price of the seller's ignorance, paid to everyone but the lowest type.
Where marks are lost. Binding the wrong pair of constraints. Distorting the top. Writing transfers without the rent. And never checking that quality rises with type; when the virtual type does not, the answer pools types together, and an answer that misses that loses the hardest marks. The idea to keep, from Parts ten, thirteen and fourteen: efficiency at the top, distortion below, a rent for everyone but the bottom.
What it does: Two types; a continuum by virtual types; quality and rents
5Macro: the Ramsey model with a tax on capitalGraduate3 min
Question five. A Ramsey economy, with a Cobb-Douglas technology, depreciation of five percent, a rate of time preference of three percent, and an elasticity of intertemporal substitution of one half, sits at its steady state. Without warning, the government taxes the net return to capital at twenty-five percent for ever, and hands the revenue back as a lump sum. Part a: the new steady state. Part b: the phase diagram and the transition. Part c: what happens to consumption, at once and in the long run. Pause, and decide which equation the tax enters.
Part a. The tax does not enter the resource constraint: what the government takes, it gives back, so output is still split between consumption and investment. It enters the Euler equation, because households save according to the return they keep. In the steady state consumption is constant, so the after-tax return equals the rate of time preference, and the pre-tax return must rise to three percent over three quarters, plus depreciation: nine percent. Capital falls from 8.51 to 7.13, and steady-state consumption from 1.616 to 1.568. The pre-tax net return rises from 3 to 4 percent; the after-tax return ends where it began.
Parts b and c. The phase diagram: the curve where capital is constant, and the vertical line where consumption is constant. The tax moves that vertical line left, from 8.51 to 7.13. The old steady state is now to the right of it. Capital cannot jump. Consumption can, and it must jump onto the new saddle path, the only path that reaches the new steady state: up, from 1.616 to 1.691. Households consume more because saving now pays less after tax. Then capital is run down, and consumption falls with it; half the fall in capital takes 13 years. In the long run consumption ends lower than it began, because this economy has less capital than the golden rule's 17.2: less capital means less to consume. The tax brings consumption forward, and the bill comes later.
Where marks are lost. Putting the tax in the resource constraint. Letting capital jump, or getting the direction of consumption's jump wrong. Drawing a path that never arrives. And guessing the long run without comparing the steady state with the golden rule. The idea to keep, from Part twenty: a tax on saving enters the Euler equation, and only the variable that can jump does. Whether capital should be taxed at all in the long run is a famous argument, and it is still open.
What it does: The steady state; the phase diagram and the saddle path
6Macro: a McCall worker whose benefits expireGraduate3 min
Question six. An unemployed worker gets one wage offer a period, uniform between zero and one, and a job, once taken, lasts for ever. The discount factor is 0.95. Unemployment benefits pay one half for eight periods, then only 0.1. Part a: the Bellman equations. Part b: show the reservation wage falls as benefits run out, and compute it once they have. Part c: what happens to the chance of leaving unemployment. Pause: which state should you solve first?
Parts a and b. A job at wage w is worth w over one minus beta. Once benefits are gone, every period looks the same, so the value of searching satisfies an ordinary McCall equation. Solve that state first: it is where backward induction starts. With uniform offers the expectation of the maximum has a closed form, and the reservation wage solves a quadratic: 0.740. With d periods of benefit left, the worker gets b today and moves to state d minus one tomorrow. Each extra period of benefit raises the value of searching, because b exceeds z and the Bellman operator is monotone; so the reservation wage rises with benefits left, from 0.740 after exhaustion to 0.809 at the start of a spell. With benefits for ever it would be 0.817.
Part c. Follow a spell from the start: the reservation wage falls period by period as exhaustion approaches, and drops to its lowest once benefits have run out. The chance of accepting an offer is one minus the reservation wage, so it rises over the spell, from 0.19 to 0.26 a period: job seekers become less choosy as the money runs out.
And in the data? Lawrence Katz and Bruce Meyer found that American job seekers leave unemployment much faster in the weeks around exhaustion. David Card, Raj Chetty and Andrea Weber, with Austrian records, found that the spike in leaving the unemployment register is far larger than the spike in starting a job: many people simply stop being counted. An exam answer that predicts a rising exit rate is right; one that adds that the data distinguish finding a job from leaving the register earns the extra mark.
Where marks are lost. One reservation wage for the whole spell. Starting the recursion at the wrong end. Valuing a job at one period's wage. And asserting that the reservation wage falls without the two-line proof. The idea to keep, from Parts twenty-four and forty-two: a deadline turns a stationary problem into a sequence, and you solve the end first.
What it does: Bellman equations by backward induction; the exit rate; the evidence
Intermission: how long a spell of unemployment lasts, 1967-2026Principles and the major
This chapter has no narration to read.
7Macro: the three-equation model under discretionGraduate3 min
Question seven. A central bank cares about inflation and about the output gap, which it would like to be half a point above its natural level. The economy follows Part thirty's Phillips curve, with a cost shock that halves each quarter. The bank cannot commit. Part a: average inflation and the average gap. Part b: the response to a cost shock. Part c: what commitment would change. Pause, and write the bank's first-order condition.
Part a. Under discretion the bank re-optimizes every period and takes tomorrow's expected inflation as given, because it cannot promise anything about tomorrow. The first-order condition trades inflation against the gap: kappa pi plus lambda times the gap's shortfall equals zero. In a steady state the Phillips curve and this condition together give average inflation of 1.00 point: the inflation bias. And what does it buy? An average gap of only 0.10, against the 0.5 the bank wanted. Everyone expects the bank to try, so inflation rises until trying no longer pays; Kydland and Prescott's argument, in Part twenty-eight's language.
Part b. Guess that inflation and the gap are proportional to the shock; then expected inflation is rho times today's. Substituting into the first-order condition and the Phillips curve gives inflation 1.83 times the shock and the gap minus 0.73 times: the bank lets inflation rise and squeezes output, and both fade as the shock does. Part c. A bank that could commit would promise to keep the gap low even after the shock has gone. Its gap returns slowly, with a coefficient of 0.82 on its own past. Because people expect that, inflation rises less today, and the loss from one shock falls from 4.65 to 3.09. The gain from commitment comes through expectations, which is the whole case for forward guidance.
The picture. Under discretion, inflation jumps and the gap falls, and both die away with the shock. Under commitment, inflation rises by less, and later even dips below zero; the gap falls by less at first but stays negative longer, after the shock is nearly gone. That promise, kept, is what holds today's inflation down.
Where marks are lost. Letting the discretionary bank choose expectations. Believing the bias buys output. The wrong sign on the gap. And forgetting what expected inflation is when the shock persists. The idea to keep, from Parts twenty-eight and thirty: what a central bank cannot promise, it pays for, in average inflation and again in every shock.
What it does: The inflation bias; a cost shock; commitment
8Macro: why r lies below the rate of time preferenceResearch3 min
Question eight. Households with constant relative risk aversion of three and a discount factor of 0.96 face income risk they cannot insure, cannot borrow, and save in capital that firms rent. Part a: show that the equilibrium interest rate is below the rate of time preference, one over beta minus one. Part b: compute the equilibrium, and compare its capital with an economy without risk. Pause: what happens to a household's savings if the interest rate equals the rate of time preference?
Part a. Each household's Euler equation holds with equality unless it is at the borrowing limit, where it holds as an inequality. Suppose the interest rate were at least the rate of time preference. Then marginal utility is a nonnegative supermartingale, and such a process converges. But income never stops moving, so consumption can only settle down if wealth grows without bound; Gary Chamberlain and Charles Wilson proved it. So the capital households want to hold explodes as the rate approaches rho, while the capital firms want stays finite: the two curves can only cross below rho. Part b. Solved, the equilibrium rate is 1.62 percent, against a rate of time preference of 4.17; and capital is 7.86, against 5.45 in an economy without risk, where the rate would equal rho. Uninsurable risk makes people save more than they would like, and the economy holds more capital as a result.
The picture, Aiyagari's own. The capital households want to hold rises with the interest rate, and bends up toward the dashed line at rho, which it never crosses. The capital firms want falls with the rate. They cross below rho. Without risk, supply would be a horizontal line at rho, and capital would be where demand meets it.
Where marks are lost. Writing the representative household's steady state, beta times one plus r equals one. Dropping the inequality at the limit. Holding the wage fixed as the rate changes. And asserting that assets explode without saying why. The idea to keep, from Part fifty-two: uninsurable risk and a borrowing limit mean more saving, more capital and a lower interest rate.
What it does: The supermartingale argument; Aiyagari's diagram
9Econometrics: identifying a demand curvePrinciples and the major3 min
Question nine, the first in econometrics. On two thousand days we see a market's price and quantity. Demand slopes down with slope minus b; supply slopes up, and storms, on about three days in ten, cut it. Part a: which equation is identified? Part b: show that least squares fails. Part c: a consistent estimator, computed. Pause: which curve does a storm move?
Part a. The demand equation leaves out the storm variable, which appears in supply: one excluded instrument for one endogenous regressor, the price. That is the order condition, and demand is exactly identified, provided storms really move supply, the rank condition. Supply leaves nothing out, so nothing identifies it. Part b. Least squares regresses quantity on a price that demand shocks also move. In the limit it gives minus 0.30, a blend of the two slopes, and in this sample minus 0.26. Part c. Compare storm days with calm days. A storm moves supply only, so price and quantity slide along the demand curve, and the ratio of the change in quantity to the change in price is the slope: minus 0.92, with a standard error of 0.05. That is Wald's estimator, and two-stage least squares with one binary instrument. The truth, since these days are simulated, is minus one.
The picture. Each dot is a day, purple if stormy. The cloud slopes only gently down, because both curves move. In white, the demand curve we want. Least squares through the cloud is far too flat. But the average calm day and the average stormy day both lie on the demand curve, since storms move only supply; the line through them is the Wald estimate.
Where marks are lost. Using the storm to estimate supply. Treating the order condition as sufficient. Asserting the exclusion restriction instead of arguing it: if storms keep shoppers at home, they move demand too, and the estimator fails. And reporting the change in quantity as if it were the slope. The idea to keep, from Part four and Philip Wright's tariff study of 1928: a variable that moves one curve traces out the other.
What it does: Order and rank; least squares' bias; the Wald estimator
10Econometrics: GMM for an Euler equationGraduate3 min
Question ten. A household's Euler equation says that the discounted, marginal-utility-weighted gross return on each of two assets has expectation one. We have two thousand periods of data. Part a: moment conditions, using a constant and last period's consumption growth and returns as instruments. Part b: count the over-identifying restrictions. Part c: two-step GMM and the J test. Pause, and count the moments.
Part a. The Euler equation says the pricing error, beta times the growth of marginal utility times the return, minus one, cannot be predicted by anything known today. So it is uncorrelated with a constant, with last period's consumption growth and with last period's returns. Part b. Four instruments for each of two assets: 8 moment conditions for two parameters, so 6 over-identifying restrictions. Part c. The first step minimizes the plain sum of squared average moments: consistent, but it weights a noisy moment as much as a precise one. The second step estimates the moments' covariance at the first-step estimate and weights by its inverse, which is efficient. The estimates: beta 0.970 and gamma 3.00, with standard errors 0.002 and 0.10; the first step's standard error for gamma was 0.25. Hansen's J statistic, the sample size times the minimized objective, is 2.77 against a chi-square with 6 degrees of freedom: a p-value of 0.84, so the data do not reject the extra restrictions.
The picture. The objective over a grid of beta and gamma: brighter is lower. In green, the parameters the J statistic does not reject at five percent: a confidence region. The estimate in white, and the truth, since these data are simulated, as a gold cross. The region is a tilted ridge: patience and risk aversion pull the same way on the average return, and only the instruments separate them. That ridge is why Hansen and Singleton's estimates on real data were so imprecise.
Where marks are lost. Instruments dated tomorrow. The J test with the wrong degrees of freedom. First-step standard errors reported as efficient. And forgetting that the moments must actually pin the parameters down. The idea to keep, from Part fifty-four: an orthogonality condition, counted, weighted, and tested when there are spare ones.
What it does: Moments, two steps, the J test; the objective's ridge
11Econometrics: staggered difference-in-differencesResearch3 min
Question eleven. Three units over ten periods: E adopts a policy in period three, L in period seven, N never. The effect grows the longer a unit has had the policy: one, then two, then three. There is no noise at all, so every number is exact. Part a: the average effect on the treated, and what two-way fixed effects estimates. Part b: decompose it. Part c: an estimator that gets it right. Pause, and compute the true average first.
Part a. E is treated for eight periods, with effects one to eight; L for four, with effects one to four. The average over the twelve treated cells is 3.83. The two-way fixed-effects regression, with a dummy for each unit and each period, gives 2.00: barely half. Part b. Andrew Goodman-Bacon showed it is a weighted average of every two-by-two comparison. E against N, and L against N, are clean. So is E against L before L starts. But L against E after E has started uses E as a control while E's effect is still growing. L's own effect, two and a half, minus E's growth of four, gives minus 1.5, and it gets a quarter of the weight. The weighted sum is exactly two. Part c. Fit the unit and period effects on untreated cells only, impute what each treated cell would have been without the policy, and average the difference: 3.83, the truth. Callaway and Sant'Anna's estimator, which compares each cohort only with clean controls, gets it too.
The picture. The three units' outcomes: E bends up from period three, L from period seven, N never. On the right, the weight the regression puts on each treated cell. E's last four periods, where its effect is largest, get negative weight: the regression subtracts the very effects it should be averaging. Drop the never-treated unit and it gets worse: the coefficient becomes minus 0.17, the wrong sign, for a policy that helps every unit that adopts it. That is the whole difficulty in one grid.
Where marks are lost. Calling the coefficient the average effect. Using already-treated units as controls. Believing parallel trends is enough: this regression also needs the effect to be the same for every unit and every period. And an event study without a reference period. The idea to keep, from Part four and from Statistics, Built: compare the treated only with what is still untreated.
What it does: TWFE against the truth; Goodman-Bacon; weights; imputation
12Econometrics: a VAR with a long-run restrictionResearch3 min
The last question. Output growth and unemployment follow a first-order vector autoregression, with the matrix A and the covariance of the surprises given. Two shocks drive it: supply, which may move the level of output for ever, and demand, which cannot. Part a: count the unknowns. Part b: show how the long-run restriction identifies the impact matrix. Part c: compute it, and say how well it can be estimated. Pause: where does the zero go?
Part a. The impact matrix B has four entries; the covariance of the surprises gives three equations. One short, as in Part fifty-five. Part b. A shock's effect on the level of output is the sum of its effects on output growth, which is the first row of C of one times B, with C of one the inverse of I minus A. The restriction: demand's entry there is zero. Then C of one times Sigma times its transpose equals C of one B times its own transpose, and C of one B is lower triangular: it is the Cholesky factor, unique up to the signs of its columns. Multiply back by the inverse of C of one, choose the signs so that supply raises output and demand lowers unemployment, and B is recovered exactly. Part c. In 200 simulated samples of 400 quarters, the estimates are centred on the truth, but with standard deviations of a tenth to a fifth of their size: the long run is read from how persistent the autoregression is, and persistence is hard to estimate. Jon Faust and Eric Leeper warned that long-run restrictions can be unreliable for exactly this reason.
The picture. A supply shock raises output's level for good, to 0.66, and nudges unemployment down for a while. A demand shock raises output at first, and the level returns to where it started, by construction; unemployment falls and recovers. The zero was imposed at infinity, and it shapes every quarter before it.
Where marks are lost. Putting the zero in the impact matrix. Taking the Cholesky factor of Sigma, which is a different assumption, about timing. Putting output in levels. And forgetting the signs. The idea to keep, from Part fifty-five: one zero at infinity buys the whole impact matrix, at the price of precision.
What it does: Counting; C(1)B and Cholesky; precision in samples
13How the exam is marked, and what to do when stuckPractice2 min
How is an answer marked? Graders work from a scheme like this one, for part a of question four, fourteen marks. Three for writing the objective and all four constraints. Three for saying which bind, and why. Three for the reduced problem and its first-order conditions. Three for the numbers. And two for checking the slack constraints and saying, in a sentence, what the answer means. Notice how few of the fourteen are for the final numbers: most marks are for the steps that produce them.
Two answers to the same part. Answer A has every number right and no working. It earns three marks, the ones for the numbers, and a grader cannot tell it from a copied answer. Answer B sets the problem up, says which constraints bind and why, makes one arithmetic slip, carries it through correctly, and says what the result means. It earns twelve. Method marks are the rule almost everywhere: an error carried forward is penalized once.
What to do when stuck. Write down what you can: the objective, the constraints, the Bellman equation. They carry marks on their own, and writing them often unsticks you. Solve a special case: two types before a continuum, no noise before noise, two bidders before n. Every question tonight did that. Check the units, the signs and the limits. If you cannot prove something, state the assumption you would need: an assumption named is half an argument. And budget the time: a question worth a quarter of the marks gets a quarter of the time. Move on, and come back.
What does a grader look for, scanning a page in a minute? The condition that pins the answer down, labelled. Steps with reasons. The answer, boxed. One sentence on what it means and when it would fail. And a figure where one helps, with its axes labelled. Every solution in this part was written that way, on purpose.
What it does: A mark scheme; two answers; five habits; a grader's eye
14Frontier: where each problem is still openGraduate2 min
Every question tonight had a clean answer. Every one of them also opens onto a live research question. In micro: kinks became a way to measure behaviour, by counting who bunches at them, the method of Emmanuel Saez and Henrik Kleven. Valuing an externality is the hard part in practice, as with the social cost of carbon. Reserve prices have been tested by field experiment in online advertising auctions. And screening when buyers differ in more than one way has no simple solution: Jean-Charles Rochet and Philippe Choné showed why. In macro: Ludwig Straub and Iván Werning showed that the famous result that capital should go untaxed in the long run fails in some of the very models that produced it. Camille Landais and coauthors estimated how benefits should change over a spell, using Swedish data. Commitment is the whole subject of forward guidance. And the Aiyagari household is now the core of heterogeneous-agent New Keynesian models, after Greg Kaplan, Benjamin Moll and Giovanni Violante. In econometrics: inference with weak instruments; Euler equations that real returns still reject; a whole literature on staggered timing, surveyed by Jonathan Roth and coauthors; and the old argument over whether hours fall after a technology shock, which turned on exactly the long-run restriction of question twelve.
What it does: Twelve open questions, one for each problem
Recap, problems, and the road aheadAll tracks3 min
So: can you do it with the book closed? Yes, if you can do four things without being told: say who chooses what, given what; find the condition that pins the answer down, whether it is a first-order condition, a Bellman equation, market clearing or a moment; solve it with a reason for every step; and check the answer against a special case, its units and its signs. The twelve questions needed nothing more, and nothing less.
Part fifty-six in twelve lines. A kinked budget: check every segment, and put the income effect only on the units bought at the margin. An externality: tax the source at the marginal harm. An auction with a reserve: the type at the reserve bids the reserve, and sometimes nothing sells. Screening: no distortion at the top. A capital tax: consumption jumps, capital falls. Benefits that run out: solve the end first. Discretion: a bias that buys nothing. Precaution: the interest rate sits below the rate of time preference. Demand: a supply shifter traces it out. GMM: count the moments, weight them, test the spares. Staggered timing: compare only with the untreated. And the long run: one zero, and a Cholesky factor.
The problems: variations on tonight's questions. The range of tastes that lands at the kink; the reserve with any number of bidders; the capital tax when the revenue is wasted; storms that also keep shoppers at home; the staggered design without its never-treated unit; and a starred problem on what happens to the interest rate as income risk disappears. Full solutions are in the part's notes.
The reading: the core's textbooks. Mas-Colell, Whinston and Green, and Kreps, for micro; Ljungqvist and Sargent, Romer, and Galí for macro; Hayashi for econometrics. Then the papers behind each question. And the best preparation of all: past examinations, which many departments publish, worked against the clock.
Next time, the graduate core is behind us, and economics goes to work. In 1966 Paul Samuelson joked that the stock market had predicted nine of the last five recessions. Economists, it turns out, err the other way. How are the numbers made, how do forecasters read them as they arrive, and how good are their guesses? Part fifty-seven: reading the economy in real time.
Where it goes next. Part 57 opens Act XI, Economics at Work: reading the economy in real time, from how a number is made to nowcasts and the record of forecasters.
Key results
The part's results in one place, for revision.
Try it
Lab 56 · The core exam
Work the twelve questions of a first-year core examination, and check every answer the way a grader would: against a special case, a brute-force computation or a simulation.
python -m videos.economics.labs 56
needs numpy, scipy, matplotlib · download lab56.py ·
source on GitHubQ1 demand (segment); dx/dp2; CV against Laspeyres 24.0 (second segment); -8.00; 1.203 vs 2.00
Q2 equilibrium x_A; efficient x_A; Pigouvian tax; welfare gain 5.00; 3.566; 0.50; 0.374
Q3 revenue: formula, simulated first price, simulated second price 0.4167, 0.4168, 0.4167
Q4 q_L, q_H, rent, profit (first best) 0.50, 2.00, 0.50, 0.750 (1.00)
Q5 k* before and after; c on impact; c* after 8.505 -> 7.128; 1.691; 1.568
Q6 reservation wage by periods of benefit left (0..8) 0.740, 0.760, 0.775, 0.785, 0.793, 0.798, 0.803, 0.806, 0.809
Q7 inflation bias; average gap; response to a cost shock (pi, x); loss: discretion, commitment 1.00; 0.10; (1.83, -0.73); 4.65, 3.09
Q8 Aiyagari: r* against rho; capital against the riskless economy's 1.62% < 4.17%; 7.86 vs 5.45
Q9 OLS (plim); Wald (s.e.); truth -0.264 (-0.296); -0.917 (0.050); -1.0
Q10 two-step GMM: beta, gamma (s.e.); J on df, p 0.9702, 2.999 (0.0021, 0.100); 2.77 on 6, 0.84
Q11 TWFE against the average effect; imputation 2.000 vs 3.833; 3.833
Goodman-Bacon: vs never (cohort 3) 4.50 with weight 0.250
Goodman-Bacon: early vs later (cohort 3) 2.50 with weight 0.125
Goodman-Bacon: later vs earlier (cohort 7) -1.50 with weight 0.250
Goodman-Bacon: vs never (cohort 7) 2.50 with weight 0.375
Q12 B (population) and its mean estimate over 60 samples [[0.8, 0.5], [-0.1, -0.3]] / [[0.797, 0.486], [-0.102, -0.295]]
Every answer was computed twice, by the formula a candidate writes and by brute force; the solvers assert that the two agree. The habit to take into the exam room: check before the grader does.
The code (83 lines; it asserts its own result)
"""Lab 56: the core exam: twelve questions in micro, macro and econometrics, each solved by its formula and checked
by brute force (a grid, a simulation, an optimizer), printed as a marked answer sheet."""
import numpy as np
from videos.coursekit import labs
from explainer.economics.agora import exam
TITLE = "The core exam"
GOAL = ("Work the twelve questions of a first-year core examination, and check every answer the way a grader would: "
"against a special case, a brute-force computation or a simulation.")
TASKS = [
"Lower alpha in kinked_budget to 0.3. Where does the consumer end up, and what is the MRS there?",
"Run reserve_auction with n = 3 and r = 0.5. Does the best reserve change with the number of bidders?",
"Run staggered_did(never=False). Why does two-way fixed effects get the sign wrong?",
]
def run(seed=0):
lab = labs.Lab()
k = exam.kinked_budget()
lab.row("Q1 demand (segment); dx/dp2; CV against Laspeyres",
f"{k['x']:.1f} ({k['where']}); {k['total']:.2f}; {k['cv']:.3f} vs {k['laspeyres']:.2f}")
e = exam.externality_box()
lab.row("Q2 equilibrium x_A; efficient x_A; Pigouvian tax; welfare gain",
f"{e['xa_eq']:.2f}; {e['xa_po']:.3f}; {e['tax']:.2f}; {e['gain']:.3f}")
a = exam.reserve_auction(draws=200_000, seed=56 + seed)
lab.row("Q3 revenue: formula, simulated first price, simulated second price",
f"{a['rev']:.4f}, {a['rev_fp_sim']:.4f}, {a['rev_sp_sim']:.4f}")
assert abs(a["rev_fp_sim"] - a["rev"]) < 5e-3
s = exam.screening()
lab.row("Q4 q_L, q_H, rent, profit (first best)",
f"{s['q_l']:.2f}, {s['q_h']:.2f}, {s['rent']:.2f}, {s['profit']:.3f} ({s['first_best']:.2f})")
r = exam.ramsey_tax()
lab.row("Q5 k* before and after; c on impact; c* after",
f"{r['k_old']:.3f} -> {r['k_new']:.3f}; {r['c0']:.3f}; {r['c_new']:.3f}")
assert r["c0"] > r["c_old"] > r["c_new"]
m = exam.mccall_expiring()
lab.row("Q6 reservation wage by periods of benefit left (0..8)", ", ".join(f"{x:.3f}" for x in m["res"]))
d = exam.discretion()
lab.row("Q7 inflation bias; average gap; response to a cost shock (pi, x); loss: discretion, commitment",
f"{d['pi_bar']:.2f}; {d['x_bar']:.2f}; ({d['a_pi']:.2f}, {d['a_x']:.2f}); "
f"{d['loss_d']:.2f}, {d['loss_c']:.2f}")
g = exam.aiyagari_gap(rs=np.array([0.0, 0.02, 0.035]))
lab.row("Q8 Aiyagari: r* against rho; capital against the riskless economy's",
f"{100 * g['r']:.2f}% < {100 * g['rho']:.2f}%; {g['K']:.2f} vs {g['K_rep']:.2f}")
sd = exam.supply_demand(seed=56 + seed)
lab.row("Q9 OLS (plim); Wald (s.e.); truth", f"{sd['ols']:.3f} ({sd['plim_ols']:.3f}); {sd['wald']:.3f} "
f"({sd['se_wald']:.3f}); {-sd['b']:.1f}")
gm = exam.euler_gmm(seed=56 + seed)
t2 = gm["two"]
lab.row("Q10 two-step GMM: beta, gamma (s.e.); J on df, p",
f"{t2['theta'][0]:.4f}, {t2['theta'][1]:.3f} ({t2['se'][0]:.4f}, {t2['se'][1]:.3f}); "
f"{t2['J']:.2f} on {gm['df']}, {t2['p_J']:.2f}")
st = exam.staggered_did()
lab.row("Q11 TWFE against the average effect; imputation", f"{st['twfe']:.3f} vs {st['att']:.3f}; "
f"{st['imputation']:.3f}")
for b in st["bacon"]:
lab.row(f" Goodman-Bacon: {b['kind']} (cohort {b['g']:.0f})", f"{b['est']:.2f} with weight {b['w']:.3f}")
lv = exam.long_run_var(reps=60, seed=56 + seed)
lab.row("Q12 B (population) and its mean estimate over 60 samples",
f"{np.round(lv['B'], 3).tolist()} / {np.round(lv['B_est_mean'], 3).tolist()}")
lab.note = ("Every answer was computed twice, by the formula a candidate writes and by brute force; the solvers "
"assert that the two agree. The habit to take into the exam room: check before the grader does.")
fig, ax = labs.figure(2, size=(11, 4.4))
th, q = np.array(s["theta"]), np.array(s["q"])
ax[0].plot(th, th, color="white", label="first best")
ax[0].plot(th, q, color=labs.ORANGE, label="screening")
ax[0].scatter([1, 2], [s["q_l"], s["q_h"]], color=labs.GREEN, label="two types", zorder=3)
ax[0].set(title="Q4: quality by type", xlabel="theta", ylabel="q")
ax[0].legend()
t = np.arange(len(d["pi_d"]))
ax[1].plot(t, d["pi_d"], color=labs.ORANGE, label="inflation, discretion")
ax[1].plot(t, d["pi_c"], color=labs.ORANGE, ls="--", label="inflation, commitment")
ax[1].plot(t, d["x_d"], color=labs.PURPLE, label="gap, discretion")
ax[1].plot(t, d["x_c"], color=labs.PURPLE, ls="--", label="gap, commitment")
ax[1].axhline(0, color="grey", lw=0.8)
ax[1].set(title="Q7: a unit cost shock", xlabel="quarters")
ax[1].legend(fontsize=8)
lab.fig = fig
return lab
Now change it
- Lower alpha in kinked_budget to 0.3. Where does the consumer end up, and what is the MRS there?
- Run reserve_auction with n = 3 and r = 0.5. Does the best reserve change with the number of bidders?
- Run staggered_did(never=False). Why does two-way fixed effects get the sign wrong?
Problems, with solutions
Try each problem before opening its solution.
Problems, with solutions
Exam problems and solutions
1. A consumer has u = 0.4 ln x + 0.6 ln y and income 100; y costs 1; x costs 1 for the first 20 units and 2 beyond. Find demand; decompose the effect of a small rise in the second price; find the compensating variation of a rise to 2.5.
Solution
On the first segment demand would be 0.4 x 100 = 40 > 20, off the segment. The second segment lies on the line with price 2 and virtual income 100 + (2 - 1) x 20 = 120, so x = 0.4 x 120 / 2 = 24 > 20, on the segment, with y = 72 (check: 20 + 8 + 72 = 100). Since virtual income rises by 20 per unit rise in p2, dx/dp2 = dh/dp2 - (x - 20) dx/dm = -7.2 - 4 x 0.2 = -8, where dh/dp2 = -0.4 x 120/4 + 24 x 0.2 = -7.2; directly, x = 0.4(80/p2 + 20) has slope -32/p2^2 = -8. At p2 = 2.5, virtual income is 130 and x = 20.8; indirect utility on the segment is ln m' - 0.4 ln p2
- const, so the compensating variation is 120 x 1.25^0.4 - 130 = 1.20, below the Laspeyres bound (x - 20) x 0.5 = 2.0.
2. u_A = 4 ln x_A + y_A, u_B = 4 ln x_B + y_B - 0.5 x_A; 10 units of x and 20 of y, split equally. Find the equilibrium, the Pareto set, and a decentralizing tax.
Solution
Each sets 4/x_i = p; with x_A + x_B = 10, x_A = x_B = 5 and p = 0.8: the endowment is the equilibrium. With quasilinear utility, efficiency maximizes u_A + u_B: 4/x_A - 0.5 = 4/(10 - x_A), so x_A = 3.57, with any feasible split of y (a vertical line in the box). A tax t = 0.5 on A's consumption with the revenue returned to A gives 4/x_A = p + 0.5 and 4/x_B = p, so p = 0.62 and A pays 1.12; surplus rises by 0.37. Where on the Pareto line to stop is a judgment about distribution, not a theorem.
3. Two bidders, values uniform on [0, 1], a first-price auction with reserve 0.5. Find the bid function, the revenue, and why the seller sets the reserve.
Solution
A bidder of value v bidding b wins with probability beta^{-1}(b); the first-order condition at b = beta(v) is v beta' + beta = v, so v beta(v) = v^2/2 + C, and the boundary beta(r) = r gives C = r^2/2: beta(v) = (v^2 + 0.25)/2v for v >= 0.5, no bid below. Revenue is the expected virtual value 2v - 1 of the winner when the object sells: 2 integral_{0.5}^1 (2v - 1) v dv = 5/12, against 1/3 with no reserve; nothing sells with probability 1/4. Selling to a type whose virtual value is negative lowers revenue, so the best reserve sets 2v - 1 = 0 (Myerson 1981).
4. Quality q at cost q^2/2; a buyer of type theta gets theta q - t. Two types, 1 (probability 2/3) and 2; then theta uniform on [1, 2]. Find the menus.
Solution
The low type's participation and the high type's incentive constraint bind: t_L = q_L, t_H = 2 q_H - q_L. Profit (2/3)(q_L - q_L^2/2) + (1/3)(2 q_H - q_L - q_H^2/2) gives q_H = 2 and (2/3)(1 - q_L) = 1/3, so q_L = 1/2; t_L = 0.5, t_H = 3.5, a rent of 0.5, profit 0.75 against 1.00. With a continuum, the envelope condition U' = q and U(1) = 0 turn profit into virtual surplus, maximized by q = theta - (2 - theta) = 2 theta - 2, with t = theta q - integral q = theta^2 - 1; profit 2/3 against 7/6. Quality increases with type, so the menu is incentive compatible.
5. Ramsey with f = k^{1/3}, delta 0.05, rho 0.03, theta 2: a permanent 25% tax on the net return to capital, rebated. The new steady state, the transition, and consumption.
Solution
The rebate keeps the tax out of the resource constraint; the Euler equation becomes c'/c = ((1 - tau)(f'
- delta) - rho)/theta, so f'(k*) = 0.05 + 0.03/0.75 = 0.09 and k* = (1/3 / 0.09)^{3/2} = 7.13 (from 8.51), c* = 1.568 (from 1.616). Capital cannot jump; consumption jumps up onto the new saddle path, to 1.690, then both fall to the new steady state, half the fall in capital taking about 13 years. Long-run consumption is lower because both steady states lie below the golden rule (17.2).
6. Offers uniform on [0, 1], beta 0.95; benefits 0.5 for 8 periods, then 0.1. Bellman equations; the reservation wage; the exit rate.
Solution
W(w) = w/(1 - beta); after exhaustion U_0 = z + beta E max(W, U_0), stationary, with w*_0 = z + beta/(2(1
- beta))(1 - w*0)^2 = 0.740; then U_d = b + beta E max(W, U{d-1}). Since b > z and the operator is monotone, U_d rises with d, so the reservation wage (1 - beta) U_d falls as benefits run out, from 0.809 to 0.740, and the chance of accepting rises from 0.19 to 0.26 a period.
7. Loss pi^2 + 0.25(x - 0.5)^2, pi = beta E pi' + 0.1 x + u, beta 0.99, u AR(1) with rho 0.5, discretion.
Solution
The first-order condition is kappa pi + lambda (x - x*) = 0. In a steady state with the Phillips curve, pi = lambda kappa x* / (lambda(1 - beta) + kappa^2) = 1.0 and x = (1 - beta) pi / kappa = 0.1. With pi = a u, x = b u and E pi' = rho a u: a = lambda / (kappa^2 + lambda(1 - beta rho)) = 1.83, b = -kappa / (...) = -0.73. Under commitment pi_t = (lambda/kappa)(x_{t-1} - x_t), x_t = 0.82 x_{t-1} + c u_t: inflation rises less, the gap stays low longer, and the loss from one shock falls from 4.65 to 3.09.
8. Aiyagari: show r < 1/beta - 1, and compute the equilibrium.
Solution
u'(c_t) >= beta(1 + r) E_t u'(c_{t+1}), with equality off the borrowing limit. If beta(1 + r) >= 1, marginal utility is a nonnegative supermartingale and converges; with income that keeps moving, that requires assets to grow without bound (Chamberlain and Wilson 2000), so capital supply is infinite at r = rho while firms' demand is finite; the curves cross below rho. Computed: r = 1.62% against rho = 4.17%, capital 7.86 against 5.45 at r = rho.
9. Demand q = a - bp + u_d, supply q = c + dp + ew + u_s, w a storm dummy. Identification; least squares; a consistent estimator.
Solution
Demand excludes w, one instrument for one endogenous regressor (order), and e != 0 (rank): exactly identified; supply excludes nothing. Least squares converges to -b + sigma_d^2 / ((b + d) Var p) = -0.30 (sample -0.26). The Wald estimator, (mean q on storm days - on calm days)/(the same for p), is -0.92 (s.e. 0.05); the truth is -1.
10. Euler equation for two assets; instruments 1, lagged consumption growth and lagged returns. Moments; over- identifying restrictions; two-step GMM and J.
Solution
E[(beta exp(-gamma dc') R'_j - 1) z] = 0 with z = (1, dc, R_1, R_2): 8 moments, 2 parameters, 6 over- identifying restrictions. First step with identity weights; second with the inverse of the moments' covariance at the first-step estimate. Here beta = 0.970 (0.002), gamma = 3.00 (0.10); J = T g' S^{-1} g = 2.77 on 6 degrees of freedom, p = 0.84.
11. E adopts in period 3, L in period 7, N never; effects 1, 2, 3, ... with exposure; no noise. TWFE; its decomposition; a correct estimator.
Solution
The average effect on the 12 treated cells is (36 + 10)/12 = 3.83. TWFE gives 2.00: Goodman-Bacon's comparisons are E vs N, 4.5 (weight 0.25), L vs N, 2.5 (0.375), E vs L before L starts, 2.5 (0.125), and L vs E after E started, -1.5 (0.25), where E's growing effect is used as a control. Imputing Y(0) from unit and period effects fitted on untreated cells recovers 3.83.
12. A VAR(1) in output growth and unemployment, two shocks, demand with no long-run effect on output. Count; identify; compute.
Solution
B has 4 unknowns and Sigma = BB' gives 3 equations. The long-run effect on output's level is the first row of C(1)B, C(1) = (I - A)^{-1}, and [C(1)B]_{12} = 0. Then C(1) Sigma C(1)' = (C(1)B)(C(1)B)', so C(1)B is its Cholesky factor, unique up to column signs, and B = C(1)^{-1} chol(C(1) Sigma C(1)'), with signs set so supply raises output and demand lowers unemployment. In population B = [[0.80, 0.50], [-0.10, -0.30]] exactly; in 200 samples of 400 quarters, b11 averages 0.79 (s.d. 0.08) and b12 0.50 (s.d. 0.10).
Problems, with solutions
1. Question 1 again: for which values of alpha does the consumer buy exactly 20 units?
Solution
The first segment fails when alpha x 100 > 20, that is alpha > 0.2; the second fails when alpha x 120 / 2 < 20, that is alpha < 1/3. For 0.2 <= alpha <= 1/3 the consumer is at the kink; at alpha = 0.3 the marginal rate of substitution there is (0.3/0.7)(80/20) = 1.71, between the prices.
2. Question 3 with n bidders: show that the best reserve is 1/2 for every n, and find the revenue with and without it for n = 3.
Solution
Revenue is n integral_r^1 (2v - 1) v^{n-1} dv; its derivative in r is -n(2r - 1) r^{n-1}, zero at r = 1/2 whatever n. For n = 3: 6(1 - 1/16)/4 - (1 - 1/8) = 0.531 with the reserve, against (n - 1)/(n + 1) = 0.5 without.
3. Question 5 again, but the revenue pays for useless government spending instead of a rebate: what changes in the steady state?
Solution
The Euler equation is unchanged, so k* = 7.13 as before. The resource constraint loses g = tau (f' - delta) k = 0.25 x 0.04 x 7.13 = 0.071, so c* = 1.568 - 0.071 = 1.497. The saddle path shifts down with it, so the transition has to be solved again; whether consumption still jumps up on impact depends on the numbers.
4. Question 9: suppose storms also keep shoppers at home. What does the Wald estimator estimate now?
Solution
If demand is q = a - bp + delta w + u_d, then the storm moves price by (delta - e)/(b + d) and quantity by -b times that plus delta, so the Wald ratio is -b + delta (b + d)/(delta - e): biased unless delta = 0. The exclusion restriction has to be argued from what storms do, not assumed.
5. Question 11 without unit N: compute the two-way fixed-effects coefficient, and explain its sign.
Solution
Only two comparisons remain: E against L before L starts (2.5, weight 1/3) and L against E after E started (-1.5, weight 2/3), so the coefficient is (2.5 - 3)/3 = -0.17, the wrong sign for a policy that helps every adopter. The forbidden comparison gets two thirds of the weight, and E's growing effect is subtracted.
6. Question 8: what happens to r* as the variance of income shocks goes to zero? Why?
Solution
r* rises toward rho and capital falls toward its level at r = rho. The gap is the price of the precautionary motive: with less risk, households need less buffer stock, supply shifts left, and with no risk the household's Euler equation holds with beta(1 + r) = 1 in a steady state. Aiyagari's own table shows the gap shrinking as the variance falls.
Notes and sources
Sources
The studies the film states are listed with what each shows in dials.SHOWN[56]; the intermission's FRED series is
in the Data Room. The models are stated from the textbooks and papers cited in the chapters (Slutsky 1915, Ramsey
1928, Pigou 1920, Coase 1960, Vickrey 1961, Cass 1965 and Koopmans 1965, McCall 1970, Kydland and Prescott 1977,
Burtless and Hausman 1978, Mussa and Rosen 1978, Shavell and Weiss 1979, Myerson 1981, Riley and Samuelson 1981,
Hansen 1982, Hansen and Singleton 1982, Barro and Gordon 1983, Maskin and Riley 1984, Chamley 1986, Blanchard and Quah
1989, Katz and Meyer 1990, Huggett 1993, Aiyagari 1994, Mas-Colell, Whinston and Green 1995, Faust and Leeper 1997,
Clarida, Gali and Gertler 1999, Chamberlain and Wilson 2000, Hayashi 2000, Ljungqvist and Sargent 2000, Card, Chetty
and Weber 2007, Gali 2008, de Chaisemartin and D'Haultfoeuille 2020, Goodman-Bacon 2021, Callaway and Sant'Anna 2021,
Borusyak, Jaravel and Spiess 2024) and computed here.
About this partfrom its README
Part 56 of a sixty-eight-part course in economics (see the series plan and the syllabus), the last of Act X, The Graduate Core. It asks whether the core can be done with the book closed. Its answer: yes, for anyone who can do four things without being told how: say who chooses what, given what; find the condition that pins the answer down (a first-order condition, a Bellman equation, market clearing, a population moment); solve it with a reason for every step; and check the answer against a special case, its units and its signs.
The story is the night before the first-year examinations. Twelve questions of the kind every doctoral programme
sets, four each in microeconomics, macroeconomics and econometrics, are solved on screen the way a grader wants to
see them, each after a pause for the viewer, each followed by the mistakes that cost marks. The exam is made up; its
questions are the kind departments set, and every answer is computed twice by Agora's exam module, by the formula a
candidate writes and by brute force (a grid, a simulation, an optimizer), and the two are checked against each other.
- Micro: a consumer with a kinked budget (demand 24 on the second segment, at virtual income 120; the income effect of the marginal price falls on 4 units, not 24, so dx/dp2 = -8, not -12; a compensating variation of 1.20 against a Laspeyres bound of 2.0); an exchange economy with an externality (the equilibrium is the endowment; the Pareto set is x_A = 3.57; a Pigouvian tax of 0.5 on A's consumption, returned lump sum, gains 0.37); a first-price auction with a reserve of one half (beta(v) = (v^2 + 1/4)/2v; revenue 5/12 against 1/3, with no sale a quarter of the time, and 0.417 in 400,000 simulated auctions); screening (q_H = 2, q_L = 0.5, a rent of 0.5; with a continuum, q = 2 theta - 2 and t = theta^2 - 1).
- Macro: the Ramsey model with a 25% tax on the net return to capital, rebated (capital falls from 8.51 to 7.13, consumption jumps from 1.616 to 1.690 and ends at 1.568, below where it began, since capital is below the golden rule's 17.2); a McCall worker whose benefits expire (the reservation wage falls from 0.809 at the start of a spell to 0.740 after exhaustion, so leaving rises from 0.19 to 0.26 a period; Katz and Meyer 1990, Card, Chetty and Weber 2007); the three-equation model under discretion (an inflation bias of 1.0 point that buys a gap of 0.1, not 0.5; inflation 1.83 and the gap -0.73 per unit cost shock; commitment cuts the loss from 4.65 to 3.09); and Aiyagari's economy (r = 1.62% below rho = 4.17%, by the supermartingale argument of Chamberlain and Wilson; capital 7.86 against 5.45 without risk).
- Econometrics: supply and demand on 2,000 simulated days (storms identify demand; least squares gives -0.26, its probability limit -0.30; the Wald estimator -0.92, s.e. 0.05, against -1); GMM for the Euler equation (8 moments, 2 parameters, 6 over-identifying restrictions; beta 0.970 and gamma 3.00, s.e. 0.002 and 0.10; J = 2.77, p = 0.84); staggered difference-in-differences with growing effects and no noise (two-way fixed effects 2.00 against an average effect of 3.83, with negative weight on the early unit's last four periods, and -0.17, the wrong sign, without the never-treated unit; the Goodman-Bacon decomposition; imputation recovers 3.83); and a bivariate VAR with Blanchard and Quah's long-run restriction (B recovered exactly in population; in 200 samples of 400 quarters the estimates are centred on the truth with standard deviations of a tenth to a fifth of their size).
- How the exam is marked (an illustrative scheme; method marks; two answers to one part, 3 and 12 of 14), what to do when stuck, and what a grader looks for.
- Frontier: where each question's idea is still open, from bunching (Saez 2010; Kleven 2016) and multidimensional screening (Rochet and Chone 1998) to the zero capital tax revisited (Straub and Werning 2020), the path of benefits (Kolsrud, Landais, Nilsson and Spinnewijn 2018), HANK (Kaplan, Moll and Violante 2018), weak instruments (Andrews, Stock and Sun 2019), staggered timing (Roth, Sant'Anna, Bilinski and Poe 2023) and hours after technology shocks (Gali 1999; Christiano, Eichenbaum and Vigfusson 2004).
The intermission plays the median duration of unemployment in the United States, 1967-2026 (BLS via FRED), with the NBER's recessions: a line and a tune. There is no Called it? and no Dial in this part: an examination has answers, not estimates.
What is computed and built
Everything plotted is computed by compute.py with Agora's exam module (explainer.economics.agora.exam), which
calls Part 52's Aiyagari economy (agora.hetero), Part 54's GMM (agora.estimate) and statkit's
difference-in-differences (explainer.stats.kit.quasi); the narration states the cached numbers. Each solver asserts
that its formula agrees with a brute-force check:
- Kinked budget. Demand by segments against a search over 400,001 points of the kinked budget; the Slutsky total against a numerical derivative; the compensating variation by root-finding against its closed form.
- Externality. The Pareto condition by root-finding against a numerical maximization of the sum of utilities.
- Auction. Revenue by formula against 400,000 simulated first-price and second-price auctions; the bid function against a grid of deviations for a bidder with value 0.8.
- Screening. The two-type menu against a numerical maximization with the binding constraints substituted; the slack constraints checked; the continuum menu checked for incentive compatibility on a grid.
- Ramsey. The saddle path by shooting (bisection on c0), Euler steps of 0.02 years.
- McCall. Value functions on 501 wage points; the expired state's reservation wage against its closed form.
- Discretion. The undetermined coefficients checked in the Phillips curve; commitment solved for its stable root.
- Aiyagari. Part 52's economy (beta 0.96, gamma 3, a seven-state Rouwenhorst chain with persistence 0.9 and shocks of s.d. 0.2, alpha 0.36, delta 0.08), with its capital supply at twelve interest rates.
- Supply and demand. a = 10, b = 1, c = 2, d = 1, e = -2, shocks of s.d. 1, storms on 30% of days; the probability limit of least squares in closed form.
- GMM. Part 54's
euler_data(two assets, beta 0.97, gamma 3), 2,000 periods; two-step GMM with sandwich standard errors; the second-step objective on a 61 x 61 grid. - Staggered timing. Unit effects 0, 0.5, 1 and a period trend of 0.3; the effect is e + 1 in event time e.
- Long run. A = [[0.2, 1/3], [-0.1, 0.8]], B = [[0.8, 0.5], [-0.1, -0.3]], chosen so that demand's long-run effect on output's level is zero; 200 samples of 400 quarters, VAR(1) by least squares.
Chapter notes
| # | Chapter | What it does |
|---|---|---|
| 0 | The night before | The envelope; where the core came from; how to read a problem; the question; objectives |
| 1 | Micro: a kinked budget | Demand by segments; Slutsky with virtual income; the compensating variation (Play it) |
| 2 | Micro: an externality in an exchange economy | Equilibrium, the Pareto set, Pigou's tax; the box; is and ought |
| 3 | Micro: a first-price auction with a reserve | The bid function and its boundary; revenue by formula and simulation |
| 4 | Micro: screening | Two types; a continuum by virtual types; quality and rents |
| 5 | Macro: the Ramsey model with a tax on capital | The steady state; the phase diagram and the saddle path |
| 6 | Macro: a McCall worker whose benefits expire | Bellman equations by backward induction; the exit rate; the evidence |
| — | Intermission | The median duration of unemployment, 1967-2026, as a line and a tune; the story so far |
| 7 | Macro: the three-equation model under discretion | The inflation bias; a cost shock; commitment |
| 8 | Macro: why r lies below the rate of time preference | The supermartingale argument; Aiyagari's diagram |
| 9 | Econometrics: identifying a demand curve | Order and rank; least squares' bias; the Wald estimator |
| 10 | Econometrics: GMM for an Euler equation | Moments, two steps, the J test; the objective's ridge |
| 11 | Econometrics: staggered difference-in-differences | TWFE against the truth; Goodman-Bacon; weights; imputation |
| 12 | Econometrics: a VAR with a long-run restriction | Counting; C(1)B and Cholesky; precision in samples |
| 13 | How the exam is marked, and what to do when stuck | A mark scheme; two answers; five habits; a grader's eye |
| 14 | Frontier: where each problem is still open | Twelve open questions, one for each problem |
| — | Outro | The answer; twelve lines; problems; reading; next, Part 57, Reading the Economy in Real Time |
Notes
python -m videos.economics.labs 56: all twelve questions, each solved by its formula and checked by brute force, printed as a marked answer sheet.- The interactive (course site): the exam. The reader picks one of the twelve questions, reveals the hints one step at a time, enters an answer, and sees it marked against the computed solution.
Companion material in this repository
The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
- Hook: the envelope; how to read a problem; objectives.
- Micro 1: a consumer with a kinked budget: demand, Slutsky, welfare (Parts 5–6).
- Micro 2: an exchange economy with an externality: equilibrium, the Pareto set, a Pigouvian fix (9, 15).
- Micro 3: a first-price auction with a reserve: the bid function and revenue (16).
- Micro 4: a screening contract for two types, then a continuum (10, 13, 14).
- Macro 1: the Ramsey model with a tax on capital: steady state, the saddle path, the transition (20).
- Macro 2: a McCall worker with benefits that expire (24).
- Macro 3: the three-equation model under discretion: the inflation bias and the response to a cost shock (30).
- Macro 4: an Aiyagari household: why the interest rate lies below the rate of time preference (52).
- Metrics 1: a supply-and-demand system: order and rank conditions, the instrument, the Wald estimator (4).
- Metrics 2: GMM for an Euler equation: moments, weights, the overidentification test (54).
- Metrics 3: a difference-in-differences with staggered timing: what two-way fixed effects estimates (4; Statistics, Built 37).
- Metrics 4: a VAR with a long-run restriction (55).
- How the exam is marked; what to do when stuck. 14. Where each problem's idea is still open.
Agora: every answer's numbers come from the modules, with the exam's parameter values. Play it: each problem is shown with a pause before its solution; on the site, the twelve problems with stepped hints. Reading: MWG; Kreps; Ljungqvist & Sargent; Romer; Galí; Hayashi; past core examinations published by departments (cited where a problem is adapted).
Build the film
python -m videos.economics.econ56.compute # the part's numbers, into .cache/econ56
python tools/build.py econ56 # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py econ56 Hook # one chapter, silent, with a contact sheet
Scenes: videos/economics/econ56. Setup: see the course page. Source of these notes: the README and the scenes' narration.
Build it
python -m videos.economics.econ56.compute # every number (under a minute), into .cache/econ56/
python tools/qa_scene.py econ56 Micro1 # one chapter, silent, at 480p, with a contact sheet
EXPLAINER_TTS=silent python tools/build.py econ56 -q l # the whole part, silent preview
python tools/build.py econ56 # 1080p30 with narration and the series' computed score
python -m videos.economics.labs 56 # the lab
The data are FRED's median duration of unemployment and the NBER's recession months (the intermission), registered in
SOURCES.md; every other number is computed.