Class Notebooks
These are the core lecture notebooks for asset pricing, available in HTML and PDF formats. The sections build on each other progressively.
The course begins with the mathematics of portfolio selection. Before introducing any economic assumptions, these notebooks develop the geometry of the mean-variance frontier and show how expected returns must relate to risk through beta pricing. The arrival of a risk-free asset simplifies the picture considerably, and the section ends with the CAPM as an economic theory that gives content to what had been a purely mathematical relationship.
With the portfolio theory in place, the next section approaches pricing from a different angle — through the absence of arbitrage rather than through optimization. The key insight is that any linear pricing functional can be represented by a single random variable, the stochastic discount factor, that prices all traded payoffs simultaneously. The geometric structure of the payoff space makes this result intuitive and general.
The following section asks where the SDF comes from. The answer lies in the first-order conditions of an investor who is optimally choosing consumption and portfolio holdings over time. Starting from simple two-period preferences and building up to recursive Epstein-Zin utility, these notebooks show how the SDF emerges from the trade-off between consuming today and investing for tomorrow, and why separating risk aversion from the willingness to substitute consumption over time turns out to matter.
The multiperiod sections then put all of this together in dynamic economies. The Euler equation extends naturally to many periods, and the notebooks work through how time-varying investment opportunities create hedging demand, how the Epstein-Zin SDF takes a two-factor form in general equilibrium, and how lognormality delivers tractable closed-form expressions for risk premia. The section closes by applying the same SDF machinery to the term structure of interest rates.
The continuous-time section reformulates everything using Brownian motions and Itô calculus. This language makes derivatives pricing natural: risk-neutral pricing, the Black-Scholes formula, and the pricing PDE all follow from a change of measure. The notebooks then apply this framework to interest rate models, stochastic volatility, commodity markets, and foreign exchange options.
The final section steps back from theory to implementation. The first notebook works through the Critical Line Algorithm, which computes the exact mean-variance frontier when short sales are prohibited. The second shows how to calibrate the Heston stochastic volatility model to real option data, using AAPL call prices from OptionMetrics to fit the four structural parameters and recover the implied volatility surface. I will be adding more numerical applications to this section over time.