Skip to content

Commit c40ec8c

Browse files
Tom's Dec 31 edits of LPH asset pricing lecture
1 parent 2ae9b15 commit c40ec8c

File tree

1 file changed

+66
-20
lines changed

1 file changed

+66
-20
lines changed

lectures/asset_pricing_lph.md

+66-20
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ kernelspec:
2323

2424
## Overview
2525

26-
This lecture is about foundations of asset-pricing theories that are based on the equation
27-
$ E m R = 1$, where $R$ is the gross return on an asset, $m$ is a stochastic discount factor, and $E$ is a mathematical
28-
expectation with respect to the joint distribution of $R$ and $m$.
26+
This lecture is about some implications of asset-pricing theories that are based on the equation
27+
$ E m R = 1$, where $R$ is the gross return on an asset, $m$ is a stochastic discount factor, and $E$ is a mathematical expectation with respect to the joint distribution of $R$ and $m$.
28+
29+
Instances of this equation occur in many models.
2930

3031
```{note}
3132
Chapter 1 of {cite}`Ljungqvist2012` describes the role that this equation plays in a diverse set of
@@ -35,11 +36,11 @@ models in macroeconomics, monetary economics, and public finance.
3536

3637
We aim to convey insights about empirical implications of this equation brought out in the work of Lars Peter Hansen {cite}`HansenRichard1987` and Lars Peter Hansen and Ravi Jagannathan {cite}`Hansen_Jagannathan_1991`.
3738

38-
By following their footsteps, from a single equation that prevails in wide class of models, we'll derive
39+
By following their footsteps, from that single equation we'll derive
3940

4041
* a mean-variance frontier
4142

42-
* a single-factor model of excess asset returns
43+
* a single-factor model of excess returns
4344

4445

4546
To do this, we use two ideas:
@@ -51,7 +52,7 @@ To do this, we use two ideas:
5152
In particular, we'll apply a Cauchy-Schwartz inequality to a population linear least squares regression equation that is
5253
implied by $E m R =1$.
5354

54-
We'll describe how practitioners have implemented the model using
55+
We'll also describe how practitioners have implemented the model using
5556

5657
* cross sections of returns on many assets
5758
* time series of returns on various assets
@@ -348,37 +349,82 @@ $$
348349
\end{array}\right.
349350
$$
350351
351-
The image below illustrates a mean-variance frontier.
352+
Now let's use matplotlib to draw a mean variance frontier.
353+
354+
In drawing a frontier, we'll set $\sigma(m) = .25$ and $E m = .99$, values roughly consistent with what many studies calibrate from quarterly US data.
355+
356+
```{code-cell} ipython3
357+
import matplotlib.pyplot as plt
358+
import numpy as np
359+
%matplotlib inline
360+
361+
# Define the function to plot
362+
def y(x, alpha, beta):
363+
return alpha + beta*x
364+
def z(x, alpha, beta):
365+
return alpha - beta*x
366+
367+
sigmam = .25
368+
Em = .99
352369
353-
```{figure} _static/lecture_specific/asset_pricing_lph/AssetPricing_v1.jpg
354-
:scale: 60%
370+
# Set the values of alpha and beta
371+
alpha = 1/Em
372+
beta = sigmam/Em
373+
374+
# Create a range of values for x
375+
x = np.linspace(0, .15, 100)
376+
377+
# Calculate the values of y and z
378+
y_values = y(x, alpha, beta)
379+
z_values = z(x, alpha, beta)
380+
381+
# Create a figure and axes object
382+
fig, ax = plt.subplots()
383+
384+
# Plot y
385+
ax.plot(x, y_values, label=r'$R^f + \frac{\sigma(m)}{E(m)} \sigma(R^i)$')
386+
ax.plot(x, z_values, label=r'$R^f - \frac{\sigma(m)}{E(m)} \sigma(R^i)$')
387+
388+
plt.title('mean standard deviation frontier')
389+
plt.xlabel(r"$\sigma(R^i)$")
390+
plt.ylabel(r"$E (R^i) $")
391+
plt.text(.053, 1.015, "(.05,1.015)")
392+
ax.plot(.05, 1.015, 'o', label="$(\sigma(R^j), E R^j)$")
393+
# Add a legend and show the plot
394+
ax.legend()
395+
plt.show()
355396
```
356397
357-
The figure shows two straight lines, the upper one being the locus of $( \sigma(R^i), E(R^i)$ pairs that are on
358-
the **mean-variance frontier**.
359398
360-
Let $\tilde R^j$ be a return that is **not** on the frontier and that is described by
399+
The figure shows two straight lines, the blue upper one being the locus of $( \sigma(R^i), E(R^i)$ pairs that are on
400+
the **mean-variance frontier** or **mean-standard-deviation frontier**.
401+
402+
The green dot refers to a return $R^j$ that is **not** on the frontier and that has moments
403+
$(\sigma(R^j), E R^j) = (.05, 1.015)$.
404+
405+
It is described by the statistical model
361406
362407
$$
363-
\tilde R^j = R^i + \tilde \epsilon^j
408+
R^j = R^i + \epsilon^j
364409
$$
365410
366-
where $\tilde \epsilon$ is a random variable that has mean zero and that is orthogonal to $R^i$.
411+
where $R^i$ is a return that is on the frontier and $\epsilon^j$ is a random variable that has mean zero and that is orthogonal to $R^i$.
367412
368-
Then $ E \tilde R^j = E R^i$ and, as a consequence of $R^j$ not being on the frontier,
413+
Then $ E R^j = E R^i$ and, as a consequence of $R^j$ not being on the frontier,
369414
370415
$$
371-
\sigma^2(\tilde R^j) = \sigma^2(R^i) + \sigma^2(\tilde \epsilon^j)
416+
\sigma^2(R^j) = \sigma^2(R^i) + \sigma^2(\epsilon^j)
372417
$$
373418
374-
The length of the dotted line labeled **idiosyncratic risk** equals
419+
The length of a horizontal line from the point $\sigma(R^j), E (R^j) = .05, 1.015$ to
420+
the frontier equals
375421
376422
$$
377-
\sqrt{ \sigma^2(R^i) + \sigma^2(\tilde \epsilon^j)} - \sigma(R^i)
423+
\sqrt{ \sigma^2(R^i) + \sigma^2( \epsilon^j)} - \sigma(R^i)
378424
$$
379425
380-
This is a measure of the part of the risk in $R^j$ that is not priced because it can be diversified away,
381-
being uncorrelated with the stochastic discount factor.
426+
This is a measure of the part of the risk in $R^j$ that is not priced because it is uncorrelated with the stochastic discount factor and so can be diversified away (i.e., averaged out to zero by holding a diversified portfolio).
427+
382428
383429
## Mathematical Structure of Frontier
384430

0 commit comments

Comments
 (0)