Risk and Return
Why should one asset be expected to earn more than another, and what is a unit of risk worth?
Under Q everything earns the riskless rate. Under P it does not, and this part is where the series turns to ask why. Markowitz's frontier shows that only risk you cannot diversify should be paid; the CAPM names that risk as beta, and the data draw the line too flat. One equation contains every asset-pricing model, price equals the expectation of a discount factor times the payoff, and the models differ only in what the discount factor is: consumption, factors, the wealth of intermediaries, the demand of inelastic investors. The equity premium is too large and prices move too much for the simplest versions. Behaviour, limits of arbitrage and bubbles close the part.
What you need. Parts 1 and 6.
What you will be able to do
Undergraduate
- Draw an efficient frontier and find the tangency portfolio; explain diversification.
- State the CAPM, compute a beta, and say what the flat security market line means.
Master's
- Derive the frontier and the CAPM; write any pricing model as p = E[m x] and derive the Hansen-Jagannathan bound.
- Estimate a consumption model by GMM and state the equity-premium and excess-volatility puzzles; decompose returns with Campbell and Shiller.
PhD
- Derive prices with heterogeneous beliefs and short-sale constraints (Harrison and Kreps; Scheinkman and Xiong): the resale option as a bubble; read intermediary and demand-system asset pricing.
Industry
- Explain why arbitrageurs with outside capital can be forced out at the worst time (Shleifer and Vishny).
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Undergraduate 25 min · Master's 48 min · PhD 60 min · Industry 30 min.
- 0What risk is worthUndergraduate2 min
- 1Markowitz: the frontierUndergraduate3 min
- 2Cash, the tangency, and estimation errorUndergraduate3 min
- 3The CAPM and the flat lineUndergraduate4 min
- 4One price equation: the discount factorMaster's5 min
- 5Many factors: APT and ICAPMMaster's3 min
- 6Consumption and GMMMaster's3 min
- 7The equity premium puzzleMaster's4 min
- 8Prices move too muchMaster's3 min
- 9Intermediaries price assetsPhD4 min
- 10Demand systems and inelastic marketsPhD3 min
- 11Behaviour and the limits of arbitrageUndergraduate5 min
- 12BubblesUndergraduate4 min
- 13Rule 23: the research deskIndustry5 min
- For the researcher: speculative bubbles from disagreementPhD5 min
- Recap, desk questions, problemsAll tracks4 min
Also on this page: Lecture · Key results · Try it · Lab · Problems · Reading · 中文 · Build the film.
Lecture
The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film. A dashed box stands for a number the film computes when it is rendered (hover over it to see what is computed); the README's figures for each chapter, where it lists them, follow the chapter's text.
What risk is worthUndergraduate2 min
Act Three asked what things must cost. Act Four asks what they pay, and why.
A dollar put into the American stock market in July 1926, dividends reinvested. By the end of 2025 it was worth about thousand dollars. The same dollar in one-month Treasury bills: about . Ten percent a year against three, for a century. That is a realised compound-growth gap, about seven percentage points a year. It differs from the arithmetic real excess-return average used later in the consumption puzzle. Why is it so large? Is it a reward for risk, and if so for which risk? Or is it a mistake that a careful investor could have exploited?
Every theory in this part has the same shape. An asset's expected return above cash is its exposure to some risk, beta, times the price the market charges for that risk, lambda. The argument is always about which risk: the market's, consumption's, a bank's capital, or none at all. And every one of them is a special case of a single equation: the price of anything is the expectation of its payoff times a discount factor. By chapter four we will have it.
How we got here. In 1952 Harry Markowitz turned diversification into mathematics; James Tobin added cash; William Sharpe and others derived the capital asset pricing model; Robert Merton and Stephen Ross allowed for many risks. Robert Lucas priced assets from consumption, Robert Shiller showed that prices move too much for the dividends behind them, Lars Hansen built the tools to test it all, and Rajnish Mehra and Edward Prescott found that the equity premium is far too large for any reasonable aversion to risk. Then the limits of arbitrage, the dot-com bubble, rare disasters, and the newest answers: that intermediaries' balance sheets, and inelastic demand, set prices.
The plan: the frontier of risk and return, derived, and why the estimated one disappoints; the capital asset pricing model and the flat line the data draw instead; the one equation behind all of it, and the bound it puts on any model; consumption, and the puzzle it cannot solve; prices that move too much; intermediaries and inelastic markets; and behaviour, the limits of arbitrage, and bubbles.
In the House, the research desk opens. Its first product is not a strategy, but a framework: what expected return any position should earn, for the risk it bears.
1Markowitz: the frontierUndergraduate3 min
Harry Markowitz's frontier: which portfolios are worth holding at all. Two assets, each with twenty percent volatility, one expected to earn six percent and the other ten. Mix them, and trace the mixtures' risk and return as the weight moves. If the two move in perfect lockstep, the line is straight: mixing changes the return, not the risk. As the correlation falls the line bows to the left, and at minus one it touches zero risk. Below perfect correlation, some mix is always less risky than either asset alone; where exactly that mix sits is the question at the end of this chapter. Diversification is the only free lunch in finance, as Markowitz is often quoted, and this is why.
With many assets, ask the same question for each target return: of all fully invested portfolios with that expected return, which has the least variance? The Lagrangian answers it in one line. The optimal weights are a combination of just two portfolios, the inverse covariance times the means, and the inverse covariance times a vector of ones. Every efficient portfolio is a mix of the same two funds. And the variance, as a function of the target, is a parabola; in mean and volatility, a hyperbola. Investors call it the bullet.
One portfolio on the frontier is special: its nose, the global minimum-variance portfolio. Its weights need only the covariance matrix, not a single expected return. That will matter, because covariances can be estimated far more precisely than means, and the next chapter shows what happens when the means are wrong.
Now real assets: ten American industries, monthly since 1990. Each industry alone, a dot. The frontier built from them: every industry sits well inside it, because each alone carries risk that a mix can diversify away. The minimum-variance portfolio has percent volatility, less than any single industry, and less than the market itself.
But look at the weights the optimiser wants for its best portfolio. Short telecoms by twenty-nine percent, long shops by forty-four and utilities by forty-two, and short the catch-all other industry by fifty-six percent. These are not insights about industries. They are the optimiser chasing small differences in average returns, which are measured with enormous error: a mean return over thirty-one years still has a standard error of about two and a half points a year. Markowitz's machine maximises the error along with the return.
Two assets, each with twenty percent volatility, correlation one half. What are the minimum-variance weights, and its volatility?
2Cash, the tangency, and estimation errorUndergraduate3 min
Add a riskless asset, and the frontier becomes a straight line. Now add a riskless asset: cash, earning the bill rate. Mixing any risky portfolio with cash moves along a straight line from the bill rate. The best such line is the steepest, and it touches the bullet at one portfolio, the tangency. Assume a positive-definite covariance matrix, a positive-premium tangency with normalisable weights, mean-variance preferences, and unrestricted lending and borrowing at the same known rate. Under those conditions, James Tobin's separation theorem follows: everyone who uses the same estimates holds the same risky portfolio, the tangency, and differs only in how much cash they hold beside it. The slope of the line is the largest Sharpe ratio the assets can offer. A cautious investor puts a third of the money in the tangency and the rest in bills; a bold one borrows and holds one and a half times their capital in it. Both hold the same stocks in the same proportions. Choosing the portfolio and choosing the risk are separate decisions, which is why a fund can serve investors it has never met.
Draw it on the industries. Swing a line up from the bill rate until it just touches the frontier. That is the capital market line, and the point of contact is the tangency portfolio, with a Sharpe ratio of . The stock market itself, at , sits inside: in this sample, a mix of industries would have beaten it handily. Would it, though, in advance?
Test it honestly. Fit the tangency on 1990 to 2007, then rebalance to those fixed weights monthly from 2008 to 2020, the end of this research window. This ignores costs and permits shorts; it does not hold a fixed number of shares. In sample, its Sharpe ratio was . Out of sample it earned , worse than the market's , worse than simply holding the ten industries in equal amounts, , and worse than the minimum-variance portfolio, which never looked at a mean return, . Victor DeMiguel, Lorenzo Garlappi and Raman Uppal found the same across many datasets: the error in estimated means swamps the gain from optimising. This is the first lesson of quantitative investing, and Part thirty returns to it.
Practitioners have three remedies, all covered properly in Part thirty. Shrink the estimates: pull the means toward each other and the covariance toward a simple structure. Constrain the weights; Ravi Jagannathan and Tongshu Ma showed that a ban on short sales acts like shrinkage. Or start from equilibrium: Fischer Black and Robert Litterman began with the expected returns that would make the market portfolio optimal, which is exactly the idea of the next chapter.
A mean return is estimated from thirty years of data with eighteen percent volatility. What is its standard error, and how many years would halve it?
3The CAPM and the flat lineUndergraduate4 min
The capital asset pricing model: what follows if everyone holds the tangency, and what the data say instead.
Suppose everyone uses the same estimates. Then everyone holds the same risky portfolio, and since every share must be held by someone, that portfolio is the market itself. The tangency condition then says something about every asset: its expected excess return is proportional to its covariance with the market. Divide by the market's variance and you have the capital asset pricing model of William Sharpe, John Lintner and Jan Mossin: an asset earns its beta times the market's premium. Only market risk is paid. Risk that can be diversified away earns nothing, however large it is.
The model makes one sharp prediction. Plot each portfolio's average excess return against its beta, and the points should fall on a line through the origin, with a slope equal to the market's premium: the security market line. Fischer Black, Michael Jensen and Myron Scholes tested it in 1972, sorting stocks by beta. The line came out too flat. Eugene Fama and Kenneth French, twenty years later, found it almost flat.
Before testing the line, a word on how betas are measured, because a single stock's beta is very noisy. A stock with thirty percent idiosyncratic volatility, estimated on five years of monthly returns against a market of fifteen percent, has a beta uncertain by about a quarter either way. Regress average returns on such noisy betas and the slope is biased toward zero, the classic errors-in-variables problem. That is why Fischer Black, Michael Jensen and Myron Scholes, and then Fama and MacBeth, sorted stocks into portfolios by beta: diversification reduces idiosyncratic estimation error, but common residuals, changing betas and generated-regressor errors remain. A flat portfolio line is not automatically immune to noise. And practitioners shrink. Marshall Blume found that betas drift toward one, so the adjusted beta on a terminal screen is two thirds of the estimate plus one third. Oldrich Vasicek's Bayesian version shrinks each stock in proportion to how uncertain its own estimate is.
Here it is on fifty-seven years of data: ten portfolios sorted by beta, from to . The model's line: through zero, rising at the market's premium of percent a year per unit of beta. The data's line: an intercept of percent and a slope of , less than half the prediction. The low-beta portfolios earned more than this stock-index CAPM predicts; high beta is market exposure, not a ranking of total safety. This is a joint test of the model and the chosen market proxy.
A flat fitted line motivates a mechanical long-short illustration, not a certified trade. Lever the lowest-beta portfolio up to a beta of one, lever the highest down to one, and go long the first and short the second. Using betas estimated over the same whole sample, the retrospective zero-cost illustration averaged percent a year. This uses future beta information and ignores financing, costs and borrow constraints, so it is not a replication of published BAB performance. Andrea Frazzini and Lasse Pedersen studied betting against beta, and offered a reason: many investors cannot borrow, so to get more return they buy riskier stocks instead of levering safe ones, and bid them up. Fischer Black had suggested the same in 1972.
Richard Roll pointed out in 1977 that the CAPM is equivalent to a single statement: the market portfolio is efficient. And the market in the model is all wealth: stocks, bonds, houses, and the value of people's future earnings, which nobody observes. Every test with a stock index is a test of whether that index is efficient, nothing more. The model may be untestable; its failure with stock indices is not.
A stock has a beta of one point five and sixty percent idiosyncratic volatility; the market premium is six percent. What should it earn above cash, and why doesn't the sixty percent matter?
4One price equation: the discount factorMaster's5 min
The single equation behind every model of risk and return. Here is the equation. The price of any payoff is the expectation of that payoff times a random discount factor, m, which is large in the states of the world where an extra dollar is worth most. Part nine showed that such an m exists whenever there is no arbitrage. For a return, the price is one; for an excess return, zero. And so the expected excess return of anything is minus its covariance with the discount factor, divided by the discount factor's positive mean. An asset that pays when times are bad, when m is high, is insurance, and earns less. One that pays in good times must offer more. Risk premia are about when you get paid, not how much the payoff varies.
Every model in this part is a choice of m. If m is linear in the market's return, you have the CAPM. If it is the growth of consumption raised to a power, the consumption model. If it is linear in some factors, a factor model of the kind Part twenty-four studies. And if it is the value of a dollar to the dealers who make markets, the intermediary models of chapter nine. The equation is the same; the economics is in m. Linear factor pricing projections can be negative, so those projections are not automatically positive discount factors or probability densities.
This equation is an old friend in new clothes. Use a strictly positive discount factor and a known one-period gross risk-free return, with conditional expectations if rates vary by state. The expected discount factor is then one over that risk-free return, so divide m by its mean and you have a probability density. Weighting the real-world probabilities by it gives the risk-neutral measure of Parts four and nine, under which every price is a discounted expectation. The derivatives desk and the research desk use the same object: one calls it Q, the other m. Q simply tilts the probabilities toward the states where a dollar is worth most. And so a risk premium is the gap between two expectations, the real-world one and the risk-neutral one. Option prices constrain risk-neutral expectations for the traded payoffs; a limited option surface need not identify every state price. History estimates physical expectations with uncertainty. Part twelve's variance risk premium was exactly that gap, measured for volatility.
The equation has a powerful consequence. Write the excess-return version as the product of means plus a covariance, and the covariance as a correlation times two volatilities. The correlation is at most one, so the discount factor's volatility, relative to its mean, must be at least the Sharpe ratio. Lars Hansen and Ravi Jagannathan used this in 1991 to test whole classes of models at once: whatever your m is, it has to be at least this volatile.
So how volatile must m be? The market alone has had a Sharpe ratio of about a year since 1963. Ten industries combined optimally, . Twenty-five portfolios sorted on size and value, in sample, ; fitted on the first half and held in the second, still . These bars annualise monthly Sharpe ratios by multiplying by the square root of twelve. Divide each bar by that factor to obtain the necessary coefficient-of-variation bound for a monthly discount factor. They do not measure an annual discount factor's volatility. The fitted portfolios are retrospective, and the later window rebalances the fixed fitted exposures without costs.
The gross-return bound depends on the discount factor's mean. The original chart covered only a narrow mean interval and clipped its height. This explicitly named display audit applies the unchanged formula to the same 1948 to 2024 sample moments on a fixed wider grid. The green points use the seven original consumption-model risk aversions and beta of point nine eight. The table compares each point at its own mean. All seven lie below the necessary bound, including gamma twenty and fifty. We therefore cannot claim that gamma twenty reaches the curve. The bound uses real market returns and nominal bills deflated after the fact; those bills have inflation risk. It is a sample lower bound without a positivity restriction, and being above it would still not establish that a positive factor prices all assets. An inverse mean would price a hypothetical known real risk-free payoff, not the inflation-risky bill shown here.
A monthly asset Sharpe ratio is two. What monthly bound follows? How does the answer change if two was an annualised monthly ratio?
5Many factors: APT and ICAPMMaster's3 min
Two ways to more than one risk factor: arbitrage, and hedging. Stephen Ross took a different route in 1976. Suppose returns are driven by a few common factors, plus noise that is nearly independent across assets. Then with many assets you can build a portfolio with no exposure to any factor, whose noise diversifies away: nearly riskless. If it earned more than cash there would be an arbitrage. So expected returns must be, approximately, linear in the factor betas. The arbitrage pricing theory needs no assumption about investors at all; but it does not tell you which factors, or what they pay.
Here is the arbitrage in numbers, with one factor. Two well-diversified portfolios: A has a beta of one and expects eight percent; B has a beta of two and expects twelve. Cash pays three. Hold two units of A and short one of B. The weights add up to one, and the beta is two minus two: zero. The expected return is sixteen minus twelve, four percent. Only if residual risks cancel completely, with unrestricted shorts and identical cash financing, is this a riskless portfolio paying four when cash pays three: borrow at three, buy it, and pocket a point with no risk and no money of your own. Traders do that until the reward per unit of beta is the same for A and for B, five percent: If A and cash are held fixed in this illustration, B adjusts until it expects thirteen; other equilibrium adjustments are also possible. That is the whole of the APT: every well-diversified portfolio must sit on one straight line in beta.
Which factors? One answer is to let the data choose. Take forty-nine industries and find the principal components of their returns, as Part eighteen did for the yield curve. The first explains percent of all the variance, and its absolute correlation with the market is . The next few add a few percent each. This is a full-sample 1970 to 2025 descriptive variance decomposition. Principal-component signs are arbitrary; variance explained does not establish priced structural risk.
But do these components explain why some industries earn more than others? Use the same full sample and same industries to estimate components, betas and average returns, then regress those means on their exposures to the first component: an R squared of almost zero. Three components, still almost nothing; ten, . These are in-sample descriptive fits, not an out-of-sample pricing test or causal identification. What makes returns move together is not necessarily what investors are paid for. Serhiy Kozak, Stefan Nagel and Shrihari Santosh argue that the priced factors hide among the small components, which is why finding them is the hard problem of Parts twenty-four and twenty-five.
Robert Merton's intertemporal model gives the other route. An investor who lives for many periods cares not only about their wealth but about the opportunities it will meet: future interest rates, future expected returns, future volatility. An asset that pays off when those opportunities worsen is a hedge, and earns less, just as insurance does. So the priced factors are the market plus whatever forecasts the future, a rule that disciplines the search, if it is taken seriously.
A factor explains forty percent of the variance of stock returns, but none of their average returns. Is it a risk factor? What would make it one?
6Consumption and GMMMaster's3 min
Pricing assets by what they do to consumption, and testing it. Where does the discount factor come from in economics? From people. An investor who could buy a little more of an asset today gives up the utility of that money now, and gains the discounted expected utility of its payoff later. At the optimum the two are equal. So the discount factor is the ratio of marginal utilities, tomorrow's to today's: with power utility, consumption growth raised to minus gamma, the coefficient of relative risk aversion. A dollar is worth most in the states where consumption falls. That is Robert Lucas's and Douglas Breeden's consumption model.
A first-order covariance approximation, or a suitable joint-lognormal payoff and consumption specification, gives two benchmark predictions. An asset's premium is risk aversion times its covariance with consumption growth: stocks do badly when people are cutting back, so they must pay. With iid Gaussian log consumption growth, the log risk-free rate is minus log beta, plus gamma times expected growth, less a small precautionary term. The same gamma has to explain both.
Now the original data, 1948 through 2024. Consumption is current-vintage broad real per-capita PCE, including durables. Q4 observations are quarter averages, timestamped October, not December instants; market returns run December to December. Real consumption per person grows about two percent a year, with a volatility of only percent: it is remarkably smooth. The stock market's real return has a volatility of percent, nine times as much, and the two are only loosely correlated, . Stocks do fall when consumption falls, but consumption hardly falls.
How do you estimate gamma without modelling the whole economy? Lars Hansen and Kenneth Singleton's insight in 1982: the Euler equation must hold for every return, and in every state known in advance. Multiply its error by anything known today, and the average should be zero. Hansen's generalised method of moments, from Part six, picks the parameters that bring those averages closest to zero, and with more conditions than parameters, its J statistic tests whether they can all hold at once.
Fit it to the data. Risk aversion comes out at about , with a standard error of : large, and barely pinned down. And beta, the time discount factor, comes out at : above one, as if people valued the future more than the present. That is no accident. A gamma this large makes people desperate to smooth a growing consumption, which should push interest rates far up; only an impatience below zero can hold them at the low levels we see. Philippe Weil called it the risk-free rate puzzle. This is an unconstrained two-step fit on seventy-six annual observations, with a lag-zero covariance estimate. Beta above one, weak identification and an unreported optimiser-success diagnostic limit interpretation. The approximate J-test non-rejection does not validate the model or these parameter values; no HAC robustness or original-paper replication is established.
Why does the same gamma that explains a large equity premium predict a high riskless interest rate?
7The equity premium puzzleMaster's4 min
Put chapter six's numbers into the premium formula. The market paid points a year over bills, after inflation. The saved sample covariance with consumption log growth and the market log return is ; this mixed simple-return and log-return formula is an approximation. To reconcile them, gamma must be about . If that same CRRA coefficient applied directly to wealth, a person would pay percent of their wealth to avoid a fair bet that wins or loses ten: almost the whole downside, to escape a coin toss. Relating this wealth gamble to consumption risk aversion requires an additional mapping; it is not a direct empirical measurement of consumption preferences.
Rajnish Mehra and Edward Prescott put the puzzle in its classic form in 1985. A carefully calibrated version of Lucas's economy, with risk aversion up to ten, could produce an equity premium of at most a third of a percent a year. The data showed six. And raising risk aversion to close the gap sent the riskless rate through the roof. Forty years of research since has been, in large part, an attempt to answer them. Here are the three most important answers.
First, habits. John Campbell and John Cochrane let utility depend on consumption above a habit level that follows past consumption slowly. When a recession pushes consumption down toward the habit, the surplus shrinks and effective risk aversion soars. Investors then demand a large premium exactly when stocks have already fallen, which makes prices volatile and returns predictable, as chapter eight will find them to be, with a modest gamma at the core.
Second, long-run risk. Ravi Bansal and Amir Yaron suggested that consumption growth contains a small, very persistent component, almost invisible year by year, plus slowly changing volatility. With preferences that care about the timing of uncertainty, investors fear news about the long run, and stocks, whose dividends are exposed to it, must pay a large premium. The difficulty is that the key ingredient is, by construction, hard to measure.
Third, disasters. Thomas Rietz in 1988 and Robert Barro in 2006 argued that the data from calm countries miss the rare catastrophes: wars, depressions, revolutions. Barro counted them across thirty-five countries in the twentieth century: a contraction of fifteen percent or more in output, with a probability of about one point seven percent a year, averaging twenty-nine percent. Without disasters, a risk aversion of four gives a premium of a sixth of a point. With them, about percent; if the average disaster is forty percent deep, . This fixed-loss approximation illustrates a mechanism, not the full calibrated Barro economy. The full displayed range reaches about one hundred and thirteen percent at gamma ten for the forty-percent loss; no tail is clipped. A Jensen lower-bound argument applies only under the same probability law and mean with a convex loss term.
Where does that leave us? In these risk-based models, the premium compensates exposure to bad states. Smooth measured consumption challenges the simplest specification; the historical premium alone does not prove the risk-based explanation. Habits, long-run risk and disasters all fit the average premium; they differ in what they predict for volatility, predictability, and the prices of options on the market, which is where they are tested now. If crash risk is the mechanism, expected compensation is conditional and realised losses can still be permanent. Holding through a crash guarantees neither recovery nor a positive realised premium.
In a disaster model with a two percent yearly chance of a thirty percent fall, how would deep out-of-the-money index puts be priced, compared with a model without disasters?
8Prices move too muchMaster's3 min
Robert Shiller's question: do stock prices move too much to be explained by news about dividends?
Suppose a stock is worth its expected dividends, discounted at a constant rate, with a no-bubble transversality condition and a suitable stationary finite-second-moment transformation. Then today's price is the market's forecast of something we can compute after the fact: the present value of the dividends that actually arrived, which Shiller called the ex post rational price, p star. A rational forecast's error is uncorrelated with the forecast itself, so the variance of p star is the variance of the price plus the variance of the error. Prices must therefore be smoother than p star. That variance inequality holds under those assumptions. A full-sample detrended, finite-terminal empirical picture is an illustration and does not by itself establish a formal rejection of rational pricing.
Here is Shiller's picture, updated, on the data Shiller publishes, since 1871, adjusted for inflation and for the market's long-run growth. The present value of the dividends that were actually paid is a smooth, slow line: dividends simply did not vary much. The price swings around it, through the boom of the 1920s, the slump of the 1970s, the bubble of the late 1990s. Its standard deviation is against for p star. This reconstruction fits its trend on the whole sample and sets its terminal convention from the last ten detrended prices. January prices are monthly averages and dividends a rolling proxy; this is an illustrative reconstruction, not a traded annual total-return series or a formal test rejecting rationality.
John Campbell and Shiller developed a log-linear return approximation. Write the log return in terms of the price-dividend ratio, and linearise around its average. Iterate forward, and the dividend yield today equals discounted future returns minus discounted future dividend growth. At finite horizon a terminal yield term remains, together with linearisation error; an infinite-horizon expression needs a vanishing terminal condition. So the dividend yield's variance can be related to covariances with future returns and dividend growth, retaining the terminal and approximation residuals. These are not automatically identified news innovations.
Inspect the saved legacy diagnostic carefully. Its indexing skips the immediately next return: one hundred and thirty-six anchors from 1871 to 2006 use outcomes in years two through sixteen, ending in 2022. After normalising the two displayed covariance coefficients by their difference, about percent is the return contribution, not a share of all yield variance or identified news. The dividend contribution is positive, about fifteen percent; it does not have the alleged wrong sign. This shifted retrospective diagnostic is not a correctly timed next-fifteen-year Campbell-Shiller decomposition. No corrected market regression is introduced here. The broader discount-rate interpretation is debated, and these coefficients do not guarantee the next return.
What does it mean? Either discount rates really do vary a great deal, because investors' appetite for risk rises and falls, as the habit model of the last chapter predicts; or investors' expectations swing too far, as Shiller himself argued. The evidence is the same; the readings are opposite. In 2013 the Nobel committee gave the prize to Eugene Fama, Lars Hansen and Robert Shiller together. For a forecaster the practical point is narrower: returns are predictable over years, barely over months, and fragile out of sample, as Part six found.
The market's dividend yield is at a record low. What long-horizon alternatives and terminal terms are possible? Does the approximate identity determine the next return?
9Intermediaries price assetsPhD4 min
Perhaps the investor whose discount factor matters is not a household at all, but a dealer.
Households own most stocks in the end, but they rarely trade bonds, options, swaps or currencies directly. Dealers do. Zhiguo He and Arvind Krishnamurthy argued that the marginal investor in those markets is the intermediary, so its value of a dollar is the discount factor. When dealers' capital is scarce, a dollar to them is worth a great deal, and the assets they must hold pay a premium for loading on that scarcity. Zhiguo He, Bryan Kelly and Asaf Manela constructed a proxy for that scarcity: the equity capital ratio of the New York Fed's primary dealers' parent companies. The link to marginal utility is a model, not a measurement identity or causal proof.
Why should a dealer's capital matter so much? A worked balance sheet. A dealer holds a hundred dollars of assets with ten of equity: a capital ratio of ten percent. The assets fall five percent. Debt does not fall, so the whole loss comes out of equity, which halves to five, and the ratio drops to about five percent. To get back to ten percent with five dollars of equity the dealer can hold only fifty dollars of assets: with no new equity, it sells forty-five of its ninety-five and repays forty-five of debt, leaving assets fifty, debt forty-five and equity five. This arithmetic assumes no additional price impact or financing costs; raising equity is another option. If other constrained dealers do the same thing with the same assets, prices fall again, and the next round of losses begins. Markus Brunnermeier and Lasse Pedersen called these loss and margin spirals. So a dollar is worth most to a dealer exactly when capital is scarce, and assets that fall in those moments must pay a premium.
Here is their measure: the dealers' parent companies' market equity as a share of their equity plus debt. It falls in the crises: 1974, 1987, the early 2000s, and above all in the winter of 2008 and 2009, when it reached about percent. An asset that does badly when this ratio falls is an asset that loses money exactly when the people who must hold it can least afford to.
Their test is ambitious: one factor, the shocks to that capital ratio, should price assets in every market dealers make. Take their portfolios of stocks, Treasuries, sovereign bonds, options, credit default swaps, commodities and currencies, and run the two-pass regressions of Part six on the market and the capital factor. All seven saved capital-risk point estimates are positive. Four approximate Shanken t-statistics exceed one point nine six; positivity is not the same as significance. In stocks it raises the explained share of average returns from with the CAPM to . The commodity point estimate is also positive, with an approximate t-statistic of one point six. The classes use different available quarterly windows and full-sample first-stage betas. These approximate iid Shanken statistics are not HAC-robust, a joint seven-class test, causal evidence or an exact replication of the paper.
There is a rival measure. Tobias Adrian, Erkko Etula and Tyler Muir used broker-dealer leverage from the Fed's flow of funds: when leverage rises, dealers are flush, and a dollar to them is worth less. These papers measure different objects: book leverage of broker-dealers and market equity capital of their parents. Opposite signs cannot be interpreted as contradictory estimates of the same variable. But both point to the same idea, the one behind the bases of Part twenty-two: when the people who make markets are constrained, required returns and intermediation costs can change. Capital scarcity alone does not prove fundamental mispricing.
If dealers' capital prices assets, what should happen to the covered interest parity basis of Part twenty-two when bank equity falls, and why?
10Demand systems and inelastic marketsPhD3 min
Prices are set where demand meets supply; how steep is the demand curve for stocks?
The models so far say what investors should demand; Ralph Koijen and Motohiro Yogo asked what they do demand. They estimated every institution's demand for every stock from its quarterly holdings, filed with the SEC: portfolio weights as a function of the stock's price and characteristics, and prices as whatever makes all the demands add up to the shares outstanding. The key number is the elasticity of demand: how much less of a stock investors want when its price rises one percent. In textbook models it is enormous, because a mispriced stock is arbitraged away. In the holdings data it is small.
Shares held equal wealth times the portfolio weight divided by price. In this logit, the own-price derivative holds wealth, shares outstanding, characteristics and other prices fixed. Under those assumptions, elasticity is one minus beta-nought times one minus the weight. At a one-percent weight, beta-nought one gives point zero one; beta-nought zero gives one; beta-nought minus four gives four point nine six. These are fixed-wealth logit examples. The first is not a literal self-financing capitalisation-weighted index fund: its wealth and normalisation also change when prices change. Aggregating demand requires wealth, supply and cross-price feedback, so a weighted partial derivative is not by itself an aggregate equilibrium elasticity. Holdings estimates require an identification strategy, not simply reading a causal slope off a portfolio snapshot.
Why it matters, in a picture. The supply of shares is fixed. If demand is elastic, flat, a new buyer who shifts it to the right barely moves the price: someone else sells the moment the price drifts above value. If demand is steep, inelastic, the same buyer moves the price a long way, because the other holders are pension funds with fixed allocations and index mandates with limited active substitution. This is a fixed-supply partial-equilibrium sketch, not a literal claim that an index fund owns every share or buys without a budget.
Xavier Gabaix and Ralph Koijen estimated the elasticity for the market as a whole, from flows between stocks and bonds. They found it is about one fifth. So the multiplier is about five: in their estimated local allocation-shock framework, a dollar shift toward equities corresponds to about five dollars of valuation change. Every stock purchase has a seller; this is not net buying of shares by all holders combined. A hypothetical hundred-billion allocation-demand shock, a fifth of a percent of the market, lifts prices about one percent. They call it the inelastic markets hypothesis, and if it is right, flows, not just news, move prices, and a great deal of the volatility Shiller found is the market absorbing them.
The consequences are large if it is right. Index mandates may reduce active substitution, but aggregate elasticity also depends on wealth, financing, supply and other investors. Buybacks change both share supply and corporate cash or financing, so gross purchases alone do not determine their price effect. It is also contested: separating flows from the news that causes them is hard, and a single stock, where arbitrage between close substitutes is easier, is more elastic than the market as a whole.
If the market's elasticity is a fifth, what does a shift of one percent of the market from bonds to stocks do to prices, and who sells?
11Behaviour and the limits of arbitrageUndergraduate5 min
Behavioural finance, and why arbitrage cannot always fix what behaviour breaks. Nicholas Barberis and Richard Thaler described behavioural finance as resting on two pillars. The first is the limits of arbitrage: correcting a mispriced asset is itself risky and costly. The price can move further away before it comes back, borrowing a stock to short it costs money, and the arbitrageur's capital is finite. The second is psychology: systematic errors, such as extrapolating recent returns, overconfidence, and feeling losses more than gains, which create mispricing in the first place. Either alone is not enough. Errors that arbitrage could fix would be fixed; limits without errors would have nothing to limit.
The cleanest example came at the peak of the dot-com bubble. In March 2000 3Com sold five percent of its Palm subsidiary to the public and promised to hand the rest to its shareholders, about one and a half Palm shares for each 3Com share. On Palm's first day, the market valued 3Com at less than the Palm shares it owned: the rest of the company, Owen Lamont and Richard Thaler calculated, at about minus twenty-two billion dollars. The implied stub value suggested a convergence trade, not an unconditional riskless arbitrage: borrow availability, fees, recall and distribution timing mattered. It was limited by how few Palm shares could be borrowed to sell short, and what it cost to borrow them.
Andrei Shleifer and Robert Vishny made the limit precise. Noise traders push a price below its value; arbitrageurs buy with whatever funds they have, and the price is the value less what they cannot absorb. But arbitrageurs invest other people's money, and investors judge them by recent returns. After a loss, money is withdrawn. So if the mispricing deepens, the arbitrageurs lose capital exactly when the opportunity has improved, and the price falls further than the noise traders alone would push it.
In numbers: a stock worth one dollar, noise traders pessimistic by thirty cents and then by forty, arbitrage funds of twenty. After the first shock the price is ninety cents. Without withdrawals, the second shock would take it to eighty. The more investors pull money after losses, the lower it goes; at a withdrawal sensitivity of three, to sixty cents. Arbitrage is least effective exactly when it is most needed: this fixed-input toy illustrates a possible feedback, not a calibrated explanation of LTCM in 1998 or the basis moves of 2008 and March 2020. Here a equals zero means no return-sensitive fund reduction; the toy does not separately identify fund losses and outside withdrawals.
Prospect theory, in two curves. On the left, how a gain or loss feels. Amos Tversky and Daniel Kahneman estimated that losses weigh about two and a quarter times as much as equal gains, and that the curve flattens on both sides: the second thousand dollars lost hurts less than the first. On the right, how a probability is weighed. Small chances are overweighted: a one-percent chance receives a decision weight of about five and a half percent in this gain-side parameterisation. Decision weights are not subjective probabilities and need not add to one. In the cited model, those preferences can make investors overpay for lottery tickets, stocks with a small chance of an enormous gain. Nicholas Barberis and Ming Huang showed that such stocks should then earn less, and the most skewed stocks, new issues and penny stocks among them, have.
Trading records show a disposition pattern, often discussed alongside reference-dependent preferences. Terrance Odean studied ten thousand accounts at a discount broker. On every day an investor sold something, Odean asked what fraction of the winners in the account were sold. And what fraction of the losers. Winners were sold about one and a half times as readily, even though the winners sold went on to beat the losers kept. Investors measure gains and losses from the price they paid, and hate to make a paper loss real: the disposition effect. These are Odean's published estimates, not a computation on our own account data. A static prospect-theory kink alone does not generally derive this dynamic selling policy.
Three ideas recur on the psychological side. Noise-trader risk: if pessimists can grow more pessimistic before the price recovers, an arbitrageur with a short horizon faces risk even when the asset itself has none. Extrapolation: surveys show investors expect high returns after high returns, different from some historical valuation-based long-horizon return forecasts. That is not a contradiction of an accounting approximation or by itself proof of irrational expectations. And prospect theory, as the curves showed: losses weigh about twice as much as gains, and small chances are overweighted, which can make lottery-like stocks expensive. Each predicts patterns Part twenty-four will test as factors.
You run an arbitrage fund, and a position you are sure of loses twenty percent in a month. Your investors can withdraw monthly. What do you do, and what does everyone like you do to the price?
12BubblesUndergraduate4 min
Bubbles, and whether anyone can see one coming. What is a bubble? Eugene Fama's challenge: if prices that have risen a lot do not then predictably fall, the word means nothing; it is hindsight. Robert Shiller's answer: a bubble is an epidemic of optimism, rising prices drawing in buyers whose buying raises prices further. The disagreement can be tested: find every sharp run-up in history, and see what came after.
The bubble everyone remembers. The Nasdaq Composite, heavy with technology and internet companies, rose almost sevenfold between the start of 1995 and March 2000. It peaked on the tenth of March 2000 at about , and by October 2002 had lost percent. It took fifteen years to see the peak again. It looked like a bubble afterwards. Did it look like one before, in a way that could be measured?
Robin Greenwood, Andrei Shleifer and Yang You took up Fama's challenge. Find every American industry whose price doubled in two years, both outright and relative to the market. Then ask what happened next. On Kenneth French's forty-nine industries since 1926 there are such run-ups. percent of them crashed, falling forty percent from a peak within two years. And yet the average return over those two years was percent. This original descriptive implementation uses a relative wealth ratio, fills missing industry returns with zero, and keeps the first trigger with at least twenty-five months between triggers per industry. Its sixty saved events all have complete twenty-four-month follow-up, although the algorithm allows censoring. Events can overlap across industries. No matched unconditional crash baseline is computed, so these results alone cannot establish an increased crash probability or a profitable short strategy.
Every run-up, by when it happened and how far prices had climbed. Red ones subsequently crashed, the others did not; those colours use hindsight, and the full return multiples are retained without clipping. They cluster: the recovery of the 1930s, the go-go years of the late 1960s, the commodity boom of 1980, the late 1990s, and the 2020s. Greenwood, Shleifer and You found the crashes can be told apart, partly, in advance: run-ups with rising volatility, heavy share issuance and many young firms crashed more often. Those are findings of the cited paper; our simplified event table does not recompute their predictors or establish a matched-baseline probability improvement.
A bubble term must satisfy the same pricing equation as other payoffs: B today equals the expectation of next B times the stochastic discount factor. The physical-expectation formula on screen is a risk-neutral constant-required-return illustration, not the general risk-adjusted condition. Blanchard and Watson allow the bubble to burst; conditional on survival it must grow faster. With a five-percent required return and a ten-percent annual burst probability, the fixed illustration gives sixteen point seven percent conditional growth and ten years expected waiting time. No-bubble transversality excludes such a term. Under additional nonnegativity and positive-kernel assumptions, zero is absorbing. A known finite final payoff supports backward induction, while limits from wealth growth require further assumptions. Fixed supply alone does not rule out bubbles, and none of this identifies the Nasdaq as a rational bubble.
Theory has two strands. Rational bubbles, prices above value that grow at exactly the required return, can survive only in special conditions. More useful is the evidence that sophisticated investors ride bubbles instead of fighting them: Markus Brunnermeier and Stefan Nagel found hedge funds heavily in technology stocks in 1999, with evidence of portfolio-level timing, not proof that all funds exited perfectly before the peak. Their study does not establish a universal timing ability or certify the strategy's riskless profitability. For a risk manager the lesson is the one carry taught: the saved conditional sample contains large crash risk, but it has no matched unconditional comparison or reliable crash date. Position sizing must also account for liquidity, borrow and model uncertainty.
An industry has doubled in two years against the market. A crash follows about half the time, yet the average return after is positive. Would you short it?
13Rule 23: the research deskIndustry5 min
The House's twenty-third rule, for the desk it opens in this part: research. The research desk's first sheet, every number from this part. A tangency portfolio whose Sharpe ratio falls by more than half out of sample, beaten by equal weights. A security market line about a third as steep as the CAPM says. Twenty-five portfolios with high annualised monthly Sharpe ratios; divide by root twelve for the monthly HJ bound, without making an annual SDF claim. A risk aversion of nearly seventy to explain the premium. A finite-terminal Shiller illustration with full-sample detrending, not a formal rationality rejection. And a selected descriptive run-up sample that crashes about half the time, without an unconditional baseline. Each is a measurement and a warning: the expected return of anything is the hardest number in finance to know.
Three excerpts from the House's new module carry most of the part. The tangency portfolio: solve the covariance matrix against the expected excess returns, and normalise. The Hansen-Jagannathan bound: the same solve, and its square root is the highest Sharpe ratio the assets can form, which gives the necessary lower bound on a same-period discount factor's volatility divided by its mean, without positivity imposed. And Shleifer and Vishny's two prices: the second falls further when the arbitrageurs' money runs. The first two are the same line of linear algebra. That is the deepest point of the part: a portfolio choice and a pricing model are the same object seen from two sides, so every error in the expected returns becomes an error in the portfolio, magnified by the inverse of the covariance matrix.
This part has given three kinds of explanation for why something pays. Risk: the asset loses in bad times, and the premium is the price of that. The desk must name the bad state and check the asset actually loses there. A constraint: the premium goes to whoever has the balance sheet to hold the asset. The desk must name whose capital, and say what happens when it shrinks. An error: the premium is a mispricing, kept open by a limit to arbitrage. The desk must name the bias and the limit, and expect the premium to shrink once it is published. These are not exclusive, and the data rarely decide between them. But the reason matters for sizing: a risk-premium position tends to lose in the state you fear, and an error can be corrected overnight.
In practice the rule becomes a pipeline, and every later part of Act Four runs through it. A claim: this asset or strategy earns a premium, and it is paid in a stated state of the world. A reason, written down before the data are opened. An estimate, with its standard error and the number of variants tried along the way. A hold-out: performance on data the estimate never saw, against equal weights and the market. A stress: its worst month, and who else must sell in it. And the ledger: the result enters the House's track record, kept whether the premium survives or not, so that the desk's own trial count is never forgotten. Part twenty-four sends the first factors through it.
The research desk opens with these tools. The frontier, the minimum-variance and tangency portfolios; betas and the security market line; the discount factor's bounds and its Euler equations for GMM; the puzzle's arithmetic; Shiller's ex post rational price and the Campbell-Shiller split; and the limits to arbitrage, the flow multiplier and run-ups. And the twenty-third rule. Every expected return the House uses comes with its standard error, and the number of trials behind it. Every premium is given a reason, a risk, a constraint or an error, and the bad state in which it is paid. Every set of portfolio weights is judged out of sample, against equal weights. And every premium is sized for its crash, not its average.
Hold the rule against this part's cases. The optimiser: a tangency portfolio judged out of sample against equal weights would never have been traded on its in-sample Sharpe ratio. A new anomaly with a t-statistic of two point four: the rule asks how many tries found it, why it should pay, and in which state it loses, before anyone looks at the backtest's curve. The arbitrage fund: a convergence trade sized for the month its investors leave. And the industry that doubled: crash sizing is incomplete without liquidity, borrow, funding horizon and model uncertainty; the event frequency alone gives no trading rule. None of this makes the expected return easier to know. It makes the House honest about how little it knows.
For the researcher: speculative bubbles from disagreementPhD5 min
For the researcher: Chapter 12's rational bubbles needed an infinite horizon and a price growing at the interest rate. Here is a different kind: investors who agree to disagree, who cannot sell short, and who pay for the right to sell to someone more optimistic later. The price ends up above every investor's own valuation.
Michael Harrison and David Kreps wrote the model down in 1978. Each type of investor has its own view of how the dividend moves, and its own buy-and-hold value. Nobody can sell short, and there are many investors of each type, so the asset sits with whoever values it most: next period's dividend plus the price at which it can be sold tomorrow. Iterate, and the price is at least every type's buy-and-hold value, with strictness under changing strict optimists and suitable reachability, as in the positive transition matrices of this fixed example. Merely changing an arbitrary tie-break does not establish a strict premium. The excess is the value of the option to resell.
Their own example: a dividend of zero or one, two types, a discount factor of three quarters. Type 1 values the asset at one point three three or one point two two, by state; type 2 at one point four five or one point nine one. The market price is one point eight five and two point oh eight, exactly twenty-four and twenty-seven thirteenths: above both types' valuations, in both states. Type 1 holds in state zero, type 2 in state one, and each pays for the right to hand the asset to the other when the state turns.
Why must the price be at least every valuation? In each state the holder is the type with the highest continuation value, so the price is at least what any type would pay. Subtract that type's own buy-and-hold equation: the gap satisfies a positive linear inequality, and since the type's discounted transition matrix is a contraction with nonnegative entries, the gap cannot be negative. The short-sale constraint is essential: with it only the optimists' views enter the price, as Edward Miller argued in 1977; allowing pessimists to sell changes supply and the equilibrium problem. With risk-neutral investors and unlimited capital and shorts, an equilibrium may fail to exist; a unique lower price does not follow without additional wealth or risk constraints.
Now turn disagreement up from zero, keeping the average transition matrix fixed. That matrix is a chosen illustrative reference, not an estimated true probability law, and its buy-and-hold value is not the average of the two nonlinear valuation functions. With agreement there is no bubble. As beliefs spread apart, the price rises above the value under the average belief, almost linearly, to percent at Harrison and Kreps's pair. And above even the most optimistic investor's buy-and-hold value: the pure resale premium. This is a fixed numerical model comparison, not a market estimate. Turnover is computed under the chosen reference chain; it does not establish that trading volume rises continuously with disagreement.
José Scheinkman and Wei Xiong gave the idea its modern form in 2003. Two groups each overweight their own signal; their disagreement wanders like a mean-reverting diffusion, and the bubble is a perpetual American option on it, priced in closed form. It predicts that the bubble grows with overconfidence and with the volatility of disagreement, that it comes with very heavy trading, and that a trading cost cuts the trading a lot but the bubble only a little. And Wei Xiong and Jialin Yu reported evidence consistent with the mechanism, not unique identification: Chinese put warrants, almost surely worthless, trading at substantial prices with enormous turnover, in a market without short selling.
Three open questions. Where does disagreement come from: overconfidence, different models, different information? The bubble's predictions differ, and data rarely separate them. Real markets allow costly, limited shorting, and how the premium scales with borrowing fees and recall risk is only partly measured. And welfare: if investors agree to disagree, whose beliefs judge it? Markus Brunnermeier, Alp Simsek and Wei Xiong proposed a belief-neutral criterion in 2014; whether policy should lean against such bubbles is unsettled.
Pause and predict. If both types shared a common transition matrix Q, what would the price be? If only type two could buy, would the state-zero price exceed, equal or fall below sixteen elevenths, about one point four five five?
The answer: under common beliefs, price equals the unique buy-and-hold value for that transition matrix. If only type two can buy, price equals type two's value. In state zero it is exactly sixteen elevenths, about one point four five five, so the answer is equality. There is no option to resell to a different belief type.
Recap, desk questions, problemsAll tracks4 min
Part twenty-three in fourteen lines. A dollar in American stocks in 1926 became more than seventeen thousand; in bills, twenty-five. Markowitz drew the frontier of portfolios worth holding. Tobin showed that under the specified mean-variance and common financing assumptions investors share a risky tangency portfolio, and estimation error showed that its weights are almost unknowable: out of sample, equal weights did better. The CAPM said only beta is paid, and the security market line came out flat. One equation, price equals the expected discounted payoff, contains every model, and Hansen and Jagannathan bound its same-period coefficient of variation. Annualised monthly Sharpe must be divided by root twelve for a monthly bound. The APT and Merton's ICAPM allowed many factors, provided they are paid. Consumption models, estimated by GMM, need a risk aversion so large it is barely measured.
That is the equity premium puzzle, and habits, long-run risks and rare disasters are its candidate answers. Shiller found prices far more volatile than the dividends they forecast, and Campbell and Shiller motivated the study of return and cash-flow expectations; our saved diagnostic has a one-year indexing shift. All seven capital-risk point estimates are positive, with four approximate t-statistics above one point nine six; this is not joint or causal certification. The cited inelastic-market hypothesis proposes a local allocation-shock multiplier subject to identification assumptions. Behaviour creates mispricing, and arbitrage fails exactly when the arbitrageurs' money runs out. The selected run-up sample has substantial crash frequency but lacks an unconditional baseline and a timing guarantee. And the House's twenty-third rule asks every premium for its standard error, its reason, and the bad state in which it is paid.
Six desk questions. Two assets of twenty percent volatility and correlation a half: hold half of each, and the volatility is seventeen point three percent. The security market line is flat, on one reading, because investors who cannot borrow buy high-beta stocks for their risk, and bid them up; our mechanical BAB illustration uses future full-sample betas and does not certify implementable performance. An asset with a Sharpe ratio of two needs a same-period coefficient of variation of at least two if that is a raw same-period Sharpe; an annualised monthly value of two instead gives a monthly bound of two divided by root twelve; suspect the data before the theory.
The equity premium needs a risk aversion near seventy because consumption is smooth and only loosely tied to stocks. A low yield permits different long-horizon return, dividend-growth and terminal-yield paths, plus approximation error; it does not determine the next return. And with a demand elasticity of a fifth, a one-percent allocation-demand shock gives about five-percent price change only under the cited local model's assumptions, until the few unconstrained holders sell enough to absorb it. Full solutions are in the notes.
And twelve problems: the frontier by Lagrange; a two-asset minimum-variance portfolio; the tangency Sharpe ratio as the Hansen-Jagannathan bound; how many years a mean return needs; the CAPM derived, and its discount factor; the riskless-rate puzzle in numbers; marginal utility in a disaster; the Campbell-Shiller constant; and Shleifer and Vishny's prices by hand. Two more are qualifying-exam problems: Harrison and Kreps's fixed point, and when the premium vanishes. Solutions, in English and Chinese, are in the notes.
Where this comes back. Part twenty-four tests factors with Fama-MacBeth regressions and the GRS test, beginning with betting against beta. Part twenty-five faces hundreds of them, with trial counts and a shrinkage discount factor. Part twenty-six builds backtests that do not fool their authors. Part twenty-seven learns expected returns and a discount factor by machine. Part thirty builds portfolios that survive estimation error, and Part thirty-two sizes alternative premia for their crashes.
The textbooks this part follows, and the papers it draws on, from Markowitz's twelve pages in 1952 to the inelastic markets hypothesis. Original public-data computations, named fixed-model illustrations and quoted published estimates are distinguished in the notes. Simplified reconstructions are not exact paper replications; visual review does not certify continuous production narration.
That opens Act Four, on return premia, and the House's research desk. Next, Part twenty-four: factors. Size, value, momentum, profitability and low risk, each tested with the tools of this part and Part six, each given its history and its crashes, and each entered in the House's track record.
Where it goes next. The factors that fill the gap are Part 24; the optimizer's weakness is Part 30; the limits of arbitrage are measured in crises (Part 41).
Key results
The part's results in one place, for revision.
Try it
Lab 23 · The efficient frontier, true and estimated
Build a market where the CAPM holds exactly, draw its frontier and tangency portfolio, then re-estimate everything from ten years of simulated returns and measure how much Sharpe ratio the estimate throws away.
python -m videos.quant.labs 23
needs numpy, scipy, matplotlib, numba · download lab23.py ·
source on GitHubTrue tangency portfolio Sharpe 0.34; weights all 0.125 (it is the equal-weight market)
Estimated from 10 years, true Sharpe median 0.12, 5%-95% -0.08 to 0.26
Sharpe the optimizer reports in sample median 0.93
The optimizer is an error maximizer: it loads on whatever looked best in sample. Parts 30 and 31 are about taming it.
The code (65 lines; it asserts its own result)
"""Lab 23: the frontier, the tangency portfolio, and what ten years of data do to both."""
import numpy as np
from videos.quant import labs
from explainer.quant.house import premia
TITLE = "The efficient frontier, true and estimated"
GOAL = ("Build a market where the CAPM holds exactly, draw its frontier and tangency portfolio, then re-estimate "
"everything from ten years of simulated returns and measure how much Sharpe ratio the estimate throws away.")
TASKS = [
"Raise the sample from 120 to 1,200 months. How fast does the estimated tangency portfolio recover?",
"Regress simulated returns on the market with premia.capm_betas; do the alphas reject the CAPM at 5%?",
"Replace the estimated means by one common number. Which portfolio do you get, and how does it do?",
]
def run(seed=0):
rng = np.random.default_rng(seed)
n, rf = 8, 0.0
beta = np.linspace(0.5, 1.6, n)
resid = np.linspace(0.20, 0.12, n) / np.sqrt(12)
mkt_mu, mkt_sd = 0.06 / 12, 0.16 / np.sqrt(12)
Sigma = np.outer(beta, beta) * mkt_sd ** 2 + np.diag(resid ** 2)
# expected returns that make one portfolio (the "market") the tangency portfolio: mu = beta_m * premium
w_m = np.full(n, 1 / n)
mu = Sigma @ w_m / (w_m @ Sigma @ w_m) * mkt_mu
true = premia.tangency(mu, Sigma, rf)
sr_true = np.sqrt(12) * true["mean"] / true["sd"]
lost, claimed = [], []
for _ in range(400):
R = rng.multivariate_normal(mu, Sigma, 120)
est = premia.tangency(R.mean(0), np.cov(R.T), rf)
claimed.append(np.sqrt(12) * abs(est["mean"]) / est["sd"]) # what the optimizer believes it has found
lost.append(np.sqrt(12) * (est["w"] @ mu) / np.sqrt(est["w"] @ Sigma @ est["w"]))
lost, claimed = np.array(lost), np.array(claimed)
lab = labs.Lab()
lab.row("True tangency portfolio", f"Sharpe {sr_true:.2f}; weights all {true['w'][0]:.3f} (it is the equal-weight market)")
lab.row("Estimated from 10 years, true Sharpe", f"median {np.median(lost):.2f}, 5%-95% {np.percentile(lost, 5):.2f} to "
f"{np.percentile(lost, 95):.2f}")
lab.row("Sharpe the optimizer reports in sample", f"median {np.median(claimed):.2f}")
lab.note = ("The optimizer is an error maximizer: it loads on whatever looked best in sample. Parts 30 and 31 "
"are about taming it.")
assert np.allclose(true["w"], w_m, atol=1e-6) and np.median(lost) < 0.75 * sr_true < np.median(claimed)
fig, ax = labs.figure(2, size=(11, 4.2))
m = np.linspace(0.001, 0.012, 200)
sd = premia.frontier_sigma(m, mu, Sigma)
ax[0].plot(100 * np.sqrt(12) * sd, 1200 * m, color=labs.P, label="true frontier")
R = rng.multivariate_normal(mu, Sigma, 120)
mu_hat, S_hat = R.mean(0), np.cov(R.T)
m2 = np.linspace(mu_hat.min(), mu_hat.max() * 1.3, 200)
ax[0].plot(100 * np.sqrt(12) * premia.frontier_sigma(m2, mu_hat, S_hat), 1200 * m2, color=labs.LOSS, ls="--",
label="estimated from one 10-year sample")
ax[0].scatter(100 * np.sqrt(12 * np.diag(Sigma)), 1200 * mu, color=labs.SPOT, s=18, zorder=3, label="the assets")
ax[0].plot(100 * np.sqrt(12) * true["sd"], 1200 * true["mean"], "*", color=labs.P, ms=12)
ax[0].set(title="Mean against volatility (annual, %)", xlabel="volatility", ylabel="expected excess return",
xlim=(8, 34), ylim=(0, 14))
ax[0].legend(fontsize=8)
ax[1].hist(lost, bins=40, color=labs.SPOT)
ax[1].axvline(sr_true, color=labs.P, ls="--", label=f"true maximum {sr_true:.2f}")
ax[1].set(title="True Sharpe ratio of the estimated tangency portfolio", xlabel="annual Sharpe ratio")
ax[1].legend(fontsize=8)
lab.fig = fig
return lab
Now change it
- Raise the sample from 120 to 1,200 months. How fast does the estimated tangency portfolio recover?
- Regress simulated returns on the market with premia.capm_betas; do the alphas reject the CAPM at 5%?
- Replace the estimated means by one common number. Which portfolio do you get, and how does it do?
Problems, with solutions
Try each problem before opening its solution; the last two of each set are at qualifying-exam level.
Desk questions, with solutions
- Equal 20% volatilities, correlation 0.5: weights 1/2 each; variance 0.03, volatility 17.32%.
- A flat beta line can reflect financing constraints, proxy/model failure and estimation issues. The saved mechanical BAB result is retrospective, using whole-sample betas; it does not establish an implementable strategy.
- Raw same-period Sharpe 2 gives σ(m)/E[m]≥2 in that period. If 2 annualises monthly returns, the monthly bound is 2/√12≈0.577. Verify frequency, selection and tail exposure.
- Saved simple premium / sample log covariance gives 0.087813/0.001297214≈67.69, an approximation. Smooth consumption makes the covariance small; it does not directly measure wealth preferences.
- A low yield permits different long-horizon returns, dividend growth and terminal yields, plus approximation error. It does not fix the next return; the saved shifted diagnostic is not a correctly timed decomposition.
- Under the cited local allocation-shock assumptions, 1%/0.2≈5%. Sellers accommodate the shift; wealth, supply and news can alter this relation.
Problems, with worked solutions
-
The frontier. By Lagrange, show the frontier's variance at mean \(m\) is \((Cm^2 - 2Am + B)/D\) with \(A = \mathbf{1}^\top\Sigma^{-1}\mu\), \(B = \mu^\top\Sigma^{-1}\mu\), \(C = \mathbf{1}^\top\Sigma^{-1}\mathbf{1}\), \(D = BC - A^2\).
Solution
Minimise ½ w'Σw subject to w'μ = m and w'1 = 1. The first-order condition Σw = λμ + γ1 gives w = λΣ⁻¹μ + γΣ⁻¹1. The constraints become λB + γA = m and λA + γC = 1, so λ = (Cm − A)/D and γ = (B − Am)/D. Then σ² = w'Σw = λm + γ = (Cm² − 2Am + B)/D.
-
Two assets. Two assets: \(\sigma_1\) = 20%, \(\sigma_2\) = 10%, \(\rho\) = 0.3. Find the minimum-variance weights and volatility.
Solution
w₁ = (σ₂² − ρσ₁σ₂)/(σ₁² + σ₂² − 2ρσ₁σ₂) = (0.01 − 0.006)/(0.04 + 0.01 − 0.012) = 0.105, w₂ = 0.895. The variance is 0.105² × 0.04 + 0.895² × 0.01 + 2 × 0.105 × 0.895 × 0.006 = 0.00958, a volatility of 9.79%: a little below the safer asset's 10%.
-
Tangency and HJ. Show that the tangency portfolio's squared Sharpe ratio is \((\mu - r_f)^\top\Sigma^{-1}(\mu - r_f)\), and that it equals the square of the HJ coefficient-of-variation lower bound for same-period excess returns.
Solution
The tangency weights are proportional to z = Σ⁻¹(μ − r_f1); its excess mean is z'(μ − r_f1)/z'1 and its variance z'Σz/(z'1)² = z'(μ − r_f1)/(z'1)², so its Sharpe ratio squared is (μ − r_f1)'Σ⁻¹(μ − r_f1). This is the square of the necessary same-period HJ coefficient-of-variation lower bound. The bound itself is its square root. A positive-definite covariance and a normalisable positive-premium tangency are assumed; positivity of the pricing projection is not imposed.
-
How many years? A mean return is estimated from 30 years of annual data with volatility 18%. Find its standard error; how many years would halve it?
Solution
The standard error of a mean is σ/√T = 18%/√30 = 3.3% a year. Halving it needs four times as much data: 120 years. A premium of about 6% is barely two standard errors from zero after thirty years.
-
The CAPM. Show that if the market portfolio is the tangency portfolio, \(\mathbb{E}[R_i] - r_f = \beta_i(\mathbb{E}[R_m] - r_f)\).
Solution
The tangency condition is Σw_M = κ(μ − r_f1) for some κ > 0; the i-th row says cov(R_i, R_M) = κ(E[R_i] − r_f). For the market itself, var(R_M) = κ(E[R_M] − r_f). Dividing, E[R_i] − r_f = β_i(E[R_M] − r_f) with β_i = cov(R_i, R_M)/var(R_M).
-
The CAPM's discount factor. Show that \(m = a - bR_m\) prices every asset exactly when the CAPM holds, and find \(a\) and \(b\), using a known gross cash return. Does this linear pricing projection have to be positive?
Solution
For an excess return, 0 = E[mR^e] = E[m]E[R^e] + cov(m, R^e). With m = a − bR_M, cov(m, R^e) = −b cov(R_M, R^e), so E[R^e] = (b/E[m]) cov(R^e, R_M), which is the CAPM when b/E[m] = (E[R_M] − r_f)/var(R_M). Using gross market return R_M and known gross cash R_f consistently, cash pricing gives E[m] = 1/R_f, b = (E[R_M] − R_f)/(R_f var(R_M)) and a = 1/R_f + b E[R_M]. This linear pricing projection can be negative; CAPM pricing alone does not certify an equivalent probability density.
-
The riskless rate. In the lognormal CRRA model, derive \(r_f = \delta + \gamma g - \gamma^2\sigma_c^2/2\). With \(\delta\) = 1%, \(g\) = \(\sigma_c\) = 2% and \(\gamma\) = 10, what is \(r_f\)?
Solution
With m = e^{−δ}(C₁/C₀)^{−γ} and ln growth ~ N(g, σ²): 1/R_f = E[m] = e^{−δ − γg + γ²σ²/2}, so r_f = δ + γg − γ²σ²/2. With δ = 1%, g = σ = 2% and γ = 10: r_f = 0.01 + 0.20 − 0.02 = 19%, The 19% is a log rate in the iid Gaussian log-growth benchmark, not a simple rate. The saved bill proxy is nominal cash deflated ex post and has inflation risk; its mean cannot be called a known real risk-free rate.
-
A disaster. A disaster cuts consumption by \(b\) = 29%. With \(\gamma\) = 4, by what factor does marginal utility rise? Why does a 1.7% chance of it matter so much?
Solution
Marginal utility scales as C^{−γ}, so a 29% fall raises it by 0.71^{−4} ≈ 3.9 times. An asset that loses heavily in that state is paid for the loss weighted by nearly four, and with γ larger the weight explodes: a small probability times a large weight is a large premium.
-
The Campbell–Shiller constant. Derive the Campbell–Shiller approximation and \(\rho = 1/(1 + e^{\overline{dp}})\); with \(\overline{dp} = -3.25\), find \(\rho\).
Solution
R_{t+1} = (P_{t+1} + D_{t+1})/P_t; in logs r = pd_{t+1} − pd_t + Δd + ln(1 + e^{−pd_{t+1}}). A first-order expansion of the last term around the mean gives κ + ρ pd_{t+1} with ρ = 1/(1 + e^{dp̄}) (dp̄ the mean log dividend yield). With dp̄ = −3.25, ρ = 1/(1 + e^{−3.25}) = 0.963.
-
Shleifer–Vishny. Shleifer–Vishny with \(V\) = 1, \(S_1\) = 0.3, \(S_2\) = 0.4, \(F_1\) = 0.2, \(a\) = 1.5: find \(p_1\), \(p_2\) and \(F_2\).
Solution
p₁ = V − S₁ + F₁ = 1 − 0.3 + 0.2 = 0.90. p₂ = (V − S₂ + F₁(1 − a))/(1 − aF₁/p₁) = (1 − 0.4 − 0.1)/(1 − 0.3/0.9) = 0.5/0.667 = 0.75 (against 0.80 with a=0, no return-sensitive fund reduction). F₂ = F₁ + aF₁(p₂/p₁ − 1) = 0.2 + 0.3 × (−0.167) = 0.15: the fund loses a quarter of its capital just as the price is furthest from value.
-
(qual) The fixed point. (qual) In Harrison and Kreps's model show that \(P = \beta\max_i Q_i(d + P)\) has a unique solution, that \(P \ge \max_i V_i\), and compute \(P\) for their example (\(24/13\), \(27/13\)).
Solution
The map TP = β max_i Q_i(d + P) is monotone and satisfies |TP − TP′|∞ ≤ β|P − P′|∞ (each Q_i is a stochastic matrix and max is 1-Lipschitz), so it is a contraction with a unique fixed point. Since P = TP ≥ βQ_i(d + P) and V_i = βQ_i(d + V_i), P − V_i ≥ βQ_i(P − V_i); iterating, P − V_i ≥ (βQ_i)ⁿ(P − V_i) → 0. For the example, guess the holders (type 1 in state 0, type 2 in state 1) and solve the linear system P₀ = ¾[½(0 + P₀) + ½(1 + P₁)], P₁ = ¾[¼(0 + P₀) + ¾(1 + P₁)]: P₀ = 24/13, P₁ = 27/13; check that the guessed type is indeed the higher bidder in each state.
-
(qual) When the premium vanishes. (qual) Show that if one type is the most optimistic in every state, \(P = \max_i V_i\): the speculative premium needs the identity of the optimist to change with the state.
Solution
If type j has the highest Q_j(d + P) in every state, P = βQ_j(d + P), the same equation as V_j, whose solution is unique: P = V_j = max_i V_i. Strict premiums require changing strict optimists and suitable reachability, rather than an arbitrary change of tie-break. The positive transition matrices in the fixed example satisfy the relevant conditions.
Reading and notes
The part's papers
from READING.md
- Markowitz, H. (1952). "Portfolio selection." Journal of Finance.
- Tobin, J. (1958). "Liquidity preference as behavior towards risk." REStud.
- Sharpe, W. (1964). "Capital asset prices: a theory of market equilibrium under conditions of risk." Journal of Finance.
- Lintner, J. (1965). "The valuation of risk assets and the selection of risky investments in stock portfolios and capital budgets." REStat.
- Mossin, J. (1966). "Equilibrium in a capital asset market." Econometrica.
- Black, F. (1972). "Capital market equilibrium with restricted borrowing." Journal of Business.
- Merton, R. C. (1973). "An intertemporal capital asset pricing model." Econometrica.
- Ross, S. A. (1976). "The arbitrage theory of capital asset pricing." JET.
- Roll, R. (1977). "A critique of the asset pricing theory's tests." JFE.
- Lucas, R. (1978). "Asset prices in an exchange economy." Econometrica.
- Breeden, D. (1979). "An intertemporal asset pricing model with stochastic consumption and investment opportunities." JFE.
- Shiller, R. (1981). "Do stock prices move too much to be justified by subsequent changes in dividends?" AER.
- Mehra, R., Prescott, E. (1985). "The equity premium: a puzzle." J. Monetary Economics.
- Campbell, J. Y., Shiller, R. (1988). "The dividend-price ratio and expectations of future dividends and discount factors." RFS.
- Rietz, T. (1988). "The equity risk premium: a solution." J. Monetary Economics.
- Epstein, L., Zin, S. (1989). "Substitution, risk aversion, and the temporal behavior of consumption and asset returns." Econometrica.
- Weil, P. (1989). "The equity premium puzzle and the risk-free rate puzzle." J. Monetary Economics.
- De Long, J. B., Shleifer, A., Summers, L., Waldmann, R. (1990). "Noise trader risk in financial markets." JPE.
- Hansen, L. P., Jagannathan, R. (1991). "Implications of security market data for models of dynamic economies." JPE.
- Shleifer, A., Vishny, R. (1997). "The limits of arbitrage." Journal of Finance.
- Barberis, N., Shleifer, A., Vishny, R. (1998). "A model of investor sentiment." JFE; Daniel, K., Hirshleifer, D., Subrahmanyam, A. (1998). "Investor psychology and security market under- and overreactions." Journal of Finance.
- Campbell, J. Y., Cochrane, J. (1999). "By force of habit." JPE.
- Barberis, N., Thaler, R. (2003). "A survey of behavioral finance." Handbook of the Economics of Finance.
- Abreu, D., Brunnermeier, M. (2003). "Bubbles and crashes." Econometrica.
- Scheinkman, J., Xiong, W. (2003). "Overconfidence and speculative bubbles." JPE.
- Bansal, R., Yaron, A. (2004). "Risks for the long run." Journal of Finance.
- Brunnermeier, M., Nagel, S. (2004). "Hedge funds and the technology bubble." Journal of Finance.
- Barro, R. (2006). "Rare disasters and asset markets in the twentieth century." QJE.
- Cochrane, J. (2011). "Presidential address: Discount rates." Journal of Finance.
- He, Z., Krishnamurthy, A. (2013). "Intermediary asset pricing." AER.
- Wachter, J. (2013). "Can time-varying risk of rare disasters explain aggregate stock market volatility?" Journal of Finance.
- Adrian, T., Etula, E., Muir, T. (2014). "Financial intermediaries and the cross-section of asset returns." Journal of Finance.
- He, Z., Kelly, B., Manela, A. (2017). "Intermediary asset pricing: new evidence from many asset classes." JFE.
- Martin, I. (2017). "What is the expected return on the market?" QJE; Martin, I., Wagner, C. (2019). "What is the expected return on a stock?" Journal of Finance.
- Koijen, R., Yogo, M. (2019). "A demand system approach to asset pricing." JPE.
- Greenwood, R., Shleifer, A., You, Y. (2019). "Bubbles for Fama." JFE.
- Gabaix, X., Koijen, R. (2021). "In search of the origins of financial fluctuations: the inelastic markets hypothesis." NBER WP.
- Haddad, V., Huebner, P., Loualiche, E. (2025). "How competitive is the stock market? Theory, evidence from portfolios, and implications for the rise of passive investing." AER (verify).
Papers and sources
Papers, chapter by chapter
- Hook: Kenneth French's data library; the history strip's papers below.
- ch. 1–2: Markowitz (1952); Tobin (1958); Merton (1972) on the frontier's algebra; Black and Litterman (1992); Jagannathan and Ma (2003); Ledoit and Wolf (2004); DeMiguel, Garlappi and Uppal (2009).
- ch. 3: Sharpe (1964); Lintner (1965); Black (1972); Black, Jensen and Scholes (1972); Fama and MacBeth (1973); Blume (1971, 1975); Vasicek (1973); Roll (1977); Frazzini and Pedersen (2014).
- ch. 4: Harrison and Kreps (1979); Hansen and Jagannathan (1991); Cochrane, Asset Pricing, ch. 1 and 5.
- ch. 5: Ross (1976); Merton (1973); Connor and Korajczyk (1986).
- ch. 6–7: Lucas (1978); Breeden (1979); Hansen (1982); Hansen and Singleton (1982); Mehra and Prescott (1985); Rietz (1988); Weil (1989); Epstein and Zin (1989); Campbell and Cochrane (1999); Bansal and Yaron (2004); Barro (2006).
- ch. 8: Shiller (1981); LeRoy and Porter (1981); Campbell and Shiller (1988); Cochrane (2011).
- ch. 9: Brunnermeier and Pedersen (2009); He and Krishnamurthy (2013); Adrian, Etula and Muir (2014); He, Kelly and Manela (2017).
- ch. 10: Koijen and Yogo (2019); Gabaix and Koijen (2021).
- ch. 11: De Long, Shleifer, Summers and Waldmann (1990); Tversky and Kahneman (1992); Shleifer and Vishny (1997); Odean (1998); Barberis and Thaler (2003); Lamont and Thaler (2003); Barberis and Huang (2008); Greenwood and Shleifer (2014).
- ch. 12: Blanchard and Watson (1982); Diba and Grossman (1988); Abreu and Brunnermeier (2003); Brunnermeier and Nagel (2004); Greenwood, Shleifer and You (2019).
Textbook audit
| Textbook | Chapters | Where |
|---|---|---|
| Cochrane, Asset Pricing | 1 (p = E[mx]), 4–6 (the SDF, mean–variance, factor models), 9 (CAPM, APT, ICAPM), 10–11 (GMM), 20–21 (the equity premium, predictability, volatility) | ch. 1–9 |
| Campbell, Financial Decisions and Markets | 2–3 (mean–variance), 4 (the SDF), 5 (the CAPM and its tests), 6 (consumption, the puzzle, habit, long-run risk, disasters), 9 (behavioural finance) | ch. 1–8, 11 |
| Back, Asset Pricing and Portfolio Choice Theory | 5 (mean–variance), 6 (factor pricing), 7 (consumption) | ch. 1–6 |
| Duffie, Dynamic Asset Pricing Theory | 1–2 (state prices, the SDF), 10 (Lucas) | ch. 4, 6 |
| Shleifer, Inefficient Markets | 1–4 (noise traders, limits of arbitrage, the 3Com case's kind) | ch. 11–12 |
Data, scope and reproducibilityScientific and data scope
- Portfolio choice: the unrestricted frontier assumes positive-definite covariance and D>0. Tangency separation also requires a normalisable positive-premium portfolio, mean–variance preferences and common unconstrained financing. The correlation endpoints ±1 in the two-asset picture are singular algebraic illustrations, not separately established arbitrage-free equilibria; inverse-covariance formulas use the stated positive-definite case. The full saved empirical frontier is visible. Actual telecom, shops and other weights are −28.8%, +44.0% and −55.7%. The original 1990–2007 fit is rebalanced monthly to fixed weights during 2008–2020, with shorts and zero costs; it does not hold fixed share counts.
- CAPM: portfolio grouping reduces idiosyncratic beta noise but does not eliminate common errors or time variation. Low beta is not a total-safety ranking. The mechanical 5.2% BAB illustration uses whole-sample betas, including future information; it is retrospective, not implementable or published BAB performance. Its naive t-statistic is not robust certification. Stock-index tests jointly test the model and market proxy.
- SDF: E[Rᵉ] = −cov(m,Rᵉ)/E[m]. A linear factor projection may change sign. Only a positive factor, correctly normalised with a known one-period gross cash return (conditionally when needed), defines a probability density. Option prices constrain traded payoffs; limited quotes do not identify every state.
- HJ: bars show monthly Sharpe ratios multiplied by √12. Divide by √12 for the monthly SDF coefficient-of-variation bound; they are not annual SDF bounds. The named
review_audits.pydisplay audit reproduces the original gross-return bound at all original grid points, then evaluates the same saved sample moments on a declared 301-point grid [0.5,1.02]. It introduces no fitting, strategy trial or performance series. The 1948–2024 sample has 77 observations. The full bound reaches 20.515. All seven original CRRA points fail the necessary bound at their own means: the earlier claim that gamma 20 reaches it is false. At gamma 20, sd(m)=0.275 versus bound 12.460; at 50, 0.618 versus 18.688. The bill is nominal cash deflated ex post and has inflation risk. This L2 bound omits positivity; satisfying it would not establish a positive factor pricing all assets. - APT/PCA: the 2A−B example is exact arbitrage only if residual risks cancel and cash/shorting assumptions hold. B adjusts to 13% only if A and cash are fixed. PCA components, betas and mean returns use the same 1970–2025 sample and assets: descriptive in-sample fit, not structural or out-of-sample pricing evidence. PC signs are arbitrary; the reported market correlation is absolute. The full cumulative first-ten share (80.69%) is retained.
- Consumption/GMM: current-vintage broad real per-capita PCE includes durables; Q4 is a quarter average timestamped October, not a December instant. Annual consumption and returns run through 2024. The first-order premium formula and log-rate benchmark need their payoff/distribution assumptions. The saved unconstrained two-step fit uses 76 observations, lag-0 covariance, beta 1.507 and gamma 27.28 (SE 21.69), J=5.415, p=0.247. Weak identification, no stored optimiser-success diagnostic and no HAC check limit interpretation; non-rejection is not validation.
- Premium/disasters: the 8.781% arithmetic real excess mean differs from the opening's compound-growth gap. Implied gamma uses the saved ddof-1 covariance 0.001297214 (not an exact product of differently normalised standard deviations), giving 67.69 in a mixed simple/log approximation. Mapping its wealth gamble to consumption needs extra assumptions. Fixed-loss disaster curves retain their full tails: the 40% loss curve reaches 112.86% at gamma 10. They are not a full Barro calibration; Jensen comparisons require the same law and mean with a convex loss term. Historical premia alone do not prove a risk explanation or guarantee recovery after a crash.
- Shiller: the variance argument needs constant discounting, no-bubble transversality and suitable stationary finite second moments. The empirical picture fits a full-history trend and uses a last-ten-price terminal convention; it is illustrative rather than a formal rationality rejection. January prices are monthly averages, with a rolling dividend proxy. The saved legacy CS routine skips the next return: its 136 anchors (1871–2006) use years 2–16, ending 2022. We preserve the protected algorithm and do not introduce a corrected market regression. This is not a correctly aligned next-15-year decomposition. Bars normalise b_r=0.50185 and −b_d=0.09157 by their sum; about 84.6%/15.4%, not all yield variance. The dividend contribution is positive. Finite-horizon terminal terms and linearisation error remain; no next-return guarantee or identified news split follows.
- Intermediaries: all seven saved capital-risk point estimates are positive; four approximate Shanken t-values exceed 1.96. Commodities are positive too (t≈1.57). Class windows differ, betas use each full sample, and iid-style statistics are not HAC, joint, causal or exact-paper certification. Book dealer leverage and parents' market capital are different measures. The balance-sheet example sells 45 and repays debt, assuming no additional impact/costs; raising equity is another choice. Scarcity alone does not prove mispricing.
- Demand: the logit derivative holds wealth, shares outstanding, characteristics and other prices fixed. Its beta-zero=1 example is not a literal self-financing index-fund elasticity. Aggregate equilibrium needs wealth, supply and cross-price feedback. The cited Gabaix–Koijen multiplier near five is a local allocation-shock hypothesis subject to identification; every share purchase has a seller. Buybacks also change corporate cash/financing.
- Behaviour: prospect decision weights are not perceived probabilities. A static loss kink alone does not generally derive a dynamic disposition policy. Odean's estimates and the Palm stub value are quoted, not recomputed; the latter is not an unconditional riskless arbitrage given borrow/recall, costs and distribution timing. Shleifer–Vishny inputs form a toy, not a calibrated history of LTCM or crisis bases.
- Run-ups: the implemented relative threshold is (1+R_industry)/(1+R_market)−1>1, not R_industry−R_market>1. The source has 2,868 missing industry cells, filled with zero by the original code. It keeps the first trigger, at least 25 months apart within each industry; cross-industry events overlap. All 60 saved events have complete 24-month follow-up (latest July 2022), though the algorithm permits censoring. 53.3% crash and +19.9% mean subsequent return are conditional descriptive summaries. No matched unconditional baseline, trading costs or executable short performance is computed. Chart colours use hindsight; full multiples up to 6.228 are shown. Cited predictor and hedge-fund studies do not prove universal pre-peak exit.
- Bubbles/research: general pricing is B_t=E_t[m B_next]; physical expected-growth examples need risk-neutral/constant-required-return assumptions. No-bubble transversality excludes bubbles. Nonnegative/positive-kernel and finite-payoff restrictions are conditional; fixed supply alone is insufficient. Harrison–Kreps uses next-period dividends. Strict premiums need changing strict optimists and reachability, not ties. The sweep holds a chosen average transition matrix fixed, not a measured true law or average valuation. Unlimited risk-neutral shorting can prevent equilibrium. Common beliefs give P=V_Q; only type 2 gives state-zero price exactly 16/11≈1.455. A worked answer is shown. Turnover and warrant evidence do not uniquely identify the mechanism.
Data, scope and reproducibilityData, reproducibility and QA scope
The 13 original computations restored through their normal recorded hash checks: 13 successes, zero blocked. No force/refresh, protected algorithm edit, new market trial, registry mutation or sealed experiment opening. The cumulative counter remains 317 through Part 23, global 23,562. All 98 protected files retain baseline hashes.
Public French bytes through December 2025 are read, including by _ff() before tests restrict their dates. This is distinct from sealed experiment payloads; do not claim no public 2021–2025 observations were read. Original fitted-window illustrations stop at December 2020; public descriptive series can extend later. FRED provides broad PCE, CPI and Nasdaq; Shiller and HKM provide their published data. Consumption actually ends in 2024. Published Palm, disaster, elasticity, prospect and account estimates remain cited estimates.
The display audit is a separately named fixed numerical illustration (hj_display_audit), with its original-cache hash, sample moments and grid saved. It leaves legacy caches untouched. Three existing pure numerical regressions pass; they do not validate empirical timing.
python -m videos.quant.quant23.compute # normal original checks; never add --force/refresh
python -m videos.quant.quant23.review_audits
EXPLAINER_TTS=silent python tools/qa_scene.py quant23 SDF
Current final render evidence is reported separately in the QA ledger. Source preflight, sampled generated speech and silent-preview timing are distinct from continuous production narration listening and pronunciation certification, which remain a separate scope.
Chapter notesChapters and practice
Opening; 1 Markowitz; 2 Tobin and estimation; 3 CAPM; 4 SDF and HJ; 5 APT/ICAPM; 6 consumption/GMM; 7 premium puzzle; 8 Shiller; 9 intermediaries; 10 demand; 11 behaviour; 12 bubbles; 13 House research; researcher: disagreement; outro. Twelve problems appear on three numbered pages (1–6, 7–10, 11–12). The lab displays the unchanged House functions tangency, hj_excess and shleifer_vishny.
中文讲义
本讲的中文说明、交易台问题与习题解答(与英文版对应)。
导言第23部分:风险与收益
第四幕从组合选择、均衡定价和消费模型,走向中介资本、需求、行为和转售泡沫。十六个场景,英文讲稿估计约六十分钟;实际媒体时长另行测量。公开数据原始计算、固定数值示例和引用论文数字应分别解释,简化重构不是精确论文复现。
Desk questions, with solutions六个交易台解答
- 各半,方差0.03,波动率17.32%。
- 平贝塔线可能涉及融资约束、代理与估计问题;全样本贝塔BAB不是可执行策略复现。
- 原始同频率夏普二给同频率HJ变异系数下界二;若二是月度夏普年化值,月度下界2/√12≈0.577。
- 0.087813/0.001297214≈67.69是混合简单和对数收益的近似,不是直接财富偏好估计。
- 低股利收益率允许多种长期收益、股利、终端项与近似误差组合,不决定下一期收益;所存诊断有移位。
- 在引用的局部配置冲击假设下,1%/0.2≈5%;所有购买有卖方,还需考虑财富、供给和信息。
Problems, with worked solutions习题与解答
-
前沿。 用拉格朗日方法证明均值为\(m\)时前沿的方差为\((Cm^2 - 2Am + B)/D\),其中\(A = \mathbf{1}^\top\Sigma^{-1}\mu\)、\(B = \mu^\top\Sigma^{-1}\mu\)、\(C = \mathbf{1}^\top\Sigma^{-1}\mathbf{1}\)、\(D = BC - A^2\)。
解答
在w'μ = m、w'1 = 1的约束下最小化½ w'Σw。一阶条件Σw = λμ + γ1给出w = λΣ⁻¹μ + γΣ⁻¹1。约束变为λB + γA = m和λA + γC = 1,所以λ = (Cm − A)/D,γ = (B − Am)/D。于是σ² = w'Σw = λm + γ = (Cm² − 2Am + B)/D。
-
两个资产。 两个资产:\(\sigma_1\) = 20%,\(\sigma_2\) = 10%,\(\rho\) = 0.3。求最小方差权重和波动率。
解答
w₁ = (σ₂² − ρσ₁σ₂)/(σ₁² + σ₂² − 2ρσ₁σ₂) = (0.01 − 0.006)/(0.04 + 0.01 − 0.012) = 0.105,w₂ = 0.895。方差为0.105² × 0.04 + 0.895² × 0.01 + 2 × 0.105 × 0.895 × 0.006 = 0.00958,波动率9.79%:略低于较安全资产的10%。
-
切点组合与HJ界。 证明切点组合夏普比率平方为\((\mu-r_f)^\top\Sigma^{-1}(\mu-r_f)\),等于同频率超额收益的HJ变异系数必要下界的平方。
解答
切点组合的权重与z = Σ⁻¹(μ − r_f1)成正比;它的超额均值为z'(μ − r_f1)/z'1,方差为z'Σz/(z'1)² = z'(μ − r_f1)/(z'1)²,所以夏普比率的平方为(μ − r_f1)'Σ⁻¹(μ − r_f1)。该表达式是同频率HJ变异系数必要下界的平方,下界本身需要开平方。假定协方差正定、正溢价切点可以归一化,并未施加定价投影的正性。
-
需要多少年? 用30年、波动率18%的年度数据估计平均收益。求其标准误;需要多少年才能把它减半?
解答
均值的标准误为σ/√T = 18%/√30 = 每年3.3%。减半需要四倍的数据:120年。约6%的溢价在三十年后只比零大两个标准误左右。
-
CAPM。 证明如果市场组合是切点组合,则\(\mathbb{E}[R_i] - r_f = \beta_i(\mathbb{E}[R_m] - r_f)\)。
解答
切点条件为Σw_M = κ(μ − r_f1),κ > 0;第i行给出cov(R_i, R_M) = κ(E[R_i] − r_f)。对市场本身,var(R_M) = κ(E[R_M] − r_f)。相除得E[R_i] − r_f = β_i(E[R_M] − r_f),β_i = cov(R_i, R_M)/var(R_M)。
-
CAPM的贴现因子。 证明CAPM成立时线性投影\(m=a-bR_m\)可为资产定价,并用已知现金总收益求\(a,b\)。该线性定价投影一定为正吗?
解答
对超额收益,0 = E[mR^e] = E[m]E[R^e] + cov(m, R^e)。取m = a − bR_M,cov(m, R^e) = −b cov(R_M, R^e),所以E[R^e] = (b/E[m]) cov(R^e, R_M);当b/E[m] = (E[R_M] − r_f)/var(R_M)时这就是CAPM。为现金定价确定E[m] = 1/R_f,所以b = (E[R_M] − R_f)/(R_f var(R_M)),a = 1/R_f + b E[R_M]。这些系数统一使用市场和现金总收益;线性定价投影可能为负,不能自动当作概率密度。
-
无风险利率。 在对数正态CRRA模型中推导\(r_f = \delta + \gamma g - \gamma^2\sigma_c^2/2\)。若\(\delta\) = 1%,\(g\) = \(\sigma_c\) = 2%,\(\gamma\) = 10,\(r_f\)是多少?
解答
取m = e^{−δ}(C₁/C₀)^{−γ},对数增长 ~ N(g, σ²):1/R_f = E[m] = e^{−δ − γg + γ²σ²/2},所以r_f = δ + γg − γ²σ²/2。δ = 1%、g = σ = 2%、γ = 10时:r_f = 0.01 + 0.20 − 0.02 = 19%,这里百分之十九是独立同分布正态对数增长基准中的对数利率。所存国库券代理用事后通胀平减,仍有通胀风险,均值不是已知实际无风险利率。
-
一次灾难。 一场灾难使消费下降\(b\) = 29%。\(\gamma\) = 4时边际效用上升多少倍?为什么1.7%的发生概率如此重要?
解答
边际效用与C^{−γ}成比例,所以下跌29%使它上升0.71^{−4} ≈ 3.9倍。在这种状态下大幅亏损的资产,其损失以接近四的权重计价;γ更大时权重会爆炸:很小的概率乘以很大的权重,就是很大的溢价。
-
Campbell–Shiller常数。 推导Campbell–Shiller近似以及\(\rho = 1/(1 + e^{\overline{dp}})\);若\(\overline{dp} = -3.25\),求\(\rho\)。
解答
R_{t+1} = (P_{t+1} + D_{t+1})/P_t;取对数r = pd_{t+1} − pd_t + Δd + ln(1 + e^{−pd_{t+1}})。在均值附近对最后一项做一阶展开得到κ + ρ pd_{t+1},其中ρ = 1/(1 + e^{dp̄})(dp̄为平均对数股息率)。dp̄ = −3.25时,ρ = 1/(1 + e^{−3.25}) = 0.963。
-
Shleifer–Vishny。 Shleifer–Vishny模型,\(V\) = 1,\(S_1\) = 0.3,\(S_2\) = 0.4,\(F_1\) = 0.2,\(a\) = 1.5:求\(p_1\)、\(p_2\)和\(F_2\)。
解答
p₁ = V − S₁ + F₁ = 1 − 0.3 + 0.2 = 0.90。p₂ = (V − S₂ + F₁(1 − a))/(1 − aF₁/p₁) = (1 − 0.4 − 0.1)/(1 − 0.3/0.9) = 0.5/0.667 = 0.75(a为零、无收益敏感资金下降时为0.80)。F₂ = F₁ + aF₁(p₂/p₁ − 1) = 0.2 + 0.3 × (−0.167) = 0.15:恰在价格离价值最远时,基金损失了四分之一的资本。
-
(资格考试)不动点。 (资格题)在Harrison与Kreps模型中,证明\(P=\beta\max_iQ_i(d+P)\)解唯一且\(P\ge\max_iV_i\),计算例子中的\(P=(24/13,27/13)\)。
解答
映射TP = β max_i Q_i(d + P)单调且满足|TP − TP′|∞ ≤ β|P − P′|∞,是压缩映射,有唯一不动点。由P = TP ≥ βQ_i(d + P)与V_i = βQ_i(d + V_i)得P − V_i ≥ βQ_i(P − V_i),迭代得P − V_i ≥ 0。对例子,猜测持有者(状态0为第1类,状态1为第2类)并解线性方程组P₀ = ¾[½P₀ + ½(1 + P₁)]、P₁ = ¾[¼P₀ + ¾(1 + P₁)]:P₀ = 24/13,P₁ = 27/13;再验证所猜的类型在每个状态下确实出价更高。
-
(资格考试)溢价何时消失。 (资格题)若同一类在每个状态最乐观,证明\(P=\max_iV_i\)。严格投机溢价需乐观者随状态改变;严格性还需适当可达条件。
解答
若第j类在每个状态下都有最高的Q_j(d + P),则P = βQ_j(d + P),与V_j的方程相同,而其解唯一:P = V_j = max_i V_i。严格溢价需要严格乐观者改变和适当可达性,仅改变平手时的持有人不够。本例的正转移矩阵满足相关条件。
Data, scope and reproducibility科学口径与限制
- 前沿假定协方差正定和D>0;Tobin分离还需共同输入、均值方差偏好和相同无限制融资条件。两资产图的相关系数±1端点是奇异的代数示例,并未单独建立无套利均衡;逆协方差公式使用正定条件。原拟合切点在2008–2020年月度再平衡到固定权重,允许卖空、忽略成本,不是固定股数。BAB使用全样本未来贝塔,属于回顾示例;贝塔低不等于总风险安全。
- 超额收益为−cov(m,Rᵉ)/E[m],分母不可省略。线性定价投影可为负,不能自动当作正贴现因子或概率密度。风险中性变换需正性和已知一期现金总收益,必要时使用条件期望。
- HJ柱是月度夏普乘√12,除以√12才是月度变异系数下界,不能解释为年度贴现因子波动。命名的固定显示审计保持原样本矩和公式,在预定301点网格完整显示曲线,不新增拟合、策略试验或业绩序列。1948–2024年77个观测中,七个CRRA点全部低于各自均值下的必要界;伽马二十并未碰到曲线。国库券事后平减仍有通胀风险,下界未施加正性。
- APT零因子贝塔并不保证零残差风险;严格套利还需卖空与融资条件。PCA因子、暴露、均值使用同一资产与全样本,只是样本内描述;主成分符号任意,市场相关用绝对值。
- 消费采用当前版本、含耐用品的广义PCE;第四季度是季度平均,时间戳十月,并非十二月瞬时值。实际年度数据到2024年。无约束两步GMM用76观测、零滞后协方差;贝塔1.507,伽马27.28,标准误21.69。弱识别、无优化器成功记录、无HAC稳健检验限制解释,J不拒绝不等于认证。
- 百分之8.781的实际算术超额收益与开场复合增长差不同;用保存的样本协方差0.001297214得近似伽马67.69。财富赌局到消费偏好需额外映射。固定损失灾难曲线完整保留百分之112.86的尾部,并非完整Barro校准;Jensen比较需同一分布与均值。持有穿越崩盘不保证恢复。
- Shiller图依赖常数贴现、横截、平稳和二阶矩假设,重构还采用全历史趋势与最后十个价格终值,不是理性定价的正式拒绝。旧版CS索引跳过第一期收益:1871–2006年136个锚点使用第二至第十六年结果,直到2022年。保留受保护算法,不新增修正市场回归,不能称为正确对齐的未来十五年分解。柱以两个协方差项之和归一化,收益约84.6%、股利约15.4%,后者为正,并非全部方差或识别出的消息。终端项与线性化误差仍在。
- 七个中介资本风险点估计全部为正,四个近似Shanken t值超过1.96;商品也为正。各类窗口不同、贝塔用各自全样本,不是HAC、联合或因果认证。交易商账面杠杆与母公司市场资本不是同一变量。资产负债表示例卖出45并偿债,假定无新增冲击或成本;增资也是选择。
- logit偏导固定财富、股数、特征与其他价格,贝塔零为一的例子不是字面的自融资指数基金。总量均衡需要财富、供给与交叉价格反馈。约五倍的引用乘数是有条件的局部配置冲击假说,每笔购买都有卖方,回购还改变现金和融资。
- 前景决策权重不是主观概率,静态损失拐点不一般性推出动态卖出政策。Odean和Palm数字为引用,负的隐含剩余价值不是无条件套利,仍有借券、召回、费用与时点风险。Shleifer–Vishny是玩具机制,不是危机历史校准。
- 大涨相对门槛是财富比率(1+R行业)/(1+R市场)−1>1。原代码将2868个行业缺失值填零,同一行业触发至少间隔25个月,跨行业可重叠。保存的60事件全部有完整24月随访,最新2022年7月,但算法允许截尾。53.3%崩盘和随后平均+19.9%仅是条件描述,无匹配无条件基准或可执行做空认证。颜色是事后标签,倍数尾部完整保留。
- 一般泡沫条件为B_t=E_t[mB下一期],屏幕物理增长例子需风险中性或常数要求收益率假设。固定供给本身不排除泡沫。HK使用下一期股利,严格溢价需严格乐观者变化和可达性;平均转移矩阵是选定参考链,不是真实概率估计或平均估值。无限制风险中性卖空甚至可导致无均衡。共同信念时P=V_Q;只有第二类时状态零恰为16/11≈1.455,答案为相等。换手和权证证据不唯一识别机制。
Data, scope and reproducibility数据与审阅
十三项原始计算均通过正常哈希检查恢复,没有force/refresh、受保护算法改动、新市场试验、注册表修改或封存实验读取。累计次数保持本部分317、全局23562,98个受保护文件不变。公开French字节确实读到2025年,包括先读取再限制日期的辅助函数;它们与封存实验载荷不同,不能说2021–2025年公开数据从未读取。原拟合窗口示例止于2020年12月,描述历史可以更晚。三个原有纯数值回归测试通过,不认证经验时间对齐。命名显示审计保留原缓存哈希和样本矩,不替代旧缓存。连续生产配音试听与发音认证是独立的待完成范围,不能用静音预览、信号或文字时序检查替代。
Review log of the earlier QA passes on this part: docs/qa/quant/part23.md.
Build the film
python -m videos.quant.quant23.compute # the part's numbers, into .cache/quant23
python tools/make.py quant23 # the narrated film, English and Chinese
EXPLAINER_TTS=silent python tools/qa_scene.py quant23 Hook # one chapter, silent, with a contact sheet
Scenes: videos/quant/quant23. Setup: see the course page. Source of these notes: the part's README and the scenes' narration.