QQuant, Built

Act II · The Mathematical Toolkit

Part 6 of 43

Financial Econometrics

Undergraduatestarts at this level63 min of film 21 chaptersprerequisites: Part 1

One regression of returns on a predictor can be given five different verdicts. Which standard error is the right one?

The same slope is judged with ordinary, Newey-West, clustered, Fama-MacBeth and bootstrap standard errors, and the verdicts disagree. The part works out why: returns are dependent across time and across firms, predictors are persistent, and tests are run by the hundred. Each remedy is derived and then checked on data it was built for. The second half is the toolkit proper: maximum likelihood, GMM, event studies, shrinkage, multiple testing, and the designs that separate cause from correlation.

What you need. Linear regression at the level of a first statistics course.

What you will be able to do

Undergraduate

  • Read a regression table and say what the standard error assumes.
  • Compute how many years of data a Sharpe ratio needs before it is distinguishable from zero.

Master's

  • Choose and compute Newey-West, clustered and Fama-MacBeth standard errors, and a block bootstrap.
  • Estimate by maximum likelihood and by GMM; correct for multiple tests with Bonferroni, Holm and Benjamini-Hochberg.

PhD

  • Derive the distribution of a predictive regression's slope when the predictor is local to a unit root, and the size distortion that follows; set up double machine learning.

Industry

  • Run a research review: what must be reported with a result before anyone allocates to it.

Contents

Each chapter has a home level. Choose a track to see what to read and watch: Undergraduate 23 min · Master's 55 min · PhD 63 min · Industry 26 min.

  1. 0One regression, five verdictsUndergraduate3 min
  2. 1Least squares, seen as geometryUndergraduate3 min
  3. 2Newey-West: counting dependent dataMaster's4 min
  4. 3Clustering: the shocks that are sharedMaster's3 min
  5. 4Fama-MacBeth, and five verdicts resolvedMaster's4 min
  6. 5Predictive regressions: Stambaugh's biasMaster's3 min
  7. 6Out of sample: can anything beat the mean?Undergraduate3 min
  8. 7Maximum likelihoodUndergraduate3 min
  9. 8GMM: moments as close to zero as possibleMaster's3 min
  10. 9The Euler equation, estimated and rejectedMaster's3 min
  11. 10Event studiesUndergraduate3 min
  12. 11The bootstrap for dependent dataMaster's3 min
  13. 12Shrinkage and BayesMaster's3 min
  14. 13Many testsUndergraduate3 min
  15. 14Causal designsMaster's4 min
  16. 15Double machine learningPhD3 min
  17. 16How many years until you know?Undergraduate3 min
  18. 17How research desks avoid fooling themselvesIndustry3 min
  19. 18The frontier, 2023-2026PhD2 min
  20. For the researcher: predictive regressions near a unit rootPhD3 min
  21. The statistics module; 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.

One regression, five verdictsUndergraduate3 min

The mathematics of the last two parts describes how prices move. This part is about the harder problem: learning from the one history we have, without fooling ourselves.

Here is a question an analyst might ask on a Monday morning. Does an industry's return over the past year predict its return next month? Kenneth French's forty-nine industries, ninety-three years, fifty-two thousand observations. Run one regression. Ordinary least squares says the slope is positive, with a t-statistic of , below the familiar normal-reference cutoff; that reference itself needs suitable sampling assumptions. But industries in the same month share a market shock. Cluster by month, and the t-statistic is : much weaker evidence, not proof that the effect is zero. Fama and MacBeth's method, a slope each month, averaged, gives a different slope altogether, times larger, with a t-statistic of . Same observations, different weighting and noise assumptions, five verdicts. And a sixth, in grey: least squares with a separate intercept for every month. Pause and predict: which will it sit closest to? Chapter four separates different estimands from standard-error assumptions; no one bar establishes a trading rule.

How we got here. In 1933 Alfred Cowles asked whether forecasters could forecast: mostly not. In 1969 Fama, Fisher, Jensen and Roll invented the event study. In 1973 Fama and MacBeth averaged monthly cross-sections. In 1982 Hansen gave GMM; in 1987 Newey and West, the standard error for correlated data. Then the reckoning: in 2009 Petersen found forty-two percent of panel papers had not adjusted their standard errors; in 2016 Harvey, Liu and Zhu counted three hundred and sixteen factors; in 2024 a hundred and sixty-four teams given the same data disagreed far more than their standard errors said.

The plan. Least squares as geometry, and the three shapes of dependence that break its standard errors: overlap, persistence and shared shocks. Fama-MacBeth and the two-pass test of the CAPM, where the five verdicts are resolved. Predictive regressions, in and out of sample. Likelihood and the generalized method of moments, and the consumption Euler equation, which fails. Event studies on Federal Reserve decision days. Bootstraps for dependent data, Bayes sampled by Gibbs, multiple testing, causal designs and double machine learning. And the hardest number in finance: how many years a Sharpe ratio needs. Everything here lives under the real-world measure, P: statements about the data we observe, not about prices.

In the House, this part builds the statistics module: robust standard errors, panel methods, bootstraps for dependent data, corrections for multiple testing, and double machine learning. Every number the research desk reports from Part twenty-three onward will pass through it.

1Least squares, seen as geometryUndergraduate3 min

Start with the picture every regression rests on. Give each observation its own axis: three months of returns are one point in three dimensions, the white arrow. The regressors are more arrows, and every combination X times b is a plane. Least squares finds the point of the plane closest to y: drop a perpendicular. Its foot is the fitted values; the perpendicular is the residual. The residual is at right angles to every regressor: X transpose times the residual is zero. Everything follows from that, in three dimensions or a thousand.

The algebra, line by line. The residual is perpendicular to the columns of X: the normal equations. Solve them. Substitute the true model, and the estimation error is a weighted sum of the scores, each regressor times its error. For a full-rank fixed-design calculation with zero conditional mean errors, its conditional variance is a sandwich: X transpose X inverse around X transpose omega X. Omega is the conditional error covariance. Only if omega is a constant times the identity does it collapse to the textbook formula. Every standard error in this part is a claim about the filling.

What does it mean to control for something? Ask how tobacco stocks load on the size factor. Alone, the slope is : tobacco looks like a small-stock industry. But size and the market move together. The Frisch-Waugh-Lovell theorem: regress tobacco on the market and keep the residual; do the same for size. Every point slides to its residual position. The slope of residual on residual is : net of the market, tobacco behaves like a big-company stock. And it equals the multiple-regression coefficient to sixteen decimal places. A control is a projection, applied to both sides. Pause and predict: after removing the existing controls, add a regressor whose residual is orthogonal to size's residual. Does size's slope change? No; its standard error can. Marginal uncorrelatedness alone would not suffice.

The sandwich as a picture. The meat is the errors' covariance matrix: row and column t are month t. Under iid, only the diagonal is lit, all equally. Halbert White's 1980 estimator lets each diagonal cell have its own size, estimated by the squared residual, x t x t transpose times u hat squared: consistent even though each single cell is a terrible estimate, because the sandwich only needs their average. For tobacco's size slope it gives against . But finance lives off the diagonal. Overlapping returns and persistent predictors light a band: chapter two. Shocks shared within a month light blocks: chapter three. The estimate never changes; how much it can be trusted does. The next three chapters are three shapes of meat.

2Newey-West: counting dependent dataMaster's4 min

Chapter one's sandwich, with the band lit. Regress a five-year real return on the lagged dividend yield, with a one-month gap, in Shiller's retrospective data. Least squares reports a t-statistic of . Here are the autocorrelations of the regression's scores, lag by lag. Neighbouring windows share fifty-nine of sixty months, so they stay high out to lag fifty-nine and beyond. The naive formula keeps only lag zero. Newey and West lay a triangle over the bars and add them up, weighted by its height. As the window opens, the long-run variance climbs and the t-statistic falls. At a hundred and twenty months it is . The window is the estimator: too narrow misses dependence, too wide adds noise.

Why a sum of autocovariances? Chapter one's error, scaled by root T, is a fixed matrix times the scaled sum of the scores. The variance of a sum adds every pair's covariance: T terms on the diagonal, and T minus k pairs k apart, each sharing gamma k. Under stationarity, summable score covariances and a suitable central limit theorem, dividing by T gives the limit S, the long-run variance, which is also the spectrum of the scores at frequency zero, the power in their slowest movements. A flat-weight truncated sum can be indefinite; Bartlett's declining weights give a positive-semidefinite estimate; Hansen and Hodrick used flat weights out to the horizon. For sums of iid innovations, h-month overlap gives correlation h minus the absolute lag over h. The correlations sum to h, so the variance of their sample mean is inflated by h. A predictive slope also depends on the regressor; sixty is not a universal correction factor for it.

The House's code. The scores are regressors times residuals; lag zero is White; each lag's autocovariance is added on both sides of the diagonal with Bartlett's weight; the meat goes between the bread. On Shiller's data: naive, . Newey-West with a hundred and twenty lags, . Hansen-Hodrick, . And Robert Hodrick's 1992 null-based variance estimator uses one-month residuals multiplied by backward sums of the predictor. The long-horizon coefficient is retained; only its standard error changes. Its t-statistic is .

Do the corrections work? Simulate worlds where nothing predicts anything, with twelve-month overlapping returns, and count how often each test rejects at five percent. With a persistent predictor, the naive test rejects percent of the time, Newey-West with the usual short window , with the window at the overlap . Nicholas Kiefer and Timothy Vogelsang developed a different asymptotic approximation in 2005: hold the window's share of the sample, b, fixed, and the estimated long-run variance stays random, so t has fatter tails. Their fixed-b critical values grow with b; simulated, about at a tenth of the sample, at three tenths. Lazarus, Lewis, Stock and Watson recommended in 2018 a much wider window with fixed-b values, or the equal-weighted cosine estimator, squared cosine projections with Student's t. They reject and percent here: still above five. These finite-sample corrections do not fully solve this persistent-predictor experiment. Pause and predict: no overlap, no persistence. Every test is near five percent; naive . The problem is overlap times persistence. Overlap is one shape of dependence. Next: shocks shared across firms.

3Clustering: the shocks that are sharedMaster's3 min

In a panel, many firms over many months, errors can be linked two more ways. Here is the error covariance matrix for four firms over six months, rows ordered month by month. A firm effect, a persistent component per firm, links every pair of observations of the same firm: stripes. Least squares, even with White's correction, covers only the diagonal; what it misses lights up red. Clustering by firm covers the stripes. A time effect, a shock every firm shares in a month, makes diagonal blocks instead. Firm clusters miss them; month clusters cover them.

The clustered estimator sums the scores within each cluster, squares the total, and adds over clusters: every correlation inside a cluster is kept, every correlation across clusters is assumed away. It needs many clusters, because each cluster is one observation of the meat. For balanced, equicorrelated clusters, Moulton's illustrative factor says what ignoring it can cost: the naive variance times one plus the cluster size minus one, times the within-cluster correlations of both the regressor and the error. With forty-nine industries in a month, even small correlations multiply into a large factor. With both kinds of effect, Cameron, Gelbach and Miller's two-way estimator adds the firm and month clusters and subtracts the intersection they both counted: the diagonal in this one-observation-per-firm-month panel.

Mitchell Petersen ran the experiment in 2009, and we repeat it: five hundred firms over ten years, with firm effects, time effects or both. Each bar is a method's average standard error over the true spread; one is honest. Watch them settle as replications pile up. With a firm effect, least squares reports of the truth, Fama-MacBeth , clustering by firm . With a time effect, least squares reports ; clustering by month, with only ten clusters, ; Fama-MacBeth . With both, the two-way estimator, . And in Petersen's survey, forty-two percent of panel papers had not adjusted at all.

Which dimension? Whatever the regressor and the error both share. Returns share the month; a firm's leverage shares the firm. When in doubt, cluster both ways, with enough clusters in each. Pause and predict: the opening regression, cluster by industry or by month? By month. By industry, the t-statistic moves from to ; by month, to . The shared shock is the market. Month clustering addresses the common time shock; serial dependence within industries can also require two-way clustering. Fama-MacBeth changes the weighting of the regression. Chapter four separates these questions. Next.

4Fama-MacBeth, and five verdicts resolvedMaster's4 min

Fama and MacBeth, in 1973, turned a panel into a time series. Each month, take the cross-section: forty-nine industries, past-year return across, next month's return up, and fit a line: did this month's winners beat its losers? Drop the slope on a pile, move to the next month. Eleven hundred months later, the pile is a histogram. The estimate is the average slope, its standard error that of a time-series mean. The variation of monthly slopes reflects shocks shared within each month. Inference still needs enough dates and appropriate treatment of serial dependence between the slopes.

The House's version: loop over months, regress the cross-section, keep the slopes; the estimate is their mean, the standard error their spread over root T, or Newey-West on the slopes. On the industries: a slope of , t-statistic ; with Newey-West. In percent of months, winners beat losers.

Now the verdicts. Why was the pooled slope times smaller? Three months on one picture: each cloud has its own centre. Subtract each month's means, and the clouds slide to the origin. The slope through them is the within-month slope, least squares with month effects: , t of clustered by month. It equals the Fama-MacBeth average weighted by each month's cross-sectional dispersion. What was subtracted, the month means, has its own slope: did months with higher average industry momentum precede higher average industry returns? This between-month estimate is negative but very imprecise: , t of . Pooled least squares mixes the two, percent within, and lands at . So dispersion weighting explains only part of the gap, from to ; the rest is market timing mixed into a cross-sectional question. The coefficients use different variation; their standard errors still need suitable dependence assumptions. These industry averages are not the market portfolio itself.

The algebra. Fama-MacBeth averages the monthly slopes, each month counting once. The within estimator divides the centred cross-products, summed over all months, by the centred squares, summed over all months. Each month's own slope is that month's cross-products over that month's squares, so multiply and divide: the within estimator is a weighted average of the monthly slopes, each weighted by its month's share of the total cross-sectional variation. Turbulent months, when industries' past returns were far apart, count most. And split the total variation of the regressor into within-month and between-month sums of squares: the cross term vanishes inside every month, so pooled is the variation-weighted average of the within and between slopes. Problem six.

Fama and MacBeth built the method to test the CAPM in two passes: estimate betas from time series, then each month regress returns on betas, and average. The CAPM says the line passes through zero with the market's premium as slope: the green line. On portfolios since 1963, the fitted line is flat: a premium for beta of percent a month against the market's , and an intercept of with t of . The betas are estimates, so Jay Shanken's 1992 correction inflates the second-pass variance; here the slope is so near zero it barely matters. Using consistently normalized covariances, the Gibbons, Ross and Shanken test gives p of under the iid normal-error model. Shanken's correction also has model assumptions; these are model-based diagnostics, not a general test of every pricing model. Part twenty-four goes further. Pause and predict: does the negative between-month estimate prove no predictability? No: the industry-mean slope was , with little precision. Failure to reject is not proof of no effect. From explaining returns across stocks to forecasting through time. Next: predictive regressions, and their bias.

5Predictive regressions: Stambaugh's biasMaster's3 min

The dividend yield is persistent, and its surprises mirror return surprises: when prices jump, the yield falls. On annual data the two shocks correlate at . Robert Stambaugh showed in 1999 what that does. Simulate a world where the yield predicts nothing, fifty years at a time, thousands of times. Each sample gives two errors: in the estimated persistence, across, and in the slope, up. The cloud is tilted: samples that underestimate persistence overestimate the slope, along a line of slope phi. And its centre sits left of zero: an autoregression's persistence is biased down, as Kendall showed in 1954. Follow the tilt to the vertical axis: the slope's bias, . Grow the sample from fifty years to a hundred and fifty. The cloud shrinks and its centre crawls toward the origin, roughly like one over T.

Four lines. The predictive system: returns on a persistent predictor, the predictor an autoregression. Project the return shock on the predictor's shock: phi times v, plus e unrelated to v. Both equations share the regressor, so the slope's error is phi times the persistence error, plus a term in e. In this iid Gaussian system, e is independent of the entire predictor path, so that term averages zero. Kendall's first-order bias is minus one plus three rho over T: the tilted cloud, in symbols. On the annual data, phi is , rho , T : a bias of .

The real regression: annual data, a slope of , t of . Subtract the bias, and is left. Amihud and Hurvich's augmented regression adds the predictor's estimated shock as a second regressor, purging the bias inside the regression: , t of . Kostakis, Magdalinos and Stamatogiannis's IVX, from 2015, needs no persistence estimate: instrument the yield with a filtered version of its own changes. Under the paper's assumptions, its Wald test has an asymptotic chi-squared reference across the persistence regimes considered. Annual p-value: . On monthly data the House's simplified IVX at five percent, p of . A small, fragile slope, overstated by its usual t; Part seven takes up persistence itself. A question: what if the predictor's shocks and the return's shocks moved together? Then the bias would flip sign, and the OLS slope would be biased downward instead. This does not by itself determine the size of a t-test. A biased slope in sample is one problem. Next: does it forecast at all, out of sample?

6Out of sample: can anything beat the mean?Undergraduate3 min

Every regression so far used the whole sample. Goyal and Welch's 2008 question was whether a forecast beats the historical mean. Our illustration begins in 1927, fitting only earlier dated rows each time. It uses revised Shiller data without historical release vintages, so this is a chronological retrospective exercise, not a verified real-time trading backtest. On top, the refitted dividend-yield slope and its band. It wanders, often including zero. Below, the historical mean's squared error minus the predictor's, added up. Green while the predictor gains, red while it loses. It mostly loses. The cumulative score is negative by 1990, falls sharply in the late nineties, and remains negative at the end of this sample.

The measure is the out-of-sample R-squared: one minus the predictor's squared forecast errors over the historical mean's. The running mean is itself estimated; negative means it won. The cumulative difference rises while the predictor gains. A separate result from Campbell and Thompson concerns a mean-variance investor forecasting excess returns, with known population moments and risk aversion held fixed. Its gain depends on the population predictive R-squared and the excess-return Sharpe ratio, not directly on a measured backtest R-squared. In a stylized example, a monthly Sharpe of point one and population R-squared of point zero zero one give about a ten percent proportional gain. Our empirical table uses real log total returns, so we do not insert its mean-to-volatility ratio into this excess-return formula. Estimation error and trading costs can erase a model's theoretical gain.

Five classic predictors from Shiller's data, the same experiment for each. In sample, the largest t-statistic is . Out of sample, the dividend yield, the most famous of them, loses. Published Campbell-Thompson restrictions concern excess returns and a sign chosen before testing. We omit the legacy restricted column: our old routine chose its sign from the full sample, introducing hindsight. And remember the count: we tried five, so a winner among them is partly luck. Goyal, Welch and Athanasse Zafirov repeated the exercise in 2024 with twenty-nine newer predictors from twenty-six papers: more than a third were insignificant even in sample, and about half of the rest failed out of sample. Pause and predict: does an in-sample R-squared of six hundredths of a percent guarantee a positive forecast R-squared? No. Estimation error and changing relationships can outweigh the signal; a positive result is possible, but is not guaranteed by that one in-sample number. So far, least squares. Next: the method behind most models in this series, maximum likelihood.

7Maximum likelihoodUndergraduate3 min

Part one measured the fat tails of daily returns. Now fit them: suppose daily returns are Student's t, with a location, a scale, and degrees of freedom nu that set the tails. The log-likelihood adds the log density over twenty-five thousand days. Over nu and the scale it is a landscape, and maximum likelihood is its summit. Start from a bad guess, nearly normal, with nu of , and climb by Newton's method: fit a parabola using the slope and curvature, jump to its top. steps, and nu is . In the fitted t family, the variance exists because nu exceeds two, but the fourth moment does not because nu is below four. The sample kurtosis, , is a finite descriptive statistic. This height is a rescaled likelihood slice with location held at its fitted value; iterates outside the displayed window are projected to its edge.

Why the summit estimates anything, and how precisely. Differentiate the fact that a density integrates to one: the score averages zero at the truth. Differentiate again: the expected curvature equals the score's variance, the information matrix, an equality that holds only if the model is right. Expand the first-order condition: a central limit theorem for the score, a law of large numbers for the curvature, and the estimate is normal with variance the inverse information. A sharp peak is a precise estimate. If the model is wrong, the two forms differ and the variance is a sandwich again. And with normal errors in a linear model, maximum likelihood is least squares.

Look down on the summit. The curvature at the top gives the naive confidence region, in gold: a narrow ellipse, a standard error for nu of . But is the model right? Daily returns are not independent draws from one t distribution: volatility clusters, calm weeks and violent weeks. The sandwich that only replaces the curvature with the scores' variance, still treating days as independent, hardly moves: . The scores of neighbouring days are correlated, though: a violent day is followed by violent days, and each pushes nu the same way. So the score's variance needs chapter two's long-run variance. With it, the standard error of nu is , times the naive one, the pink ellipse. The naive standard error trusts a model the data reject. Under stationarity, identification and regularity, quasi-maximum likelihood targets the best expected log-density in this family, not a proven true return law. Pause and predict: twice as many observations from the same stationary process. What happens to the ellipse? Holding the long-run information fixed, each axis shrinks by the square root of two, so its area halves. Quadruple it, and both axes halve. Likelihood needs the whole distribution. Next: a method that needs only moments.

8GMM: moments as close to zero as possibleMaster's3 min

Many theories give no likelihood, only averages that should be zero: moment conditions. Lars Peter Hansen built an estimator on them in 1982, and shared the 2013 Nobel prize for it. Its geometry, in the simplest case: two noisy measurements of one mean, standard deviations one and two, each giving a moment, its sample mean minus mu. The two moments are a point in the plane; theory says it should be the origin; as mu changes, it slides along a line. No mu reaches the origin, so take the closest point. With the identity metric, inflate circles until one touches the line: the plain average, . But the second measure has four times the variance. Hansen's efficient weight, the inverse covariance of the moments, stretches the circles into ellipses; the touching point slides toward the precise measure: . The distance left, scaled by the sample size, is Hansen's J. Under valid moments and regular identification, its large-sample reference is chi-squared with one degree of freedom: , p of .

In general: minimise the moments' length in a metric W. Assume valid moments, an interior identified parameter, a full-rank derivative and a suitable central limit theorem. With q moments and p parameters, the sample moments live in q dimensions and the parameters can only move them along a p-dimensional surface. At the minimum the gap is perpendicular, in W, to every direction the parameters can move: D transpose W times the gap is zero, the same condition as chapter one's normal equations. Linearise the moments around the truth and solve: the error is a fixed matrix times the moments at the true parameter, which average zero and have variance S over T. So the variance is a sandwich, with S, chapter two's long-run variance of the moments, as meat; when the moments are autocorrelated, S needs the same Bartlett window. With W equal to S inverse the sandwich collapses: no other weight gives a smaller variance, because it trusts precise moments more and noisy ones less, exactly what the ellipse did. And the scaled leftover is chi-squared, with as many degrees of freedom as moments beyond parameters: q minus p directions the parameters could not reach.

GMM is the umbrella: least squares uses x times the residual as moments, instrumental variables an instrument times the residual, maximum likelihood the score. Set those moments to zero and you recover each estimator, and its sandwich standard error comes along for free. Pause and predict: exactly as many moments as parameters. What is J? If a sample root exists, zero: every moment can be set to zero, the weight no longer matters, and nothing is left to test. A theory can only be rejected by GMM if it says more than its parameters can absorb, and the next chapter's theory says a great deal.

9The Euler equation, estimated and rejectedMaster's3 min

The most famous moment condition in finance. An investor who can save one more dollar, in stocks or bills, is indifferent at the margin: the marginal utility given up today equals the discounted marginal utility of what the dollar buys tomorrow. So the discount factor m, patience beta times consumption growth to the power minus gamma, times the return, averages one. Gamma is risk aversion. It holds given anything known today, so by the tower property, multiply the error by today's instruments, a constant, last quarter's consumption growth and market return, and the products average zero too. Two assets times three instruments: six moments, two parameters, four left to test. And for an excess return the condition says the premium is minus the covariance of m with the return: a premium must be earned by covarying with consumption. Hansen and Kenneth Singleton estimated this in 1982.

The House's two-step GMM: minimise with the identity weight; from that estimate build S with Bartlett weights; reweight by S inverse and minimise again; the Jacobian gives standard errors, the leftover gives J. On seventy-three years of American consumption, stocks and bills: patience , risk aversion with a standard error of , and J of on degrees of freedom, a nominal asymptotic p-value of . Rejected.

Why is gamma so uncertain? Look at the objective. Across beta it is a steep valley: the bill pins patience down. Along gamma the floor is almost flat, a ridge, in pink. Let the optimiser roll a ball: it finds the valley in a few steps, then wanders along the floor. Weak identification, as James Stock and Jonathan Wright called it in 2000: the data barely know gamma, and the usual normal approximation fails on a ridge.

How bad at our sample size? Build four hundred economies where the model is exactly true, gamma two, with the data's volatilities and correlation, quarters each, and estimate each one. The estimates of gamma spread from to in the middle ninety percent. Our is no surprise. But J is informative: in true worlds it exceeds its five percent critical value percent of the time and never passes . The data's J is ,

Why it fails. Stocks earned about percent a quarter over bills; consumption is smooth, about one percent a quarter, and barely moves with stocks: correlation . Risk aversion would need to be about : Mehra and Prescott's equity premium puzzle, 1985. Pause and predict: with only the T-bill's moments, is gamma identified? Barely. The bill pins patience; risk aversion needs the risky asset's covariance with consumption, and it is tiny. From the economy's average investor to single news days. Next: event studies.

10Event studiesUndergraduate3 min

An event study asks what happens to prices around an event. In 1969 Fama, Fisher, Jensen and Roll lined up nine hundred and forty stock splits in event time: prices rose in the months before, and did not drift after. MacKinlay's 1997 survey set out the machinery: return minus a market-model normal return, averaged across events, summed over the window. Independent events: variance shrinks like one over N. Events sharing a date share its shocks, which do not average away. Then divide by the right standard error.

A case with no news: the turn of the month. From 1926 to 1986 the last trading day and the first three of the next, under a fifth of all days, delivered percent of the market's return; Robert Ariel published it in 1987. Since then, percent, t of : weaker, still there.

Now the days the Federal Reserve announces its decisions. We transcribed every scheduled FOMC meeting from 1994 to 2020 from the Fed's own pages: decisions. Here are forty, each a little path of abnormal returns, in calendar time. Slide each so its decision day sits at zero: calendar time becomes event time. The yellow curve is the final mean path across all decisions. The running readout adds decisions at day zero; its uncertainty uses the cross-event standard deviation over root N. Separate dates avoid same-day clustering, but serial dependence or changing regimes can still make that standard error unreliable. On decision days the market earned basis points over the riskless rate, against on other days, t of : three percent of the days carried percent of the excess return. David Lucca and Emanuel Moench reported in 2015 that since 1994 the S&P 500 rose forty-nine basis points on average in the twenty-four hours before scheduled announcements, about thirty-three close to close. Our 1994 to 2011 figure: . From 2011, basis points, .

A check with no formula: placebos. Draw days without a decision, average their returns, and repeat ten thousand times. The plot shows every fifth draw. This random-day comparison preserves the empirical return distribution, but not the original sequence of volatility clusters. Interpreting it as a formal test needs a valid exchangeability or randomization argument; it does not establish a causal effect of monetary policy. The real decision days sit far in the right tail: only percent of placebo sets do as well. This is a descriptive comparison with randomly selected ordinary days; event timing, dependence and other news need separate scrutiny.

FOMC days were spread over twenty-seven years. Many studies are not so lucky: a rule that hits a hundred firms on one day. Pause and predict: is the standard error sigma over root a hundred? Simulate a hundred firms sharing an industry shock the market model does not remove. The naive standard error says percent; the true spread is , times larger. Chapter three again: cluster by date, or use the portfolio's own time series. When the formulas for standard errors break down, resample. Next: the bootstrap for dependent data.

11The bootstrap for dependent dataMaster's3 min

Bradley Efron's bootstrap, from 1979, lets the sample stand in for the population: resample the one history you have, many times, and recompute. Here is the market as a ribbon, one bar per month, height the size of the move. Volatility clusters: 1929, 1974, 1987, 2008. The ordinary bootstrap draws single months with replacement: the right months, the wrong seasons, storms shredded into confetti. Hans Künsch's block bootstrap, 1989, resamples whole blocks. Politis and Romano's stationary bootstrap, 1994, uses blocks of random geometric length, a year on average, wrapping around, so the resample is stationary. Watch blocks cut and laid end to end. Its Sharpe ratio is one draw. Do it eight hundred times.

Why blocks? The plug-in principle: resampled estimates vary around the sample's estimate as the sample's estimate varies around the truth, as long as the resampling mimics how the data were generated. Resample single months and every pair of months in the new series is independent, so the variance of a mean is only lag zero: chapter two's long-run variance with every autocovariance thrown away. For a Sharpe ratio, whose noise also depends on how volatility clusters, the same loss applies. Blocks of length ell keep every autocovariance inside a block. A lag-k pair falls inside the same block ell minus k times out of ell, so lag k is kept with weight one minus k over ell: Bartlett's triangle again. The block length is the bandwidth, with the same trade-off: too short loses the dependence, too long leaves too few blocks to vary.

The House's stationary bootstrap: start anywhere; each step, with probability one over the mean block length, jump to a random month, else take the next one, wrapping around the end. Recompute the statistic on the new history, and repeat. On the market's Sharpe ratio, eight hundred times: a standard error of , against for the iid bootstrap and from Lo's formula. The clustering of volatility makes the Sharpe ratio a fifth less certain than independent months suggest. After ninety-four years, the market's Sharpe ratio is known only to within about a quarter either way.

Does it work? A thousand simulated markets as long as ours, slightly autocorrelated, volatility clustering, true monthly Sharpe of an eighth; build each bootstrap's nominal ninety-five percent interval. The iid bootstrap covers the truth percent of the time, the moving block , the stationary . Pause and predict: one circular block of exactly n observations, the whole sample. For the mean or Sharpe ratio, rotations leave the statistic unchanged, giving zero bootstrap standard error. This does not hold for a stationary bootstrap whose random block length only has mean n; it may restart before covering the sample. Resampling uses only the data. Next: adding what you believed before you saw them.

12Shrinkage and BayesMaster's3 min

Take of French's industries and estimate each one's average excess return from the first half of the data, 1927 to 1973. The estimates spread from to percent a year. Which industries are really better? Look at what each actually earned in the second half. The ranks scramble: the rank correlation between the halves is . Most of the spread in the first half was noise. What is the best forecast of each industry, given all forty estimates?

Bayes answers with a hierarchy: true means drawn from a population with centre mu and spread tau; each estimate its true mean plus noise of known size. Complete the square in the product of the two normal densities: the posterior mean weights the grand mean by B, the estimate's noise variance over noise plus tau squared, and the estimate by one minus B. Noisier estimates are pulled harder; when tau is zero, everything collapses onto the grand mean. Empirical Bayes estimates tau from the data: the variance of the estimates, minus the part their own noise explains, floored at zero. Charles Stein proved in 1956 that with three or more means, the raw estimates are inadmissible in the independent Gaussian model with common known variance: James-Stein shrinkage lowers expected total squared error for every true mean vector. This is a risk guarantee, not a win in every realized sample or for every individual industry. Problem five works it out. A full Bayesian treats tau as unknown too, and samples everything by Gibbs: each conditional is a textbook distribution, so draw the means given tau, then mu, then tau given the means, and repeat.

Here it is running. Each industry is a bead on its own rod, at its raw estimate, sorted from lowest to highest, tied by a spring to a bar at the grand mean. The thicker the spring, the noisier the estimate. Start the sampler. Four chains, each five thousand draws, traced on the right. The bead shows the conditional posterior mean at the current mu and tau, not a latent-mean draw. Every draw of tau sets that conditional mean: when tau is large, the beads are free; when it is small, the springs win. Tau keeps falling back toward zero. The data cannot tell the industries apart, so the posterior squeezes nearly every bead onto the bar: about percent of the spread disappears. Now the second half's realized means, in green. The reported forecast errors use posterior means averaged over retained draws, rather than the single conditional state on screen: the error falls from to , the same as empirical Bayes. A prior is not a bias to be ashamed of; it is how you borrow strength across assets, and Parts twenty-seven and thirty use it everywhere. Pause and predict: an industry with a huge raw estimate and a huge standard error. For fixed tau and mu, its shrinkage fraction is larger than an estimate with a smaller standard error. Shrinkage borrows across many estimates. Next, the danger in many estimates: many tests.

13Many testsUndergraduate3 min

Test forty-nine industries for an alpha and sort the p-values. are below five percent; by luck alone you expect two or three. Bonferroni divides the threshold by the number of tests, the red line, controlling the chance of even one false discovery. Benjamini and Hochberg, in 1995, control the share of discoveries that are false: their line rises from the origin, i times q over m, and everything up to the last p-value under it is a discovery. Here, . No industry alpha survives either correction.

The proofs are short. Bonferroni is the union bound: the chance that any true null is rejected is at most the sum of their chances, m times alpha over m. Holm's 1979 step-down sorts the p-values and uses thresholds alpha over m, then over m minus one, and so on, stopping at the first failure. At its first false rejection at least m-nought true nulls remain, so that threshold is at most alpha over m-nought, and the union bound over the true nulls still gives alpha: the same guarantee, more power. Benjamini-Hochberg control the false discovery rate, the expected share of false discoveries; with independent p-values and exact uniform null p-values it is exactly the share of true nulls times q: at most q. And a picture to keep: null p-values are uniform, so a histogram of many is a flat floor whose height is the share of nulls, plus a spike near zero from the real effects.

A world with a known truth: a thousand strategies, real with a Sharpe ratio of over years, the rest noise, two hundred times. At five percent each world finds about real ones and false: percent false. Bonferroni and Holm make almost no false discoveries but find real ones; Benjamini-Hochberg finds at a false discovery rate of percent, as promised. The p-value histogram shows why it is hard: a floor at and a modest spike.

The House's ten lines: sort, compare with the rising line, reject up to the last crossing. Industries: . Planted worlds: about true discoveries, false discovery rate percent. Pure noise: pass at five percent, after correction. Pause and predict: twenty strategies, the best at p of three percent. Significant? No: the chance one of twenty useless strategies does that well is forty-six percent if their exact null p-values are independent. Bonferroni rejects none here regardless of dependence; the forty-six percent calculation itself needs independence. Part twenty-six builds the machinery. Significance is not cause. Next: designs that identify causes.

14Causal designsMaster's4 min

Regressions describe; they do not explain. Causal questions, does joining an index raise a price, does a rule change liquidity, face a confounder, U, that moves both cause and outcome. An instrument, Z, moves the cause but touches the outcome only through it. In two hundred simulated markets with a true effect of a half, least squares finds about . With a strong instrument, two-stage least squares centres on . With a weak one, first-stage F near , its middle half runs from to . F above ten is only a rough diagnostic, not a universal validity guarantee.

Each design in one line. The instrument: because z is unrelated to the confounder, the reduced form over the first stage isolates the causal slope. Difference in differences: the treated group's change minus the control group's change; if both would have trended alike, the common change cancels. Its regression version, two-way fixed effects, is a weighted sum of every two-by-two comparison in the data, as Andrew Goodman-Bacon showed in 2021, and under staggered timing some comparisons use already-treated units as controls. Those comparison weights are nonnegative, but the implied weights on cohort-period treatment effects can be negative. The discontinuity: the jump in the outcome's average exactly at a cutoff, valid if nothing else jumps there.

Difference in differences as a picture: treated and control, before and after. Copy the control's change onto the treated group's start: the ghost line. The gap is the effect, against a planted . Finance has experiments of this shape: in 2004 the SEC ordered a pilot under Regulation SHO; from May 2005 about a third of the Russell 3000, picked by rule, traded without the short-sale price test.

Most rules arrive in waves, and the standard regression quietly uses early-treated firms as controls for later ones. Here are its weights on each treated cohort and period when effects grow after treatment: the first cohort's late periods get negative weight. Over two hundred panels, the target averages cells with not-yet-treated controls. Later effects lack those controls. The target is ; two-way fixed effects finds , about percent of it. Callaway and Sant'Anna's estimator, comparing each cohort only with units not yet treated in this simplified implementation, centres on . Baker, Larcker and Wang re-ran published staggered studies in 2022, and conclusions often changed.

The discontinuity. Russell ranks stocks by size: number one thousand joins the large-cap index, one thousand and one leads the small-cap index, where index funds hold far more of it. Chang, Hong and Liskovich used this cutoff in 2015 to measure the price effect of indexing. A simulated version, with a planted jump of two: fit a line on each side within a window, read the jump, and widen the window. Narrow windows are noisy; wide ones reach where the relation curves, and are biased. Over two hundred samples the error is smallest near ranks: the bandwidth trade-off again. Pause and predict: in the shown staggered-adoption design with growing effects, is two-way fixed effects too big or too small? Too small, possibly negative. When there are too many controls for any design, machine learning can help, carefully. Next.

15Double machine learningPhD3 min

Machine learning enters causal inference through a careful door. A treatment d moves an outcome y by theta, but many controls X drive both. A causal interpretation still assumes no unobserved confounding and a valid partially linear model; cross-fitting does not establish those assumptions. A simulated sample with a planted theta of zero point three, coloured by the first control. The raw slope is , times too large. Chernozhukov and coauthors' double machine learning, from 2018, learns the outcome given the controls and the treatment given the controls, and subtracts both: every point slides into a residual cloud. Residual on residual: . And each point's predictions come from models fitted on the other folds.

Why residualise both? The estimate solves the residual-on-residual score: residual outcome minus theta times residual treatment, times residual treatment, averaging zero. That score is Neyman-orthogonal: differentiate its mean with respect to the two learned functions, at the truth, and you get zero. Small errors in the learned functions do not move it, to first order. So the error is the usual normal term plus a second-order remainder: the treatment-model error times the sum of the outcome-model and treatment-model errors. Machine learners converge slowly, but if each is faster than n to the minus a quarter, the product vanishes faster than the root-n noise. Valid inference also needs identification, suitable moments and sampling conditions; this iid score standard error does not handle arbitrary time dependence. The naive plug-in, learn g and regress what is left on d, is not orthogonal: its derivative with respect to g is the covariance of d with the controls, not zero, so regularisation bias in g passes straight into theta. Cross-fitting handles the other danger: a learner that has memorised a point makes that point's residual artificially small.

The House's version: five folds; ridge on spline features, fitted on four, residualise the fifth; then residual on residual, with the score's standard error. Over sixty samples: , spread ; least squares with linear controls, .

Now train the learners at every ridge penalty, five seeds each. On the right, their out-of-fold errors, rising once the penalty flattens the fits. On the left, theta. At a penalty of one, double ML gives and the plug-in ; at ten, against . The plug-in drifts as soon as its learner is biased; double ML holds longer. At extreme penalties both fail: the product of two bad errors is not small. Robustness, not immunity. Pause and predict: a perfect treatment model and a poor outcome model. Is theta fine? Yes, to first order. All of this assumes enough data. Next: how much is enough.

16How many years until you know?Undergraduate3 min

The deepest problem in quantitative finance: small signal, large noise. In this iid approximation, a mean return's t-statistic is the mean over its standard error, the volatility over the root of T. Annualise both, and t is the Sharpe ratio times the root of the years. So a t of two needs two over the Sharpe ratio, squared, years. The Sharpe ratio's own standard error, by the delta method, adds the noise of the mean, one over T, to the noise of the volatility, half the Sharpe ratio squared over T: Andrew Lo, 2002. Christoph Mertens added skewness and fat tails. For the market, and , and chapter eleven's bootstrap was wider still. And on the market, chapter one's formula splits into two speeds. Beta's variance is the residual variance over T times the market's variance: a co-movement, measured every month. Alpha's has a one plus the market's squared Sharpe ratio in it: it is a mean, and means take decades.

Watch it happen. Regress tobacco on the market from 1961 with one year of data, refitting every quarter as the data arrive; the ellipse is the ninety-five percent region for alpha and beta. In the first years it is enormous. Within a few years the beta axis collapses to a sliver. The alpha axis creeps, and creeps, and creeps. After sixty years, tobacco's alpha is percent a year, give or take . Its beta is tightly estimated under this constant-parameter regression. Whether the beta changes over time is a separate question.

Put numbers on it. A strategy with a true Sharpe ratio of a half, a good strategy, needs years of data before its t-statistic is expected to reach two. A Sharpe ratio of one needs . Over shorter spans good strategies often look bad. After five years, a Sharpe-of-a-half strategy has about a percent chance of having lost money. Funds are closed and strategies abandoned on evidence like that, and bad ones are kept for the same reason. A desk question using four iid Gaussian annual observations, a very small sample. A Sharpe ratio of one has a rough delta-method standard error about , so the true value could be anywhere from below zero to above two. Pause and predict: to halve the standard error of alpha, how many more years? Four times as many. This is why the House seals its hold-out data in an envelope, and counts every trial: Part twenty-six. Next: how research desks guard against all of this.

17How research desks avoid fooling themselvesIndustry3 min

This part's crisis file is a backtest. On the twenty-second of December 2014 the SEC announced that F-Squared Investments had advertised its AlphaSector track record as not backtested, for years before the algorithm existed; and, in the SEC's words, an analyst applied the signals to the week preceding the price changes they were based on, which inflated the results by approximately three hundred and fifty percent. F-Squared admitted wrongdoing and agreed to pay thirty-five million dollars; its co-founder was charged separately, allegations at the time. What can one week of look-ahead do? A toy on French's daily size portfolios, 2001 to 2008: each week, hold those that rose over the past four weeks. Honestly, percent a year. With the signal one week early, including the very week it trades, percent. It harvests the move the signal was built from.

The regulator's answer: the SEC's Marketing Rule, adopted in December 2020, requires policies and procedures before an adviser shows hypothetical performance. In September 2023 nine advisers were charged with advertising it to mass audiences on their websites without them; without admitting or denying the findings, they settled, for eight hundred and fifty thousand dollars combined.

What do the firms say, on the record? Man Group publishes Campbell Harvey and Yan Liu's backtesting paper: halving a backtested Sharpe ratio is a mistake; the haircut should come from the number of trials, mild for the best, severe for the marginal. At AQR, Bryan Kelly and Lasse Pedersen, with Theis Jensen, found that eighty-two percent of a hundred and fifty-three factors have significant CAPM alphas, seventy-six after a multiple-testing correction, against an earlier thirty-five percent replication rate; their Bayesian model is chapter twelve at industrial scale. Antti Ilmanen and colleagues found factor premia held over a century of data, while timing them mostly did not survive costs. Research Affiliates' Robert Arnott, with Harvey and Harry Markowitz, wrote a backtesting protocol: hypothesis first, every trial reported. And the profession audited itself: in 2024 a hundred and sixty-four teams given the same data disagreed far more than their standard errors implied, and re-running a hundred and sixty-eight teams' own code reproduced their exact results fifty-two percent of the time.

Each practice maps onto the House. A hypothesis written down first: the registry, with the code's hash. Every trial counted: the trial counter, whose count sets the haircut. An untouched hold-out: the sealed envelope. Honest standard errors, respecting how the data were sampled: this part's module, by default. Results that rerun from one command: checksummed data and seeded computations. And this chapter's question: a week of look-ahead adds a lot. Last, the frontier.

18The frontier, 2023-2026PhD2 min

The frontier, paper by paper, each tied to the chapter it extends. Amit Goyal, Ivo Welch and Athanasse Zafirov's 2024 look at equity premium prediction: most new predictors fail. Bryan Kelly, Semyon Malamud and Kangying Zhou's virtue of complexity, and Stefan Nagel's reply: an open debate, next. Eben Lazarus, Daniel Lewis and James Stock's size-power frontier for heteroskedasticity- and autocorrelation-robust tests, the theory behind chapter two's recommendations. Isaiah Andrews, Toru Kitagawa and Adam McCloskey's inference on winners: once you pick the best of many strategies, its estimate is biased upward, and they show how to correct the estimate and its interval. Jonathan Roth, Pedro Sant'Anna, Alyssa Bilinski and John Poe's survey of the new difference-in-differences. An open textbook on causal machine learning by Chernozhukov and coauthors, and Esfandiar Maasoumi and coauthors' automatic debiased machine learning for choosing factors. The measurement of researchers themselves: non-standard errors and reproducibility. And a new channel of look-ahead. Paul Glasserman and Caden Lin asked whether a language model's sentiment scores on old headlines are contaminated by what the model learned about what happened next. Anonymising the company names, they found the larger effect in sample was distraction, general knowledge about the company getting in the way, rather than look-ahead. Part twenty-eight measures it.

The debate, in a picture. Kelly, Malamud and Zhou showed in 2024 that predicting the market with thousands of random nonlinear features of a few predictors, far more parameters than observations, did better out of sample as complexity grew, against the textbook intuition of chapter six. Nagel replied in 2025: with short training windows, such a forecast becomes a weighted average of recent returns, weighted by how similar today's predictors are to the past's, and since similarity falls when predictors are volatile, it is a volatility-timed momentum strategy. On artificial data where returns reverse instead, the same machine builds the same momentum bet, and loses. Both sides are on the record; the question is open, and Part twenty-seven returns to it. Pause and predict: what simple strategy might a model with more parameters than months be? Momentum, if Nagel is right.

For the researcher: predictive regressions near a unit rootPhD3 min

For the researcher: Chapter 5 corrected the predictive regression's bias. Here is why the t-test itself fails near a unit root, and why a longer sample does not save it.

Recall Chapter 5. The predictive system: returns on a persistent predictor, with correlated shocks. And the decomposition: the slope's error is the persistence error, scaled, plus a term that behaves. Stambaugh's bias is the mean of that first term. The question now is its whole distribution, because a test lives in the tails.

The tool is the local-to-unity device. For the displayed law, assume zero predictor drift and initial value, iid shocks and no trend, while fitting an intercept. Let the root approach one as the sample grows, so that it stays near one at every sample size. Then the persistence estimate converges faster than usual, at rate T, and to a law that is not normal: a ratio of stochastic integrals of an Ornstein-Uhlenbeck process, the Dickey-Fuller law when the root is exactly one. The slope's t-statistic inherits it: phi times that ratio, plus an independent normal for the rest of the return shock. At a unit root the Dickey-Fuller part is skewed left with a mean near minus one and a half, so with phi negative the t-statistic is shifted right. And nothing in this limit depends on the sample size: more data do not cure it.

Here are the two laws, simulated at a persistence of point nine nine. The OLS t-statistic, with no predictability at all, is centred well to the right of zero, and a third of it lies beyond the one-sided critical value. The augmented regression's t, with Chapter 5's correction, sits much closer to the standard normal.

Across persistence. With no predictability, a five percent one-sided t-test rejects one time in ten at rho of point eight, one in five at point nine five, a third of the time at point nine nine, and more than two times in five at a unit root. Five hundred years instead of one hundred help only away from one: at point nine five the size falls to nine percent, but at a unit root it stays above forty, as the theorem says. The augmented regression holds between five and nine percent everywhere; IVX, from Chapter 5, is built to be right at every rho at once.

Three open questions. Bonferroni intervals and IVX cover their specified persistence regimes under their assumptions; relative power depends on the persistence. With many persistent predictors, joint identification and dependence conditions matter. This scalar illustration does not settle the high-dimensional case of Part 27. And a break in the predictor's mean looks like a root near one; in a century of data the two are hard to tell apart.

Pause and predict. When the shocks are perfectly negatively correlated and the root is one, the slope's t is exactly minus the Dickey-Fuller t of the persistence. Roughly how often does a nominal five percent one-sided test then reject?

The statistics module; recap, desk questions, problemsAll tracks3 min

The House's statistics module now holds this part's tools, each tested on a simulated case with a known answer. Robust standard errors and long-run variances; panels and two passes; likelihood and GMM; out-of-sample and bias-aware predictive inference; event studies; bootstraps; Gibbs; multiple testing; causal designs and double ML. And rule seven: no number leaves the House without a standard error that respects the sampling, and the count of everything tried. With this part's registrations, the trial counter reads .

Part six in ten lines. Least squares is a projection; every standard error is a claim about how scores co-move. Overlap and persistence inflate t, and even Newey-West needs fixed-b values or EWC. Cluster on the shared shock. Pooled least squares mixes within-month and market timing; Fama-MacBeth answers the first. Persistent predictors carry Stambaugh's bias and lose out of sample. Curvature is precision, and GMM rejects the Euler equation. FOMC days carried a quarter of the excess return. Block bootstraps keep dependence. Shrinkage beats forty means; Benjamini-Hochberg controls false discoveries. Causal questions need designs. In the iid benchmark, a true Sharpe of a half needs sixteen years for an expected t of two.

Five desk questions. With four iid Gaussian annual observations, a Sharpe of one has a rough delta-method standard error of about zero point six. Twenty strategies, the best at three percent: not significant. Forty years sampled monthly: about forty observations. A t of two and a half on five-year returns: do not trade it on that alone. Pooled against Fama-MacBeth: different questions. Solutions are in the notes.

And nine problems: the cost of overlap, Stambaugh's bias derived, the Sharpe ratio's standard error, Holm against Bonferroni, the James-Stein estimator, the within and between decomposition of chapter four, why the iid bootstrap forgets dependence, and two at the level of a qualifying exam: the local-to-unity limit, and the predictive t-test at a unit root. Solutions, in English and Chinese, are in the notes.

Where this returns: GMM in the discount factor of Part twenty-three; Fama-MacBeth and clustering in the factor parts; multiple testing in the factor zoo, backtesting and the finale; shrinkage in machine learning and portfolios; double ML and look-ahead in learning from returns and text; persistence in Part seven.

The books and papers, each with its finding in the notes. Every number came from public data: Shiller, Kenneth French, the St. Louis Fed, and the Federal Reserve's own calendar.

The House can now say how sure it is. Next, Part seven: time series and volatility. ARMA models, unit roots, GARCH and its many children, and forecasts of volatility from the realized variance we measured in Part five.

Where it goes next. Fama-MacBeth and GRS test the factor models of Part 24; multiple testing is the subject of Parts 25-26; shrinkage returns in portfolio construction (Part 30).

Key results

The part's results in one place, for revision.

OLS\[\hat\beta=(X'X)^{-1}X'y\]
Newey-West\[\hat S=\hat\Gamma_0+\sum_{j=1}^{L}\Bigl(1-\tfrac{j}{L+1}\Bigr)(\hat\Gamma_j+\hat\Gamma_j')\]
Stambaugh bias\[\mathbb E[\hat\beta-\beta]\approx-\frac{\sigma_{uv}}{\sigma_v^2}\,\frac{1+3\rho}{T}\]
Years to significance\[T\approx\Bigl(\frac{t}{\mathrm{SR}}\Bigr)^2\]

Try it

Lab 6 · A predictive regression that predicts nothing

Regress returns on a persistent predictor whose true slope is zero, five thousand times. Measure the bias of the slope and how often a nominal 5% t-test rejects, against Stambaugh's formula.

Figure produced by Lab 6: A predictive regression that predicts nothing
Produced by the lab below, seed 0, in 0.6 s. Simulated data.
python -m videos.quant.labs 6 needs numpy, scipy, matplotlib, numba · download lab06.py · source on GitHub
True slope               0
Mean estimated slope     +0.0369   (Stambaugh's formula +0.0312)
Nominal 5% test rejects  16.4% of samples

Ten years of monthly data, a predictor as persistent as the dividend yield, shocks correlated -0.95.
The code (54 lines; it asserts its own result)
"""Lab 6: a persistent predictor with no power still looks like one (Stambaugh's bias)."""

import numpy as np

from videos.quant import labs
from explainer.quant.house import econ

TITLE = "A predictive regression that predicts nothing"
GOAL = ("Regress returns on a persistent predictor whose true slope is zero, five thousand times. Measure the "
        "bias of the slope and how often a nominal 5% t-test rejects, against Stambaugh's formula.")
TASKS = [
    "Set corr_uv = 0. Where does the bias go, and why does the dividend yield not have that luxury?",
    "Let T grow from 60 to 240 to 960 months. Does the bias fall like 1/T?",
    "Apply econ.ivx to one simulated sample and compare its t-statistic with OLS.",
]


def run(seed=0):
    T, rho, corr = 120, 0.98, -0.95
    slopes = econ.simulate_predictive(T, rho, corr, beta=0.0, n=5000, seed=seed)
    theory = econ.stambaugh_bias(rho, cov_uv=corr, var_v=1.0, T=T)
    # the same experiment by hand for the t-statistics
    rng = np.random.default_rng(seed + 1)
    tstats = np.empty(2000)
    for i in range(2000):
        v = rng.standard_normal(T + 1)
        u = corr * v + np.sqrt(1 - corr ** 2) * rng.standard_normal(T + 1)
        x = np.zeros(T + 1)
        for t in range(T):
            x[t + 1] = rho * x[t] + v[t + 1]
        fit = econ.ols(u[1:], x[:-1])
        tstats[i] = fit["t"][1]
    reject = np.mean(np.abs(tstats) > 1.96)
    lab = labs.Lab()
    lab.row("True slope", "0")
    lab.row("Mean estimated slope", f"{slopes.mean():+.4f}   (Stambaugh's formula {theory:+.4f})")
    lab.row("Nominal 5% test rejects", f"{100 * reject:.1f}% of samples")
    lab.note = "Ten years of monthly data, a predictor as persistent as the dividend yield, shocks correlated -0.95."
    assert abs(slopes.mean() - theory) < 0.3 * abs(theory) and reject > 0.08

    fig, ax = labs.figure(2, size=(11, 4.2))
    ax[0].hist(slopes, bins=70, color=labs.SPOT)
    ax[0].axvline(0, color=labs.MUTED, lw=1)
    ax[0].axvline(slopes.mean(), color=labs.P, ls="--", label="mean estimate")
    ax[0].axvline(theory, color=labs.LOSS, ls=":", label="Stambaugh's bias")
    ax[0].set(title="Estimated slope when the truth is zero", xlabel="slope")
    ax[0].legend()
    grid = np.linspace(-4, 6, 200)
    ax[1].hist(tstats, bins=60, density=True, color=labs.SPOT)
    ax[1].plot(grid, np.exp(-grid ** 2 / 2) / np.sqrt(2 * np.pi), color=labs.P, label="standard normal")
    ax[1].set(title=f"t-statistics: {100 * reject:.0f}% beyond 1.96", xlabel="t")
    ax[1].legend()
    lab.fig = fig
    return lab

Now change it

  1. Set corr_uv = 0. Where does the bias go, and why does the dividend yield not have that luxury?
  2. Let T grow from 60 to 240 to 960 months. Does the bias fall like 1/T?
  3. Apply econ.ivx to one simulated sample and compare its t-statistic with OLS.

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

  1. Sharpe 1 from four iid Gaussian annual returns. As a rough delta-method approximation, se(SR) ≈ √((1 + SR²/2)/T) = √(1.5/4) ≈ 0.61 in annual units. The approximate interval is about 1 ± 1.2. Four observations are a small sample for this approximation; a monthly sampling convention gives a different calculation.
  2. The best of 20 has p = 0.03. If all 20 are worthless and independent, the chance that at least one has p ≤ 0.03 is 1 − 0.97²⁰ ≈ 46%. Bonferroni requires p < 0.05/20 = 0.0025. Correlated strategies reduce the effective number of tests, but the count of tries must be reported either way.
  3. Annual returns sampled monthly over 40 years. 480 rows, about 40 independent observations: neighbours share 11 of 12 months. Use Newey–West with fixed-b critical values or EWC; chapter 2's simulation shows even NW(L = h − 1) rejects a true null 14% of the time with a persistent predictor.
  4. t = 2.5 on five-year returns and a persistent yield, with Newey–West. Not on that alone. Chapter 2: such tests reject a true null 14–17% of the time at this persistence; chapter 5: the slope carries Stambaugh's bias (about half of the annual slope); chapter 6: the dividend yield's out-of-sample R² is negative (−0.32%).
  5. Pooled slope 0.002, Fama–MacBeth 0.017: which is wrong? Neither. Fama–MacBeth averages within-month slopes equally (0.0170); weighting them by cross-sectional dispersion gives 0.0103, which is pooled OLS with month effects. Pooled OLS without month effects mixes this within slope (45% of the variation) with the between-month slope of the market on its own past (−0.0046), and lands at 0.0022.

Problems, with worked solutions

  1. The cost of overlap. For \(h\)-month sums of iid returns regressed on a slowly moving predictor, show that the naive standard error understates the true one by roughly \(\sqrt{h}\).

    Solution

    With y_t = Σ_{j=1}^{h} ε_{t+j} and a predictor that barely changes, the residuals are close to y_t. Neighbouring y_t share h − k shocks at lag k, so their autocorrelation is (h − k)/h, and Σ_{|k|<h}(1 − |k|/h) = h. In this limiting slowly moving-predictor calculation, the naive variance is too small by h and the standard error by √h: √60 ≈ 7.7 for five-year returns sampled monthly (compare 15.0 against 2.8).

  2. Stambaugh's bias. From Kendall's \(\mathbb{E}[\hat\rho - \rho] \approx -(1 + 3\rho)/T\), derive Stambaugh's bias; evaluate it for \(\rho = 0.91\), \(\phi=\sigma_{uv}/\sigma_v^2=-0.72\), \(T = 149\).

    Solution

    With r_{t+1} = a + βx_t + u and x_{t+1} = c + ρx_t + v, write u = φv + e, φ = σ_uv/σ_v², e independent of the whole predictor path in the iid Gaussian system. OLS gives β̂ − β = φ(ρ̂ − ρ) + Σx̃e/Σx̃², whose second term has mean zero, and Kendall's E[ρ̂ − ρ] ≈ −(1 + 3ρ)/T. So E[β̂ − β] ≈ −φ(1 + 3ρ)/T. Annual data: ρ = 0.91, T = 149, φ = −0.72: bias +0.72 × 3.73/149 = +0.018. This is a first-order approximation, not an exact finite-sample bias formula.

  3. The Sharpe ratio's standard error. Derive the standard error of a Sharpe ratio from iid normal returns by the delta method.

    Solution

    SR̂ = μ̂/σ̂; with iid normal returns Var(μ̂) = σ²/T, Var(σ̂) ≈ σ²/(2T), independent. The delta method gives Var(SR̂) ≈ (1 + SR²/2)/T. For iid returns with finite fourth moment, fat tails add (κ − 3)SR²/4 and skewness −γ₃SR to the numerator; the whole expression is divided by T (Mertens 2002).

  4. Holm. Show that Holm's procedure controls the family-wise error rate and rejects at least as much as Bonferroni.

    Solution

    Reject while p₍ᵢ₎ ≤ α/(m − i + 1). With m₀ true nulls, at the first false rejection at least m₀ hypotheses remain, so its threshold is at most α/m₀; P(any false rejection) ≤ P(min over true nulls of p ≤ α/m₀) ≤ α. Every threshold is at least α/m, so Holm rejects at least what Bonferroni rejects.

  5. James–Stein. For \(k \ge 3\) independent observations \(x_i \sim N(\mu_i, 1)\), show that \((1 - (k - 2)/\|x\|^2)\,x\) has lower total squared error in expectation than \(x\) (James–Stein).

    Solution

    For x ~ N(μ, I_k), Stein's lemma E[(x − μ)·g(x)] = E[∇·g] gives the risk of (1 − (k − 2)/‖x‖²)x as k − (k − 2)²E[1/‖x‖²] < k. Shrinking toward the grand mean spends a degree of freedom: the factor becomes (k − 3)/‖x − x̄‖², which needs k ≥ 4.

  6. Within and between. Show that pooled OLS with month fixed effects equals the Fama–MacBeth average weighted by each month's within-month sum of squared centred \(x\), and that pooled OLS without them averages the within and between slopes.

    Solution

    Write x̃_it = x_it − x̄_t. The month-fixed-effects slope is Σ_tΣ_i x̃_it r̃_it / Σ_tΣ_i x̃_it². Each month's cross-sectional slope is γ̂_t = Σ_i x̃_it r̃_it / Σ_i x̃_it², so the numerator is Σ_t γ̂_t Σ_i x̃_it², and the FE slope is Σ_t w_t γ̂_t with w_t = Σ_i x̃_it² / Σ_sΣ_i x̃_is². For pooled OLS, split x_it − x̄ = x̃_it + (x̄_t − x̄); the cross term sums to zero within each month, so Σ(x − x̄)² = SS_W + SS_B and the pooled numerator is SS_W·β_FE + SS_B·β_B: β_pooled = (SS_W β_FE + SS_B β_B)/(SS_W + SS_B). On the industries, 0.45 × 0.0103 + 0.55 × (−0.0046) = 0.0022.

  7. The iid bootstrap forgets dependence. Show that the iid bootstrap variance of \(\sqrt n\,\bar x^*\) is \(\hat\Gamma_0\), and that moving blocks of length \(\ell\) give approximately a Bartlett-weighted long-run variance.

    Solution

    Each x*_i is drawn uniformly from the sample, so Var*(x*i) = Γ̂₀ and the draws are independent: Var*(√n x̄*) = Γ̂₀, whatever the autocovariances. With moving blocks of length ℓ, a block mean contains ℓ − k pairs at lag k, so Var*(√n x̄*) ≈ Γ̂₀ + 2Σ{k<ℓ}(1 − k/ℓ)Γ̂_k: a Bartlett-weighted long-run variance with bandwidth ℓ.

  8. (qual) The local-to-unity limit. (qual) With \(\rho = 1 + c/T\), show \(T(\hat\rho - \rho) \Rightarrow \int_0^1 J_c\,dW/\int_0^1 J_c^2\), \(dJ_c = cJ_c\,dt + dW\) (no intercept), from the FCLT for near-integrated processes.

    Solution

    With \(x_t = \rho x_{t-1} + v_t\), \(\rho = 1 + c/T\), the FCLT for near-integrated processes (Bobkoski 1983; Phillips 1987) gives \(T^{-1/2}x_{\lfloor Tr\rfloor} \Rightarrow \sigma J_c(r)\), the Ornstein–Uhlenbeck process \(dJ_c = cJ_c\,dt + dW\). Then \(T(\hat\rho - \rho) = \frac{T^{-1}\sum x_{t-1}v_t}{T^{-2}\sum x_{t-1}^2}\); the denominator tends to \(\sigma^2\int_0^1 J_c^2\) by continuous mapping, and the numerator to \(\sigma^2\int_0^1 J_c\,dW\) by the weak convergence of stochastic integrals (Kurtz and Protter 1991), jointly. At $c = 0$ this is the Dickey–Fuller limit of Part 7's problem.

  9. (qual) The unit-root \(t\). (qual) With \(\phi = -1\) and \(\rho = 1\), show \(t_{\hat\beta} = -\tau_{DF}\), and use Chapter 5's simulation tools to estimate the size of a nominal 5% one-sided test.

    Solution

    With \(\phi = -1\), \(u = -(\sigma_u/\sigma_v)v\), so \(\hat\beta - \beta = -(\sigma_u/\sigma_v)(\hat\rho - \rho)\) and the residual variances scale identically: \(t_{\hat\beta} = -\tau_{DF}\) at \(\rho = 1\). The test rejects when \(\tau_{DF} < -1.645\); for the Dickey–Fuller law with an intercept that is about 46% (20,000 simulated random walks of 500 steps).

Reading and notes

The part's papers

from READING.md

  • Fama, E., Fisher, L., Jensen, M., Roll, R. (1969). "The adjustment of stock prices to new information." International Economic Review.
  • Hansen, L. P. (1982). "Large sample properties of generalized method of moments estimators." Econometrica.
  • Hansen, L. P., Singleton, K. (1982). "Generalized instrumental variables estimation of nonlinear rational expectations models." Econometrica.
  • Newey, W., West, K. (1987). "A simple, positive semi-definite, heteroskedasticity and autocorrelation consistent covariance matrix." Econometrica.
  • Künsch, H. (1989). "The jackknife and the bootstrap for general stationary observations." Annals of Statistics.
  • Hodrick, R. (1992). "Dividend yields and expected stock returns: alternative procedures for inference and measurement." RFS.
  • Politis, D., Romano, J. (1994). "The stationary bootstrap." JASA.
  • Benjamini, Y., Hochberg, Y. (1995). "Controlling the false discovery rate." JRSS B.
  • MacKinlay, A. C. (1997). "Event studies in economics and finance." Journal of Economic Literature.
  • Stambaugh, R. (1999). "Predictive regressions." JFE.
  • Welch, I., Goyal, A. (2008). "A comprehensive look at the empirical performance of equity premium prediction." RFS.
  • Campbell, J. Y., Thompson, S. (2008). "Predicting excess stock returns out of sample: can anything beat the historical average?" RFS.
  • Petersen, M. (2009). "Estimating standard errors in finance panel data sets." RFS.
  • Chernozhukov, V., et al. (2018). "Double/debiased machine learning for treatment and structural parameters." Econometrics Journal.
  • Goyal, A., Welch, I., Zafirov, A. (2024). "A comprehensive 2022 look at the empirical performance of equity premium prediction." RFS 37(11), 3490–3557.
  • Added in the expansion (all on screen): Cowles, A. (1933). "Can stock market forecasters forecast?" Econometrica. Fama, E., MacBeth, J. (1973). "Risk, return, and equilibrium: empirical tests." JPE. Hansen, L. P., Hodrick, R. (1980). "Forward exchange rates as optimal predictors of future spot rates." JPE. White, H. (1980). "A heteroskedasticity-consistent covariance matrix estimator." Econometrica. Ariel, R. (1987). "A monthly effect in stock returns." JFE. Shanken, J. (1992). "On the estimation of beta-pricing models." RFS. Amihud, Y., Hurvich, C. (2004). "Predictive regressions: a reduced-bias estimation method." JFQA. Stock, J., Wright, J. (2000). "GMM with weak identification." Econometrica. Lo, A. (2002). "The statistics of Sharpe ratios." FAJ. Mertens, E. (2002). "Comments on variance of the IID estimator in Lo (2002)." Working paper. Kiefer, N., Vogelsang, T. (2005). "A new asymptotic theory for heteroskedasticity-autocorrelation robust tests." Econometric Theory. Cameron, A. C., Gelbach, J., Miller, D. (2011). "Robust inference with multiway clustering." JBES. Kostakis, A., Magdalinos, T., Stamatogiannis, M. (2015). "Robust econometric inference for stock return predictability." RFS 28(5). Lucca, D., Moench, E. (2015). "The pre-FOMC announcement drift." JF 70(1), 329–371. Chang, Y.-C., Hong, H., Liskovich, I. (2015). "Regression discontinuity and the price effects of stock market indexing." RFS 28(1), 212–246. Harvey, C., Liu, Y., Zhu, H. (2016). "… and the cross-section of expected returns." RFS. Lazarus, E., Lewis, D., Stock, J., Watson, M. (2018). "HAR inference: recommendations for practice." JBES 36(4). Callaway, B., Sant'Anna, P. (2021). "Difference-in-differences with multiple time periods." J. Econometrics. Goodman-Bacon, A. (2021). "Difference-in-differences with variation in treatment timing." J. Econometrics. Baker, A., Larcker, D., Wang, C. (2022). "How much should we trust staggered difference-in-differences estimates?" JFE 144(2), 370–395. Holm, S. (1979). "A simple sequentially rejective multiple test procedure." Scandinavian J. Statistics. Efron, B. (1979). "Bootstrap methods: another look at the jackknife." Annals of Statistics. Stein, C. (1956); James, W., Stein, C. (1961). Mehra, R., Prescott, E. (1985). "The equity premium: a puzzle." JME.
  • Frontier (2023–2026), checked against the papers: Lazarus, E., Lewis, D., Stock, J. (2021). "The size-power tradeoff in HAR inference." Econometrica 89(5), 2497–2516. Roth, J., Sant'Anna, P., Bilinski, A., Poe, J. (2023). "What's trending in difference-in-differences?" J. Econometrics 235(2), 2218–2244. Andrews, I., Kitagawa, T., McCloskey, A. (2024). "Inference on winners." QJE 139(1), 305–358. Kelly, B., Malamud, S., Zhou, K. (2024). "The virtue of complexity in return prediction." JF 79(1), 459–503. Nagel, S. (2025). "Seemingly virtuous complexity in return prediction." NBER w34104. Menkveld, A., et al. (2024). "Non-standard errors." JF 79(3), 2339–2390. Pérignon, C., et al. (2024). "Computational reproducibility in finance: evidence from 1,000 tests." RFS 37(11), 3558–3593. Maasoumi, E., Wang, J., Wang, Z., Wu, K. (2024). "Identifying factors via automatic debiased machine learning." J. Applied Econometrics 39(3), 438–461. Chernozhukov, V., Hansen, C., Kallus, N., Spindler, M., Syrgkanis, V. (2024). Applied Causal Inference Powered by ML and AI. arXiv 2403.02467. Glasserman, P., Lin, C. (2023). "Assessing look-ahead bias in stock return predictions generated by GPT sentiment analysis." arXiv 2309.17322 (the publication venue was not confirmed, so it is cited as the arXiv paper). Jensen, T., Kelly, B., Pedersen, L. (2023). "Is there a replication crisis in finance?" JF 78(5), 2465–2518.
  • Industry and regulation: SEC press release 2014-289 (22 December 2014), F-Squared Investments; SEC press release 2023-173 (11 September 2023), nine advisers under the Marketing Rule (Rule 206(4)-1, adopted December 2020); SEC press release 2004-164 and the Regulation SHO pilot (May 2005); Harvey, C., Liu, Y. (2015). "Backtesting." JPM (published by Man Group at man.com/insights/backtesting); Arnott, R., Harvey, C., Markowitz, H. (2019). "A backtesting protocol in the era of machine learning." JFDS 1(1); Ilmanen, A., Israel, R., Lee, R., Moskowitz, T., Thapar, A. (2021). "How do factor premia vary over time? A century of evidence." JIM 19(4). Federal Reserve Board, FOMC meeting pages fomchistorical<YYYY>.htm (1994–2020), transcribed in quant6/fomc_dates.py.
  • Textbooks added to the spine for this part: Greene, Econometric Analysis (8th ed.): ch. 2–6 (regression, robust covariance, difference in differences), 8 (IV), 11 (panels), 13 (GMM), 14 (MLE), 15 (simulation and bootstrap), 16 (Bayes), 20 (serial correlation). Efron and Tibshirani, An Introduction to the Bootstrap; Lahiri, Resampling Methods for Dependent Data; Angrist and Pischke, Mostly Harmless Econometrics; Gelman et al., Bayesian Data Analysis.

Papers and sources

Reading guide (papers on screen, one line each)

  • Cowles (1933): forecasters mostly could not forecast — econometrics as the testing of claims.
  • Fama, Fisher, Jensen and Roll (1969): 940 splits in event time; the first event study.
  • Fama and MacBeth (1973): cross-sections each month, averaged; the two-pass test.
  • Hansen and Hodrick (1980); Newey and West (1987); Hodrick (1992): standard errors for overlapping, correlated data.
  • White (1980): the heteroskedasticity-robust sandwich.
  • Hansen (1982); Hansen and Singleton (1982): GMM and the Euler equation.
  • Mehra and Prescott (1985): the equity premium puzzle.
  • Ariel (1987): the turn-of-the-month effect.
  • Künsch (1989); Politis and Romano (1994): block and stationary bootstraps.
  • Shanken (1992): errors-in-variables in the second pass.
  • Benjamini and Hochberg (1995); Holm (1979): FDR and step-down FWER control.
  • MacKinlay (1997): the event-study machinery.
  • Stambaugh (1999); Amihud and Hurvich (2004); Kostakis, Magdalinos and Stamatogiannis (2015): predictive-regression bias, its correction, and IVX.
  • Stock and Wright (2000): weak identification in GMM.
  • Lo (2002); Mertens (2002): the Sharpe ratio's standard error.
  • Kiefer and Vogelsang (2005); Lazarus, Lewis, Stock and Watson (2018); Lazarus, Lewis and Stock (2021): fixed-b, EWC, and the size–power frontier.
  • Welch and Goyal (2008); Campbell and Thompson (2008); Goyal, Welch and Zafirov (2024): out-of-sample prediction.
  • Petersen (2009); Cameron, Gelbach and Miller (2011): clustered standard errors in finance panels.
  • Lucca and Moench (2015): the pre-FOMC announcement drift (49 bp in the 24 hours before; about 33 bp close to close, per the NY Fed staff report).
  • Chang, Hong and Liskovich (2015): regression discontinuity at the Russell cutoff.
  • Harvey, Liu and Zhu (2016): the factor zoo and t > 3.
  • Chernozhukov et al. (2018): double/debiased ML.
  • Goodman-Bacon (2021); Callaway and Sant'Anna (2021); Baker, Larcker and Wang (2022); Roth et al. (2023): staggered DiD.
  • Jensen, Kelly and Pedersen (2023): replication of 153 factors (82.4% significant CAPM alphas, 75.6% after a Benjamini–Yekutieli correction, against Hou–Xue–Zhang's 35%).
  • Kelly, Malamud and Zhou (2024) and Nagel (2025): complexity in return prediction, and the momentum reading.
  • Andrews, Kitagawa and McCloskey (2024): inference on winners.
  • Menkveld et al. (2024): 164 teams, non-standard errors. Pérignon et al. (2024): 52% exact reproducibility.
  • Maasoumi et al. (2024): automatic debiased ML for factors. Chernozhukov et al. (2024): open causal-ML textbook.
  • Glasserman and Lin (2023, arXiv 2309.17322): look-ahead and distraction in LLM sentiment.
  • Industry: SEC 2014-289 (F-Squared), SEC 2023-173 (Marketing Rule), SEC 2004-164 (Reg SHO pilot), Harvey–Liu "Backtesting" (Man Group), Arnott–Harvey–Markowitz (2019), Ilmanen et al. (2021).

For the researcher

  • The theorems. Phillips (1987) and Chan and Wei (1987) for local-to-unity limits; Elliott and Stock (1994) and Cavanagh, Elliott and Stock (1995) for predictive tests; Campbell and Yogo (2006) for Bonferroni intervals; Kostakis, Magdalinos and Stamatogiannakis (2015) for IVX.
  • Simplifications. The simulations use normal shocks and a known sign of \(\phi\); the augmented regression's standard error uses a first-order variance of \(\hat\rho^c\).
  • Open problems. Uniformly valid tests with good power everywhere; many persistent predictors; breaks against near unit roots.

Textbook audit
Textbook section Where
CLM 1.4 / App. A: linear IV, GMM, HAC errors, GMM and ML ch 1, 2, 7, 8
CLM 2: predictability (random walk tests, variance ratios, long horizons) variance ratios Part 1; long horizons ch 2, 5, 6
CLM 3: market microstructure Part 35
CLM 4: event studies (market model, AR/CAR, variance, clustering, nonparametric tests) ch 10 (nonparametric tests: placebo)
CLM 5: CAPM tests (GRS, two-pass) ch 4 (two-pass, Shanken, GRS); Part 24
CLM 6–7: multifactor models, present-value relations Parts 23–24
CLM 8: Euler equations, HJ bounds, equity premium ch 9; HJ bounds Part 23
CLM 9–12 Parts 10, 18, 19, 7, 27
Cochrane ch 10–11: GMM in discount-factor models; general formulas ch 8, 9
Cochrane ch 12: regression-based tests (time series, cross-section, Fama–MacBeth, Shanken) ch 4; Part 24
Cochrane ch 13: GMM for linear factor models ch 8 (one beat); Part 23
Cochrane ch 14: maximum likelihood ch 7
Cochrane ch 15–16: comparing methods; which method? ch 4, 8
Cochrane ch 20: expected returns in time series and cross section ch 5, 6
Cochrane ch 21: equity premium puzzle ch 9; Part 23
Hayashi ch 1: finite-sample OLS (projection, FWL) ch 1
Hayashi ch 2: large-sample theory, robust se ch 1
Hayashi ch 3–4: single- and multiple-equation GMM, IV/2SLS ch 8, 14
Hayashi ch 5: panel data ch 3, 4
Hayashi ch 6: serial correlation, long-run variance ch 2
Hayashi ch 7–8: extremum estimators, ML ch 7
Hayashi ch 9–10: unit roots, cointegration Part 7
Greene ch 2–5: regression, inference, robust covariance ch 1
Greene ch 6: functional form, difference in differences ch 14
Greene ch 8: endogeneity and IV ch 14
Greene ch 11: panel data ch 3, 4
Greene ch 13: GMM ch 8
Greene ch 14: MLE ch 7
Greene ch 15: simulation and bootstrap ch 11
Greene ch 16: Bayesian estimation ch 12
Greene ch 20: serial correlation ch 2
Bali–Engle–Murray ch 1–5: summary statistics, correlation, persistence, portfolio analysis ch 2; Part 24
Bali–Engle–Murray ch 6: Fama–MacBeth regressions ch 4
Tsay ch 2 (regression with time-series errors); ch 12 (MCMC) ch 2; ch 12

Chapter numbers were checked against the books' tables of contents (Cochrane's revised edition, Greene's 8th edition, Bali–Engle–Murray's Part I, and course syllabi for Hayashi).

Data, scope and reproducibilityData and reproducibility
  • Robert Shiller's ie_data.xls, monthly 1871–2020 (real total returns; dividend, earnings and CAPE yields; GS10; CPI).
  • Kenneth French: monthly factors, 49_Industry_Portfolios, Portfolios_Formed_on_BE-ME (deciles), the daily market and daily size deciles; value-weighted, through December 2020. Hold-outs from 2021 are sealed.
  • FRED: real PCE per capita (A794RX0Q048SBEA, hold-out sealed) and CPIAUCSL.
  • FOMC: scheduled meetings 1994–2020 transcribed from federalreserve.gov/monetarypolicy/fomchistorical<YYYY>.htm into fomc_dates.py (215 decision days; SHA-256 of the list in the file and in videos/quant/data/manifest.json; compute fomc re-parses the cached pages and insists on the list). Spot-checked: 1994-02-04, 2001-01-31, 2007-09-18, 2008-12-16, 2013-06-19, 2015-12-16, 2019-07-31, 2020-01-29.
  • Registered with the trial counter: the industry-momentum panel (1), the turn-of-the-month event study (1), the 49 industry alphas (49), the FOMC event study (1), five out-of-sample predictors (5), the look-ahead toy (1) and the two-pass test (1).
  • Facts checked against primary sources for this expansion: the SEC releases (F-Squared; the 2023 Marketing Rule cases, settled without admitting or denying; the Reg SHO pilot), Lucca–Moench's staff report, Petersen's 42%, Campbell–Thompson's gain formula (R²/(1 − R²)·(1 + S²)/S²), the textbook chapter numbers, JKP's replication rates, Pérignon et al.'s 52%, Nagel's abstract, Glasserman–Lin's findings. Dropped: the Two Sigma Venn "Factor Lens" claim (its documentation could not be read from this environment); Glasserman–Lin's journal venue (cited as arXiv).
Chapter notesChapters (about 60 minutes, 21 entries)
  • One regression, five verdicts (s01_hook). Does an industry's past year (months t−12 to t−2) predict its next month? French's 49 industries, 1928–2020, 51,858 industry-months: pooled OLS t = 1.86; clustered by industry 1.21; by month 0.27; two-way 0.27; Fama–MacBeth 5.08 with a slope eight times larger (0.0170 vs 0.0022). A sixth bar, pooled OLS with month effects (t = 3.56), waits for chapter 4. Then the era (Cowles 1933 → Menkveld et al. 2024), the objectives and the House.
  • 1. Least squares, seen as geometry (s02_ols). OLS as a projection in 3D; normal equations → the sandwich (X'X)⁻¹X'ΩX(X'X)⁻¹. Frisch–Waugh–Lovell on tobacco: alone, the SMB slope is +0.16; residual on residual (market projected out) it is −0.2095, equal to the multiple-regression coefficient to 2×10⁻¹⁶. White's se on that slope: 0.055 against iid 0.047. The Ω grid lit as iid, White, band (ch 2) and blocks (ch 3).
  • 2. Newey–West: counting dependent data (s03_hac). Five-year real returns on the log dividend yield (1,739 overlapping windows): the scores' autocorrelations, Bartlett's window sliding open, t falling from 15.0 (naive) to 2.8 at L = 120. Derivation of the long-run variance (spectrum at zero; a mean of h-period iid sums has variance inflation h). Lab: econ._hac_meat + ols → naive 15.0, NW 2.8, Hansen–Hodrick 2.5, Hodrick (1992) 1B 2.3. Size in 3,000 null worlds per cell (T = 600, h = 12, ρ = 0.95): naive 53%, NW(L = 6) 19%, NW(L = h − 1) 14%, wide NW with fixed-b critical value 10%, EWC (ν = 28) 8%; with ρ = 0 every test is near 5%. Fixed-b critical values simulated: 2.02, 2.10, 2.24, 2.51, 2.87, 3.45 at b = 0.02, 0.05, 0.1, 0.2, 0.3, 0.5 (Kiefer–Vogelsang's cubic gives 2.02, 2.11, 2.26, 2.57, 2.87, 3.48).
  • 3. Clustering: the shocks that are shared (s04_cluster). Ω masks for firm and time effects; the cluster meat, Moulton's factor, two-way inclusion–exclusion. Petersen's design, 500 firms × 10 years, 1,000 panels per design (se / true sd): firm effect — OLS 0.55, FM 0.46, by firm 0.99; time effect — OLS 0.09, by month 0.79, FM 0.94; both — two-way 0.80. Petersen's survey: 42% of panel papers did not adjust.
  • 4. Fama–MacBeth, and five verdicts resolved (s05_famamacbeth). 1,116 monthly cross-sections stacking into a histogram of slopes. Lab: econ.fama_macbeth → 0.0170, t 5.08 (NW 5.16); 61% of months positive. The resolution (corrects the earlier narration): pooled OLS with month effects (within) = 0.0103, t 3.56 clustered by month, exactly the dispersion-weighted Fama–MacBeth average 0.0103; the between-month slope (market on its own past year) = −0.0046, t −0.29; pooled = 0.45 × within + 0.55 × between = 0.0022. Dispersion weighting explains only 0.0170 → 0.0103; the rest is market timing mixed into a cross-sectional question. Two-pass CAPM test, 57 portfolios (49 industries + 10 B/M deciles), 1963–2020: λ_m = −0.002% a month (t −0.01; Shanken −0.01) against a market premium of 0.57%; intercept 0.65% (t 3.2); GRS F = 1.62, p = 0.004.
  • 5. Predictive regressions: Stambaugh's bias (s06_stambaugh). 4,000 simulated samples as a tilted cloud of (ρ̂ − ρ, β̂ − β), slope φ = −0.65; the centre's bias falls from +0.055 at T = 50 to +0.017 at 150 (formula: +0.049, +0.016). Derivation; annual data: β = 0.034 (t 1.1), bias +0.018, corrected 0.016; Amihud–Hurvich 0.016 (t 0.49); IVX annual p = 0.16; the House's simplified IVX on monthly data p = 0.018 (since 1952, 0.015).
  • 6. Out of sample (s07_oos). Chronological expanding-window refits from 1927 on revised Shiller data, rather than a reconstruction of the data available to an investor at each date. R²_OS: dividend yield −0.32%, earnings yield −0.16%, CAPE −0.03%, 10-year yield −0.23%, inflation +0.35% (the only positive one of five tried). The legacy Campbell–Thompson column is omitted because its sign restriction was selected using the full sample. The separate population mean–variance gain formula is taught with a stylized example, holding risk aversion fixed rather than portfolio volatility. It avoids treating a noisy forecast score for real log total returns as an investable gain estimate.
  • 7. Maximum likelihood (s08_mle). Student t on 24,896 daily market returns (1926–2020): Newton from ν = 27 reaches ν̂ = 2.45, σ̂ = 0.575%, in 6 steps (the iterates are replayed on the 3D likelihood hill). se(ν̂): inverse Hessian 0.047; OPG sandwich 0.044; sandwich with the scores' long-run variance 0.170 (3.6 times the naive one).
  • 8. GMM (s09_gmm). One mean, two noisy measures (sd 1 and 2, n = 50): the moment line, W = I gives 1.025, W = Ŝ⁻¹ gives 0.980 (se 0.112), J = 0.23 (p = 0.63). Derivation of the sandwich and efficient weight; OLS, IV and ML as GMM.
  • 9. The Euler equation, estimated and rejected (s10_euler). Lab: two-step econ.gmm → β = 1.002 (0.009), γ = 1.1 (1.5), J = 20.0 on 4 df, p = 0.0005. The J(β, γ) surface in 3D: a steep valley in β, a ridge in γ (weak identification). 400 economies where the model is true (β = 1, γ = 2): γ̂ from −34 to 36 (5–95%); J above its 5% critical value in 0.8% of them, never above 11.3. Equity premium 2.1% a quarter, consumption sd 1.1%, correlation 0.06: γ ≈ 421 (Mehra–Prescott).
  • 10. Event studies (s11_event). FFJR 1969; MacKinlay's machinery. Turn of the month: 74% of returns in 1926–1986, 45% after (t 2.6). FOMC decision days (215 scheduled, 1994–2020): 28 bp against 3 bp, t = 3.08; 3% of days, 24% of the excess return; 1994–2011: 33 bp (Lucca–Moench report about 33 bp close to close); 2011–2020: 12 bp (t 0.95). Placebo p = 0.0014 (10,000 sets). Same-date clustering, simulated: naive se 0.20% against a true 1.54%.
  • 11. The bootstrap for dependent data (s12_bootstrap). Ribbon cut into blocks. Lab: econ.stationary_bootstrap → se 0.122 (iid bootstrap 0.104, Lo 0.103). Coverage of nominal 95% intervals in 1,000 AR(1)+GARCH markets: iid 88.9%, moving block 90.2%, stationary 90.6%.
  • 12. Shrinkage and Bayes (s13_bayes). 40 industry means, first half vs second (rank correlation 0.19). Conjugate algebra, empirical Bayes, James–Stein; Gibbs on the hierarchy (4 chains × 5,000): posterior median τ = 1.0% a year, 91% of the spread removed; error 8.0 (raw) → 3.9 (Gibbs), 3.8 (EB).
  • 13. Many tests (s14_many). 49 alphas: 5 at p < 0.05, 0 after Bonferroni, Holm or BH. Proofs. Planted world (1,000 strategies, 50 with SR 0.5 over 20 years, 200 seeds): raw 30 true / 48 false (FDR 61%); Holm 1.9 true, FWER 6.5%; BH 4.3 true, FDR 4.7%. Lab: econ.benjamini_hochberg.
  • 14. Causal designs (s15_designs). IV (OLS 1.0 vs truth 0.5; strong F ≈ 60: 2SLS 0.50; weak F ≈ 2: middle half 0.13 to 0.99); DiD 0.361 vs 0.35; staggered adoption: TWFE weights negative on the first cohort's late periods; TWFE 0.15 vs truth 0.90, Callaway–Sant'Anna 0.91; RD at a Russell-style cutoff (planted jump 2): RMSE smallest at ±150 ranks. The Regulation SHO pilot as a real design.
  • 15. Double machine learning (s16_dml). Residual clouds: raw slope 1.24, residual on residual 0.33 (truth 0.3). Orthogonality and cross-fitting derived. Lab: econ.dml_plr → 0.300 ± 0.018 over 60 samples, OLS 1.15. Penalty sweep, 5 seeds: at λ = 1, DML 0.300, plug-in 0.311; at λ = 10, 0.322 vs 0.390; both fail at extreme λ.
  • 16. How many years until you know? (s17_snr). t = SR√T; Lo/Mertens; tobacco's (α, β) ellipse refitted quarterly from 1961: after 60 years α = 6.2% ± 4.7% a year, β = 0.69 ± 0.09. 16 years for SR 0.5, 4 for SR 1; 13% chance a SR-0.5 strategy has lost after five years.
  • 17. How research desks avoid fooling themselves (s18_industry). Crisis file: F-Squared (SEC 2014) and a one-week look-ahead toy (honest 6.6% a year, one week early 35.4%, 2001–2008). The SEC Marketing Rule (nine advisers, 2023). Man Group, AQR, Research Affiliates; Menkveld et al. and Pérignon et al. The House's defences.
  • 18. The frontier, 2023–2026 (s19_frontier). Eight cards tied to their chapters; Kelly–Malamud–Zhou vs Nagel (schematic).
  • For the researcher: predictive regressions near a unit root (s21_research). Chapter 5's decomposition recalled; the local-to-unity limit \(T(\hat\rho - \rho) \Rightarrow \int J_c^\mu dW/\int (J_c^\mu)^2\) and \(t_{\hat\beta} \Rightarrow \phi\,\tau_c + \sqrt{1 - \phi^2}Z\) (Phillips 1987; Elliott–Stock 1994; Cavanagh–Elliott–Stock 1995). Simulated (\(\phi = -0.95\), 2,000 samples each): at \(\rho = 0.99\), \(T = 100\) the OLS \(t\) has mean 1.28 (augmented 0.33); the nominal 5% one-sided OLS test rejects 10%, 13%, 19%, 33%, 43% for \(\rho\) = 0.8 to 1, and at \(T = 500\) still 42% at a unit root (9% at 0.95); Amihud–Hurvich 5–9%. Three open problems.
  • The statistics module; recap, desk questions, problems (s20_outro). Rule 7 and the trial counter.

Companion films in this repository

中文讲义

本讲的中文说明、交易台问题与习题解答(与英文版对应)。

导言量化金融,从零搭建 — 第6部分:金融计量经济学

本部分讲如何从我们仅有的一段历史中学习而不自欺,深度相当于研究生课程:最小二乘及其三明治、HAC与聚类标准误(含固定b与等权余弦估计)、 法玛–麦克白与两步法检验、样本内外的预测回归、极大似然与广义矩估计、事件研究、相依数据的自助法、贝叶斯收缩、多重检验、因果设计与双重机器学习, 以及信噪比问题。所有数字都由本系列自己的代码根据公开数据算出;所有结论都在真实世界测度P之下。

讲的是方法,不构成投资建议。

Chapter notes各章(约57分钟,20段)
  • 一个回归,五个结论。 行业动量:混合OLS t = 1.86;按行业聚类1.21;按月0.27;双向0.27;法玛–麦克白5.08,斜率大八倍。灰色的第六根柱子: 带月份效应的OLS,t = 3.56。
  • 1. 几何视角下的最小二乘。 投影、正规方程、三明治;FWL:烟草的SMB斜率单独为+0.16,剔除市场后为−0.2095,与多元回归一致到2×10⁻¹⁶。
  • 2. 纽维–韦斯特。 重叠五年期收益:朴素t 15.0,NW 2.8,HH 2.5,霍德里克1B 2.3。规模模拟(ρ = 0.95,h = 12):朴素53%,NW(6) 19%, NW(h − 1) 14%,宽窗口固定b 10%,EWC 8%。固定b临界值由模拟得到。
  • 3. 聚类。 彼得森设计:公司效应下OLS 0.55、FM 0.46、按公司0.99;时间效应下OLS 0.09、按月0.79、FM 0.94。
  • 4. 法玛–麦克白与和解。 FM 0.0170(t 5.08);月内(月份固定效应)0.0103(t 3.56)= 按离散度加权的FM;月间−0.0046(t −0.29); 混合 = 0.45 × 月内 + 0.55 × 月间 = 0.0022。两步法CAPM检验:λ_m ≈ 0,截距0.65%(t 3.2),GRS p = 0.004。
  • 5. 斯坦博偏差。 倾斜点云;年度β = 0.034,偏差+0.018,校正后0.016;阿米胡德–赫维奇0.016(t 0.49);IVX年度p = 0.16,月度p = 0.018。
  • 6. 样本外。 五个预测变量只有通胀的R²_OS为正(+0.35%);股息率−0.32%。
  • 7. 极大似然。 日收益t分布:ν̂ = 2.45;ν的标准误:朴素0.047,OPG三明治0.044,考虑得分相依的三明治0.170。
  • 8. 广义矩估计。 两个测量的几何:W = I得1.025,有效权重得0.980,J = 0.23。
  • 9. 欧拉方程。 β = 1.002,γ = 1.1(1.5),J = 20.0,p = 0.0005;400个模型成立的经济体中γ̂从−34到36,J最大11.3;γ ≈ 421。
  • 10. 事件研究。 月末月初:74% → 45%。FOMC决议日(215次):28个基点对3个基点,t = 3.08;安慰剂p = 0.0014;2011年后12个基点(t 0.95)。
  • 11. 自助法。 平稳自助法se 0.122(独立同分布0.104);覆盖率:88.9%、90.2%、90.6%。
  • 12. 收缩与贝叶斯。 吉布斯:τ后验中位数1.0%,误差8.0 → 3.9。
  • 13. 多重检验。 49个alpha:5个p < 0.05,校正后0个;模拟世界:BH找到4.3个真发现,FDR 4.7%。
  • 14. 因果设计。 弱工具与强工具;双重差分;交错采纳下TWFE 0.15对真值0.90,CS 0.91;断点的带宽权衡。
  • 15. 双重机器学习。 0.300 ± 0.018,OLS 1.15;惩罚扫描下代入法先漂移。
  • 16. 要多少年。 烟草α = 6.2% ± 4.7%;SR 0.5需要16年。
  • 17. 行业。 F-Squared(美国证监会2014);营销规则(2023);英仕曼、AQR、锐联;非标准误与可复现性。
  • 18. 前沿。 八篇2023–2026年的论文,各连到相应章节。
  • 统计模块、回顾、交易台问题与习题。
Desk questions, with solutions交易台问题与解答
  1. 四年夏普比率为1。 独立正态收益下se(SR) ≈ √((1 + SR²/2)/T) = √(1.5/4) ≈ 0.61(年化);95%区间约为1 ± 1.2。
  2. 20个策略中最好的p = 0.03。 若都无效且独立,至少一个p ≤ 0.03的概率为1 − 0.97²⁰ ≈ 46%;邦费罗尼要求p < 0.0025。
  3. 40年按月采样的年度收益。 480行,约40个独立观测;用带固定b临界值的纽维–韦斯特或EWC;即使NW(h − 1)在持续预测变量下也有14%的拒绝率。
  4. 五年期收益对持续的股息率,NW下t = 2.5。 不要只凭这一点交易:此类检验在真原假设下拒绝14–17%;斜率带有斯坦博偏差(约为年度斜率的一半); 股息率的样本外R²为负(−0.32%)。
  5. 混合斜率0.002,法玛–麦克白0.017:哪个错了? 都没错。FM对月内斜率等权平均(0.0170);按离散度加权得0.0103,即带月份效应的OLS; 不带月份效应的混合OLS把这个月内斜率(占变异的45%)与市场对自身过去的月间斜率(−0.0046)混在一起,得到0.0022。
Problems, with worked solutions习题与解答
  1. 重叠的代价。 对\(h\)个月独立同分布收益之和对缓慢变动的预测变量回归,证明朴素标准误大约低估了真实标准误\(\sqrt{h}\)倍。

    解答

    相邻y_t在滞后k处共享h − k个冲击,自相关为(h − k)/h,加总为h;朴素方差小h倍,标准误小√h倍(√60 ≈ 7.7)。

  2. 斯坦博偏差。 由肯德尔\(\mathbb E[\hat\rho-\rho]\approx-(1+3\rho)/T\)推导斯坦博偏差;代入\(\rho=0.91\)、\(\phi=\sigma_{uv}/\sigma_v^2=-0.72\)、\(T=149\)。

    解答

    u = φv + e,φ = σ_uv/σ_v²;β̂ − β = φ(ρ̂ − ρ) + 均值为零的项;由肯德尔E[ρ̂ − ρ] ≈ −(1 + 3ρ)/T, 得E[β̂ − β] ≈ −φ(1 + 3ρ)/T;年度数据φ = −0.72,ρ = 0.91,T = 149,偏差+0.018。

  3. 夏普比率的标准误。

    解答

    由delta方法,Var(SR̂) ≈ (1 + SR²/2)/T;厚尾加(κ − 3)SR²/4,偏度加−γ₃SR。

  4. Holm方法。 证明霍尔姆程序控制族错误率,且拒绝的至少与邦费罗尼一样多。

    解答

    第一次错误拒绝时至少还剩m₀个假设,阈值至多α/m₀,由并集界FWER ≤ α;每个阈值不小于α/m,所以拒绝的不少于邦费罗尼。

  5. James–Stein。 对于\(k\ge3\)个相互独立的观测\(x_i\sim N(\mu_i,1)\),证明\((1-(k-2)/\|x\|^2)x\)的期望总平方误差小于\(x\)(詹姆斯–斯坦)。

    解答

    由斯坦引理,(1 − (k − 2)/‖x‖²)x的风险为k − (k − 2)²E[1/‖x‖²] < k;向总均值收缩需k ≥ 4。

  6. 月内与月间。 证明:含月份固定效应的混合OLS,等于按各月中心化\(x\)的平方和加权的法玛–麦克白均值;不含月份固定效应时,还混合了月内与月间斜率。

    解答

    月份固定效应斜率 = Σ_t w_t γ̂_t,w_t为当月横截面平方和的份额;把x − x̄拆成月内与月间两部分,交叉项在每月内为零, 所以混合斜率 = (SS_W β_FE + SS_B β_B)/(SS_W + SS_B);行业数据:0.45 × 0.0103 + 0.55 × (−0.0046) = 0.0022。

  7. 独立同分布自助法忘掉相依。 证明 \(\sqrt n\,\bar x^*\) 的独立同分布自助方差是 \(\hat\Gamma_0\),而长度为 \(\ell\) 的移动块近似给出Bartlett加权的长期方差。

    解答

    每个x*i从样本中均匀独立抽取,Var*(√n x̄*) = Γ̂₀;长度为ℓ的移动区块给出约Γ̂₀ + 2Σ{k<ℓ}(1 − k/ℓ)Γ̂_k, 即带宽为ℓ的巴特利特加权长期方差。

  8. (资格考试)局部单位根极限。 (进阶)令\(\rho=1+c/T\);由近单位根过程的函数型中心极限定理,证明\(T(\hat\rho-\rho)\Rightarrow\int_0^1J_c\,dW/\int_0^1J_c^2\),其中\(dJ_c=cJ_c\,dt+dW\)(无截距)。

    解答

    对\(\rho = 1 + c/T\),近单位根过程的泛函中心极限定理给出\(T^{-1/2}x_{\lfloor Tr\rfloor} \Rightarrow \sigma J_c(r)\),即奥恩斯坦–乌伦贝克过程;分母趋于\(\sigma^2\int J_c^2\),分子由随机积分的弱收敛趋于\(\sigma^2\int J_c\,dW\),两者联合收敛。 \(c = 0\)时就是第7部分习题中的迪基–富勒极限。

  9. (资格考试)单位根下的t。 (进阶)当\(\phi=-1\)、\(\rho=1\)时,证明\(t_{\hat\beta}=-\tau_{DF}\);用第5章的模拟工具估计名义5%单侧检验的实际拒绝率。

    解答

    \(\phi = -1\)时\(t_{\hat\beta} = -\tau_{DF}\);检验在\(\tau_{DF} < -1.645\)时拒绝,对带截距的迪基–富勒 分布约为46%。

For the researcher写给研究者

局部单位根极限(Phillips 1987;Chan与Wei 1987),预测检验(Elliott与Stock 1994;Cavanagh、Elliott与Stock 1995),邦费罗尼区间(Campbell与 Yogo 2006),IVX(2015)。开放问题:处处有良好功效的一致有效检验;多个持久预测变量;断点与近单位根之辨。

Review log of the earlier QA passes on this part: docs/qa/quant/part06.md.

Textbook audit教科书对照

见英文部分的表格:CLM第1.4节与附录A、第2、4、5、8章;Cochrane《资产定价》修订版第10–16、20–21章;Hayashi第1–8章;Greene第8版第2–6、8、11、 13–16、20章;Bali–Engle–Murray第1–6章;Tsay第2、12章。每一节都对应到本部分的某一章或系列中的另一部分。

Data, scope and reproducibility数据与可复现性

席勒月度数据;肯尼斯·弗伦奇的因子、49个行业、账面市值比十分位、日度市场与规模十分位(截至2020年12月,2021年起的留出数据已密封); FRED的人均实际消费与CPI;FOMC例行会议日期(1994–2020,转录自美联储网站,见fomc_dates.py,带SHA-256校验)。

Build the film

python -m videos.quant.quant6.compute      # the part's numbers, into .cache/quant6
python tools/make.py quant6                # the narrated film, English and Chinese
EXPLAINER_TTS=silent python tools/qa_scene.py quant6 Hook   # one chapter, silent, with a contact sheet

Scenes: videos/quant/quant6. Setup: see the course page. Source of these notes: the part's README and the scenes' narration.