The Fair Game
If prices are a fair game, as Bachelier said in 1900, why does anyone trade, and who is on the other side?
A real price chart is shown beside a coin-flip walk, and you cannot tell them apart: the direction of returns is close to unpredictable. Then the differences appear. Real returns have heavy tails, their volatility comes in clusters, and both fade at slower clocks. The part separates the two worlds the series lives in: Q, where a price is a discounted expectation, and P, where someone is paid to hold risk. It ends with Thorp, who beat a game that was not quite fair by knowing exactly how unfair it was.
What you need. Calculus, and a first course in probability (expectation, variance, the normal distribution).
What you will be able to do
Undergraduate
- Compute simple and log returns, and explain the volatility drag between the average and the compounded return.
- State the stylized facts of returns (no linear memory, heavy tails, volatility clusters) and show each in data.
Master's
- Run and read a variance-ratio test, including its heteroskedasticity-robust form.
- Estimate a tail exponent with Hill's estimator and say what it implies for which moments exist.
PhD
- Derive the limiting law of the variance ratio and explain why it fails when the fourth moment's structure is that of a GARCH process.
Industry
- Explain how tail assumptions enter margin and capital rules, and what March 2020 did to them.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Undergraduate 35 min · Master's 51 min · PhD 58 min · Industry 43 min.
- 0Which one is real?Undergraduate3 min
- 1Paris, 1863 and 1900Undergraduate2 min
- 2Prices, returns and the dragUndergraduate4 min
- 3The random walkUndergraduate4 min
- 4Testing the walkMaster's3 min
- 5Heavy tailsUndergraduate4 min
- 6Volatility clustersUndergraduate2 min
- 7Slower clocks, thinner tailsMaster's2 min
- 8Does the variance exist?Master's3 min
- 9Efficient marketsUndergraduate3 min
- 10Two worlds, P and QUndergraduate4 min
- 11Who is on the other side?Undergraduate3 min
- 12Beating the dealerUndergraduate4 min
- 13March 2020Industry2 min
- 14Industry: the tails in the rulebooksIndustry3 min
- 15Frontier: the facts as a testPhD2 min
- For the researcher: the variance ratio's lawPhD5 min
- 16The House opensIndustry2 min
- Recap, desk questions, problemsAll tracks3 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.
Which one is real?Undergraduate3 min
Can a game of chance explain a century of market prices? Let's test it.
Here is a game. Four charts, each one year of a price, each starting at a hundred. Three of them are a computer making random walks: every day it draws a random log return from a bell curve with the same average and spread as the real thing, and compounds it into the price. One is the American stock market, in a real year. Which one is real? Take a moment. They wander, they trend, they reverse, they look like charts that people draw lines on and tell stories about. If you can't tell, you're in good company: in 1959 Harry Roberts, at Chicago, drew charts from random numbers and showed that they had the same head-and-shoulders patterns that chartists read in real ones.
Now look underneath each chart, at the daily returns: how much the price moved each day. Three of the strips are steady static, every day the same kind of day. One has a spike. Chart C is the market in 1997, and the spike is the 27th of October, when the market fell percent, as Asia's currency crisis reached Wall Street. Measured against that year's own volatility, it was a move of standard deviations. If daily returns really came from a bell curve, a day like that would come about once every million years. So the coin-flip picture is good enough to fool the eye, and wrong in the place that matters most: the extremes. This part measures exactly where the fair game holds, and where it breaks.
Here is the plan. The arithmetic of returns, and the drag that volatility puts on growth. The random walk, and Samuelson's proof that well-anticipated prices must be unpredictable. A real test of it, replicated and then followed for thirty-five more years. The stylized facts, each one measured. Efficient markets, and a modern result on how in-sample tests can fool you. The two worlds of finance, the real one and the risk-neutral one. And who is on the other side of every trade.
And this is the House: the quant firm this series builds, one part at a time. Every desk you see will be written, tested and used to trade, price or hedge. Today it is an empty building with one desk being set up. Data and technology: before anyone trades, someone has to decide what the firm is allowed to know, and when. That desk's first rule comes at the end of this part.
1Paris, 1863 and 1900Undergraduate2 min
The idea that prices move by chance is older than modern finance. In 1863 Jules Regnault, a stockbroker's assistant in Paris, published a book on chance and the philosophy of the Bourse. Its main claim: how far a price strays grows with the square root of time. Four times as long, twice as far. In 1900 Louis Bachelier, a student of Henri Poincaré, defended a thesis on the theory of speculation. He modelled the price of French government bonds as a random walk, a sum of independent little moves, and used it to price options on them, decades before anyone else. His starting principle was blunt: the expectation of the speculator is zero. Poincaré's report praised it; the jury graded it honorable, and the mathematics of chance in markets went quiet for fifty years. In the 1950s the statistician Leonard Savage came across Bachelier's work in a library and sent postcards to economists asking if they knew it. Paul Samuelson tracked down the thesis, and the random walk entered economics.
Regnault's law can be checked on data he never saw. Here are stretches of two hundred and fifty-two trading days of the American stock market, every year since 1926, each drawn from zero. The gold curves are the square-root law: one daily standard deviation, percent, times the square root of the number of days. Two thirds of a bell curve lies inside the inner pair, ninety-five percent inside the outer. The spaghetti spreads out just as Regnault said: fast at first, then slower, never in a straight line.
Now the law itself. On log scales a square root is a straight line of slope one half. Each blue dot is the spread of the market's return over a horizon from one day to two years. They lie on a line of slope . Bitcoin, the orange dots, trades at four times the volatility, and its slope is . A century and a half later, Regnault's law holds almost exactly, and the word almost will matter: over a year the market's spread is percent more than the daily figure predicts, a first hint that tomorrow is not quite independent of today. Chapter four measures it.
2Prices, returns and the dragUndergraduate4 min
Two ways to measure a move. The simple return: today's price over yesterday's, minus one. That is what you earn. The log return: the logarithm of the same ratio. The difference shows up over many periods. Simple returns compound: you multiply one plus each return. Log returns just add. A sum is what statistics knows how to handle: averages, variances, and the central limit theorem all work on sums. For small moves the two are almost equal, since the log of one plus R is R minus half R squared and so on. For large moves they part ways, and that half R squared is where the rest of this chapter lives.
The smallest example. You have a hundred dollars. It rises fifty percent, to one hundred and fifty, then falls fifty percent, to seventy-five. The average of the two returns is zero. But you lost a quarter of your money. The log returns tell the truth: their average is minus fourteen percent a period. Repeat the coin flip, up fifty or down fifty, forever, and the average outcome stays at a hundred, because a few lucky paths get enormous, while the typical path goes to zero.
Now ninety-four real years. Each bar is a calendar year of the American market, dividends included. The arithmetic average of these returns is percent. But a dollar invested in 1927 grew at percent a year: the geometric mean. The gap is points. And half the variance of the annual returns, with a standard deviation of percent, is . Almost the same number. That is not a coincidence.
Here is why. One plus the simple return is e to the log return. If the log return is normal with mean m and variance s squared, the average of e to the r is e to the m plus half s squared: the mean of a lognormal. So the arithmetic average return is about m plus half s squared. But a dollar grows like e to the sum of the log returns, at rate m. That is the geometric return. The difference is half the variance: volatility drag. Variance does not change the average return. It lowers the growth that a single investor, living through one path, actually gets.
The drag has a famous consequence. Here is a dollar invested in the market in 1926, and in two funds that hold two and three times the market each day, borrowing the rest at the Treasury bill rate, with no fees. The plain market turned a dollar into . Twice the market made . Three times the market made only : three times the risk for barely more money, and on the way, by the summer of 1932, it had lost percent. Growth is the average minus half the variance, and leverage multiplies the average by L but the variance by L squared. So growth is a parabola in leverage. It peaks at the excess return over the variance, about times, for this market and this century, and beyond that, more leverage grows more slowly, and eventually ruins you. That peak is the Kelly criterion, the subject of Part eight, and a lesson every leveraged fund in this series will relearn. If prices drift, and their spread grows like the square root of time, what kind of path are they? Next: the random walk.
3The random walkUndergraduate4 min
By the middle of the century the evidence was piling up. In 1933 Alfred Cowles, who had paid for market forecasts himself, checked them: the forecasting services and publications he followed through the crash did, as a group, worse than chance. In 1953 Maurice Kendall studied twenty-two weekly price series and found nothing to predict, as if, he wrote, once a week the Demon of Chance drew a random number and added it to the price. In 1959 the physicist Maury Osborne argued that it is the logarithm of the price that wanders like a particle in Brownian motion: log returns, the sums of the last chapter. Economists found this unsettling. Did it mean markets were irrational? In 1965 Samuelson showed the opposite: randomness is what a well-working market should produce.
The proof fits in four lines. Suppose an asset will one day be worth X, and today's price is the best estimate of X, given everything known today: the expectation of X conditional on today's information. Then tomorrow's price is tomorrow's expectation of X. What do we expect it to be, today? The expectation, today, of tomorrow's expectation is just today's expectation. That is the tower property of conditional expectation, and it says something obvious once heard: you cannot expect to change your own mind. If you could, you would already have changed it. So the expected price change is zero. Any predictable part of tomorrow's move would already be in today's price. A sequence with this property is called a martingale, and it is the mathematical form of a fair game.
Here is a fair price at work. A contract pays a dollar for every head in twenty tosses of a fair coin. Before any toss, its fair price is ten dollars. After some tosses, it is the heads so far, plus half of the tosses still to come. Watch the price as the coins land. Each head adds half a dollar, each tail takes half a dollar away, with equal chances. The price wanders, and by the end it has found the true value. At no point could anyone predict its next step, and that is not because the market is foolish: it is because the price already contains everything that can be known. Information arrives at random, so the price moves at random.
Two words are easy to confuse, and the difference is the rest of this part. A martingale only says the expected next value is today's value. The size of the moves can change, calm weeks and wild weeks, and moves can depend on the past as long as their conditional mean is zero. A zero-drift random walk is a stronger claim: every move independent, and drawn from the same zero-mean distribution, so every day is the same kind of day. Samuelson proved the first, not the second. Two refinements will follow us. Stocks are expected to rise, because holding them is risky, so the fair game is the price after allowing for that expected return; making that precise takes Parts four, nine and twenty-three. And fair is a statement about averages, not about safety. The next chapters measure how wild a fair game can be.
A quick check before we move on. Start at a hundred. With probability ninety percent the next price is a hundred and one. With probability ten percent it is ninety-one. Pause and predict: is this a fair game? Nine chances of gaining one balance one chance of losing nine. The expected change is zero, so this is a martingale step, even though you can correctly predict a rise nine times out of ten. Fair does not mean equally likely to rise or fall. It means the conditional average change is zero. Predicting the sign and earning an expected profit are different questions.
4Testing the walkMaster's3 min
If returns have memory, it shows up as autocorrelation: the correlation between one period's return and an earlier one. For a random walk every autocorrelation is zero. In 1988 Andrew Lo and Craig MacKinlay turned Regnault's law into a test. Compare the variance of a q-week return with q times the variance of a one-week return. For a random walk the ratio is exactly one. For two weeks, the variance of a sum is two variances plus twice the covariance, so the ratio is one plus the first autocorrelation. In general it is one plus a weighted sum of autocorrelations, heaviest on the shortest lags. Above one means returns continue, trends. Below one means they undo themselves, reversals. And Lo and MacKinlay gave a version of the test that stays honest when volatility comes in bursts, which chapter six will show it does.
Here is their test, replicated on Kenneth French's portfolios of stocks sorted by size, over exactly their sample: September 1962 to December 1985, weeks. The smallest tenth of stocks: the weekly autocorrelation is , and the variance ratio climbs to at sixteen weeks, with a robust test statistic around . A random walk would almost never produce that. The whole market: an autocorrelation of , smaller but still a rejection. The largest tenth: , a variance ratio of one, a random walk. The rejection lives in small stocks, as Lo and MacKinlay found, and their paper's title said it plainly: stock market prices do not follow random walks.
Their paper came out in 1988. What happened next? Here are the same tests on the thirty-five years that followed, 1986 to 2020. Small stocks still trend, with an autocorrelation of , half what it was. The middle and the market have fallen to a random walk, and the largest stocks now lean slightly the other way, towards reversals.
Now the whole century, in five-year windows. The pink line is small stocks' weekly autocorrelation; the teal line, the largest stocks'. For seventy years small stocks carried a strong weekly echo, about plus a third, and it survived its own publication in 1988. Then, in the space of a few years in the middle of the 2000s, it collapsed to nothing, the same years that American stocks moved to prices in cents, and to electronic trading. The leading explanation is mundane: small stocks used to trade rarely, so their recorded closing prices were stale and caught up days later. An echo you cannot trade on is not a profit; it is a measurement problem. Once small stocks traded every second, the echo went away. That is the first lesson of testing a market: ask what the price in your data really was, and whether you could have traded at it. The walk's steps were assumed to be Gaussian. Next: are they?
5Heavy tailsUndergraduate4 min
Every one of the trading days since 1926, measured in standard deviations, against a bell curve with the same spread. On an ordinary scale the difference looks small: the real returns have a taller, narrower peak. More quiet days than a bell curve allows. On a log scale, which magnifies the rare events, the truth comes out. The bell curve, the grey parabola, falls off a cliff: beyond five standard deviations it expects almost nothing. The real returns stay far above it, right out to the edge of this six-sigma view. The next table counts even larger days. One number summarizes it: the excess kurtosis, zero for a bell curve, is for the market. Quiet days, and then, rarely, enormous ones.
Count them. Days more than three standard deviations from the average: the bell curve expects in ninety-four years; there were . Beyond four: it expects about ; there were . Beyond five: it expects one every seventy lifetimes of the market; there were . Beyond seven, days. Beyond ten, , where the bell curve's answer has nineteen zeros after the decimal point. The worst of them was the , minus percent; the best, a rally in March 1933, plus . A bell curve is not a slightly wrong model of the tails. It is wrong by many orders of magnitude.
A better picture of a tail: the fraction of days with a move bigger than u, against u, both on log scales. The bell curve, in grey, dives. The market's tail, in blue, comes down as a straight line. On log scales a straight line is a power law: the chance of a move bigger than u falls like u to some power. And the power is close to three. Twice as large a move is about eight times rarer, not millions of times. Bitcoin, in orange, with four times the volatility, measured in its own standard deviations, has the same shape. In 1998 a group of physicists found this exponent of about three in tens of millions of five-minute returns of American stocks, and called it the inverse cubic law. It has turned up in nearly every market since.
The exponent can be estimated directly. Bruce Hill's estimator, from 1975, takes the k largest moves and averages how far, in logs, each one exceeds the next largest. Plotted against k it is never perfectly flat: with too few days it is noisy, and with too many it starts measuring the middle of the distribution instead of the tail. Where the tail is in charge, the top few hundred days, it passes through three. Using the largest two percent of days, the market's exponent is , and for losses alone, . Bitcoin's, from its first three and a half years, is . And here is a clue for the next chapter. Divide each day's return by the volatility of the weeks just before it, and the exponent rises to : much of the tail comes from calm days and wild days being mixed together. An exponent near three means the average and the variance exist, but higher moments barely do. That will matter when we ask, in chapter eight, whether the variance can be trusted at all. First, a second fact: the big moves come together. Next.
6Volatility clustersUndergraduate2 min
Ninety-four years of daily returns on one line. It is not static. There are long calm stretches, and storms: the early 1930s, 1987, 2008, March 2020. Big moves come in clusters. Below, each month's volatility. It wanders over a range of ten to one, and it lingers: a wild month is followed by wild months, a calm one by calm ones. In 1963 Benoit Mandelbrot put it in one sentence: large changes tend to be followed by large changes, of either sign, and small changes by small changes.
Clustering can be measured. The blue line is the autocorrelation of returns themselves, lag by lag out to a year: inside the grey band of noise almost everywhere. This finds little linear memory in returns; it cannot rule out every nonlinear forecast. The teal line is the autocorrelation of the size of the move, the absolute return. at one day, and still a year later. It decays slowly, roughly like the lag to the power minus , a long memory. Shuffle the days into random order, the grey line, and the memory is gone: it was in the order, not in the days. Bitcoin, in orange, clusters too, with a shorter memory. So the data reject independent, identical returns: their size has memory. This is compatible with a martingale, but autocorrelation alone cannot prove one. Robert Engle's model of clustered volatility, ARCH, won him a Nobel prize, and it is the subject of Part seven.
One more asymmetry. Correlate today's return with the size of moves to come, and with the size of moves before. To the right, today's return against future volatility: negative for weeks. About for the next five days. A fall today means bigger moves tomorrow. To the left, past volatility against today's direction: close to nothing. Volatility does not predict the direction; the direction predicts the volatility. Fischer Black named it the leverage effect in 1976, reasoning that a falling share price makes a company more indebted and so riskier. The effect is too large for that story alone, and it will come back as the skew of option prices, in Parts ten and twelve: markets charge more for protection against falls, because falls bring storms. Next: what clustering does to returns over longer horizons.
7Slower clocks, thinner tailsMaster's2 min
A sum of many independent pieces with a finite variance tends towards a bell curve, whatever the pieces look like: the central limit theorem. A monthly return is a sum of about twenty-one daily returns, a yearly return of two hundred and fifty-two. So the tails should thin as the clock slows. Daily returns, on the left: heavy tails, far beyond the grey bell curve. Monthly: still heavier than the bell curve, but closer. Yearly: almost a bell curve, apart from a few years at the left edge, which are the early 1930s. Aggregational Gaussianity, in the jargon of stylized facts.
The kurtosis, horizon by horizon. for a day, for a month, for half a year. It falls, as the central limit theorem promises. But slowly. For independent days it would fall in proportion to the horizon: a month should have one twenty-first of the daily kurtosis, under one. Volatility clustering is why it doesn't: neighbouring days are wild together, so a month is not twenty-one independent draws. The red dots drop a single day, the 19th of October 1987, and the short-horizon kurtosis falls by a fifth. One day out of twenty-five thousand. That should make you suspicious of the number itself; Mandelbrot will be. First, why the fall is so slow.
Why so slowly? Write the monthly return as a sum of daily ones. Because the days are uncorrelated, their variances add. Now the fourth power. Expand it, and among the terms are the pairs of squares: today's squared move times another day's. That is exactly where clustering lives. Divide by the squared variance, and those pairs become the autocorrelations of squared returns that chapter six measured, weighted by how many pairs sit at each distance. Without clustering only the first term survives: the daily kurtosis divided by the horizon. That is the central limit theorem's speed, and it is not the market's.
Now feed the formula the measured clustering. In grey, independent days: the kurtosis would collapse to at a month. In teal, the formula with the clustering: . The dots are the data: . Monthly returns are not the bell curve the central limit theorem promises, and they will not be at the horizons desks trade. So does the variance even exist? Mandelbrot asked that question next.
8Does the variance exist?Master's3 min
In 1963 Benoit Mandelbrot, then at IBM, looked at the history of cotton prices and made a radical claim. Their changes fit not a bell curve but a stable law, with a tail exponent of about one point seven. A stable law keeps its shape when you add copies of it, as the bell curve does. But every stable law except the bell curve has an infinite variance. If Mandelbrot was right, the standard deviation of returns is a number that never settles down, tails never thin with the horizon, and the whole toolkit of modern finance, built on variances, is built on sand. Eugene Fama, then a doctoral student at Chicago, found support for him in his thesis, and for a decade the question was open.
Here is the test he proposed. Estimate the standard deviation from more and more data, and watch whether it settles. For a bell curve, the grey line, it settles almost at once. For a stable law with infinite variance, a Cauchy distribution, in pink, it never does: every so often a single draw is so large that it resets the estimate, and it climbs forever. The market, in blue, behaves like the bell curve here: after the turbulence of the 1930s its standard deviation settles near percent a year and stays there. This supports a finite variance, rather than proving one from a finite sample. Later studies, measuring a tail exponent near three and thinning tails at longer horizons, also favoured finite variance over Mandelbrot's stable-law model.
The kurtosis is another story. Here is the same experiment for the fourth moment. The bell curve's settles at zero. The Student t with three degrees of freedom, whose tails fall like the cube, as the market's do, has a variance but no fourth moment, and its kurtosis never settles: it jumps up with each extreme draw. The market's looks the same: calm decades, and then a step. In October 1987 a single day lifted the kurtosis of sixty years of data from to .
How much can one day weigh? The kurtosis is built from fourth powers of returns. Add up the fourth powers of all ninety-four years: percent of the total comes from a single day, the 19th of October 1987. Remove that day and the kurtosis drops from to . A statistic that one day can move by a fifth is a description of that day, not of the market. So the verdict on Mandelbrot is split. The evidence supports using a finite variance, carefully, because volatility moves over time. The fourth moment is a different matter: tails should be measured as tails, with an exponent or directly, and that is how Part forty will measure risk. If returns are this hard to pin down, can anyone predict them? Next: efficient markets.
9Efficient marketsUndergraduate3 min
In 1970 Eugene Fama gathered the evidence of the previous decades into one idea: an efficient market is one in which prices always fully reflect the available information. He sorted the evidence into three forms. Weak: past prices can't be used to beat the market; chapter four tested that. Semi-strong: no public information can, which is tested by watching prices react to news. Strong: not even private information can; that one fails, insiders do profit, which is why insider trading is illegal. And he named the catch that has run through the field ever since. Every test of efficiency is also a test of a model of what returns should be. If a strategy beats the market, it may have found a mispricing, or it may be taking a risk that deserves its reward. Without a model of risk, the data cannot tell those apart. Act four of this series is that argument.
There is a paradox at the heart of the idea. If prices already reflected all information, nobody would be paid for finding information. So nobody would look, and prices would stop reflecting it. Then finding information would pay again, and traders would find it, and prices would reflect it once more. In 1980 Sanford Grossman and Joseph Stiglitz turned the paradox into a theorem: when information costs money, a perfectly efficient market is impossible. In equilibrium the market is just inefficient enough to pay the people who make it efficient. That sentence is the business model of every firm in Part thirty-four.
Six years later Fischer Black, of Black and Scholes, gave the other half of the answer in his presidential address, called Noise. With a common prior and an efficient initial allocation, rational traders cannot create trade from private information alone. Risk sharing, liquidity needs and different beliefs also matter. Black emphasized noise: people who trade on things they believe are information but aren't. Noise makes markets liquid, and it also makes prices noisy. With characteristic dryness Black suggested we call a market efficient if the price is within a factor of two of value. Who that noise comes from, and who profits from it, is chapter eleven.
One more turn, from the frontier. In 2022 Ian Martin and Stefan Nagel asked what efficiency means when investors face thousands of possible predictors, as they do today. Here is their argument as a simulation. stocks, each with characteristics. Payoffs depend on the characteristics through weights nobody knows. Investors learn the weights from what they see, by Bayes' rule, and price every stock at its expected payoff given everything known: efficient by construction. Afterwards an econometrician regresses the realized returns on the characteristics and tests whether they predicted anything. If markets are efficient, the test should reject one time in twenty. It rejects in percent of these markets. The predictability is real in hindsight: it is the investors' learning, visible only after the fact. Now test properly, out of sample: at each date, use only what was known before it. The out-of-sample R squared is negative in every one of markets. In-sample predictability is not evidence of an inefficient market, and only out-of-sample tests keep their meaning. That is why the House will seal its data in an envelope, in chapter sixteen. Next: the two worlds every price lives in.
10Two worlds, P and QUndergraduate4 min
Finance has two sets of probabilities, and most confusion in it comes from mixing them up. P is the real world: how likely things actually are, the probabilities we have been estimating from history all part. Q is the risk-neutral world: the probabilities implied by prices. They are the weights that make every price equal to the average of its payoffs, with no premium for risk. Parts four, nine and ten build Q properly. Pricing derivatives happens in Q; earning returns happens in P. Here, for the first time, are both, for one asset, on one morning.
The options are Bitcoin's, on the Surface, the series' frozen options market: the tenth of December 2025, days before the January expiry. Each dot is the implied volatility of an option at one strike, from that morning's trades. Through them, a smooth curve, a standard parametric smile whose derivation waits for Part twelve. From this curve every option price at every strike follows, and from the prices, the risk-neutral distribution.
The step from prices to probabilities is two derivatives. A call struck at K is worth the risk-neutral average of its payoff. Raise the strike by a dollar and the call loses a dollar in every state where it pays: so the slope of the call price is minus the risk-neutral probability of finishing above the strike. Differentiate again and you get the density. Douglas Breeden and Robert Litzenberger showed this in 1978: the risk-neutral distribution is the curvature of option prices across strikes.
Here they are. In violet, Q: the distribution of Bitcoin's price days ahead implied by that morning's option prices, measured from the forward price. In gold, P: what actually happened over every -day window of the four years before that morning. They are different in telling ways. Q is centred on zero: under Q nothing is expected to earn a premium. History drifted up percent. And Q puts more weight on disaster: a percent chance of losing a fifth or more, against percent in history. Q is not a worse forecast. It is not a forecast at all. It is the price of insurance: states of the world where people lose money are the states they pay most to protect, so Q weights them up. The gap between P and Q is the price of risk, and Part twenty-three connects them with a single object, the stochastic discount factor.
One bridge between the two worlds, from the frontier of asset pricing. In 2017 Ian Martin proved that, under a condition that holds, for instance, for a log-utility investor fully invested in the asset, the expected excess return is at least the risk-neutral variance of the return. A lower bound on a real-world expected return, read off option prices alone, no history needed. On the Surface, Bitcoin's risk-neutral variance over the next days is percent. As an annual rate, a lower bound of percent a year on Bitcoin's expected excess return. For the S and P five hundred, Martin's bound averaged about five percent a year, and rose above twenty percent in the autumn of 2008. For Bitcoin, the condition behind it is an assumption, not a fact. Read the number as what that morning's option prices demand, if it holds. Every trade has two sides. Next: who is on the other side?
11Who is on the other side?Undergraduate3 min
Every time you buy, someone sells. If prices are fair, why would they? Because people trade for different reasons. Hedgers want less risk. An airline buys its fuel in advance, a farmer sells their crop forward, a pension fund buys protection against a crash; they pay to be insured. Speculators want more of one particular risk, because they have a view, or think they do. Market makers want no view at all. They stand ready to buy and to sell, earn the gap between their two prices, and manage whatever they are left holding. Arbitrageurs want no risk: they buy something cheap and sell the same thing dear, and in doing so they keep prices consistent with each other. In a fair game, every trade is someone paying for something: insurance, a view, immediacy, or a mistake.
Before asking who wins, one piece of arithmetic that settles a great deal. Every share of the market is held by someone. Some holders are passive: they own the whole market, in proportion. Everyone else is active. The market's return is the weighted average of the two groups. The passive group earns exactly the market return. So the active group, taken together, must earn the market's return too, before costs. William Sharpe called this the arithmetic of active management, in 1991. After costs, the average active dollar must do worse than the market. Relative to the market, active investing is a zero-sum game before costs and a losing one after them. Any active manager who wins does so at the expense of another active manager. By the end of 2023, index funds held more American fund assets than active funds, for the first time.
So who are the professionals on the other side? The firms this series will keep meeting fall into four groups. Market makers and proprietary traders: Jane Street, Citadel Securities, Optiver, Jump and others, quoting both sides at enormous scale. Jane Street's net trading revenue in 2024 was reported at about twenty and a half billion dollars, from documents for its bond sales; Citadel Securities says it executes more than a third of American retail trading volume. Systematic hedge funds, which find trading rules in data and let machines run them. The most famous, Renaissance Technologies' Medallion fund, is reported to have averaged sixty-six percent a year before fees from 1988 to 2018, thirty-nine after them: figures from a book, not an audit, and averages, not compound growth. Multi-manager platforms, which run hundreds of small teams under tight risk limits; Part thirty-four goes inside one. And the banks, dealers and asset managers, who run most of the world's money, more and more of it in index funds. Everything in these files comes from the public record, and a reported number is labelled as reported. Next: the first person to show, with mathematics, that the other side can be beaten.
12Beating the dealerUndergraduate4 min
Can a fair game be beaten by cleverness about how you bet? The oldest system is doubling, the martingale of the gambling halls, which gave the mathematical word its name. Bet a dollar on a fair coin. If you lose, double the bet. Stop at the first win. Every session ends one dollar up, unless you lose ten times in a row and your bankroll of a thousand and twenty-three dollars is gone. Here are three thousand sessions. Win, win, win, a staircase of dollars, for hundreds of sessions, and then a cliff. In two hundred thousand sessions, the average comes out at zero, within the noise. The system doesn't change the expected value. It changes the shape: many small wins, rare enormous losses. You will meet that shape again, in short volatility, in carry trades, in every strategy that looks too smooth.
This is a theorem, and its name is the optional stopping theorem. For a martingale, any stopping rule that can't see the future and must stop by a fixed deadline leaves the expected value where it started. Eventually stopping with probability one is not enough without extra integrability conditions. Here every game ends by two hundred tosses, even if the target is never reached. Quit when you're one dollar up: you get there ninety-four times in a hundred, and your average result is still zero, because the other six times hurt. Quit at three, quit at ten: different shapes, the same zero. The same mathematics that made prices unpredictable in chapter three makes betting systems useless. To beat a fair game you need the game not to be fair.
In 1961 a young mathematician, Edward Thorp, showed that one casino game is not fair. Blackjack is dealt from a shoe, without replacement. Cards that have gone are gone, so the cards still to come change the odds from hand to hand. When many small cards have been played, the remaining shoe is rich in tens and aces, and the player has the edge. Here is a simulation of six-deck shoes, with a running count that tracks the balance of big and small cards. Most hands, the grey bars, favour the house. About percent, in green, favour the player. Bet the same on every hand and you lose about half a percent: the house edge. Bet one unit when the count is low and up to eight when it is high, and the game turns: percent of everything you bet. Small, but positive, and a professional plays thousands of hands. A fair game was not made favourable by a betting system. The information was the edge; the betting only used it. Thorp's book, Beat the Dealer, became a bestseller, and casinos changed their rules: more decks, earlier shuffles.
Thorp took the same idea to Wall Street. His fund, Princeton Newport Partners, run with Jay Regan from 1969 to 1988, hedged warrants and convertible bonds using his own pricing formulas. By his account it returned nineteen point one percent a year before fees and fifteen point one after, against ten point two for the S and P five hundred. He will keep coming back. In Part eight, for his answer to how much to bet. In Part ten, for the warrant formula he used before Black and Scholes published theirs. In Part thirty-three, as an early statistical arbitrageur. And in the finale, where the question of this part comes back: can you beat the market? Next: a month when the tails of this part came true, March 2020.
13March 2020Industry2 min
The crisis file for this part. In February 2020 a new virus spread out of China, and in the first three weeks of March the world's markets fell faster than ever before. Here are the daily returns of the American market, February to April. Three of the worst days in its history came within a week: the 9th, the 12th, and Monday the 16th of March, when it fell percent. Even Treasury bonds were sold, in a scramble for cash, until the Federal Reserve stepped in. Bitcoin, sold as digital gold, a refuge, had its worst day on Thursday the 12th: percent, close to close, as leveraged positions on crypto exchanges were forcibly closed and selling fed on itself.
Step back, and the whole season shows every fact of this part at once. The market peaked on the nineteenth of February. It fell percent in trading days, to the trough on the twenty-third of March. Below, its volatility over the last month: from percent to , a cluster, chapter six, and still rising after the trough, on the sixth of April: falls bring storms, and storms outlast the falls. Then the walk carried on. By the fifth of August, trading days after the trough, the peak was regained. Nothing in this picture predicted the direction; the size of the moves was the one thing the past foretold.
Measure them as this part has taught. Against the market's own volatility over the year before, the 16th of March was a standard deviation fall. A bell curve says a day like that comes about once in thousand trillion years. The power-law tail fitted to the ninety-four years before it says: about once every years. Bitcoin's fall was standard deviations, a number with no meaning for a bell curve: a waiting time with zeros. Its own tail says roughly once every years. Impossible under one model, routine under another, and the difference between them is the difference between a fund that survives and one that doesn't. Part ten does the same arithmetic for the 19th of October 1987. Next: who writes those tails into their rules.
14Industry: the tails in the rulebooksIndustry3 min
Fat tails are not only a fact for statisticians; they are written into the rules. Start with the number every bank once reported: value at risk, the loss exceeded on one day in a hundred. Its weakness is in the definition: it says where the tail starts, and nothing about how far it goes. Expected shortfall asks instead: on the worst two and a half percent of days, what is the average loss? For a Gaussian the two are almost the same number: two point three three standard deviations against two point three four. That is why, when the Basel Committee rewrote its market-risk rules in January 2016, it could swap the ninety-nine percent value at risk for a ninety-seven and a half percent expected shortfall without changing much, if returns were Gaussian. They are not. On ninety-four years of the American market, value at risk is standard deviations and expected shortfall : the shortfall sits percent beyond the cut-off, against percent for the bell curve. The new rule charges for the tail the old one could not see.
Here is the left tail itself, on a log scale so that rare days stay visible. The grey curve is the Gaussian: it plunges, and beyond six standard deviations it has nothing left to say. The bars are the real days, and they keep going: out to minus eight, minus ten, and one day near minus , . The two lines mark where the rules look: value at risk at the cut-off, expected shortfall a little further out, pulled by everything to its left.
Exchanges learned the same lesson. Between 1926 and 2020 the American market fell seven percent or more in a single day times. A Gaussian with the same volatility expects that once in about million years. And the days come in clusters: 1929 to 1933, 1987, 2008, March 2020. On the nineteenth of October 1987 nothing could stop a fall. In October 1988 the New York Stock Exchange adopted Rule 80B: market-wide halts after large falls in the Dow. They fired for the first time on the twenty-seventh of October 1997. Since 2013 the triggers are falls of seven, thirteen and twenty percent in the S&P 500. In March 2020 the first level fired four times in eight trading days: on the ninth, twelfth, sixteenth and eighteenth. Each time trading stopped for fifteen minutes, and resumed.
So three kinds of desk price the tails for a living. Risk desks at banks hold capital against the expected shortfall. Exchanges and clearing houses halt trading and size margin for days the bell curve says will never come. And options desks charge more for protection against a crash than against a rally of the same size: the skew, which Parts ten to twelve build. The facts of this part are their daily work. Next: the research that turns these facts into a test for anyone who claims to simulate a market.
15Frontier: the facts as a testPhD2 min
Cont's list of stylized facts did not stay a description. It became a test: anyone who claims to simulate a market is asked whether the fake passes it. Run the test. Each row is one fact, the first column its value in ninety-four years of the American market. Against it, four simulated markets, each fitted to the same data. Independent Gaussian days fail almost everything, as they must. Independent Student t days get fat tails, too fat in fact, and nothing else: no clustering, no leverage. GARCH, Part seven's model, adds clustering, but with Gaussian shocks its tails are thin and it is blind to direction. The asymmetric GARCH with fat-tailed shocks does best of the four, rows of . And the row every model fails is long memory: a hundred days on, the real market's size of move still correlates at ; the closest of these, , manages . Long memory is why Part seven builds HAR and Part fourteen asks whether volatility is rough.
The frontier runs exactly this test with far larger machines. Rama Cont's 2001 survey wrote down the list, measured across markets, and it has been the yardstick since. In 2024 Tomonori Takahashi and Takayuki Mizuno generated return series with diffusion models, the method behind image generators, by turning the series into wavelet images, and checked them against the facts. In 2025 Gihun Kim, Sun-Yong Choi and Yeoneung Kim made the model's noise follow geometric Brownian motion, and report heavy tails, clustering and the leverage effect closer to the real thing than standard diffusion models give. Others build markets out of language-model agents; the TwinMarket project reports bubbles and recessions emerging from individual decisions. Whether such markets pass every row is exactly what this card checks. And Bitcoin, our second market, passes the same card its own way: excess kurtosis , clustering, a leverage effect, and a memory that fades much sooner. Part seventeen trains generators of its own, and scores them on this card. Next, the House opens its doors.
For the researcher: the variance ratio's lawPhD5 min
For the researcher: the theorem behind Chapter 4's test. How far can a variance ratio stray from one when prices really are a random walk, and what changes when volatility clusters?
The proof takes four lines. Chapter 4 showed the variance ratio minus one is a weighted sum of sample autocorrelations, with weights falling from the first lag to the last. If increments are independent and identically distributed, with a finite fourth moment, Bartlett's theorem says the sample autocorrelations, scaled by root n, behave like independent standard normals. So the variance ratio is asymptotically normal, with variance the sum of its squared weights. That sum has a closed form: two times two q minus one, times q minus one, over three q. One for q of two; almost ten for q of sixteen. Divide by the sample size, take the square root, and that is the standard error Lo and MacKinlay used.
But Chapter 6 showed that returns are not independent: their size clusters. Weaken the assumption to a martingale difference, with zero conditional mean but a size that can be forecast. Under Lo and MacKinlay's symmetry and regularity conditions, each sample autocorrelation is still centred at zero, but its variance is now delta k, the correlation of squared moves k periods apart, scaled. With clustering, delta k is above one: in the House's GARCH model the theory gives four and a half at the first lag, decaying slowly. Even four hundred thousand simulated returns estimate it at only three, because that estimate's own variance needs an eighth moment this model does not have. So Lo and MacKinlay built a second statistic, z star, that estimates every delta from the data and divides by the right variance.
Does it matter? Simulate. Two thousand paths of fifteen hundred returns each, the length of thirty years of weekly data, with zero return autocorrelation in every model. For independent normal returns, both tests reject at their nominal five percent. With clustered volatility, the iid test rejects the true zero-autocorrelation null about one time in six, and with fat-tailed shocks one time in four, at every horizon. The robust test stays at five or six percent.
The reason, in one picture. Under clustering, the iid statistic is still centred at zero, but it is too wide: its standard deviation is about one and a half, so its tails cross plus or minus two far more often than a standard normal's. The robust statistic, divided by the right variance, lies almost on the normal curve.
And the robustness does not cost much power. Against a weekly autocorrelation of point zero five, fifteen hundred returns reject the walk about one time in five; at point one, two times in three; at point two, almost always. Chapter 4's small stocks of 1962 to 85, at about point three, could not have hidden.
Back to Chapter 4's data, with both statistics. From 1962 to 1985 the smallest stocks reject the walk overwhelmingly either way, a z of fifteen and a z star of eleven, and the whole market rejects too. After 1986 the smallest stocks still reject, but the robust statistic is less than half the iid one, three point seven against eight and a half: much of the later evidence was volatility, not memory. The market and the large stocks show nothing either way.
Three open questions. Chapter 5 found tail exponents near three, so the fourth moment the theorem needs may not exist. Sample autocorrelations of heavy-tailed processes then converge more slowly, to limits that are not normal, and valid inference for the variance ratio there is unsettled. When the horizon grows with the sample, the normal limit fails, and the laws of long overlapping sums are non-standard. And testing many horizons at once is a multiple test: which q to report is itself a choice the counter of Part 26 should see.
Pause and predict. Fifteen hundred weekly returns give a variance ratio at four of one point one. Compute the iid z. If the first three deltas are all two, what is z star?
At q of four, the iid asymptotic variance is three point five. Plug in fifteen hundred returns and a variance ratio of one point one: z is about two point zero seven, just past the two-sided five percent threshold. If every delta is two, the variance doubles, so divide z by the square root of two. The robust statistic is one point four six. The same data no longer reject. Accounting for clustered volatility can change the conclusion.
16The House opensIndustry2 min
The House now has its first desk: data and technology. Everything this part measured came through it. Each dataset is fetched from a free public source, piece by piece, so an interrupted download resumes where it stopped. The fingerprint of every piece is recorded the first time it arrives, and checked every time after, so if a source quietly revises its history, the House notices, and every render of this series, on any machine, sees the same numbers.
The desk's first rule is the most important rule in quantitative finance, and the one most often broken by accident. Point in time: a number used at a moment may depend only on what was known at that moment, as it was known then. Not the revised figure, not today's list of companies that survived, not tomorrow's closing price. This part has already shown why. An echo in stale prices that no one could have traded on. Predictability that appears in hindsight even in a market that is efficient by construction. Part twenty-six is a museum of backtests that broke this rule.
The second rule is a sealed envelope. Return-predictability research uses data up to the last day of 2020. Chapter ten's dated options illustration uses later history; it is not a strategy test. The five years from 2021 to 2025 are held out for strategy evaluation. Their fingerprints identify the exact dataset; a hash cannot stop anyone looking. The protection is the research protocol: register first and test once. When a strategy is ready, in Parts twenty-four to forty-three, it is registered first: the fingerprint of its code, its parameters, and how many things were tried to find it. Then the envelope is opened for it, once, and the result is shown, whatever it is.
And the third device: a counter. Every backtest in this series declares how many configurations it tried, in code, so the count can be regenerated. Today it reads zero. Part twenty-six explains why it matters: the more things you try, the higher the bar a result must clear before you believe it. By the finale the counter will be large, and every result will be judged against it.
Recap, desk questions, problemsAll tracks3 min
Part one in ten lines. Prices spread with the square root of time, as Regnault said in 1863. Growth is the average return minus half the variance, so leverage has a peak. Well-anticipated prices are martingales, by the tower property. Small stocks once had a weekly echo, and it vanished when trading became fast. Returns have heavy tails, with an exponent near three. Volatility clusters, and falls bring storms: returns are not independent. Finite variance fits the evidence; the kurtosis is at the mercy of a single day. Markets are just inefficient enough to pay for information, and in-sample predictability can fool you. The risk-neutral world prices insurance; the real world is what happens. And no betting system can beat a fair game, though information can.
Three desk questions, of the kind trading firms ask. The Saint Petersburg game: I toss a coin until it lands heads and pay you two to the number of tosses. Its expected payout is infinite, yet nobody pays much to play; Daniel Bernoulli's answer in 1738, logarithmic utility, values it at four dollars. A stock that rises or falls fifty percent each year, with equal chances, forever: its average stays put, and its typical path goes to zero. That is chapter two's drag. And how many tosses, on average, until two heads in a row? Six. The full solutions are in the part's notes.
And seven problems: martingales and the tower property, the lognormal means, the variance ratio, Hill's estimator, the leverage that maximizes growth, and two at the level of a qualifying exam: the variance ratio's limiting law, and the fourth moments of GARCH. Solutions, in English and Chinese, are in the notes.
Where this comes back. Martingales are the language of Part four, and of the no-arbitrage theorem in nine; Part twenty-three joins P and Q. Heavy tails and clustering are modelled in Part seven, priced in thirteen, and managed as risk in forty. The drag and the leverage peak return with Kelly in eight, and in the portfolios of thirty and thirty-two. The in-sample trap gets its full treatment in six and twenty-six, and the envelope opens in the finale. And Thorp appears in eight, ten and thirty-three.
The textbook chapters this part covers, and the papers it draws on. Every number in it was computed from public data by the series' own code: Kenneth French's market and size portfolios, Binance's Bitcoin prices, and Deribit's option trades.
The House has a data desk, a rule, a sealed envelope and a counter at zero. Next, Part two: the machinery of markets. The instruments, the exchanges, clearing and settlement, and what actually happens between pressing buy and owning something.
Where it goes next. The stylized facts become the tests every later model must pass; P and Q become the series' two halves; 'who is on the other side?' is asked in every part.
Key results
The part's results in one place, for revision.
Try it
Lab 1 · Is it a random walk, and is it Gaussian?
Simulate a Gaussian walk and a GARCH market with the same variance; run the House's variance-ratio test, tail estimator and autocorrelations on both.
python -m videos.quant.labs 1
needs numpy, scipy, matplotlib, numba · download lab01.py ·
source on GitHubGaussian walk VR(5) 1.000 z +0.01 z* +0.01 excess kurtosis 0.1 Hill alpha 7.5
GARCH market VR(5) 1.077 z +2.71 z* +2.11 excess kurtosis 4.5 Hill alpha 4.1
Autocorrelation at lag 1 returns: walk -0.003, GARCH +0.033 squared returns: walk -0.002, GARCH +0.101
Both are fair games (VR near 1). Only the robust z* is a valid test for the GARCH market: its variance is predictable, its direction is not.
The code (59 lines; it asserts its own result)
"""Lab 1: two markets with the same volatility, one Gaussian and one with clusters and heavy tails."""
import numpy as np
from videos.quant import labs
from explainer.quant.house import stats
TITLE = "Is it a random walk, and is it Gaussian?"
GOAL = ("Simulate a Gaussian walk and a GARCH market with the same variance; run the House's variance-ratio test, "
"tail estimator and autocorrelations on both.")
TASKS = [
"Add momentum: r[t] += 0.1 * r[t-1]. Which statistic moves, and which test rejects?",
"Raise alpha + beta from 0.97 to 0.995. What happens to the Hill estimate and to z against z*?",
"Aggregate both series to 20-day returns (stats.aggregate) and recompute the excess kurtosis.",
]
def garch(n, omega=3e-6, alpha=0.09, beta=0.88, nu=6.0, seed=0):
"""GARCH(1,1) returns with Student-t shocks scaled to unit variance."""
rng = np.random.default_rng(seed)
z = rng.standard_t(nu, n) * np.sqrt((nu - 2) / nu)
r, h = np.empty(n), omega / (1 - alpha - beta)
for t in range(n):
r[t] = np.sqrt(h) * z[t]
h = omega + alpha * r[t] ** 2 + beta * h
return r
def run(seed=0):
n = 6000
real = garch(n, seed=seed)
walk = np.random.default_rng(seed + 1).normal(0, real.std(), n)
lab = labs.Lab()
out = {}
for name, r in (("Gaussian walk", walk), ("GARCH market", real)):
vr = stats.variance_ratio(r, 5)
out[name] = dict(vr=vr, kurt=stats.excess_kurtosis(r), hill=stats.hill(r), ac1=stats.autocorr(r, 1)[0],
ac2=stats.autocorr(r ** 2, np.arange(1, 21)))
lab.row(name, f"VR(5) {vr['vr']:.3f} z {vr['z']:+.2f} z* {vr['z_star']:+.2f} excess kurtosis "
f"{out[name]['kurt']:.1f} Hill alpha {out[name]['hill']:.1f}")
lab.note = ("Both are fair games (VR near 1). Only the robust z* is a valid test for the GARCH market: its "
"variance is predictable, its direction is not.")
g, w = out["GARCH market"], out["Gaussian walk"]
lab.row("Autocorrelation at lag 1", f"returns: walk {w['ac1']:+.3f}, GARCH {g['ac1']:+.3f} squared returns: walk "
f"{w['ac2'][0]:+.3f}, GARCH {g['ac2'][0]:+.3f}")
assert abs(w["vr"]["z"]) < 3 and abs(g["vr"]["z_star"]) < 3, "neither series has predictable returns"
assert g["kurt"] > 1 > abs(w["kurt"]) and g["ac2"][0] > 0.1 > abs(w["ac2"][0])
fig, ax = labs.figure(3, size=(11.5, 3.9))
for a, r, c, name in ((ax[0], walk, labs.CASH, "Gaussian walk"), (ax[1], real, labs.SPOT, "GARCH market")):
a.plot(100 * r, color=c, lw=0.5)
a.set(title=name, xlabel="day", ylabel="return, %", ylim=(-9, 9))
lags = np.arange(1, 21)
ax[2].bar(lags - 0.2, w["ac2"], 0.4, color=labs.CASH, label="walk")
ax[2].bar(lags + 0.2, g["ac2"], 0.4, color=labs.SPOT, label="GARCH")
ax[2].set(title="Autocorrelation of squared returns", xlabel="lag, days")
ax[2].legend()
lab.fig = fig
return lab
Now change it
- Add momentum: r[t] += 0.1 * r[t-1]. Which statistic moves, and which test rejects?
- Raise alpha + beta from 0.97 to 0.995. What happens to the Hill estimate and to z against z*?
- Aggregate both series to 20-day returns (stats.aggregate) and recompute the excess kurtosis.
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
- The St Petersburg game. The payout 2ⁿ comes with probability 2⁻ⁿ, so the expectation is Σₙ 2⁻ⁿ2ⁿ = Σ 1 = ∞. Nobody pays more than a few dollars: payouts beyond what any counterparty could pay are not real, and people value wealth by its logarithm. With log utility (Daniel Bernoulli, 1738) and nothing else at stake, the game's certainty equivalent solves ln c = Σₙ 2⁻ⁿ ln 2ⁿ = ln 2 · Σₙ n2⁻ⁿ = 2 ln 2, so c = $4.
- Up or down 50%, forever. Each year multiplies wealth by 1.5 or 0.5: the mean factor is 1, so expected wealth stays at its start forever. But log wealth is a random walk with drift ½ ln 1.5 + ½ ln 0.5 = ½ ln 0.75 ≈ −0.144 a year, so the median path falls by about 13% a year and goes to zero; the expectation is carried by vanishingly rare paths. A good investment for nobody who lives on one path: chapter 2's drag, ½σ² with σ = 50%.
- Two heads in a row. Let E be the expected number of tosses. The first toss is a tail (prob ½): start again,
E + 1. Heads then tails (prob ¼): start again, E + 2. Heads, heads (prob ¼): done in 2. So E = ½(E + 1) + ¼(E + 2)
- ¼ · 2, giving E = 6. (For a head then a tail, HT, the answer is 4: patterns that overlap themselves take longer.)
Problems, with worked solutions
-
Fair prices are martingales. Show that if \(P_t = \mathbb E_t[X]\) for a fixed payoff \(X\), then \(P\) is a martingale, and that its increments are uncorrelated, though they need not be independent. Give an example of the second.
Solution
Eₜ[Pₜ₊₁] = Eₜ[Eₜ₊₁[X]] = Eₜ[X] = Pₜ by the tower property. For s < t, the increments satisfy E[(Pₜ₊₁ − Pₜ)(Pₛ₊₁ − Pₛ)] = E[(Pₛ₊₁ − Pₛ) Eₜ[Pₜ₊₁ − Pₜ]] = 0, so they are uncorrelated. They need not be independent: let εₜ be fair coin flips (±1) and Pₜ₊₁ = Pₜ + σₜ εₜ₊₁ with σₜ = 1 + |Pₜ − P₀|/10: every increment has mean zero given the past, but its size depends on the path so far (volatility clustering, chapter 6).
-
The lognormal means. If one-period log returns are \(N(m, s^2)\), show the arithmetic mean simple return is \(e^{m + s^2/2} - 1\) and the geometric mean is \(e^m - 1\). Check with chapter 2's numbers (11.95%, 10.02%, \(\sigma\) = 19.9%).
Solution
If r = ln(1 + R) ~ N(m, s²), then E[1 + R] = E[eʳ] = e^{m + s²/2}, the lognormal mean, so the arithmetic mean simple return is e^{m+s²/2} − 1; a dollar invested for T periods grows like e^{Σr}, whose per-period growth is e^m − 1, the geometric mean. With chapter 2's numbers, e^m − 1 = 10.02% gives m = 9.55%, and e^{m+s²/2} − 1 = 11.95% gives s = 18.6%, close to the 19.9% standard deviation of the simple annual returns (the two measure slightly different things: log against simple returns, and real years aren't exactly lognormal).
-
The variance ratio. Show \(\operatorname{VR}(2) = 1 + \rho_1\) and \(\operatorname{VR}(q) = 1 + 2\sum_{k<q}(1 - k/q)\rho_k\) for a stationary series.
Solution
For a stationary series with variance σ² and autocorrelations ρₖ, Var(r₁ + … + r_q) = qσ² + 2σ² Σ_{k=1}^{q−1} (q − k)ρₖ (each lag k appears q − k times). Divide by qσ²: VR(q) = 1 + 2Σ_{k<q}(1 − k/q)ρₖ; for q = 2, VR(2) = 1 + ρ₁.
-
Hill's estimator. For a Pareto tail \(P(X > x) = (x / x_m)^{-\alpha}\), show \(\mathbb E[\ln(X / x_m)] = 1/\alpha\), which is Hill's estimator. If daily returns have \(\alpha = 3\), which moments exist?
Solution
With P(X > x) = (x/x_m)^−α, Y = ln(X/x_m) has P(Y > y) = e^{−αy}: exponential with mean 1/α. Hill's estimator is this, with x_m the (k+1)-th largest value and the k largest as the sample: α̂ = (mean of ln(X₍ᵢ₎/X₍ₖ₊₁₎))⁻¹. With α = 3, E|X|ᵖ is finite only for p < 3: the mean and variance exist, the third moment barely does not, and the fourth (kurtosis) is infinite, which is why chapter 8's running kurtosis never settles.
-
The best leverage. A fund holds \(L\) times the market, rebalanced daily, borrowing at \(r\). Show its growth rate is about \(r + L(\mu - r) - \tfrac12 L^2\sigma^2\), find the best \(L\), and evaluate it with chapter 2's numbers.
Solution
A fund holding L times the market, rebalanced continuously and borrowing at r, has instantaneous return r + L(μ − r) and variance L²σ², so its growth rate is g(L) = r + L(μ − r) − ½L²σ². Then g′(L) = 0 gives L* = (μ − r)/σ², the Kelly leverage, and g(L*) = r + (μ − r)²/(2σ²). From the daily data of 1926–2020: μ = 10.6%, r = 3.0%, σ = 17.1% a year, so L* = 2.62 and g(L*) = 13.0% a year, against 9.2% at L = 1; growth falls back to the unlevered level at L = 2L* − 1 ≈ 4.2 and is negative beyond (μ − r + √((μ − r)² + 2rσ²))/σ² ≈ 5.6. Real funds pay fees and borrow above the bill rate, which moves the peak down.
-
(qual) The variance ratio's law. (qual) For iid increments with a finite fourth moment, prove \(\sqrt n(\operatorname{VR}(q) - 1) \Rightarrow N\big(0, 2(2q-1)(q-1)/(3q)\big)\).
Solution
Chapter 4's identity gives \(\mathrm{VR}(q) - 1 = 2\sum_{k<q}(1 - k/q)\hat\rho_k + O_p(1/n)\). For iid increments with \(E\varepsilon^4 < \infty\), Bartlett's theorem gives \(\sqrt n(\hat\rho_1, \dots, \hat\rho_{q-1}) \Rightarrow N(0, I)\) (the products \(\varepsilon_t\varepsilon_{t-k}\) are uncorrelated across \(k\) with variance \(\sigma^4\); a martingale CLT and Slutsky handle the demeaning and the denominator). A fixed linear combination is normal with variance \(4\sum_{k=1}^{q-1}(1 - k/q)^2 = \tfrac{4}{q^2}\sum_{j=1}^{q-1}j^2 = \tfrac{2(q-1)(2q-1)}{3q}\).
-
(qual) GARCH's fourth moments. (qual) GARCH(1,1), normal shocks: show \(\delta_k = 1 + (\kappa - 1)\rho_1(\alpha + \beta)^{k-1}\); for \((0.05, 0.12, 0.86)\) evaluate \(\delta_1\) and show \(\hat\delta_k\) has infinite variance.
Solution
\(\delta_k = E[\varepsilon_t^2\varepsilon_{t-k}^2]/\sigma^4 = 1 + \operatorname{cov}(\varepsilon_t^2, \varepsilon_{t-k}^2)/\sigma^4 = 1 + (\kappa - 1)\rho_k\), with \(\rho_k\) the autocorrelation of \(\varepsilon^2\). GARCH(1,1) makes \(\varepsilon_t^2\) an ARMA(1,1), \(\varepsilon_t^2 = \omega + (\alpha + \beta)\varepsilon_{t-1}^2 + v_t - \beta v_{t-1}\) with \(v_t = \varepsilon_t^2 - \sigma_t^2\), so \(\rho_1 = \alpha(1 - \alpha\beta - \beta^2)/(1 - 2\alpha\beta - \beta^2)\) and \(\rho_k = (\alpha + \beta)^{k-1}\rho_1\); with normal shocks \(\kappa = 3(1 - (\alpha + \beta)^2)/(1 - (\alpha + \beta)^2 - 2\alpha^2)\). For \((0.05, 0.12, 0.86)\): \(\kappa = 11.0\), \(\rho_1 = 0.349\), \(\delta_1 = 4.49\). The variance of \(\hat\delta_k\) involves \(E\varepsilon^8\), finite iff \(E(\beta + \alpha z^2)^4 < 1\); here \(\beta^4 + 4\beta^3\alpha + 18\beta^2\alpha^2 + 60\beta\alpha^3 + 105\alpha^4 = 1.155\), so it is infinite: the estimate converges, but slowly and not at rate \(\sqrt n\).
Reading and notes
The part's papers
from READING.md
- Regnault, J. (1863). Calcul des chances et philosophie de la Bourse.
- Bachelier, L. (1900). "Théorie de la spéculation." Annales scientifiques de l'École Normale Supérieure.
- Cowles, A. (1933). "Can stock market forecasters forecast?" Econometrica.
- Kendall, M. G. (1953). "The analysis of economic time-series, Part I: Prices." JRSS A.
- Osborne, M. F. M. (1959). "Brownian motion in the stock market." Operations Research.
- Mandelbrot, B. (1963). "The variation of certain speculative prices." Journal of Business.
- Samuelson, P. A. (1965). "Proof that properly anticipated prices fluctuate randomly." Industrial Management Review.
- Fama, E. F. (1970). "Efficient capital markets: a review of theory and empirical work." Journal of Finance.
- Fama, E. F. (1991). "Efficient capital markets: II." Journal of Finance.
- Grossman, S., Stiglitz, J. (1980). "On the impossibility of informationally efficient markets." AER.
- Black, F. (1986). "Noise." Journal of Finance.
- Lo, A. W., MacKinlay, A. C. (1988). "Stock market prices do not follow random walks." RFS.
- Gopikrishnan, P., Meyer, M., Amaral, L. A. N., Stanley, H. E. (1998). "Inverse cubic law for the distribution of stock price variations." European Physical Journal B.
- Cont, R. (2001). "Empirical properties of asset returns: stylized facts and statistical issues." Quantitative Finance.
- Thorp, E. O. (1962). Beat the Dealer; Thorp, E. O., Kassouf, S. (1967). Beat the Market.
For the researcher
- The theorem (the research chapter) is Lo and MacKinlay (1988), Theorems 1–3: the iid limit, and the heteroskedasticity-consistent limit under a martingale difference satisfying their Assumption H4, \(E[\varepsilon_t^2\varepsilon_{t-j}\varepsilon_{t-k}] = 0\) for \(j \ne k\), which is what makes the autocorrelations asymptotically uncorrelated. Asymmetric GARCH (leverage) can violate it; then the covariances between \(\hat\rho_j\) and \(\hat\rho_k\) must be kept.
- Simplifications. The video drops the \(O_p(1/n)\) bias terms (the House's implementation keeps Lo and MacKinlay's small-sample corrections). Under stationarity and ergodicity, a finite fourth moment suffices for consistency of \(\hat\delta_k\). A finite eighth moment is sufficient for finite estimator variance; it is not a requirement for consistency. In the simulated Gaussian GARCH model, the fourth moment exists but the eighth does not, making the estimator's variance infinite and its convergence slow.
- Stress-test boundary. The GARCH run with standardized \(t_5\) shocks has \(E[z^4]=9\) and \(E[(0.86+0.12z^2)^2]=1.0756>1\), so its fourth moment does not exist. Its observed rejection rates are a finite-sample stress test outside the finite-fourth-moment theorem, not a guarantee of asymptotic size control.
- Reading. Bartlett (1946); Lo and MacKinlay (1988, 1989); Richardson and Stock (1989); Chow and Denning (1993); Davis and Mikosch (1998); Choi (1999); Kim (2006); Charles and Darné (2009), a survey.
- Open problems. Variance-ratio inference with infinite fourth moments; horizons that grow with the sample; choosing \(q\) without a multiple-testing penalty. The long-horizon card concerns \(q/n\) remaining non-negligible. Merely allowing \(q\) to grow slowly does not rule out normal approximations under suitable additional rate conditions.
Worked check. At \(q=4\), the iid asymptotic variance is \(3.5\). With \(n=1500\) and \(\operatorname{VR}(4)=1.10\), \(z=\sqrt{1500}(0.10)/\sqrt{3.5}\approx2.07\). If \(\delta_1=\delta_2=\delta_3=2\), the robust variance doubles, giving \(z^*=z/\sqrt2\approx1.46\). At the two-sided 5% normal threshold of 1.96, the iid calculation rejects and the robust calculation does not.
Data, scope and reproducibilityData and reproducibility
- Kenneth French's data library: the daily Fama–French factors (the market is Mkt−RF + RF) and the daily
value-weighted size-decile portfolios (NYSE breakpoints), frozen through 31 December 2025, checksummed in
../data/manifest.json. - Binance's public archive: BTC/USDT daily candles from 17 August 2017.
- Deribit's public history: every BTC option trade of 10 December 2025, 00:00–12:00 UTC (the Surface).
- The research window ends on 31 December 2020; the digests of 2021–2025 are in
../data/envelope.json. - Simulations are seeded; every render on any machine shows the same numbers.
Chapter notesChapters (about 58 minutes, narration estimate)
- Which one is real? Four one-year charts: three Gaussian random walks with the market's mean and volatility, and the US market in 1997. The charts look alike; the daily returns don't: 27 October 1997, −6.6%, a 6.8σ day that a bell curve expects once in 5×10⁸ years. Objectives; the House opens its data desk.
- 1. Paris, 1863 and 1900. Regnault's square-root-of-time law (1863); Bachelier's thesis (1900, graded honorable); Savage's postcards and Samuelson (1950s). Regnault's law on 98 one-year stretches since 1926, and on log scales: slope 0.52 for the US market (1 day to 2 years), 0.50 for Bitcoin; a year's spread 13% above the daily extrapolation.
- 2. Prices, returns and the drag. Simple and log returns; +50% then −50%; 94 calendar years: arithmetic mean 11.95%, geometric 10.02%, gap 1.93% against ½σ² = 1.97%; the lognormal derivation; daily-rebalanced leverage since 1926: $1 became $8,642 (1×), $209,604 (2×), $255,193 (3×, after losing 98.7% by July 1932); growth is a parabola in leverage with its peak at (μ − r)/σ² ≈ 2.6 (Kelly, Part 8).
- 3. The random walk. Cowles (1933), Kendall (1953), Osborne (1959); Samuelson's proof (1965) by the tower property; a fair price at work (twenty coin tosses); martingale against random walk. An asymmetric tree checks the distinction: a 90% chance of gaining 1 and a 10% chance of losing 9 have zero expected change. A martingale need not have equally likely signs, and low return autocorrelation alone does not establish the martingale property.
- 4. Testing the walk. Autocorrelation and the variance ratio, VR(q) = 1 + 2Σ(1 − k/q)ρₖ; Lo and MacKinlay (1988) replicated on French's size deciles over their exact sample (6 Sept 1962 – 26 Dec 1985, 1,215 weeks): the smallest decile's weekly autocorrelation +0.35, VR(16) = 2.57, z* ≈ 9–11; the largest decile a random walk; 1986–2020: +0.16 for small stocks, about zero or negative elsewhere; in rolling five-year windows the small-stock echo survives publication and collapses in the mid-2000s (decimal prices, Reg NMS, electronic trading).
- 5. Heavy tails. 24,896 days on a log-density scale; excess kurtosis 17.7; days beyond 5σ: 101 seen against 0.014 expected (beyond 10σ: 5 against 4×10⁻¹⁹); the tail on log-log axes, slope about −3 (Gopikrishnan, Meyer, Amaral and Stanley 1998); Hill estimates: α = 2.89 (both tails), 2.84 (losses), Bitcoin 3.7, and 3.96 after scaling by recent volatility.
- 6. Volatility clusters. 94 years of daily returns and monthly volatility; autocorrelations to a year: returns ≈ 0 (ρ₁ = +0.05), absolute returns 0.31 at a day and 0.12 at a year, decaying like k^−0.23, gone when the days are shuffled; Bitcoin's shorter memory; the leverage effect (corr(rₜ, |rₜ₊ₖ|) ≈ −0.10 for k = 1…5, ≈ 0 backwards; Black 1976).
- 7. Slower clocks, thinner tails. Daily, monthly and yearly return shapes; kurtosis 17.7 → 6.7 → 2.8 (half a year), slower than independence would allow; without 19 October 1987 the daily kurtosis is 14.1.
- 8. Does the variance exist? Mandelbrot (1963) and stable laws; running standard deviations (US market, bell curve, Student t(3), Cauchy); running kurtosis jumps in 1987; one day carries 19% of 94 years' fourth-power mass.
- 9. Efficient markets. Fama (1970), the three forms and the joint-hypothesis problem; Grossman and Stiglitz (1980); Black's "Noise" (1986); Martin and Nagel (2022) as a simulation: 500 stocks, 200 characteristics, Bayesian investors, prices efficient by construction; an in-sample test rejects in 64% of 300 markets (nominal 5%); the out-of-sample R² is negative in all of them (median −7.3%).
- 10. Two worlds, P and Q. P and Q defined; the Surface's 51-day BTC smile and an SVI curve through it; Breeden–Litzenberger (1978); the Q density against 51-day returns of the four years before (Q: mean 0, spread 17.6%, P(−20% or worse) 10.1%; P: +5.1%, 21.3%, 7.9%); Martin's (2017) bound: var^Q(S_T/F) = 3.11% over 51 days, at least 22% a year of expected excess return if his condition holds.
- 11. Who is on the other side? Hedgers, speculators, market makers, arbitrageurs; Sharpe's arithmetic of active management (1991); the industry firm file (market makers and proprietary traders, systematic funds, multi-manager platforms, banks and asset managers), from the public record.
- 12. Beating the dealer. The doubling system (3,000 sessions; ruin 0.10%, mean −0.02 ± 0.07 over 200,000); the optional stopping theorem with a fixed deadline and three stopping rules (all capped at 200 tosses; almost-sure eventual stopping alone is insufficient); Thorp's card counting (six-deck shoes, Hi-Lo true counts: 27% of hands favour the player; flat bets −0.50%, bets of 1–8 by count +0.08% of the money bet); Princeton Newport Partners (19.1% before fees, 15.1% after, against 10.2% for the S&P 500, 1969–1988, as Thorp reports).
- 13. March 2020. The crisis file: the US market on 16 March 2020 (−12.0%, 8.7σ against its own past year; 3×10¹⁵ years under a bell curve, about 23 under the fitted tail) and Bitcoin on 12 March (−39.5%, 13.9σ; about 12 years under its own tail).
- For the researcher: the variance ratio's law. The proof of Lo and MacKinlay's iid limit \(\sqrt n(\mathrm{VR}(q) - 1) \Rightarrow N(0, 2(2q-1)(q-1)/(3q))\) from Bartlett's theorem; the martingale-difference version with \(\delta_k = E[\varepsilon_t^2\varepsilon_{t-k}^2]/\sigma^4\) and the robust \(z^*\). Simulation (2,000 paths of 1,500 returns): under GARCH(1,1) \((0.05, 0.12, 0.86)\) the iid \(z\) rejects a true walk 14–17% of the time (22–26% with \(t_5\) shocks), \(z^*\) 5–6%; the iid \(z\)'s standard deviation is 1.47. \(\delta_1\) is 4.5 in theory, estimated at 3.0 from 400,000 returns because \(\hat\delta_k\) needs an eighth moment the model lacks. Power of \(z^*\) at \(q = 4\): 22%, 65%, 98% for \(\rho\) = 0.05, 0.1, 0.2. Chapter 4's data with both: small stocks 1962–85 \(z\) 15.0, \(z^*\) 10.8; 1986–2020 8.6 against 3.7. Three open problems.
- 14. The House opens. The data layer; rule 1, point in time; rule 2, the sealed envelope (research to 2020,
2021–2025 sealed with recorded SHA-256 digests in
../data/envelope.json); the trial counter at 0. - Recap, desk questions, problems. Ten lines; three desk questions; seven problems (two at qualifying-exam level); where this comes back; references; the House and the series map.
Companion films in this repository
中文讲义
本讲的中文说明、交易台问题与习题解答(与英文版对应)。
导言量化金融,从零搭建 — 第1部分:公平的赌局
本系列量化金融课程共43部分,这是第一幕“市场与货币”的第一部分。它问的是:一场纯粹的机会游戏,能在多大程度上描述价格? 答案在94年的美国股市、比特币以及一天上午的比特币期权上测量出来。所有数字都由本系列自己的代码根据公开数据算出。股票和比特币的 收益可预测性研究只使用2020年12月31日之前的数据,之后的年份留作策略评估(第16章)。第10章按日期展示的期权示例使用2025年的报价 和此前的比特币历史,它是描述性示例,不是策略检验。哈希标识数据,并不能阻止偷看;评估的保护来自事先登记和只检验一次的流程。
讲的是方法,不构成投资建议。
第3章用一个不对称的树图区分均值与方向:90%的概率赚1元,10%的概率亏9元,期望变动仍为零。 鞅不要求涨跌概率各半;收益的自相关很小,也不能单独证明价格是鞅。
Desk questions, with solutions交易台问题与解答
- 圣彼得堡游戏。 收益2ⁿ出现的概率是2⁻ⁿ,期望是Σₙ 2⁻ⁿ2ⁿ = ∞。可是没有人愿意付超过几美元:超出任何对手方支付能力的收益并不 真实,而且人们按对数来衡量财富。用对数效用(丹尼尔·伯努利,1738),且没有其他财富时,确定性等价满足 ln c = Σₙ 2⁻ⁿ ln 2ⁿ = 2 ln 2,所以c = 4美元。
- 永远上涨或下跌50%。 每年财富乘以1.5或0.5,平均乘数是1,所以期望财富永远不变。但对数财富是一个漂移为 ½ ln 1.5 + ½ ln 0.5 = ½ ln 0.75 ≈ −0.144的随机游走:中位数路径每年下跌约13%,最终归零,期望全靠极其罕见的路径撑着。 这就是第2章的拖累,½σ²,σ = 50%。
- 连续两次正面。 设期望投掷次数为E。第一次是反面(概率½):重新开始,E + 1。正面后反面(概率¼):重新开始,E + 2。 两次正面(概率¼):2次结束。E = ½(E + 1) + ¼(E + 2) + ¼ · 2,解得E = 6。(“正反”的答案是4:会和自身重叠的模式要等更久。)
Problems, with worked solutions习题与解答
-
公平价格是鞅。 证明:若对固定收益 \(X\) 有 \(P_t = \mathbb E_t[X]\),则 \(P\) 是鞅,其增量不相关,但不必独立。给出后者的一个例子。
解答
由塔性质,Eₜ[Pₜ₊₁] = Eₜ[Eₜ₊₁[X]] = Eₜ[X] = Pₜ。对s < t, E[(Pₜ₊₁ − Pₜ)(Pₛ₊₁ − Pₛ)] = E[(Pₛ₊₁ − Pₛ) Eₜ[Pₜ₊₁ − Pₜ]] = 0,所以增量不相关。但不必独立:令εₜ为公平硬币(±1), Pₜ₊₁ = Pₜ + σₜ εₜ₊₁,σₜ = 1 + |Pₜ − P₀|/10:每个增量在给定过去时均值为零,但大小取决于此前的路径(第6章的波动率聚集)。
-
对数正态的两种平均。 若单期对数收益服从 \(N(m, s^2)\),证明算术平均简单收益为 \(e^{m + s^2/2} - 1\),几何平均为 \(e^m - 1\)。用第2章的数字验证(11.95%、10.02%、\(\sigma\) = 19.9%)。
解答
若r = ln(1 + R) ~ N(m, s²),则E[1 + R] = e^{m + s²/2},算术平均简单收益为e^{m+s²/2} − 1; 一美元按e^{Σr}增长,每期增长率为e^m − 1,即几何平均。用第2章的数字:e^m − 1 = 10.02%得m = 9.55%, e^{m+s²/2} − 1 = 11.95%得s = 18.6%,与年度简单收益的标准差19.9%接近。
-
方差比。 对平稳序列证明 \(\operatorname{VR}(2) = 1 + \rho_1\) 以及 \(\operatorname{VR}(q) = 1 + 2\sum_{k<q}(1 - k/q)\rho_k\)。
解答
对方差为σ²、自相关为ρₖ的平稳序列,Var(r₁ + … + r_q) = qσ² + 2σ² Σ_{k=1}^{q−1} (q − k)ρₖ。 除以qσ²得VR(q) = 1 + 2Σ_{k<q}(1 − k/q)ρₖ;q = 2时VR(2) = 1 + ρ₁。
-
希尔估计量。 对帕累托尾部 \(P(X > x) = (x / x_m)^{-\alpha}\),证明 \(\mathbb E[\ln(X / x_m)] = 1/\alpha\),这就是希尔估计量。若日收益的 \(\alpha = 3\),哪些矩存在?
解答
若P(X > x) = (x/x_m)^−α,则Y = ln(X/x_m)服从均值为1/α的指数分布。希尔估计量就是以第k+1大的值为x_m、 以最大的k个值为样本的这个估计。α = 3时,只有p < 3阶的矩有限:均值和方差存在,四阶矩(峰度)无穷大, 所以第8章的滚动峰度永远不会稳定。
-
最优杠杆。 一只基金持有 \(L\) 倍市场,每日再平衡,按 \(r\) 借款。证明其增长率约为 \(r + L(\mu - r) - \tfrac12 L^2\sigma^2\),求最优 \(L\),并用第2章的数字计算。
解答
持有L倍市场、连续再平衡、按r借款的基金,增长率为g(L) = r + L(μ − r) − ½L²σ²。令g′(L) = 0得 L* = (μ − r)/σ²,即凯利杠杆,g(L*) = r + (μ − r)²/(2σ²)。用1926–2020年的日数据:μ = 10.6%,r = 3.0%,σ = 17.1%, L* = 2.62,g(L*) = 13.0%,而L = 1时为9.2%;L ≈ 4.2时增长率回落到不加杠杆的水平,约5.6倍以上为负。 真实基金要付费用,借款利率高于国库券利率,会把峰值往下推。
-
(资格考试)方差比的极限分布。 (资格考试)增量独立同分布且四阶矩有限,证明\(\sqrt n(\operatorname{VR}(q)-1)\Rightarrow N\big(0,2(2q-1)(q-1)/(3q)\big)\)。
解答
由第4章的恒等式,\(\mathrm{VR}(q) - 1 = 2\sum_{k<q}(1 - k/q)\hat\rho_k + O_p(1/n)\)。 增量独立同分布且四阶矩有限时,巴特利特定理给出\(\sqrt n(\hat\rho_1, \dots, \hat\rho_{q-1}) \Rightarrow N(0, I)\); 固定线性组合是正态的,方差为\(4\sum_{k=1}^{q-1}(1 - k/q)^2 = 2(q-1)(2q-1)/(3q)\)。
-
(资格考试)GARCH的四阶矩。 (资格考试)正态冲击的GARCH(1,1):证明\(\delta_k=1+(\kappa-1)\rho_1(\alpha+\beta)^{k-1}\);对\((0.05,0.12,0.86)\)求出\(\delta_1\),并证明\(\hat\delta_k\)的方差无穷。
解答
\(\delta_k = 1 + (\kappa - 1)\rho_k\),其中\(\rho_k\)是\(\varepsilon^2\)的自相关。GARCH(1,1)使 \(\varepsilon_t^2\)成为ARMA(1,1),\(\rho_1 = \alpha(1 - \alpha\beta - \beta^2)/(1 - 2\alpha\beta - \beta^2)\),\(\rho_k = (\alpha + \beta)^{k-1}\rho_1\);正态冲击下\(\kappa = 3(1 - (\alpha + \beta)^2)/(1 - (\alpha + \beta)^2 - 2\alpha^2)\)。 参数\((0.05, 0.12, 0.86)\)时\(\kappa = 11.0\),\(\rho_1 = 0.349\),\(\delta_1 = 4.49\)。\(\hat\delta_k\)的方差涉及\(E\varepsilon^8\), 它有限当且仅当\(E(\beta + \alpha z^2)^4 < 1\);这里等于1.155,所以是无穷大:估计会收敛,但很慢,且不是\(\sqrt n\)的速度。
For the researcher写给研究者
研究章节的定理是Lo与MacKinlay(1988)的定理1–3:独立同分布下的极限,以及鞅差下(要求其对称性假设H4)的异方差稳健极限。 非对称GARCH(杠杆效应)可能违反该假设,此时必须保留\(\hat\rho_j\)与\(\hat\rho_k\)之间的协方差。开放问题:四阶矩无穷时的方差比推断; 随样本增长的期限;在不付出多重检验代价的情况下选择\(q\)。 长时间跨度卡片指\(q/n\)不可忽略的情形;仅仅让\(q\)缓慢增长,并不排除在额外的增长率条件下使用正态近似。
压力测试的边界:标准化\(t_5\)冲击满足\(E[z^4]=9\),这里的GARCH参数给出 \(E[(0.86+0.12z^2)^2]=1.0756>1\),因此四阶矩不存在。该模型中测得的拒绝率是定理假设之外的有限样本压力测试, 并不保证渐近检验水平正确。
数值检验:\(q=4\)时,独立同分布的渐近方差为3.5。取\(n=1500\)、\(\operatorname{VR}(4)=1.10\), \(z=\sqrt{1500}(0.10)/\sqrt{3.5}\approx2.07\)。若前三个\(\delta_k\)都为2,稳健方差翻倍, \(z^*=z/\sqrt2\approx1.46\)。双侧5%的正态临界值为1.96,因此前者拒绝原假设,后者不拒绝。
Build the film
python -m videos.quant.quant1.compute # the part's numbers, into .cache/quant1
python tools/make.py quant1 # the narrated film, English and Chinese
EXPLAINER_TTS=silent python tools/qa_scene.py quant1 Hook # one chapter, silent, with a contact sheet
Scenes: videos/quant/quant1. Setup: see the course page. Source of these notes: the part's README and the scenes' narration.