{
"cells": [
{
"cell_type": "markdown",
"id": "e3d99dbf",
"metadata": {},
"source": [
"# A Monetarist Theory of Price Level with Adaptive Expectations"
]
},
{
"cell_type": "markdown",
"id": "6fabeda4",
"metadata": {},
"source": [
"## Introduction\n",
"\n",
"This lecture is a sequel or prequel to this lecture [monetarist theory of the price level](https://intro.quantecon.org/cagan_ree.html).\n",
"\n",
"We’ll use linear algebra to do some experiments with an alternative “monetarist” or “fiscal” theory of the price level”.\n",
"\n",
"Like the model in this lecture [monetarist theory of the price level](https://intro.quantecon.org/cagan_ree.html), the model asserts that when a government persistently spends more than it collects in taxes and prints money to finance the shortfall, it puts upward pressure on the price level and generates persistent inflation.\n",
"\n",
"Instead of the “perfect foresight” or “rational expectations” version of the model in this lecture [monetarist theory of the price level](https://intro.quantecon.org/cagan_ree.html), our model in the present lecture is an “adaptive expectations” 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",
"It combines these components:\n",
"\n",
"- a demand function for real money balances that asserts that the logarithm of the quantity of real balances demanded depends inversely on the public’s expected rate of inflation \n",
"- an **adaptive expectations** model that describes how the public’s anticipated rate of inflation responds to past values of actual inflation \n",
"- an equilibrium condition that equates the demand for money to the supply \n",
"- an exogenous sequence of rates of growth of the money supply \n",
"\n",
"\n",
"Our model stays quite close to Cagan’s original specification.\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 operations that we’ll be using are matrix multiplication and matrix inversion.\n",
"\n",
"To facilitate using linear matrix algebra as our principal mathematical tool, we’ll use a finite horizon version of\n",
"the model."
]
},
{
"cell_type": "markdown",
"id": "d441d20a",
"metadata": {},
"source": [
"## Structure of the model\n",
"\n",
"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_0^* $ public’s initial expected rate of inflation between time $ 0 $ and time $ 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{13.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",
"Equating the logarithm $ m_t^d $ of the demand for money to the logarithm $ m_t $ of the supply of money in equation [(13.1)](#equation-eq-caganmd-ad) and solving for the logarithm $ p_t $\n",
"of the price level gives\n",
"\n",
"\n",
"\n",
"$$\n",
"p_t = m_t + \\alpha \\pi_t^* \\tag{13.2}\n",
"$$\n",
"\n",
"Taking the difference between equation [(13.2)](#equation-eq-eqfiscth1) at time $ t+1 $ and at time\n",
"$ t $ gives\n",
"\n",
"\n",
"\n",
"$$\n",
"\\pi_t = \\mu_t + \\alpha \\pi_{t+1}^* - \\alpha \\pi_t^* \\tag{13.3}\n",
"$$\n",
"\n",
"We assume that the expected rate of inflation $ \\pi_t^* $ is governed\n",
"by the Friedman-Cagan adaptive expectations scheme\n",
"\n",
"\n",
"\n",
"$$\n",
"\\pi_{t+1}^* = \\lambda \\pi_t^* + (1 -\\lambda) \\pi_t \\tag{13.4}\n",
"$$\n",
"\n",
"As exogenous inputs into the model, we take initial conditions $ m_0, \\pi_0^* $\n",
"and a money growth sequence $ \\mu = \\{\\mu_t\\}_{t=0}^T $.\n",
"\n",
"As endogenous outputs of our model we want to find sequences $ \\pi = \\{\\pi_t\\}_{t=0}^T, p = \\{p_t\\}_{t=0}^T $ as functions of the endogenous inputs.\n",
"\n",
"We’ll do some mental experiments by studying how the model outputs vary as we vary\n",
"the model inputs."
]
},
{
"cell_type": "markdown",
"id": "58d51994",
"metadata": {},
"source": [
"## Representing key equations with linear algebra\n",
"\n",
"We begin by writing the equation [(13.4)](#equation-eq-adaptexpn) adaptive expectations model for $ \\pi_t^* $ for $ t=0, \\ldots, T $ as\n",
"\n",
"$$\n",
"\\begin{bmatrix} 1 & 0 & 0 & \\cdots & 0 & 0 \\cr\n",
"-\\lambda & 1 & 0 & \\cdots & 0 & 0 \\cr\n",
"0 & - \\lambda & 1 & \\cdots & 0 & 0 \\cr\n",
"\\vdots & \\vdots & \\vdots & \\cdots & \\vdots & \\vdots \\cr\n",
"0 & 0 & 0 & \\cdots & -\\lambda & 1\n",
"\\end{bmatrix}\n",
"\\begin{bmatrix} \\pi_0^* \\cr\n",
" \\pi_1^* \\cr\n",
" \\pi_2^* \\cr\n",
" \\vdots \\cr\n",
" \\pi_{T+1}^* \n",
" \\end{bmatrix} =\n",
" (1-\\lambda) \\begin{bmatrix} \n",
" 0 & 0 & 0 & \\cdots & 0 \\cr\n",
" 1 & 0 & 0 & \\cdots & 0 \\cr\n",
" 0 & 1 & 0 & \\cdots & 0 \\cr\n",
" \\vdots &\\vdots & \\vdots & \\cdots & \\vdots \\cr\n",
" 0 & 0 & 0 & \\cdots & 1 \\end{bmatrix}\n",
" \\begin{bmatrix}\\pi_0 \\cr \\pi_1 \\cr \\pi_2 \\cr \\vdots \\cr \\pi_T\n",
" \\end{bmatrix} +\n",
" \\begin{bmatrix} \\pi_0^* \\cr 0 \\cr 0 \\cr \\vdots \\cr 0 \\end{bmatrix}\n",
"$$\n",
"\n",
"Write this equation as\n",
"\n",
"\n",
"\n",
"$$\n",
"A \\pi^* = (1-\\lambda) B \\pi + \\pi_0^* \\tag{13.5}\n",
"$$\n",
"\n",
"where the $ (T+2) \\times (T+2) $matrix $ A $, the $ (T+2)\\times (T+1) $ matrix $ B $, and the vectors $ \\pi^* , \\pi_0, \\pi_0^* $\n",
"are defined implicitly by aligning these two equations.\n",
"\n",
"Next we write the key equation [(13.3)](#equation-eq-eqpipi) in matrix notation as\n",
"\n",
"$$\n",
"\\begin{bmatrix}\n",
"\\pi_0 \\cr \\pi_1 \\cr \\pi_1 \\cr \\vdots \\cr \\pi_T \\end{bmatrix}\n",
"= \\begin{bmatrix}\n",
"\\mu_0 \\cr \\mu_1 \\cr \\mu_2 \\cr \\vdots \\cr \\mu_T \\end{bmatrix}\n",
"+ \\begin{bmatrix} - \\alpha & \\alpha & 0 & \\cdots & 0 & 0 \\cr\n",
"0 & -\\alpha & \\alpha & \\cdots & 0 & 0 \\cr\n",
"0 & 0 & -\\alpha & \\cdots & 0 & 0 \\cr\n",
"\\vdots & \\vdots & \\vdots & \\cdots & \\alpha & 0 \\cr\n",
"0 & 0 & 0 & \\cdots & -\\alpha & \\alpha \n",
"\\end{bmatrix}\n",
"\\begin{bmatrix} \\pi_0^* \\cr\n",
" \\pi_1^* \\cr\n",
" \\pi_2^* \\cr\n",
" \\vdots \\cr\n",
" \\pi_{T+1}^* \n",
" \\end{bmatrix}\n",
"$$\n",
"\n",
"Represent the previous equation system in terms of vectors and matrices as\n",
"\n",
"\n",
"\n",
"$$\n",
"\\pi = \\mu + C \\pi^* \\tag{13.6}\n",
"$$\n",
"\n",
"where the $ (T+1) \\times (T+2) $ matrix $ C $ is defined implicitly to align this equation with the preceding\n",
"equation system."
]
},
{
"cell_type": "markdown",
"id": "154f455a",
"metadata": {},
"source": [
"## Harvesting returns from our matrix formulation\n",
"\n",
"We now have all of the ingredients we need to solve for $ \\pi $ as\n",
"a function of $ \\mu, \\pi_0, \\pi_0^* $.\n",
"\n",
"Combine equations [(13.5)](#equation-eq-eq1)and [(13.6)](#equation-eq-eq2) to get\n",
"\n",
"$$\n",
"\\begin{aligned}\n",
"A \\pi^* & = (1-\\lambda) B \\pi + \\pi_0^* \\cr\n",
" & = (1-\\lambda) B \\left[ \\mu + C \\pi^* \\right] + \\pi_0^*\n",
"\\end{aligned}\n",
"$$\n",
"\n",
"which implies that\n",
"\n",
"$$\n",
"\\left[ A - (1-\\lambda) B C \\right] \\pi^* = (1-\\lambda) B \\mu+ \\pi_0^*\n",
"$$\n",
"\n",
"Multiplying both sides of the above equation by the inverse of the matrix on the left side gives\n",
"\n",
"\n",
"\n",
"$$\n",
"\\pi^* = \\left[ A - (1-\\lambda) B C \\right]^{-1} \\left[ (1-\\lambda) B \\mu+ \\pi_0^* \\right] \\tag{13.7}\n",
"$$\n",
"\n",
"Having solved equation [(13.7)](#equation-eq-eq4) for $ \\pi^* $, we can use equation [(13.6)](#equation-eq-eq2) to solve for $ \\pi $:\n",
"\n",
"$$\n",
"\\pi = \\mu + C \\pi^*\n",
"$$\n",
"\n",
"We have thus solved for two of the key endogenous time series determined by our model, namely, the sequence $ \\pi^* $\n",
"of expected inflation rates and the sequence $ \\pi $ of actual inflation rates.\n",
"\n",
"Knowing these, we can then quickly calculate the associated sequence $ p $ of the logarithm of the price level\n",
"from equation [(13.2)](#equation-eq-eqfiscth1).\n",
"\n",
"Let’s fill in the details for this step.\n",
"\n",
"Since we now know $ \\mu $ it is easy to compute $ m $.\n",
"\n",
"Thus, notice that 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{13.8}\n",
"$$\n",
"\n",
"Multiplying both sides of equation [(13.8)](#equation-eq-eq101-ad) 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{13.9}\n",
"$$\n",
"\n",
"Equation [(13.9)](#equation-eq-mcum-ad) shows that the log of the money supply at $ t $ equals the log $ m_0 $ of the initial money supply\n",
"plus accumulation of rates of money growth between times $ 0 $ and $ t $.\n",
"\n",
"We can then compute $ p_t $ for each $ t $ from equation [(13.2)](#equation-eq-eqfiscth1).\n",
"\n",
"We can write a compact formula for $ p $ as\n",
"\n",
"$$\n",
"p = m + \\alpha \\hat \\pi^*\n",
"$$\n",
"\n",
"where\n",
"\n",
"$$\n",
"\\hat \\pi^* = \\begin{bmatrix} \\pi_0^* \\cr\n",
" \\pi_1^* \\cr\n",
" \\pi_2^* \\cr\n",
" \\vdots \\cr\n",
" \\pi_{T}^* \n",
" \\end{bmatrix},\n",
"$$\n",
"\n",
"which is just $ \\pi^* $ with the last element dropped."
]
},
{
"cell_type": "markdown",
"id": "9e3df0d4",
"metadata": {},
"source": [
"## Forecast errors\n",
"\n",
"Our computations will verify that\n",
"\n",
"$$\n",
"\\hat \\pi^* \\neq \\pi,\n",
"$$\n",
"\n",
"so that in general\n",
"\n",
"\n",
"\n",
"$$\n",
"\\pi_t^* \\neq \\pi_t, \\quad t = 0, 1, \\ldots , T \\tag{13.10}\n",
"$$\n",
"\n",
"This outcome is typical in models in which adaptive expectations hypothesis like equation [(13.4)](#equation-eq-adaptexpn) appear as a\n",
"component.\n",
"\n",
"In this lecture [monetarist theory of the price level](https://intro.quantecon.org/cagan_ree.html), we studied a version of the model that replaces hypothesis [(13.4)](#equation-eq-adaptexpn) with\n",
"a “perfect foresight” or “rational expectations” hypothesis.\n",
"\n",
"But now, let’s dive in and do some computations with the adaptive expectations version of the model.\n",
"\n",
"As usual, we’ll start by importing some Python modules."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "1adcfe06",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"import numpy as np\n",
"from collections import namedtuple\n",
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "e4c2dd7e",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"Cagan_Adaptive = namedtuple(\"Cagan_Adaptive\", \n",
" [\"α\", \"m0\", \"Eπ0\", \"T\", \"λ\"])\n",
"\n",
"def create_cagan_model(α, m0, Eπ0, T, λ):\n",
" return Cagan_Adaptive(α, m0, Eπ0, T, λ)"
]
},
{
"cell_type": "markdown",
"id": "c9b78d1a",
"metadata": {},
"source": [
"Here we define the parameters."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "06931b75",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"# parameters\n",
"T = 80\n",
"T1 = 60\n",
"α = 5\n",
"λ = 0.9 # 0.7\n",
"m0 = 1\n",
"\n",
"μ0 = 0.5\n",
"μ_star = 0\n",
"\n",
"md = create_cagan_model(α=α, m0=m0, Eπ0=μ0, T=T, λ=λ)"
]
},
{
"cell_type": "markdown",
"id": "0f98140f",
"metadata": {},
"source": [
"We solve the model and plot variables of interests using the following functions."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "42da196e",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"def solve(model, μ_seq):\n",
" \" Solve the Cagan model in finite time. \"\n",
" \n",
" model_params = model.α, model.m0, model.Eπ0, model.T, model.λ\n",
" α, m0, Eπ0, T, λ = model_params\n",
" \n",
" A = np.eye(T+2, T+2) - λ*np.eye(T+2, T+2, k=-1)\n",
" B = np.eye(T+2, T+1, k=-1)\n",
" C = -α*np.eye(T+1, T+2) + α*np.eye(T+1, T+2, k=1)\n",
" Eπ0_seq = np.append(Eπ0, np.zeros(T+1))\n",
"\n",
" # Eπ_seq is of length T+2\n",
" Eπ_seq = np.linalg.inv(A - (1-λ)*B @ C) @ ((1-λ) * B @ μ_seq + Eπ0_seq)\n",
"\n",
" # π_seq is of length T+1\n",
" π_seq = μ_seq + C @ Eπ_seq\n",
"\n",
" D = np.eye(T+1, T+1) - np.eye(T+1, T+1, k=-1)\n",
" m0_seq = np.append(m0, np.zeros(T))\n",
"\n",
" # m_seq is of length T+2\n",
" m_seq = np.linalg.inv(D) @ (μ_seq + m0_seq)\n",
" m_seq = np.append(m0, m_seq)\n",
"\n",
" # p_seq is of length T+2\n",
" p_seq = m_seq + α * Eπ_seq\n",
"\n",
" return π_seq, Eπ_seq, m_seq, p_seq"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "756ac027",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"def solve_and_plot(model, μ_seq):\n",
" \n",
" π_seq, Eπ_seq, m_seq, p_seq = solve(model, μ_seq)\n",
" \n",
" T_seq = range(model.T+2)\n",
" \n",
" fig, ax = plt.subplots(5, 1, figsize=[5, 12], dpi=200)\n",
" ax[0].plot(T_seq[:-1], μ_seq)\n",
" ax[1].plot(T_seq[:-1], π_seq, label=r'$\\pi_t$')\n",
" ax[1].plot(T_seq, Eπ_seq, label=r'$\\pi^{*}_{t}$')\n",
" ax[2].plot(T_seq, m_seq - p_seq)\n",
" ax[3].plot(T_seq, m_seq)\n",
" ax[4].plot(T_seq, p_seq)\n",
" \n",
" y_labs = [r'$\\mu$', r'$\\pi$', r'$m - p$', r'$m$', r'$p$']\n",
"\n",
" for i in range(5):\n",
" ax[i].set_xlabel(r'$t$')\n",
" ax[i].set_ylabel(y_labs[i])\n",
"\n",
" ax[1].legend()\n",
" plt.tight_layout()\n",
" plt.show()\n",
" \n",
" return π_seq, Eπ_seq, m_seq, p_seq"
]
},
{
"cell_type": "markdown",
"id": "bf133bbb",
"metadata": {},
"source": [
"## Technical condition for stability\n",
"\n",
"In constructing our examples, we shall assume that $ (\\lambda, \\alpha) $ satisfy\n",
"\n",
"\n",
"\n",
"$$\n",
"\\Bigl| \\frac{\\lambda-\\alpha(1-\\lambda)}{1-\\alpha(1-\\lambda)} \\Bigr| < 1 \\tag{13.11}\n",
"$$\n",
"\n",
"The source of this condition is the following string of deductions:\n",
"\n",
"$$\n",
"\\begin{aligned}\n",
"\\pi_{t}&=\\mu_{t}+\\alpha\\pi_{t+1}^{*}-\\alpha\\pi_{t}^{*}\\\\\\pi_{t+1}^{*}&=\\lambda\\pi_{t}^{*}+(1-\\lambda)\\pi_{t}\\\\\\pi_{t}&=\\frac{\\mu_{t}}{1-\\alpha(1-\\lambda)}-\\frac{\\alpha(1-\\lambda)}{1-\\alpha(1-\\lambda)}\\pi_{t}^{*}\\\\\\implies\\pi_{t}^{*}&=\\frac{1}{\\alpha(1-\\lambda)}\\mu_{t}-\\frac{1-\\alpha(1-\\lambda)}{\\alpha(1-\\lambda)}\\pi_{t}\\\\\\pi_{t+1}&=\\frac{\\mu_{t+1}}{1-\\alpha(1-\\lambda)}-\\frac{\\alpha(1-\\lambda)}{1-\\alpha(1-\\lambda)}\\left(\\lambda\\pi_{t}^{*}+(1-\\lambda)\\pi_{t}\\right)\\\\&=\\frac{\\mu_{t+1}}{1-\\alpha(1-\\lambda)}-\\frac{\\lambda}{1-\\alpha(1-\\lambda)}\\mu_{t}+\\frac{\\lambda-\\alpha(1-\\lambda)}{1-\\alpha(1-\\lambda)}\\pi_{t}\n",
"\\end{aligned}\n",
"$$\n",
"\n",
"By assuring that the coefficient on $ \\pi_t $ is less than one in absolute value, condition [(13.11)](#equation-eq-suffcond) assures stability of the dynamics of $ \\{\\pi_t\\} $ described by the last line of our string of deductions.\n",
"\n",
"The reader is free to study outcomes in examples that violate condition [(13.11)](#equation-eq-suffcond)."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "06c79a68",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"print(np.abs((λ - α*(1-λ))/(1 - α*(1-λ))))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "5039a269",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"print(λ - α*(1-λ))"
]
},
{
"cell_type": "markdown",
"id": "fb414b01",
"metadata": {},
"source": [
"Now we’ll turn to some experiments."
]
},
{
"cell_type": "markdown",
"id": "ea2d1edc",
"metadata": {},
"source": [
"### Experiment 1\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",
"Notice that we studied exactly this experiment in a rational expectations version of the model in this lecture [monetarist theory of the price level](https://intro.quantecon.org/cagan_ree.html).\n",
"\n",
"So by comparing outcomes across the two lectures, we can learn about consequences of assuming adaptive expectations, as we do here, instead of rational expectations as we assumed in that other lecture."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "bd2d5b3a",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"μ_seq_1 = np.append(μ0*np.ones(T1), μ_star*np.ones(T+1-T1))\n",
"\n",
"# solve and plot\n",
"π_seq_1, Eπ_seq_1, m_seq_1, p_seq_1 = solve_and_plot(md, μ_seq_1)"
]
},
{
"cell_type": "markdown",
"id": "97f89355",
"metadata": {},
"source": [
"We invite the reader to compare outcomes with those under rational expectations studied in this lecture [monetarist theory of the price level](https://intro.quantecon.org/cagan_ree.html).\n",
"\n",
"Please note how the actual inflation rate $ \\pi_t $ “overshoots” its ultimate steady-state value at the time of the sudden reduction in the rate of growth of the money supply at time $ T_1 $.\n",
"\n",
"We invite you to explain to yourself the source of this overshooting and why it does not occur in the rational expectations version of the model."
]
},
{
"cell_type": "markdown",
"id": "d4d0317e",
"metadata": {},
"source": [
"### Experiment 2\n",
"\n",
"Now we’ll do a different experiment, namely, a gradual stabilization in which the rate of growth of the money supply smoothly\n",
"decline from a high value to a persistently low value.\n",
"\n",
"While price level inflation eventually falls, it falls more slowly than the driving force that ultimately causes it to fall, namely, the falling rate of growth of the money supply.\n",
"\n",
"The sluggish fall in inflation is explained by how anticipated inflation $ \\pi_t^* $ persistently exceeds actual inflation $ \\pi_t $ during the transition from a high inflation to a low inflation situation."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a811a279",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"# parameters\n",
"ϕ = 0.9\n",
"μ_seq_2 = np.array([ϕ**t * μ0 + (1-ϕ**t)*μ_star for t in range(T)])\n",
"μ_seq_2 = np.append(μ_seq_2, μ_star)\n",
"\n",
"\n",
"# solve and plot\n",
"π_seq_2, Eπ_seq_2, m_seq_2, p_seq_2 = solve_and_plot(md, μ_seq_2)"
]
}
],
"metadata": {
"date": 1696997364.7586834,
"filename": "cagan_adaptive.md",
"kernelspec": {
"display_name": "Python",
"language": "python3",
"name": "python3"
},
"title": "A Monetarist Theory of Price Level with Adaptive Expectations"
},
"nbformat": 4,
"nbformat_minor": 5
}