# 74. Asset Pricing: Finite State Models¶

“A little knowledge of geometric series goes a long way” – Robert E. Lucas, Jr.

“Asset pricing is all about covariances” – Lars Peter Hansen

In addition to what’s in Anaconda, this lecture will need the following libraries:

!pip install quantecon

Requirement already satisfied: quantecon in /__w/lecture-python.myst/lecture-python.myst/3/envs/quantecon/lib/python3.9/site-packages (0.6.0)
Requirement already satisfied: numpy>=1.17.0 in /__w/lecture-python.myst/lecture-python.myst/3/envs/quantecon/lib/python3.9/site-packages (from quantecon) (1.23.5)
Requirement already satisfied: requests in /__w/lecture-python.myst/lecture-python.myst/3/envs/quantecon/lib/python3.9/site-packages (from quantecon) (2.28.1)
Requirement already satisfied: sympy in /__w/lecture-python.myst/lecture-python.myst/3/envs/quantecon/lib/python3.9/site-packages (from quantecon) (1.10.1)
Requirement already satisfied: numba in /__w/lecture-python.myst/lecture-python.myst/3/envs/quantecon/lib/python3.9/site-packages (from quantecon) (0.56.4)
Requirement already satisfied: scipy>=1.5.0 in /__w/lecture-python.myst/lecture-python.myst/3/envs/quantecon/lib/python3.9/site-packages (from quantecon) (1.9.1)
Requirement already satisfied: llvmlite<0.40,>=0.39.0dev0 in /__w/lecture-python.myst/lecture-python.myst/3/envs/quantecon/lib/python3.9/site-packages (from numba->quantecon) (0.39.1)
Requirement already satisfied: setuptools in /__w/lecture-python.myst/lecture-python.myst/3/envs/quantecon/lib/python3.9/site-packages (from numba->quantecon) (63.4.1)

Requirement already satisfied: charset-normalizer<3,>=2 in /__w/lecture-python.myst/lecture-python.myst/3/envs/quantecon/lib/python3.9/site-packages (from requests->quantecon) (2.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /__w/lecture-python.myst/lecture-python.myst/3/envs/quantecon/lib/python3.9/site-packages (from requests->quantecon) (2022.9.14)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /__w/lecture-python.myst/lecture-python.myst/3/envs/quantecon/lib/python3.9/site-packages (from requests->quantecon) (1.26.11)
Requirement already satisfied: idna<4,>=2.5 in /__w/lecture-python.myst/lecture-python.myst/3/envs/quantecon/lib/python3.9/site-packages (from requests->quantecon) (3.3)
Requirement already satisfied: mpmath>=0.19 in /__w/lecture-python.myst/lecture-python.myst/3/envs/quantecon/lib/python3.9/site-packages (from sympy->quantecon) (1.2.1)

WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv



## 74.1. Overview¶

An asset is a claim on one or more future payoffs.

The spot price of an asset depends primarily on

• the anticipated income stream

• rates of time preference

In this lecture, we consider some standard pricing models and dividend stream specifications.

We study how prices and dividend-price ratios respond in these different scenarios.

We also look at creating and pricing derivative assets that repackage income streams.

Key tools for the lecture are

• Markov processses

• formulas for predicting future values of functions of a Markov state

• a formula for predicting the discounted sum of future values of a Markov state

%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5)  #set default figure size
import numpy as np
import quantecon as qe
from numpy.linalg import eigvals, solve


## 74.2. Pricing Models¶

Let $$\{d_t\}_{t \geq 0}$$ be a stream of dividends

• A time-$$t$$ cum-dividend asset is a claim to the stream $$d_t, d_{t+1}, \ldots$$.

• A time-$$t$$ ex-dividend asset is a claim to the stream $$d_{t+1}, d_{t+2}, \ldots$$.

Let’s look at some equations that we expect to hold for prices of assets under ex-dividend contracts (we will consider cum-dividend pricing in the exercises).

### 74.2.1. Risk-Neutral Pricing¶

Our first scenario is risk-neutral pricing.

Let $$\beta = 1/(1+\rho)$$ be an intertemporal discount factor, where $$\rho$$ is the rate at which agents discount the future.

The basic risk-neutral asset pricing equation for pricing one unit of an ex-dividend asset is

(74.1)$p_t = \beta {\mathbb E}_t [d_{t+1} + p_{t+1}]$

This is a simple “cost equals expected benefit” relationship.

Here $${\mathbb E}_t [y]$$ denotes the best forecast of $$y$$, conditioned on information available at time $$t$$.

More precisely, $${\mathbb E}_t [y]$$ is the mathematical expectation of $$y$$ conditional on information available at time $$t$$.

### 74.2.2. Pricing with Random Discount Factor¶

What happens if for some reason traders discount payouts differently depending on the state of the world?

Michael Harrison and David Kreps [HK79] and Lars Peter Hansen and Scott Richard [HR87] showed that in quite general settings the price of an ex-dividend asset obeys

(74.2)$p_t = {\mathbb E}_t \left[ m_{t+1} ( d_{t+1} + p_{t+1} ) \right]$

for some stochastic discount factor $$m_{t+1}$$.

Here the fixed discount factor $$\beta$$ in (74.1) has been replaced by the random variable $$m_{t+1}$$.

How anticipated future payoffs are evaluated now depends on statistical properties of $$m_{t+1}$$.

The stochastic discount factor can be specified to capture the idea that assets that tend to have good payoffs in bad states of the world are valued more highly than other assets whose payoffs don’t behave that way.

This is because such assets pay well when funds are more urgently wanted.

We give examples of how the stochastic discount factor has been modeled below.

### 74.2.3. Asset Pricing and Covariances¶

Recall that, from the definition of a conditional covariance $${\rm cov}_t (x_{t+1}, y_{t+1})$$, we have

(74.3)${\mathbb E}_t (x_{t+1} y_{t+1}) = {\rm cov}_t (x_{t+1}, y_{t+1}) + {\mathbb E}_t x_{t+1} {\mathbb E}_t y_{t+1}$

If we apply this definition to the asset pricing equation (74.2) we obtain

(74.4)$p_t = {\mathbb E}_t m_{t+1} {\mathbb E}_t (d_{t+1} + p_{t+1}) + {\rm cov}_t (m_{t+1}, d_{t+1}+ p_{t+1})$

It is useful to regard equation (74.4) as a generalization of equation (74.1)

• In equation (74.1), the stochastic discount factor $$m_{t+1} = \beta$$, a constant.

• In equation (74.1), the covariance term $${\rm cov}_t (m_{t+1}, d_{t+1}+ p_{t+1})$$ is zero because $$m_{t+1} = \beta$$.

• In equation (74.1), $${\mathbb E}_t m_{t+1}$$ can be interpreted as the reciprocal of the one-period risk-free gross interest rate.

• When $$m_{t+1}$$ covaries more negatively with the payout $$p_{t+1} + d_{t+1}$$, the price of the asset is lower.

Equation (74.4) asserts that the covariance of the stochastic discount factor with the one period payout $$d_{t+1} + p_{t+1}$$ is an important determinant of the price $$p_t$$.

We give examples of some models of stochastic discount factors that have been proposed later in this lecture and also in a later lecture.

### 74.2.4. The Price-Dividend Ratio¶

Aside from prices, another quantity of interest is the price-dividend ratio $$v_t := p_t / d_t$$.

Let’s write down an expression that this ratio should satisfy.

We can divide both sides of (74.2) by $$d_t$$ to get

(74.5)$v_t = {\mathbb E}_t \left[ m_{t+1} \frac{d_{t+1}}{d_t} (1 + v_{t+1}) \right]$

Below we’ll discuss the implication of this equation.

## 74.3. Prices in the Risk-Neutral Case¶

What can we say about price dynamics on the basis of the models described above?

The answer to this question depends on

1. the process we specify for dividends

2. the stochastic discount factor and how it correlates with dividends

For now we’ll study the risk-neutral case in which the stochastic discount factor is constant.

We’ll focus on how an asset price depends on a dividend process.

### 74.3.1. Example 1: Constant Dividends¶

The simplest case is risk-neutral price of a constant, non-random dividend stream $$d_t = d > 0$$.

Removing the expectation from (74.1) and iterating forward gives

\begin{split} \begin{aligned} p_t & = \beta (d + p_{t+1}) \\ & = \beta (d + \beta(d + p_{t+2})) \\ & \quad \vdots \\ & = \beta (d + \beta d + \beta^2 d + \cdots + \beta^{k-2} d + \beta^{k-1} p_{t+k}) \end{aligned} \end{split}

If $$\lim_{k \rightarrow + \infty} \beta^{k-1} p_{t+k} = 0$$, this sequence converges to

(74.6)$\bar p := \frac{\beta d}{1-\beta}$

This is the equilibrium price in the constant dividend case.

Indeed, simple algebra shows that setting $$p_t = \bar p$$ for all $$t$$ satisfies the difference equation $$p_t = \beta (d + p_{t+1})$$.

### 74.3.2. Example 2: Dividends with Deterministic Growth Paths¶

Consider a growing, non-random dividend process $$d_{t+1} = g d_t$$ where $$0 < g \beta < 1$$.

While prices are not usually constant when dividends grow over time, a price dividend-ratio can be.

If we guess this, substituting $$v_t = v$$ into (74.5) as well as our other assumptions, we get $$v = \beta g (1 + v)$$.

Since $$\beta g < 1$$, we have a unique positive solution:

$v = \frac{\beta g}{1 - \beta g }$

The price is then

$p_t = \frac{\beta g}{1 - \beta g } d_t$

If, in this example, we take $$g = 1+\kappa$$ and let $$\rho := 1/\beta - 1$$, then the price becomes

$p_t = \frac{1 + \kappa}{ \rho - \kappa} d_t$

This is called the Gordon formula.

### 74.3.3. Example 3: Markov Growth, Risk-Neutral Pricing¶

Next, we consider a dividend process

(74.7)$d_{t+1} = g_{t+1} d_t$

The stochastic growth factor $$\{g_t\}$$ is given by

$g_t = g(X_t), \quad t = 1, 2, \ldots$

where

1. $$\{X_t\}$$ is a finite Markov chain with state space $$S$$ and transition probabilities

$P(x, y) := \mathbb P \{ X_{t+1} = y \,|\, X_t = x \} \qquad (x, y \in S)$
2. $$g$$ is a given function on $$S$$ taking nonnegative values

You can think of

• $$S$$ as $$n$$ possible “states of the world” and $$X_t$$ as the current state.

• $$g$$ as a function that maps a given state $$X_t$$ into a growth of dividends factor $$g_t = g(X_t)$$.

• $$\ln g_t = \ln (d_{t+1} / d_t)$$ is the growth rate of dividends.

(For a refresher on notation and theory for finite Markov chains see this lecture)

The next figure shows a simulation, where

• $$\{X_t\}$$ evolves as a discretized AR1 process produced using Tauchen’s method.

• $$g_t = \exp(X_t)$$, so that $$\ln g_t = X_t$$ is the growth rate.

n = 7
mc = qe.tauchen(n, 0.96, 0.25)
sim_length = 80

x_series = mc.simulate(sim_length, init=np.median(mc.state_values))
g_series = np.exp(x_series)
d_series = np.cumprod(g_series) # Assumes d_0 = 1

series = [x_series, g_series, d_series, np.log(d_series)]
labels = ['$X_t$', '$g_t$', '$d_t$', r'$\log \, d_t$']

fig, axes = plt.subplots(2, 2)
for ax, s, label in zip(axes.flatten(), series, labels):
ax.plot(s, 'b-', lw=2, label=label)
ax.legend(loc='upper left', frameon=False)
plt.tight_layout()
plt.show()

/tmp/ipykernel_19346/2878916857.py:2: UserWarning: The API of tauchen has changed from tauchen(rho, sigma_u, b=0., m=3, n=7) to tauchen(n, rho, sigma, mu=0., n_std=3). To find more details please visit: https://github.com/QuantEcon/QuantEcon.py/issues/663.
mc = qe.tauchen(n, 0.96, 0.25)


#### 74.3.3.1. Pricing Formula¶

To obtain asset prices in this setting, let’s adapt our analysis from the case of deterministic growth.

In that case, we found that $$v$$ is constant.

This encourages us to guess that, in the current case, $$v_t$$ is a fixed function of the state $$X_t$$.

We seek a function $$v$$ such that the price-dividend ratio satisfies $$v_t = v(X_t)$$.

We can substitute this guess into (74.5) to get

$v(X_t) = \beta {\mathbb E}_t [ g(X_{t+1}) (1 + v(X_{t+1})) ]$

If we condition on $$X_t = x$$, this becomes

$v(x) = \beta \sum_{y \in S} g(y) (1 + v(y)) P(x, y)$

or

(74.8)$v(x) = \beta \sum_{y \in S} K(x, y) (1 + v(y)) \quad \text{where} \quad K(x, y) := g(y) P(x, y)$

Suppose that there are $$n$$ possible states $$x_1, \ldots, x_n$$.

We can then think of (74.8) as $$n$$ stacked equations, one for each state, and write it in matrix form as

(74.9)$v = \beta K (\mathbb 1 + v)$

Here

• $$v$$ is understood to be the column vector $$(v(x_1), \ldots, v(x_n))'$$.

• $$K$$ is the matrix $$(K(x_i, x_j))_{1 \leq i, j \leq n}$$.

• $${\mathbb 1}$$ is a column vector of ones.

When does equation (74.9) have a unique solution?

From the Neumann series lemma and Gelfand’s formula, equation (74.9) has a unique solution when $$\beta K$$ has spectral radius strictly less than one.

Thus, we require that the eigenvalues of $$K$$ be strictly less than $$\beta^{-1}$$ in modulus.

The solution is then

(74.10)$v = (I - \beta K)^{-1} \beta K{\mathbb 1}$

### 74.3.4. Code¶

Let’s calculate and plot the price-dividend ratio at some parameters.

As before, we’ll generate $$\{X_t\}$$ as a discretized AR1 process and set $$g_t = \exp(X_t)$$.

Here’s the code, including a test of the spectral radius condition

n = 25  # Size of state space
β = 0.9
mc = qe.tauchen(n, 0.96, 0.02)

K = mc.P * np.exp(mc.state_values)

warning_message = "Spectral radius condition fails"
assert np.max(np.abs(eigvals(K))) < 1 / β,  warning_message

I = np.identity(n)
v = solve(I - β * K, β * K @ np.ones(n))

fig, ax = plt.subplots()
ax.plot(mc.state_values, v, 'g-o', lw=2, alpha=0.7, label='$v$')
ax.set_ylabel("price-dividend ratio")
ax.set_xlabel("state")
ax.legend(loc='upper left')
plt.show()

/tmp/ipykernel_19346/463224509.py:3: UserWarning: The API of tauchen has changed from tauchen(rho, sigma_u, b=0., m=3, n=7) to tauchen(n, rho, sigma, mu=0., n_std=3). To find more details please visit: https://github.com/QuantEcon/QuantEcon.py/issues/663.
mc = qe.tauchen(n, 0.96, 0.02)


Why does the price-dividend ratio increase with the state?

The reason is that this Markov process is positively correlated, so high current states suggest high future states.

Moreover, dividend growth is increasing in the state.

The anticipation of high future dividend growth leads to a high price-dividend ratio.

## 74.4. Risk Aversion and Asset Prices¶

Now let’s turn to the case where agents are risk averse.

We’ll price several distinct assets, including

• An endowment stream

• A consol (a type of bond issued by the UK government in the 19th century)

• Call options on a consol

### 74.4.1. Pricing a Lucas Tree¶

Let’s start with a version of the celebrated asset pricing model of Robert E. Lucas, Jr. [Luc78].

Lucas considered an abstract pure exchange economy with these features:

• a single non-storable consumption good

• a Markov process that governs the total amount of the consumption good available each period

• a single tree that each period yields fruit that equals the total amount of consumption available to the economy

• a competitive market in shares in the tree that entitles their owners to corresponding shares of the dividend stream, i.e., the fruit stream, yielded by the tree

• a representative consumer who in a competitive equilibrium

• consumes the economy’s entire endowment each period

• owns 100 percent of the shares in the tree

As in [Luc78], we suppose that the stochastic discount factor takes the form

(74.11)$m_{t+1} = \beta \frac{u'(c_{t+1})}{u'(c_t)}$

where $$u$$ is a concave utility function and $$c_t$$ is time $$t$$ consumption of a representative consumer.

(A derivation of this expression is given in a later lecture)

Assume the existence of an endowment that follows growth process (74.7).

The asset being priced is a claim on the endowment process, i.e., the Lucas tree described above.

Following [Luc78], we suppose that in equilibrium the representative consumer’s consumption equals the aggregate endowment, so that $$d_t = c_t$$ for all $$t$$.

For utility, we’ll assume the constant relative risk aversion (CRRA) specification

(74.12)$u(c) = \frac{c^{1-\gamma}}{1 - \gamma} \ {\rm with} \ \gamma > 0$

When $$\gamma =1$$ we let $$u(c) = \ln c$$.

Inserting the CRRA specification into (74.11) and using $$c_t = d_t$$ gives

(74.13)$m_{t+1} = \beta \left(\frac{c_{t+1}}{c_t}\right)^{-\gamma} = \beta g_{t+1}^{-\gamma}$

Substituting this into (74.5) gives the price-dividend ratio formula

(74.14)$v(X_t) = \beta {\mathbb E}_t \left[ g(X_{t+1})^{1-\gamma} (1 + v(X_{t+1}) ) \right]$

Conditioning on $$X_t = x$$, we can write this as

$v(x) = \beta \sum_{y \in S} g(y)^{1-\gamma} (1 + v(y) ) P(x, y)$

If we let

$J(x, y) := g(y)^{1-\gamma} P(x, y)$

then we can rewrite equation (74.14) in vector form as

$v = \beta J ({\mathbb 1} + v )$

Assuming that the spectral radius of $$J$$ is strictly less than $$\beta^{-1}$$, this equation has the unique solution

(74.15)$v = (I - \beta J)^{-1} \beta J {\mathbb 1}$

We will define a function tree_price to compute $$v$$ given parameters stored in the class AssetPriceModel

class AssetPriceModel:
"""
A class that stores the primitives of the asset pricing model.

Parameters
----------
β : scalar, float
Discount factor
mc : MarkovChain
Contains the transition matrix and set of state values for the state
process
γ : scalar(float)
Coefficient of risk aversion
g : callable
The function mapping states to growth rates

"""
def __init__(self, β=0.96, mc=None, γ=2.0, g=np.exp):
self.β, self.γ = β, γ
self.g = g

# A default process for the Markov chain
if mc is None:
self.ρ = 0.9
self.σ = 0.02
self.mc = qe.tauchen(n, self.ρ, self.σ)
else:
self.mc = mc

self.n = self.mc.P.shape[0]

def test_stability(self, Q):
"""
Stability test for a given matrix Q.
"""
sr = np.max(np.abs(eigvals(Q)))
if not sr < 1 / self.β:
raise ValueError(msg)

def tree_price(ap):
"""
Computes the price-dividend ratio of the Lucas tree.

Parameters
----------
ap: AssetPriceModel
An instance of AssetPriceModel containing primitives

Returns
-------
v : array_like(float)
Lucas tree price-dividend ratio

"""
# Simplify names, set up matrices
β, γ, P, y = ap.β, ap.γ, ap.mc.P, ap.mc.state_values
J = P * ap.g(y)**(1 - γ)

# Make sure that a unique solution exists
ap.test_stability(J)

# Compute v
I = np.identity(ap.n)
Ones = np.ones(ap.n)
v = solve(I - β * J, β * J @ Ones)

return v


Here’s a plot of $$v$$ as a function of the state for several values of $$\gamma$$, with a positively correlated Markov process and $$g(x) = \exp(x)$$

γs = [1.2, 1.4, 1.6, 1.8, 2.0]
ap = AssetPriceModel()
states = ap.mc.state_values

fig, ax = plt.subplots()

for γ in γs:
ap.γ = γ
v = tree_price(ap)
ax.plot(states, v, lw=2, alpha=0.6, label=rf"$\gamma = {γ}$")

ax.set_title('Price-dividend ratio as a function of the state')
ax.set_ylabel("price-dividend ratio")
ax.set_xlabel("state")
ax.legend(loc='upper right')
plt.show()

/tmp/ipykernel_19346/1594356851.py:26: UserWarning: The API of tauchen has changed from tauchen(rho, sigma_u, b=0., m=3, n=7) to tauchen(n, rho, sigma, mu=0., n_std=3). To find more details please visit: https://github.com/QuantEcon/QuantEcon.py/issues/663.
self.mc = qe.tauchen(n, self.ρ, self.σ)


Notice that $$v$$ is decreasing in each case.

This is because, with a positively correlated state process, higher states indicate higher future consumption growth.

With the stochastic discount factor (74.13), higher growth decreases the discount factor, lowering the weight placed on future dividends.

#### 74.4.1.1. Special Cases¶

In the special case $$\gamma =1$$, we have $$J = P$$.

Recalling that $$P^i {\mathbb 1} = {\mathbb 1}$$ for all $$i$$ and applying Neumann’s geometric series lemma, we are led to

$v = \beta(I-\beta P)^{-1} {\mathbb 1} = \beta \sum_{i=0}^{\infty} \beta^i P^i {\mathbb 1} = \beta \frac{1}{1 - \beta} {\mathbb 1}$

Thus, with log preferences, the price-dividend ratio for a Lucas tree is constant.

Alternatively, if $$\gamma = 0$$, then $$J = K$$ and we recover the risk-neutral solution (74.10).

This is as expected, since $$\gamma = 0$$ implies $$u(c) = c$$ (and hence agents are risk-neutral).

### 74.4.2. A Risk-Free Consol¶

Consider the same pure exchange representative agent economy.

A risk-free consol promises to pay a constant amount $$\zeta> 0$$ each period.

Recycling notation, let $$p_t$$ now be the price of an ex-coupon claim to the consol.

An ex-coupon claim to the consol entitles an owner at the end of period $$t$$ to

• $$\zeta$$ in period $$t+1$$, plus

• the right to sell the claim for $$p_{t+1}$$ next period

The price satisfies (74.2) with $$d_t = \zeta$$, or

$p_t = {\mathbb E}_t \left[ m_{t+1} ( \zeta + p_{t+1} ) \right]$

With the stochastic discount factor (74.13), this becomes

(74.16)$p_t = {\mathbb E}_t \left[ \beta g_{t+1}^{-\gamma} ( \zeta + p_{t+1} ) \right]$

Guessing a solution of the form $$p_t = p(X_t)$$ and conditioning on $$X_t = x$$, we get

$p(x) = \beta \sum_{y \in S} g(y)^{-\gamma} (\zeta + p(y)) P(x, y)$

Letting $$M(x, y) = P(x, y) g(y)^{-\gamma}$$ and rewriting in vector notation yields the solution

(74.17)$p = (I - \beta M)^{-1} \beta M \zeta {\mathbb 1}$

The above is implemented in the function consol_price.

def consol_price(ap, ζ):
"""
Computes price of a consol bond with payoff ζ

Parameters
----------
ap: AssetPriceModel
An instance of AssetPriceModel containing primitives

ζ : scalar(float)
Coupon of the console

Returns
-------
p : array_like(float)
Console bond prices

"""
# Simplify names, set up matrices
β, γ, P, y = ap.β, ap.γ, ap.mc.P, ap.mc.state_values
M = P * ap.g(y)**(- γ)

# Make sure that a unique solution exists
ap.test_stability(M)

# Compute price
I = np.identity(ap.n)
Ones = np.ones(ap.n)
p = solve(I - β * M, β * ζ * M @ Ones)

return p


### 74.4.3. Pricing an Option to Purchase the Consol¶

Let’s now price options of various maturities.

We’ll study an option that gives the owner the right to purchase a consol at a price $$p_S$$.

#### 74.4.3.1. An Infinite Horizon Call Option¶

We want to price an infinite horizon option to purchase a consol at a price $$p_S$$.

The option entitles the owner at the beginning of a period either

1. to purchase the bond at price $$p_S$$ now, or

2. not to exercise the option to purchase the asset now but to retain the right to exercise it later

Thus, the owner either exercises the option now or chooses not to exercise and wait until next period.

This is termed an infinite-horizon call option with strike price $$p_S$$.

The owner of the option is entitled to purchase the consol at price $$p_S$$ at the beginning of any period, after the coupon has been paid to the previous owner of the bond.

The fundamentals of the economy are identical with the one above, including the stochastic discount factor and the process for consumption.

Let $$w(X_t, p_S)$$ be the value of the option when the time $$t$$ growth state is known to be $$X_t$$ but before the owner has decided whether to exercise the option at time $$t$$ (i.e., today).

Recalling that $$p(X_t)$$ is the value of the consol when the initial growth state is $$X_t$$, the value of the option satisfies

$w(X_t, p_S) = \max \left\{ \beta \, {\mathbb E}_t \frac{u'(c_{t+1})}{u'(c_t)} w(X_{t+1}, p_S), \; p(X_t) - p_S \right\}$

The first term on the right is the value of waiting, while the second is the value of exercising now.

We can also write this as

(74.18)$w(x, p_S) = \max \left\{ \beta \sum_{y \in S} P(x, y) g(y)^{-\gamma} w (y, p_S), \; p(x) - p_S \right\}$

With $$M(x, y) = P(x, y) g(y)^{-\gamma}$$ and $$w$$ as the vector of values $$(w(x_i), p_S)_{i = 1}^n$$, we can express (74.18) as the nonlinear vector equation

(74.19)$w = \max \{ \beta M w, \; p - p_S {\mathbb 1} \}$

To solve (74.19), form an operator $$T$$ that maps vector $$w$$ into vector $$Tw$$ via

$T w = \max \{ \beta M w,\; p - p_S {\mathbb 1} \}$

Start at some initial $$w$$ and iterate with $$T$$ to convergence .

We can find the solution with the following function call_option

def call_option(ap, ζ, p_s, ϵ=1e-7):
"""
Computes price of a call option on a consol bond.

Parameters
----------
ap: AssetPriceModel
An instance of AssetPriceModel containing primitives

ζ : scalar(float)
Coupon of the console

p_s : scalar(float)
Strike price

ϵ : scalar(float), optional(default=1e-8)
Tolerance for infinite horizon problem

Returns
-------
w : array_like(float)
Infinite horizon call option prices

"""
# Simplify names, set up matrices
β, γ, P, y = ap.β, ap.γ, ap.mc.P, ap.mc.state_values
M = P * ap.g(y)**(- γ)

# Make sure that a unique consol price exists
ap.test_stability(M)

# Compute option price
p = consol_price(ap, ζ)
w = np.zeros(ap.n)
error = ϵ + 1
while error > ϵ:
# Maximize across columns
w_new = np.maximum(β * M @ w, p - p_s)
# Find maximal difference of each component and update
error = np.amax(np.abs(w - w_new))
w = w_new

return w


Here’s a plot of $$w$$ compared to the consol price when $$P_S = 40$$

ap = AssetPriceModel(β=0.9)
ζ = 1.0
strike_price = 40

x = ap.mc.state_values
p = consol_price(ap, ζ)
w = call_option(ap, ζ, strike_price)

fig, ax = plt.subplots()
ax.plot(x, p, 'b-', lw=2, label='consol price')
ax.plot(x, w, 'g-', lw=2, label='value of call option')
ax.set_xlabel("state")
ax.legend(loc='upper right')
plt.show()

/tmp/ipykernel_19346/1594356851.py:26: UserWarning: The API of tauchen has changed from tauchen(rho, sigma_u, b=0., m=3, n=7) to tauchen(n, rho, sigma, mu=0., n_std=3). To find more details please visit: https://github.com/QuantEcon/QuantEcon.py/issues/663.
self.mc = qe.tauchen(n, self.ρ, self.σ)


In high values of the Markov growth state, the value of the option is close to zero.

This is despite the facts that the Markov chain is irreducible and that low states — where the consol prices are high — will be visited recurrently.

The reason for low valuations in high Markov growth states is that $$\beta=0.9$$, so future payoffs are discounted substantially.

### 74.4.4. Risk-Free Rates¶

Let’s look at risk-free interest rates over different periods.

#### 74.4.4.1. The One-period Risk-free Interest Rate¶

As before, the stochastic discount factor is $$m_{t+1} = \beta g_{t+1}^{-\gamma}$$.

It follows that the reciprocal $$R_t^{-1}$$ of the gross risk-free interest rate $$R_t$$ in state $$x$$ is

${\mathbb E}_t m_{t+1} = \beta \sum_{y \in S} P(x, y) g(y)^{-\gamma}$

We can write this as

$m_1 = \beta M {\mathbb 1}$

where the $$i$$-th element of $$m_1$$ is the reciprocal of the one-period gross risk-free interest rate in state $$x_i$$.

#### 74.4.4.2. Other Terms¶

Let $$m_j$$ be an $$n \times 1$$ vector whose $$i$$ th component is the reciprocal of the $$j$$ -period gross risk-free interest rate in state $$x_i$$.

Then $$m_1 = \beta M$$, and $$m_{j+1} = M m_j$$ for $$j \geq 1$$.

## 74.5. Exercises¶

Exercise 74.1

In the lecture, we considered ex-dividend assets.

A cum-dividend asset is a claim to the stream $$d_t, d_{t+1}, \ldots$$.

Following (74.1), find the risk-neutral asset pricing equation for one unit of a cum-dividend asset.

With a constant, non-random dividend stream $$d_t = d > 0$$, what is the equilibrium price of a cum-dividend asset?

With a growing, non-random dividend process $$d_t = g d_t$$ where $$0 < g \beta < 1$$, what is the equilibrium price of a cum-dividend asset?

Exercise 74.2

Consider the following primitives

n = 5  # Size of State Space
P = np.full((n, n), 0.0125)
P[range(n), range(n)] += 1 - P.sum(1)
# State values of the Markov chain
s = np.array([0.95, 0.975, 1.0, 1.025, 1.05])
γ = 2.0
β = 0.94


Let $$g$$ be defined by $$g(x) = x$$ (that is, $$g$$ is the identity map).

Compute the price of the Lucas tree.

Do the same for

• the price of the risk-free consol when $$\zeta = 1$$

• the call option on the consol when $$\zeta = 1$$ and $$p_S = 150.0$$

Exercise 74.3

Let’s consider finite horizon call options, which are more common than infinite horizon ones.

Finite horizon options obey functional equations closely related to (74.18).

A $$k$$ period option expires after $$k$$ periods.

If we view today as date zero, a $$k$$ period option gives the owner the right to exercise the option to purchase the risk-free consol at the strike price $$p_S$$ at dates $$0, 1, \ldots , k-1$$.

The option expires at time $$k$$.

Thus, for $$k=1, 2, \ldots$$, let $$w(x, k)$$ be the value of a $$k$$-period option.

It obeys

$w(x, k) = \max \left\{ \beta \sum_{y \in S} P(x, y) g(y)^{-\gamma} w (y, k-1), \; p(x) - p_S \right\}$

where $$w(x, 0) = 0$$ for all $$x$$.

We can express this as a sequence of nonlinear vector equations

$w_k = \max \{ \beta M w_{k-1}, \; p - p_S {\mathbb 1} \} \quad k =1, 2, \ldots \quad \text{with } w_0 = 0$

Write a function that computes $$w_k$$ for any given $$k$$.

Compute the value of the option with k = 5 and k = 25 using parameter values as in Exercise 74.1.

Is one higher than the other? Can you give intuition?