{
"cells": [
{
"cell_type": "markdown",
"id": "aa9e513b",
"metadata": {},
"source": [
"# Monetarist Theory of Price Levels with Adaptive Expectations"
]
},
{
"cell_type": "markdown",
"id": "0c50ed97",
"metadata": {},
"source": [
"## Overview\n",
"\n",
"This lecture is a sequel or prequel to [A Monetarist Theory of Price Levels](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 price levels.\n",
"\n",
"Like the model in [A Monetarist Theory of Price Levels](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 [A Monetarist Theory of Price Levels](https://intro.quantecon.org/cagan_ree.html), our model in the present lecture is an “adaptive expectations” version of a model that [[Cagan, 1956](https://intro.quantecon.org/zreferences.html#id107)] 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 [Present Values](https://intro.quantecon.org/pv.html) and [Consumption Smoothing](https://intro.quantecon.org/cons_smooth.html), 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": "806f34ea",
"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(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{14.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 [(14.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{14.2}\n",
"$$\n",
"\n",
"Taking the difference between equation [(14.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{14.3}\n",
"$$\n",
"\n",
"We assume that the expected rate of inflation $ \\pi_t^* $ is governed\n",
"by the following adaptive expectations scheme proposed by [[Friedman, 1956](https://intro.quantecon.org/zreferences.html#id178)] and [[Cagan, 1956](https://intro.quantecon.org/zreferences.html#id107)]:\n",
"\n",
"\n",
"\n",
"$$\n",
"\\pi_{t+1}^* = \\lambda \\pi_t^* + (1 -\\lambda) \\pi_t \\tag{14.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 exogenous 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": "b15e5a03",
"metadata": {},
"source": [
"## Representing key equations with linear algebra\n",
"\n",
"We begin by writing the equation [(14.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{14.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 [(14.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{14.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": "58af0f92",
"metadata": {},
"source": [
"## Harvesting insights 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 [(14.5)](#equation-eq-eq1)and [(14.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{14.7}\n",
"$$\n",
"\n",
"Having solved equation [(14.7)](#equation-eq-eq4) for $ \\pi^* $, we can use equation [(14.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 [(14.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{14.8}\n",
"$$\n",
"\n",
"Multiplying both sides of equation [(14.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{14.9}\n",
"$$\n",
"\n",
"Equation [(14.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 [(14.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": "61d3ae41",
"metadata": {},
"source": [
"## Forecast errors and model computation\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{14.10}\n",
"$$\n",
"\n",
"This outcome is typical in models in which adaptive expectations hypothesis like equation [(14.4)](#equation-eq-adaptexpn) appear as a\n",
"component.\n",
"\n",
"In [A Monetarist Theory of Price Levels](https://intro.quantecon.org/cagan_ree.html), we studied a version of the model that replaces hypothesis [(14.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": "f18282cf",
"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": "b336fe45",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"Cagan_Adaptive = namedtuple(\"Cagan_Adaptive\", \n",
" [\"α\", \"m0\", \"Eπ0\", \"T\", \"λ\"])\n",
"\n",
"def create_cagan_adaptive_model(α = 5, m0 = 1, Eπ0 = 0.5, T=80, λ = 0.9):\n",
" return Cagan_Adaptive(α, m0, Eπ0, T, λ)\n",
"\n",
"md = create_cagan_adaptive_model()"
]
},
{
"cell_type": "markdown",
"id": "ef3bb853",
"metadata": {},
"source": [
"We solve the model and plot variables of interests using the following functions."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "978d8dd1",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"def solve_cagan_adaptive(model, μ_seq):\n",
" \" Solve the Cagan model in finite time. \"\n",
" α, m0, Eπ0, T, λ = model\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.solve(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) # D is the coefficient matrix in Equation (14.8)\n",
" m0_seq = np.append(m0, np.zeros(T))\n",
"\n",
" # m_seq is of length T+2\n",
" m_seq = np.linalg.solve(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": "d95a4f66",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"def solve_and_plot(model, μ_seq):\n",
" \n",
" π_seq, Eπ_seq, m_seq, p_seq = solve_cagan_adaptive(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",
" subplot_title = [r'Money supply growth', r'Inflation', r'Real balances', r'Money supply', r'Price level']\n",
"\n",
" for i in range(5):\n",
" ax[i].set_xlabel(r'$t$')\n",
" ax[i].set_ylabel(y_labs[i])\n",
" ax[i].set_title(subplot_title[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": "cf6d28f2",
"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{14.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 [(14.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 [(14.11)](#equation-eq-suffcond)."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "44f0d5bf",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"print(np.abs((md.λ - md.α*(1-md.λ))/(1 - md.α*(1-md.λ))))"
]
},
{
"cell_type": "markdown",
"id": "c0e2a0c1",
"metadata": {},
"source": [
"## Experiments\n",
"\n",
"Now we’ll turn to some experiments."
]
},
{
"cell_type": "markdown",
"id": "a5aa5d4d",
"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} = \\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 [A Monetarist Theory of Price Levels](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": "fd943f04",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"# Parameters for the experiment 1\n",
"T1 = 60\n",
"μ0 = 0.5\n",
"μ_star = 0\n",
"\n",
"μ_seq_1 = np.append(μ0*np.ones(T1), μ_star*np.ones(md.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": "f1a8546c",
"metadata": {},
"source": [
"We invite the reader to compare outcomes with those under rational expectations studied in [A Monetarist Theory of Price Levels](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": "f3e1f312",
"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": "b3d07557",
"metadata": {
"hide-output": false
},
"outputs": [],
"source": [
"# parameters\n",
"ϕ = 0.9\n",
"μ_seq_2 = np.array([ϕ**t * μ0 + (1-ϕ**t)*μ_star for t in range(md.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": 1712983675.6674275,
"filename": "cagan_adaptive.md",
"kernelspec": {
"display_name": "Python",
"language": "python3",
"name": "python3"
},
"title": "Monetarist Theory of Price Levels with Adaptive Expectations"
},
"nbformat": 4,
"nbformat_minor": 5
}