ecomodel a New Keynesian economy, one quarter at a time

This is the benchmark New Keynesian DSGE model of Liu, Minford & Ou (2025), Can Modern Monetary Theory fit the post-Crisis US facts? (section 2.1), running live on the server.

Households choose how much to consume, work and save, and enjoy holding money. Firms rent capital and labour; retailers set prices with Calvo stickiness, so inflation responds slowly to costs. A central bank sets the nominal interest rate with a Taylor rule, and the government adjusts spending and the tax rate on wages in response to output and public debt.

Households come in two kinds. Owners hold all the capital, firms and public debt, and plan their spending around the interest rate. Workers own nothing and spend their after-tax income each quarter (they live hand to mouth). You choose how many households are workers, from none (the paper's single household) to most of them, and how wages, capital and transfers are taxed and paid.

Prices are sticky, so in the short run firms produce whatever is demanded: interest rates and fiscal policy move demand, demand sets output and hours, and the wages needed to get those hours feed back into inflation and the policy rate. Expectations of next quarter are inputs, not perfect foresight: here, they stay at their steady-state values. The diagram shows how the pieces connect.

The economy starts at its steady state and stays there until you disturb it. Each shock is an innovation to one of seven AR(1) processes: it hits the economy in the next quarter, then decays at its estimated persistence, so the economy returns to where it started. Charts show every model variable either as its change from the start (percent for quantities and prices, percentage points for rates) or as a value in everyday units: money per person, hours per week, percent per year.

A policy change during a run is permanent instead: the economy keeps its current state and moves towards a new steady state (a dashed line on the charts). Capital and debt adjust over years, and running totals show what the shocks and changes have added up to.

How the economy fits together

Society and policy

Pick a preset or set each lever; the summary shows the economy at rest under those settings. Hover a slider for what it does.

Shocks you can apply

ShockWhat it doesTypical size

Positive values push the process up, negative ones down. Several shocks can be applied at once, and more at any time.

How a run works

  • Steps: one step is one quarter. A run lasts at most 100 quarters (25 years).
  • Pace: one step per second by default; set it anywhere from 100 ms to 1 minute while running.
  • Pause to read the charts or add shocks; Stop to end the run (the charts stay).

Behind the scenes

The page drives the server with one JSON message per line; each browser connection gets its own simulation process.

{"cmd":"step","n":1}advance n quarters
{"cmd":"shock","shock":"z","value":0.05}apply a shock
{"cmd":"state"}current state
{"cmd":"reset"}back to steady state
{"cmd":"params"}model calibration
{"cmd":"configure","params":{"workerShare":0.3}}change the society, restart at rest
{"cmd":"policy","params":{"tauBarK":0.3}}change policy from next quarter, keep the run
{"cmd":"quit"}end the session