{
"cells": [
{
"cell_type": "markdown",
"id": "bdd88f38",
"metadata": {},
"source": [
"# A Monetarist Theory of the Price Level"
]
},
{
"cell_type": "markdown",
"id": "42219d21",
"metadata": {},
"source": [
"## Introduction\n",
"\n",
"We’ll use linear algebra first to explain and then do some experiments with a “monetarist theory of the price level”.\n",
"\n",
"Sometimes this theory is also called a “fiscal theory of the price level”.\n",
"\n",
"Such a of the price level was described by Thomas Sargent and Neil Wallace in chapter 5 of\n",
"[[Sar13](https://intro.quantecon.org/zreferences.html#id5)], which reprints a 1981 article title “Unpleasant Monetarist Arithmetic”.\n",
"\n",
"Sometimes people call it a “monetary” or “monetarist” theory of the price level because fiscal effects on the price level occur\n",
"through the effects of government fiscal policy decisions on the path of the money supply.\n",
"\n",
"- a goverment’s fiscal policies determine whether it **expenditures** exceed its **tax collections** \n",
"- if its expenditures exceeds it tax collections, it can cover the difference by **printing money** \n",
"- that leads to effects on the price level as price level path adjusts to equate the supply of money to the demand for money \n",
"\n",
"\n",
"The theory has been extended, criticized, and applied by John Cochrane in [[Coc23](https://intro.quantecon.org/zreferences.html#id6)].\n",
"\n",
"In another lecture [price level histories](https://intro.quantecon.org/inflation_history.html), we described some European hyperinflations that occurred in the wake of World War I.\n",
"\n",
"Elemental forces at work in the fiscal theory of the price level help to understand those episodes.\n",
"\n",
"According to this theory, when the government persistently spends more than it collects in taxes and prints money to finance the shortfall (the “shortfall” is called the “government deficit”), it puts upward pressure on the price level and generates\n",
"persistent inflation.\n",
"\n",
"The “monetarist or fiscal theory of the price level” asserts that\n",
"\n",
"- to **start** a persistent inflation the government simply persistently runs a money-financed government deficit \n",
"- to **stop** a persistent inflation the government simply stops persistently running a money-financed government deficit \n",
"\n",
"\n",
"Our model is a “rational expectations” (or “perfect foresight”) version of a model that Philip Cagan [[Cag56](https://intro.quantecon.org/zreferences.html#id104)] used to study the monetary dynamics of hyperinflations.\n",
"\n",
"While Cagan didn’t use that “rational expectations” version of the model, Thomas Sargent [[Sar82](https://intro.quantecon.org/zreferences.html#id7)] did when he studied the Ends of Four Big Inflations in Europe after World War I.\n",
"\n",
"- this lecture [fiscal theory of the price level with adaptive expectations](https://intro.quantecon.org/cagan_adaptive.html) describes a version of the model that does not impose “rational expectations” but instead uses\n",
" what Cagan and his teacher Milton Friedman called “adaptive expectations” \n",
" - a reader of both lectures will notice that the algebra is easier and more streamlined in the present rational expectations version of the model \n",
" - this can be traced to the following source: the adaptive expectations version of the model has more endogenous variables and more free parameters \n",
"\n",
"\n",
"Some of our quantitative experiments with our rational expectations version of the model are designed to illustrate how the fiscal theory explains the abrupt end of those big inflations.\n",
"\n",
"In those experiments, we’ll encounter an instance of a ‘‘velocity dividend’’ that has sometimes accompanied successful inflation stabilization programs.\n",
"\n",
"To facilitate using linear matrix algebra as our main mathematical tool, we’ll use a finite horizon version of the model.\n",
"\n",
"As in the [present values](https://intro.quantecon.org/pv.html) and [consumption smoothing](https://intro.quantecon.org/cons_smooth.html) lectures, the only linear algebra that we’ll be using are matrix multiplication and matrix inversion."
]
},
{
"cell_type": "markdown",
"id": "c2614794",
"metadata": {},
"source": [
"## Structure of the model\n",
"\n",
"The model consists of\n",
"\n",
"- a function that expresses the demand for real balances of government printed money as an inverse function of the public’s expected rate of inflation \n",
"- an exogenous sequence of rates of growth of the money supply. The money supply grows because the government is printing it to finance some of its expenditures \n",
"- an equilibrium condition that equates the demand for money to the supply \n",
"- a “perfect foresight” assumption that the public’s expected rate of inflation equals the actual rate of inflation. \n",
"\n",
"\n",
"To represent the model formally, let\n",
"\n",
"- $ m_t $ be the log of the supply of nominal money balances; \n",
"- $ \\mu_t = m_{t+1} - m_t $ be the net rate of growth of nominal balances; \n",
"- $ p_t $ be the log of the price level; \n",
"- $ \\pi_t = p_{t+1} - p_t $ be the net rate of inflation between $ t $ and $ t+1 $; \n",
"- $ \\pi_t^* $ be the public’s expected rate of inflation between $ t $ and $ t+1 $; \n",
"- $ T $ the horizon – i.e., the last period for which the model will determine $ p_t $ \n",
"- $ \\pi_{T+1}^* $ the terminal rate of inflation between times $ T $ and $ T+1 $. \n",
"\n",
"\n",
"The demand for real balances $ \\exp\\left(\\frac{m_t^d}{p_t}\\right) $ is governed by the following version of the Cagan demand function\n",
"\n",
"\n",
"\n",
"$$\n",
"m_t^d - p_t = -\\alpha \\pi_t^* \\: , \\: \\alpha > 0 ; \\quad t = 0, 1, \\ldots, T . \\tag{12.1}\n",
"$$\n",
"\n",
"This equation asserts that the demand for real balances\n",
"is inversely related to the public’s expected rate of inflation.\n",
"\n",
"People somehow acquire **perfect foresight** by their having solved a forecasting\n",
"problem.\n",
"\n",
"This lets us set\n",
"\n",
"\n",
"\n",
"$$\n",
"\\pi_t^* = \\pi_t , % \\forall t \\tag{12.2}\n",
"$$\n",
"\n",
"while equating demand for money to supply lets us set $ m_t^d = m_t $ for all $ t \\geq 0 $.\n",
"\n",
"The preceding equations then imply\n",
"\n",
"\n",
"\n",
"$$\n",
"m_t - p_t = -\\alpha(p_{t+1} - p_t) \\: , \\: \\alpha > 0 \\tag{12.3}\n",
"$$\n",
"\n",
"To fill in details about what it means for private agents\n",
"to have perfect foresight, we subtract equation [(12.3)](#equation-eq-cagan) at time $ t $ from the same equation at $ t+1 $ to get\n",
"\n",
"$$\n",
"\\mu_t - \\pi_t = -\\alpha \\pi_{t+1} + \\alpha \\pi_t ,\n",
"$$\n",
"\n",
"which we rewrite as a forward-looking first-order linear difference\n",
"equation in $ \\pi_s $ with $ \\mu_s $ as a “forcing variable”:\n",
"\n",
"$$\n",
"\\pi_t = \\frac{\\alpha}{1+\\alpha} \\pi_{t+1} + \\frac{1}{1+\\alpha} \\mu_t , \\quad t= 0, 1, \\ldots , T\n",
"$$\n",
"\n",
"where $ 0< \\frac{\\alpha}{1+\\alpha} <1 $.\n",
"\n",
"Setting $ \\delta =\\frac{\\alpha}{1+\\alpha} $ let’s us represent the preceding equation as\n",
"\n",
"$$\n",
"\\pi_t = \\delta \\pi_{t+1} + (1-\\delta) \\mu_t , \\quad t =0, 1, \\ldots, T\n",
"$$\n",
"\n",
"Write this system of $ T+1 $ equations as the single matrix equation\n",
"\n",
"\n",
"\n",
"$$\n",
"\\begin{bmatrix} 1 & -\\delta & 0 & 0 & \\cdots & 0 & 0 \\cr\n",
" 0 & 1 & -\\delta & 0 & \\cdots & 0 & 0 \\cr\n",
" 0 & 0 & 1 & -\\delta & \\cdots & 0 & 0 \\cr\n",
" \\vdots & \\vdots & \\vdots & \\vdots & \\vdots & 0 & 0 \\cr\n",
" 0 & 0 & 0 & 0 & \\cdots & 1 & -\\delta \\cr\n",
" 0 & 0 & 0 & 0 & \\cdots & 0 & 1 \\end{bmatrix}\n",
"\\begin{bmatrix} \\pi_0 \\cr \\pi_1 \\cr \\pi_2 \\cr \\vdots \\cr \\pi_{T-1} \\cr \\pi_T \n",
"\\end{bmatrix} \n",
"= (1 - \\delta) \\begin{bmatrix} \n",
"\\mu_0 \\cr \\mu_1 \\cr \\mu_2 \\cr \\vdots \\cr \\mu_{T-1} \\cr \\mu_T\n",
"\\end{bmatrix}\n",
"+ \\begin{bmatrix} \n",
"0 \\cr 0 \\cr 0 \\cr \\vdots \\cr 0 \\cr \\delta \\pi_{T+1}^*\n",
"\\end{bmatrix} \\tag{12.4}\n",
"$$\n",
"\n",
"By multiplying both sides of equation [(12.4)](#equation-eq-pieq) by the inverse of the matrix on the left side, we can calculate\n",
"\n",
"$$\n",
"\\pi \\equiv \\begin{bmatrix} \\pi_0 \\cr \\pi_1 \\cr \\pi_2 \\cr \\vdots \\cr \\pi_{T-1} \\cr \\pi_T \n",
"\\end{bmatrix}\n",
"$$\n",
"\n",
"It turns out that\n",
"\n",
"\n",
"\n",
"$$\n",
"\\pi_t = (1-\\delta) \\sum_{s=t}^T \\delta^{s-t} \\mu_s + \\delta^{T+1-t} \\pi_{T+1}^* \\tag{12.5}\n",
"$$\n",
"\n",
"We can represent the equations\n",
"\n",
"$$\n",
"m_{t+1} = m_t + \\mu_t , \\quad t = 0, 1, \\ldots, T\n",
"$$\n",
"\n",
"as the matrix equation\n",
"\n",
"\n",
"\n",
"$$\n",
"\\begin{bmatrix}\n",
"1 & 0 & 0 & \\cdots & 0 & 0 \\cr\n",
"-1 & 1 & 0 & \\cdots & 0 & 0 \\cr\n",
"0 & -1 & 1 & \\cdots & 0 & 0 \\cr\n",
"\\vdots & \\vdots & \\vdots & \\vdots & 0 & 0 \\cr\n",
"0 & 0 & 0 & \\cdots & 1 & 0 \\cr\n",
"0 & 0 & 0 & \\cdots & -1 & 1 \n",
"\\end{bmatrix}\n",
"\\begin{bmatrix} \n",
"m_1 \\cr m_2 \\cr m_3 \\cr \\vdots \\cr m_T \\cr m_{T+1}\n",
"\\end{bmatrix}\n",
"= \\begin{bmatrix} \n",
"\\mu_0 \\cr \\mu_1 \\cr \\mu_2 \\cr \\vdots \\cr \\mu_{T-1} \\cr \\mu_T\n",
"\\end{bmatrix}\n",
"+ \\begin{bmatrix} \n",
"m_0 \\cr 0 \\cr 0 \\cr \\vdots \\cr 0 \\cr 0\n",
"\\end{bmatrix} \\tag{12.6}\n",
"$$\n",
"\n",
"Multiplying both sides of equation [(12.6)](#equation-eq-eq101) with the inverse of the matrix on the left will give\n",
"\n",
"\n",
"\n",
"$$\n",
"m_t = m_0 + \\sum_{s=0}^{t-1} \\mu_s, \\quad t =1, \\ldots, T+1 \\tag{12.7}\n",
"$$\n",
"\n",
"Equation [(12.7)](#equation-eq-mcum) shows that the log of the money supply at $ t $ equals the log of the initial money supply $ m_0 $\n",
"plus accumulation of rates of money growth between times $ 0 $ and $ T $."
]
},
{
"cell_type": "markdown",
"id": "6f87e8ad",
"metadata": {},
"source": [
"## Continuation values\n",
"\n",
"To determine the continuation inflation rate $ \\pi_{T+1}^* $ we shall proceed by applying the following infinite-horizon\n",
"version of equation [(12.5)](#equation-eq-fisctheory1) at time $ t = T+1 $:\n",
"\n",
"\n",
"\n",
"$$\n",
"\\pi_t = (1-\\delta) \\sum_{s=t}^\\infty \\delta^{s-t} \\mu_s , \\tag{12.8}\n",
"$$\n",
"\n",
"and by also assuming the following continuation path for $ \\mu_t $ beyond $ T $:\n",
"\n",
"$$\n",
"\\mu_{t+1} = \\gamma^* \\mu_t, \\quad t \\geq T .\n",
"$$\n",
"\n",
"Plugging the preceding equation into equation [(12.8)](#equation-eq-fisctheory2) at $ t = T+1 $ and rearranging we can deduce that\n",
"\n",
"\n",
"\n",
"$$\n",
"\\pi_{T+1}^* = \\frac{1 - \\delta}{1 - \\delta \\gamma^*} \\gamma^* \\mu_T \\tag{12.9}\n",
"$$\n",
"\n",
"where we require that $ \\vert \\gamma^* \\delta \\vert < 1 $.\n",
"\n",
"Let’s implement and solve this model.\n",
"\n",
"As usual, we’ll start by importing some Python modules."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ffe9f61d",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"import numpy as np\n",
"from collections import namedtuple\n",
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "markdown",
"id": "46fb770c",
"metadata": {},
"source": [
"First, we store parameters in a `namedtuple`:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "6577d806",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"# Create the rational expectation version of Cagan model in finite time\n",
"CaganREE = namedtuple(\"CaganREE\", \n",
" [\"m0\", \"T\", \"μ_seq\", \"α\", \"δ\", \"π_end\"])\n",
"\n",
"def create_cagan_model(m0, α, T, μ_seq):\n",
" δ = α/(1 + α)\n",
" π_end = μ_seq[-1] # compute terminal expected inflation\n",
" return CaganREE(m0, T, μ_seq, α, δ, π_end)"
]
},
{
"cell_type": "markdown",
"id": "70e8a52a",
"metadata": {},
"source": [
"Here we use the following parameter values:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "50931c6e",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"# parameters\n",
"T = 80\n",
"T1 = 60\n",
"α = 5\n",
"m0 = 1\n",
"\n",
"μ0 = 0.5\n",
"μ_star = 0"
]
},
{
"cell_type": "markdown",
"id": "a9afd60c",
"metadata": {},
"source": [
"Now we can solve the model to compute $ \\pi_t $, $ m_t $ and $ p_t $ for $ t =1, \\ldots, T+1 $ using the matrix equation above"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8f85f27e",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"def solve(model):\n",
" model_params = model.m0, model.T, model.π_end, model.μ_seq, model.α, model.δ\n",
" m0, T, π_end, μ_seq, α, δ = model_params\n",
" A1 = np.eye(T+1, T+1) - δ * np.eye(T+1, T+1, k=1)\n",
" A2 = np.eye(T+1, T+1) - np.eye(T+1, T+1, k=-1)\n",
"\n",
" b1 = (1-δ) * μ_seq + np.concatenate([np.zeros(T), [δ * π_end]])\n",
" b2 = μ_seq + np.concatenate([[m0], np.zeros(T)])\n",
"\n",
" π_seq = np.linalg.inv(A1) @ b1\n",
" m_seq = np.linalg.inv(A2) @ b2\n",
"\n",
" π_seq = np.append(π_seq, π_end)\n",
" m_seq = np.append(m0, m_seq)\n",
"\n",
" p_seq = m_seq + α * π_seq\n",
"\n",
" return π_seq, m_seq, p_seq"
]
},
{
"cell_type": "markdown",
"id": "f8b7a7d5",
"metadata": {},
"source": [
"### Some quantitative experiments\n",
"\n",
"In the experiments below, we’ll use formula [(12.9)](#equation-eq-piterm) as our terminal condition for expected inflation.\n",
"\n",
"In devising these experiments, we’ll make assumptions about $ \\{\\mu_t\\} $ that are consistent with formula\n",
"[(12.9)](#equation-eq-piterm).\n",
"\n",
"We describe several such experiments.\n",
"\n",
"In all of them,\n",
"\n",
"$$\n",
"\\mu_t = \\mu^* , \\quad t \\geq T_1\n",
"$$\n",
"\n",
"so that, in terms of our notation and formula for $ \\theta_{T+1}^* $ above, $ \\tilde \\gamma = 1 $."
]
},
{
"cell_type": "markdown",
"id": "20f1bcf1",
"metadata": {},
"source": [
"#### Experiment 1: Foreseen sudden stabilization\n",
"\n",
"In this experiment, we’ll study how, when $ \\alpha >0 $, a foreseen inflation stabilization has effects on inflation that proceed it.\n",
"\n",
"We’ll study a situation in which the rate of growth of the money supply is $ \\mu_0 $\n",
"from $ t=0 $ to $ t= T_1 $ and then permanently falls to $ \\mu^* $ at $ t=T_1 $.\n",
"\n",
"Thus, let $ T_1 \\in (0, T) $.\n",
"\n",
"So where $ \\mu_0 > \\mu^* $, we assume that\n",
"\n",
"$$\n",
"\\mu_{t+1} = \\begin{cases}\n",
" \\mu_0 , & t = 0, \\ldots, T_1 -1 \\\\\n",
" \\mu^* , & t \\geq T_1\n",
" \\end{cases}\n",
"$$\n",
"\n",
"We’ll start by executing a version of our “experiment 1” in which the government implements a **foreseen** sudden permanent reduction in the rate of money creation at time $ T_1 $.\n",
"\n",
"The following code performs the experiment and plots outcomes."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "7a4d041d",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"def solve_and_plot(m0, α, T, μ_seq):\n",
" model_params = create_cagan_model(m0=m0, α=α, T=T, μ_seq=μ_seq)\n",
" π_seq, m_seq, p_seq = solve(model_params)\n",
" T_seq = range(T + 2)\n",
" \n",
" fig, ax = plt.subplots(5, figsize=[5, 12], dpi=200)\n",
" \n",
" ax[0].plot(T_seq[:-1], μ_seq)\n",
" ax[0].set_ylabel(r'$\\mu$')\n",
"\n",
" ax[1].plot(T_seq, π_seq)\n",
" ax[1].set_ylabel(r'$\\pi$')\n",
"\n",
" ax[2].plot(T_seq, m_seq - p_seq)\n",
" ax[2].set_ylabel(r'$m - p$')\n",
"\n",
" ax[3].plot(T_seq, m_seq)\n",
" ax[3].set_ylabel(r'$m$')\n",
"\n",
" ax[4].plot(T_seq, p_seq)\n",
" ax[4].set_ylabel(r'$p$')\n",
" \n",
" for i in range(5):\n",
" ax[i].set_xlabel(r'$t$')\n",
" \n",
" plt.tight_layout()\n",
" plt.show()\n",
" \n",
" return π_seq, m_seq, p_seq\n",
"\n",
"μ_seq_1 = np.append(μ0*np.ones(T1+1), μ_star*np.ones(T-T1))\n",
"\n",
"# solve and plot\n",
"π_seq_1, m_seq_1, p_seq_1 = solve_and_plot(m0=m0, α=α, \n",
" T=T, μ_seq=μ_seq_1)"
]
},
{
"cell_type": "markdown",
"id": "e385c9a4",
"metadata": {},
"source": [
"The plot of the money growth rate $ \\mu_t $ in the top level panel portrays\n",
"a sudden reduction from $ .5 $ to $ 0 $ at time $ T_1 = 60 $.\n",
"\n",
"This brings about a gradual reduction of the inflation rate $ \\pi_t $ that precedes the\n",
"money supply growth rate reduction at time $ T_1 $.\n",
"\n",
"Notice how the inflation rate declines smoothly (i.e., continuously) to $ 0 $ at $ T_1 $ –\n",
"unlike the money growth rate, it does not suddenly “jump” downward at $ T_1 $.\n",
"\n",
"This is because the reduction in $ \\mu $ at $ T_1 $ has been foreseen from the start.\n",
"\n",
"While the log money supply portrayed in the bottom panel has a kink at $ T_1 $, the log price level does not – it is “smooth” – once again a consequence of the fact that the\n",
"reduction in $ \\mu $ has been foreseen.\n",
"\n",
"To set the stage for our next experiment, we want to study the determinants of the price level a little more."
]
},
{
"cell_type": "markdown",
"id": "5cc259d1",
"metadata": {},
"source": [
"### The log price level\n",
"\n",
"We can use equations [(12.1)](#equation-eq-caganmd) and [(12.2)](#equation-eq-ree)\n",
"to discover that the log of the price level satisfies\n",
"\n",
"\n",
"\n",
"$$\n",
"p_t = m_t + \\alpha \\pi_t \\tag{12.10}\n",
"$$\n",
"\n",
"or, by using equation [(12.5)](#equation-eq-fisctheory1),\n",
"\n",
"\n",
"\n",
"$$\n",
"p_t = m_t + \\alpha \\left[ (1-\\delta) \\sum_{s=t}^T \\delta^{s-t} \\mu_s + \\delta^{T+1-t} \\pi_{T+1}^* \\right] \\tag{12.11}\n",
"$$\n",
"\n",
"In our next experiment, we’ll study a “surprise” permanent change in the money growth that beforehand\n",
"was completely unanticipated.\n",
"\n",
"At time $ T_1 $ when the “surprise” money growth rate change occurs, to satisfy\n",
"equation [(12.10)](#equation-eq-pformula2), the log of real balances jumps\n",
"**upward* as $ \\pi_t $ jumps **downward**.\n",
"\n",
"But in order for $ m_t - p_t $ to jump, which variable jumps, $ m_{T_1} $ or $ p_{T_1} $?"
]
},
{
"cell_type": "markdown",
"id": "1fa299b3",
"metadata": {},
"source": [
"### What jumps?\n",
"\n",
"What jumps at $ T_1 $?\n",
"\n",
"Is it $ p_{T_1} $ or $ m_{T_1} $?\n",
"\n",
"If we insist that the money supply $ m_{T_1} $ is locked at its value $ m_{T_1}^1 $ inherited from the past, then formula [(12.10)](#equation-eq-pformula2) implies that the price level jumps downward at time $ T_1 $, to coincide with the downward jump in\n",
"$ \\pi_{T_1} $\n",
"\n",
"An alternative assumption about the money supply level is that as part of the “inflation stabilization”,\n",
"the government resets $ m_{T_1} $ according to\n",
"\n",
"\n",
"\n",
"$$\n",
"m_{T_1}^2 - m_{T_1}^1 = \\alpha (\\pi^1 - \\pi^2) \\tag{12.12}\n",
"$$\n",
"\n",
"By letting money jump according to equation [(12.12)](#equation-eq-eqnmoneyjump) the monetary authority prevents the price level from **falling** at the moment that the unanticipated stabilization arrives.\n",
"\n",
"In various research papers about stabilizations of high inflations, the jump in the money supply described by equation [(12.12)](#equation-eq-eqnmoneyjump) has been called\n",
"“the velocity dividend” that a government reaps from implementing a regime change that sustains a permanently lower inflation rate."
]
},
{
"cell_type": "markdown",
"id": "578e4873",
"metadata": {},
"source": [
"#### Technical details about whether $ p $ or $ m $ jumps at $ T_1 $\n",
"\n",
"We have noted that with a constant expected forward sequence $ \\mu_s = \\bar \\mu $ for $ s\\geq t $, $ \\pi_{t} =\\bar{\\mu} $.\n",
"\n",
"A consequence is that at $ T_1 $, either $ m $ or $ p $ must “jump” at $ T_1 $.\n",
"\n",
"We’ll study both cases."
]
},
{
"cell_type": "markdown",
"id": "6ad9aef5",
"metadata": {},
"source": [
"#### $ m_{T_{1}} $ does not jump.\n",
"\n",
"$$\n",
"\\begin{aligned}\n",
"m_{T_{1}}&=m_{T_{1}-1}+\\mu_{0}\\\\\\pi_{T_{1}}&=\\mu^{*}\\\\p_{T_{1}}&=m_{T_{1}}+\\alpha\\pi_{T_{1}}\n",
"\\end{aligned}\n",
"$$\n",
"\n",
"Simply glue the sequences $ t\\leq T_1 $ and $ t > T_1 $."
]
},
{
"cell_type": "markdown",
"id": "3ec1d2e0",
"metadata": {},
"source": [
"#### $ m_{T_{1}} $ jumps.\n",
"\n",
"We reset $ m_{T_{1}} $ so that $ p_{T_{1}}=\\left(m_{T_{1}-1}+\\mu_{0}\\right)+\\alpha\\mu_{0} $, with $ \\pi_{T_{1}}=\\mu^{*} $.\n",
"\n",
"Then,\n",
"\n",
"$$\n",
"m_{T_{1}}=p_{T_{1}}-\\alpha\\pi_{T_{1}}=\\left(m_{T_{1}-1}+\\mu_{0}\\right)+\\alpha\\left(\\mu_{0}-\\mu^{*}\\right)\n",
"$$\n",
"\n",
"We then compute for the remaining $ T-T_{1} $ periods with $ \\mu_{s}=\\mu^{*},\\forall s\\geq T_{1} $ and the initial condition $ m_{T_{1}} $ from above.\n",
"\n",
"We are now technically equipped to discuss our next experiment."
]
},
{
"cell_type": "markdown",
"id": "bd84907c",
"metadata": {},
"source": [
"#### Experiment 2: an unforeseen sudden stabilization\n",
"\n",
"This experiment deviates a little bit from a pure version of our “perfect foresight”\n",
"assumption by assuming that a sudden permanent reduction in $ \\mu_t $ like that\n",
"analyzed in experiment 1 is completely unanticipated.\n",
"\n",
"Such a completely unanticipated shock is popularly known as an “MIT shock”.\n",
"\n",
"The mental experiment involves switching at time $ T_1 $ from an initial “continuation path” for $ \\{\\mu_t, \\pi_t\\} $ to another path that involves a permanently lower inflation rate.\n",
"\n",
"**Initial Path:** $ \\mu_t = \\mu_0 $ for all $ t \\geq 0 $. So this path is for $ \\{\\mu_t\\}_{t=0}^\\infty $; the associated\n",
"path for $ \\pi_t $ has $ \\pi_t = \\mu_0 $.\n",
"\n",
"**Revised Continuation Path** Where $ \\mu_0 > \\mu^* $, we construct a continuation path $ \\{\\mu_s\\}_{s=T_1}^\\infty $\n",
"by setting $ \\mu_s = \\mu^* $ for all $ s \\geq T_1 $. The perfect foresight continuation path for\n",
"$ \\pi $ is $ \\pi_s = \\mu^* $\n",
"\n",
"To capture a “completely unanticipated permanent shock to the $ \\{\\mu\\} $ process at time $ T_1 $, we simply glue the $ \\mu_t, \\pi_t $\n",
"that emerges under path 2 for $ t \\geq T_1 $ to the $ \\mu_t, \\pi_t $ path that had emerged under path 1 for $ t=0, \\ldots,\n",
"T_1 -1 $.\n",
"\n",
"We can do the MIT shock calculations mostly by hand.\n",
"\n",
"Thus, for path 1, $ \\pi_t = \\mu_0 $ for all $ t \\in [0, T_1-1] $, while for path 2,\n",
"$ \\mu_s = \\mu^* $ for all $ s \\geq T_1 $.\n",
"\n",
"We now move on to experiment 2, our “MIT shock”, completely unforeseen\n",
"sudden stabilization.\n",
"\n",
"We set this up so that the $ \\{\\mu_t\\} $ sequences that describe the sudden stabilization\n",
"are identical to those for experiment 1, the foreseen sudden stabilization.\n",
"\n",
"The following code does the calculations and plots outcomes."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "fb07fda4",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"# path 1\n",
"μ_seq_2_path1 = μ0 * np.ones(T+1)\n",
"\n",
"mc1 = create_cagan_model(m0=m0, α=α, \n",
" T=T, μ_seq=μ_seq_2_path1)\n",
"π_seq_2_path1, m_seq_2_path1, p_seq_2_path1 = solve(mc1)\n",
"\n",
"# continuation path\n",
"μ_seq_2_cont = μ_star * np.ones(T-T1)\n",
"\n",
"mc2 = create_cagan_model(m0=m_seq_2_path1[T1+1], \n",
" α=α, T=T-1-T1, μ_seq=μ_seq_2_cont)\n",
"π_seq_2_cont, m_seq_2_cont1, p_seq_2_cont1 = solve(mc2)\n",
"\n",
"\n",
"# regime 1 - simply glue π_seq, μ_seq\n",
"μ_seq_2 = np.concatenate([μ_seq_2_path1[:T1+1],\n",
" μ_seq_2_cont])\n",
"π_seq_2 = np.concatenate([π_seq_2_path1[:T1+1], \n",
" π_seq_2_cont])\n",
"m_seq_2_regime1 = np.concatenate([m_seq_2_path1[:T1+1], \n",
" m_seq_2_cont1])\n",
"p_seq_2_regime1 = np.concatenate([p_seq_2_path1[:T1+1], \n",
" p_seq_2_cont1])\n",
"\n",
"# regime 2 - reset m_T1\n",
"m_T1 = (m_seq_2_path1[T1] + μ0) + α*(μ0 - μ_star)\n",
"\n",
"mc = create_cagan_model(m0=m_T1, α=α,\n",
" T=T-1-T1, μ_seq=μ_seq_2_cont)\n",
"π_seq_2_cont2, m_seq_2_cont2, p_seq_2_cont2 = solve(mc)\n",
"\n",
"m_seq_2_regime2 = np.concatenate([m_seq_2_path1[:T1+1], \n",
" m_seq_2_cont2])\n",
"p_seq_2_regime2 = np.concatenate([p_seq_2_path1[:T1+1],\n",
" p_seq_2_cont2])\n",
"\n",
"T_seq = range(T+2)\n",
"\n",
"# plot both regimes\n",
"fig, ax = plt.subplots(5, 1, figsize=[5, 12], dpi=200)\n",
" \n",
"ax[0].plot(T_seq[:-1], μ_seq_2)\n",
"ax[0].set_ylabel(r'$\\mu$')\n",
"\n",
"ax[1].plot(T_seq, π_seq_2)\n",
"ax[1].set_ylabel(r'$\\pi$')\n",
"\n",
"ax[2].plot(T_seq, m_seq_2_regime1 - p_seq_2_regime1)\n",
"ax[2].set_ylabel(r'$m - p$')\n",
"\n",
"ax[3].plot(T_seq, m_seq_2_regime1, \n",
" label='Smooth $m_{T_1}$')\n",
"ax[3].plot(T_seq, m_seq_2_regime2, \n",
" label='Jumpy $m_{T_1}$')\n",
"ax[3].set_ylabel(r'$m$')\n",
"\n",
"ax[4].plot(T_seq, p_seq_2_regime1,\n",
" label='Smooth $m_{T_1}$')\n",
"ax[4].plot(T_seq, p_seq_2_regime2, \n",
" label='Jumpy $m_{T_1}$')\n",
"ax[4].set_ylabel(r'$p$')\n",
"\n",
"for i in range(5):\n",
" ax[i].set_xlabel(r'$t$')\n",
"\n",
"for i in [3, 4]:\n",
" ax[i].legend()\n",
"\n",
"plt.tight_layout()\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"id": "1e0e3b0b",
"metadata": {},
"source": [
"We invite you to compare these graphs with corresponding ones for the foreseen stabilization analyzed in experiment 1 above.\n",
"\n",
"Note how the inflation graph in the top middle panel is now identical to the\n",
"money growth graph in the top left panel, and how now the log of real balances portrayed in the top right panel jumps upward at time $ T_1 $.\n",
"\n",
"The bottom panels plot $ m $ and $ p $ under two possible ways that $ m_{T_1} $ might adjust\n",
"as required by the upward jump in $ m - p $ at $ T_1 $.\n",
"\n",
"- the orange line lets $ m_{T_1} $ jump upward in order to make sure that the log price level $ p_{T_1} $ does not fall. \n",
"- the blue line lets $ p_{T_1} $ fall while stopping the money supply from jumping. \n",
"\n",
"\n",
"Here is a way to interpret what the government is doing when the orange line policy is in place.\n",
"\n",
"The government prints money to finance expenditure with the “velocity dividend” that it reaps from the increased demand for real balances brought about by the permanent decrease in the rate of growth of the money supply.\n",
"\n",
"The next code generates a multi-panel graph that includes outcomes of both experiments 1 and 2.\n",
"\n",
"That allows us to assess how important it is to understand whether the sudden permanent drop in $ \\mu_t $ at $ t=T_1 $ is fully unanticipated, as in experiment 1, or completely\n",
"unanticipated, as in experiment 2."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f2d3fcc0",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"# compare foreseen vs unforeseen shock\n",
"fig, ax = plt.subplots(5, figsize=[5, 12], dpi=200)\n",
"\n",
"ax[0].plot(T_seq[:-1], μ_seq_2)\n",
"ax[0].set_ylabel(r'$\\mu$')\n",
"\n",
"ax[1].plot(T_seq, π_seq_2, \n",
" label='Unforeseen')\n",
"ax[1].plot(T_seq, π_seq_1, \n",
" label='Foreseen', color='tab:green')\n",
"ax[1].set_ylabel(r'$\\pi$')\n",
"\n",
"ax[2].plot(T_seq,\n",
" m_seq_2_regime1 - p_seq_2_regime1, \n",
" label='Unforeseen')\n",
"ax[2].plot(T_seq, m_seq_1 - p_seq_1, \n",
" label='Foreseen', color='tab:green')\n",
"ax[2].set_ylabel(r'$m - p$')\n",
"\n",
"ax[3].plot(T_seq, m_seq_2_regime1, \n",
" label=r'Unforeseen (Smooth $m_{T_1}$)')\n",
"ax[3].plot(T_seq, m_seq_2_regime2, \n",
" label=r'Unforeseen ($m_{T_1}$ jumps)')\n",
"ax[3].plot(T_seq, m_seq_1, \n",
" label='Foreseen shock')\n",
"ax[3].set_ylabel(r'$m$')\n",
"\n",
"ax[4].plot(T_seq, p_seq_2_regime1, \n",
" label=r'Unforeseen (Smooth $m_{T_1}$)')\n",
"ax[4].plot(T_seq, p_seq_2_regime2, \n",
" label=r'Unforeseen ($m_{T_1}$ jumps)')\n",
"ax[4].plot(T_seq, p_seq_1, \n",
" label='Foreseen')\n",
"ax[4].set_ylabel(r'$p$')\n",
"\n",
"for i in range(5):\n",
" ax[i].set_xlabel(r'$t$')\n",
"\n",
"for i in range(1, 5):\n",
" ax[i].legend()\n",
"\n",
"plt.tight_layout()\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"id": "eac70390",
"metadata": {},
"source": [
"It is instructive to compare the preceding graphs with graphs of log price levels and inflation rates for data from four big inflations described in\n",
"[this lecture](https://intro.quantecon.org/inflation_history.html).\n",
"\n",
"In particular, in the above graphs, notice how a gradual fall in inflation precedes the “sudden stop” when it has been anticipated long beforehand, but how\n",
"inflation instead falls abruptly when the permanent drop in money supply growth is unanticipated.\n",
"\n",
"It seems to the author team at quantecon that the drops in inflation near the ends of the four hyperinflations described in [this lecture](https://intro.quantecon.org/inflation_history.html)\n",
"more closely resemble outcomes from the experiment 2 “unforeseen stabilization”.\n",
"\n",
"(It is fair to say that the preceding informal pattern recognition exercise should be supplemented with a more formal structural statistical analysis.)"
]
},
{
"cell_type": "markdown",
"id": "66cc4909",
"metadata": {},
"source": [
"#### Experiment 3\n",
"\n",
"**Foreseen gradual stabilization**\n",
"\n",
"Instead of a foreseen sudden stabilization of the type studied with experiment 1,\n",
"it is also interesting to study the consequences of a foreseen gradual stabilization.\n",
"\n",
"Thus, suppose that $ \\phi \\in (0,1) $, that $ \\mu_0 > \\mu^* $, and that for $ t = 0, \\ldots, T-1 $\n",
"\n",
"$$\n",
"\\mu_t = \\phi^t \\mu_0 + (1 - \\phi^t) \\mu^* .\n",
"$$\n",
"\n",
"Next we perform an experiment in which there is a perfectly foreseen **gradual** decrease in the rate of growth of the money supply.\n",
"\n",
"The following code does the calculations and plots the results."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "746db367",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"# parameters\n",
"ϕ = 0.9\n",
"μ_seq = np.array([ϕ**t * μ0 + (1-ϕ**t)*μ_star for t in range(T)])\n",
"μ_seq = np.append(μ_seq, μ_star)\n",
"\n",
"\n",
"# solve and plot\n",
"π_seq, m_seq, p_seq = solve_and_plot(m0=m0, α=α, T=T, μ_seq=μ_seq)"
]
},
{
"cell_type": "markdown",
"id": "cf3b367a",
"metadata": {},
"source": [
"## Sequel\n",
"\n",
"This lecture [monetarist theory of the price level with adaptive expectations](https://intro.quantecon.org/cagan_adaptive.html) describes an “adaptive expectations” version of Cagan’s model.\n",
"\n",
"The dynamics become more complicated and so does the algebra.\n",
"\n",
"Nowadays, the “rational expectations” version of the model is more popular among central bankers and economists advising them."
]
}
],
"metadata": {
"date": 1696997364.7938867,
"filename": "cagan_ree.md",
"kernelspec": {
"display_name": "Python",
"language": "python3",
"name": "python3"
},
"title": "A Monetarist Theory of the Price Level"
},
"nbformat": 4,
"nbformat_minor": 5
}