8  Beta

WarningEarly draft

This chapter is an early draft and I have not yet carefully reviewed it. Also the APIs used in the examples may change as I continue working on the book.

Starting with Chapter 8, the focus Bali et al. (2016) turns to cross-sectional determinants of stock returns. Each chapter explores a different determinant and Chapter 8 focuses on beta, the determinant with perhaps the strongest theoretical support. As pointed out by Bali et al. (2016, 122, emphasis added), “the CAPM predicts that cross-sectional variation in the expected returns of different securities is driven only by cross-sectional variation in the betas of the securities.” If true, we might expect Chapter 8 to be the final chapter of Bali et al. (2016). However, Bali et al. (2016, 122) continue, “This hypothesis is perhaps the most researched, and one of the most strongly refuted, hypotheses in all of empirical asset pricing.” One could probably expand the scope of that claim to “finance” or “economics” or even “social sciences”.

Following Chapter 8 of Bali et al. (2016), we have two tasks for this chapter. First, we need to estimate betas. Second, we need to examine the cross-sectional relation between beta, as estimated in the first task, and stock returns.

import polars as pl
import statspai as sp

from eap_pl import (
    adjusted_window, assign_portfolio, daily_betas, daily_slope, get_ff_factors,
    load_beta_universe, load_daily_beta_inputs, load_parquet, ptime,
)

8.1 Estimating Beta

In §8.1, BEM describe eleven ways to estimate a stock’s market beta. They start with the CAPM prediction for the expected return on stock \(i\). In Equation 8.1, \(R_{f,t}\) is the risk-free rate and \(\mathbb E[R_{m,t}]-R_{f,t}\) is the expected market risk premium.

\[ \mathbb E[R_{i,t}] = R_{f,t} + \beta_i\bigl(\mathbb E[R_{m,t}]-R_{f,t}\bigr). \tag{8.1}\]

BEM define market beta in Equation 8.2 as the covariance of the stock return \(R_{i,t}\) and the market return \(R_{m,t}\) divided by the variance of the market return.

\[ \beta_i = \frac{\operatorname{Cov}(R_{i,t},R_{m,t})} {\operatorname{Var}(R_{m,t})}. \tag{8.2}\]

Nine of BEM’s eleven estimates use the regression in Equation 8.3. For each stock, they regress its excess return \(r_{i,t}=R_{i,t}-R_{f,t}\) on the market excess return \(\mathrm{MKT}_t=R_{m,t}-R_{f,t}\).

\[ r_{i,t} = \alpha_i + \beta_i\,\mathrm{MKT}_t + \epsilon_{i,t}. \tag{8.3}\]

The CAPM predicts \(\alpha_i=0\), but BEM allow for an intercept when estimating the regression. The fitted slope gives the stock’s estimated market beta at the end of the estimation window.

BEM describe a year of daily returns and five years of monthly returns as two common choices. They examine both and also vary the window length at each frequency. Their superscripts identify the return frequency and window length. For example, \(\beta^{12M}\) uses daily returns over the past twelve months, while \(\beta^{1Y}\) uses monthly returns over the same year. For each window, BEM specify how many valid returns a stock needs for them to estimate its beta. A higher minimum rules out estimates based on very few returns, but it also excludes stocks with shorter trading histories.

Window for daily returns Minimum days Window for monthly returns Minimum months
1 month 15 1 year 10
3 months 50 2 years 20
6 months 100 3 years 24
12 months 200 5 years 24
24 months 450

For the five-year beta, we use all available monthly returns from \(t-59\) through \(t\), provided there are at least 24.1 Thus a stock with a full five-year history contributes 60 returns, and a stock that began trading three years ago can contribute all 36 of its returns.

BEM’s two other estimates allow for nonsynchronous trading. A stock that first trades on Tuesday after market news on Monday may appear less sensitive to the market in a same-day regression. BEM use one year of daily returns and require at least 200 observations for both measures (Bali et al. 2016, 124–25).

Following Scholes and Williams (1977), BEM run three separate regressions. They pair the stock’s excess return with the market excess return one trading day earlier in Equation 8.4, on the same day in Equation 8.5, and one trading day later in Equation 8.6.

\[ r_{i,t} = a_i + b_i^{-}\,\mathrm{MKT}_{t-1} + e_{i,t}^{-}. \tag{8.4}\]

\[ r_{i,t} = a_i + b_i\,\mathrm{MKT}_t + e_{i,t}. \tag{8.5}\]

\[ r_{i,t} = a_i + b_i^{+}\,\mathrm{MKT}_{t+1} + e_{i,t}^{+}. \tag{8.6}\]

The Scholes–Williams beta in Equation 8.7 adds the three estimated slopes and adjusts their sum for \(\rho\), the first-order autocorrelation of the market excess return.

\[ \beta_i^{SW} = \frac{\widehat b_i^{-} + \widehat b_i + \widehat b_i^{+}}{1+2\rho}. \tag{8.7}\]

Following Dimson (1979), BEM estimate eleven slopes jointly in Equation 8.9 and sum them in Equation 8.8. The regression includes the same day’s market excess return and five trading days of market excess returns on either side.

\[ \beta_i^{D} = \sum_{k=-5}^{5}\widehat b_i^{k}. \tag{8.8}\]

\[ r_{i,t} = a_i + \sum_{k=-5}^{5} b_i^{k}\,\mathrm{MKT}_{t+k} + e_{i,t}. \tag{8.9}\]

To produce their Chapter 8 tables, BEM estimate each of these eleven betas for US common stocks in CRSP at the end of each month from June 1963 through November 2012.

first = pl.date(1963, 6, 1)
last = pl.date(2012, 11, 1)

To construct BEM’s monthly sample, we use the CRSP names file to identify stocks with share code 10 or 11 on the last calendar day of the formation month. After filtering on shrcd, we keep the stock identifier (permno) and the dates when each record begins (namedt) and ends (nameendt).

names = (
    load_parquet("msenames", "crsp")
    .filter(pl.col("shrcd").is_in([10, 11]))
    .select("permno", "namedt", "nameendt")
)

For each names record that overlaps our sample, we generate the months from its first through its last, bounded by first and last. We use the first day of each month to identify it.

candidate_months = (
    names
    .filter(
        pl.col("namedt") <= last.dt.month_end(),
        pl.col("nameendt") >= first)
    .with_columns(month=pl.date_ranges(
        pl.max_horizontal(pl.col("namedt").dt.month_start(), first),
        pl.min_horizontal(pl.col("nameendt").dt.month_start(), last),
        interval="1mo",
    ))
    .explode("month")
)

For each names record, we keep the month-ends that fall within the record’s date range. A record ending on June 15, for example, generates a June row above, which the month-end screen removes.

universe = (
    candidate_months
    .filter(pl.col("month").dt.month_end().is_between("namedt", "nameendt"))
    .select("permno", "month")
    .unique()
    .collect()
)

The function eap_pl.load_beta_universe() applies this screen for any range of formation months.

from eap_pl import load_beta_universe

universe = load_beta_universe(first, last).collect()

BEM take daily and monthly stock returns from CRSP and the corresponding market excess returns and risk-free rates from Kenneth French’s data library. Because we screen on share code at formation, a stock can contribute earlier returns even if its share code has changed. We start the monthly return history 59 months before the first formation month so that the first five-year estimate can use the full window. We also need returns through the month following the last formation month (last_holding) to measure portfolio performance. We keep CRSP’s reported return (ret) for estimating beta and calculate market capitalization (cap) for the value-weighted portfolios.

last_holding = last.dt.offset_by("1mo")
monthly_stock = (
    load_parquet("msf", "crsp")
    .filter(pl.col("date").is_between(
        first.dt.offset_by("-59mo"), last_holding.dt.month_end()
    ))
    .select(
        "permno",
        month=pl.col("date").dt.month_start(),
        ret=pl.col("ret").cast(pl.Float64),
        cap=pl.when((pl.col("altprc") != 0) & (pl.col("shrout") > 0))
        .then(pl.col("altprc").abs() * pl.col("shrout")),
    )
)

For the replication, we use the June 2014 vintage of the French data (see Table 1.1). From the monthly file, we need the risk-free rate (rf) and the market excess return (mktrf).

vintage = "201406"
monthly_market = get_ff_factors("monthly", vintage=vintage).lazy().select(
    pl.col("date").alias("month"), "mktrf", "rf",
)

We match these series to each stock by month, subtract rf from ret, and keep stock-months with both a stock excess return (retrf) and a market excess return. The pair permno and month identifies a stock-month in the joins that follow.

keys = ["permno", "month"]
monthly_excess = (
    monthly_stock
    .join(monthly_market, on="month", validate="m:1")
    .select(*keys, "mktrf", retrf=pl.col("ret") - pl.col("rf"))
    .filter(pl.all_horizontal(pl.col("retrf", "mktrf").is_finite()))
)

We calculate the fitted slope in Equation 8.3 directly from the sample covariance and variance. If \(W_t\) contains the dates with both excess returns available in the window ending in month \(t\), the estimate is

\[ \widehat\beta_{i,t} = \frac{\operatorname{Cov}_{s\in W_t}(r_{i,s},\mathrm{MKT}_s)} {\operatorname{Var}_{s\in W_t}(\mathrm{MKT}_s)}. \]

def beta_slope(stock, market):
    return pl.cov(stock, market) / pl.col(market).var()

The full join keeps the return history preceding the first formation month and every eligible formation date. This lets us estimate a beta even if the stock’s return is missing in the formation month itself.

monthly_returns = (
    universe
    .lazy()
    .join(monthly_excess, on=keys, how="full", coalesce=True, validate="1:1")
    .sort(keys)
    .collect()
)

For each stock and formation month, monthly_beta() calculates the slope using all matched returns in the window and keeps the estimate if their count meets BEM’s minimum. Each pair in monthly_windows gives the length of the window in calendar months and the minimum number of monthly returns.

monthly_windows = {"1Y": (12, 10), "2Y": (24, 20), "3Y": (36, 24), "5Y": (60, 24)}

def monthly_beta(label, months, minimum):
    return (
        monthly_returns
        .rolling("month", period=f"{months}mo", group_by="permno")
        .agg(
            beta_slope("retrf", "mktrf").alias(label),
            pl.col("retrf").count().alias("n"),
        )
        .select(
            *keys,
            pl.when((pl.col("n") >= minimum) & pl.col(label).is_finite())
            .then(pl.col(label)),
        )
    )

For the daily estimates, load_daily_beta_inputs() first aligns market returns on French’s trading calendar. In the function excerpt below, mkt_5 is the same day’s market excess return, and days_left counts the trading days remaining in the month.

offsets = {k: f"mkt_{k + 5}" for k in range(-5, 6)}
daily_factors = (
    _load_ff3("daily", vintage)
    .select("date", "mktrf", "rf")
    .sort("date")
    .with_columns(pl.col("mktrf").shift(-k).alias(name) for k, name in offsets.items())
    .with_columns(month=pl.col("date").dt.month_start())
    .with_columns(days_left=pl.len().over("month") - pl.col("date").cum_count().over("month"))
    .collect()
)

The function then matches the market series to each stock by trading date and subtracts the daily risk-free rate from the stock return.

daily_excess = (
    load_parquet("dsf", "crsp")
    .filter(pl.col("date").is_between(first, last))
    .select("permno", "date", "ret")
    .join(daily_factors.lazy(), on="date", validate="m:1",
          maintain_order="left" if preserve_order else "none")
    .with_columns(retrf=pl.col("ret") - pl.col("rf"))
    .filter(pl.all_horizontal(pl.col("retrf", *offsets.values()).is_finite()))
    .select("permno", "month", "retrf", "days_left", *offsets.values())
)

BEM’s longest daily window covers 24 months, so we request daily returns starting 23 months before the first formation month.

daily_factors, daily_excess = load_daily_beta_inputs(
    first.dt.offset_by("-23mo"), last.dt.month_end(), vintage=vintage,
)

8.1.1 Daily Betas for Three Stocks

To see how the seven daily estimates differ, consider a single formation month, November 2012. We take the first three eligible securities by permno and collect their daily returns for the longest window.

example_daily = universe.filter(pl.col("month") == last).sort("permno").head(3)
example_permnos = example_daily["permno"].to_list()
example_returns = (
    daily_excess
    .filter(
        pl.col("permno").is_in(example_permnos),
        pl.col("month").is_between(last.dt.offset_by("-23mo"), last),
    )
    .collect()
)

For each of BEM’s five ordinary betas, we take the daily returns in the specified window and calculate the slope on the same day’s market excess return (mkt_5). For example, the twelve-month estimate uses December 2011 through November 2012 and requires at least 200 daily observations. Each pass through the loop adds one beta column to example_daily.

daily_windows = {"1M": (1, 15), "3M": (3, 50), "6M": (6, 100),
                 "12M": (12, 200), "24M": (24, 450)}

for label, (months, minimum) in daily_windows.items():
    start = last.dt.offset_by(f"-{months - 1}mo")
    estimates = (
        example_returns
        .filter(pl.col("month") >= start)
        .group_by("permno")
        .agg(pl.when(pl.len() >= minimum).then(beta_slope("retrf", "mkt_5")).alias(label))
    )
    example_daily = example_daily.join(estimates, on="permno", how="left", validate="1:1")

For Scholes–Williams we need yesterday’s, today’s, and tomorrow’s market returns, mkt_4, mkt_5, and mkt_6. At the end of November, we can use October’s last stock return because its market lead falls in November. We omit November’s last stock return because its market lead falls in December. We apply the 200-observation minimum after this exclusion and estimate the three slopes on the same dates.

year_start = last.dt.offset_by("-11mo")
year_returns = example_returns.filter(pl.col("month") >= year_start)
sw_returns = year_returns.filter((pl.col("month") < last) | (pl.col("days_left") >= 1))

slopes = (
    sw_returns
    .group_by("permno")
    .agg(
        n=pl.len(),
        b_lag=beta_slope("retrf", "mkt_4"),
        b_same=beta_slope("retrf", "mkt_5"),
        b_lead=beta_slope("retrf", "mkt_6"),
    )
    .filter(pl.col("n") >= 200)
)

The denominator in Equation 8.7 uses the first-order autocorrelation of the market return, so it is the same for all three stocks. We restrict the market series to the twelve-month window before taking its lag, so both trading days in each pair fall inside the window.

rho = (
    daily_factors
    .filter(pl.col("month").is_between(year_start, last))
    .select(pl.corr("mktrf", pl.col("mktrf").shift(1)))
    .item()
)

We add the three slopes for each stock and divide by \(1+2\rho\). The intermediate columns show how each slope contributes to the estimate.

sum_slopes = pl.col("b_lag") + pl.col("b_same") + pl.col("b_lead")
sw = (
    slopes.with_columns(rho=pl.lit(rho))
    .with_columns(SW=sum_slopes / (1 + 2 * pl.col("rho")))
)
sw.sort("permno").eap.show_table()
permno n b_lag b_same b_lead rho SW
10001 250 0.12 0.15 0.11 -0.02 0.38
10002 250 0.33 1.23 -0.46 -0.02 1.13
10025 250 -0.33 0.71 -0.04 -0.02 0.35

For permno 10001, the positive slopes on the adjacent days raise the estimate from a same-day slope of 0.15 to a Scholes–Williams beta of 0.38.

For Dimson we omit the last five trading days of November because the longest market lead is five trading days. For each stock with at least 200 remaining observations, we fit Equation 8.9 and sum the eleven market coefficients, excluding the intercept.

dimson_returns = year_returns.filter((pl.col("month") < last) | (pl.col("days_left") >= 5))
dimson_predictors = [f"mkt_{i}" for i in range(11)]
dimson_formula = "retrf ~ " + " + ".join(dimson_predictors)
dimson_rows = []
for permno in example_permnos:
    stock = dimson_returns.filter(pl.col("permno") == permno)
    if stock.height >= 200:
        fit = sp.regress(dimson_formula, data=stock)
        dimson_rows.append((permno, sum(fit.params[name] for name in dimson_predictors)))

dimson = pl.DataFrame(
    dimson_rows,
    schema={"permno": example_daily.schema["permno"], "D": pl.Float64},
    orient="row",
)

Joining the two adjusted estimates to the five ordinary estimates gives us all seven daily betas for November. The 12M, SW, and D columns all cover the same year.

example_daily = (
    example_daily
    .join(sw.select("permno", "SW"), on="permno", how="left", validate="1:1")
    .join(dimson, on="permno", how="left", validate="1:1")
    .sort("permno")
)
example_daily.select("permno", *daily_windows, "SW", "D").eap.show_table()
permno 1M 3M 6M 12M 24M SW D
10001 1.11 0.51 0.24 0.15 0.18 0.38 0.72
10002 1.38 1.05 0.90 1.23 0.48 1.13 -1.14
10025 0.77 0.64 0.44 0.71 1.05 0.35 0.84

8.1.2 Daily Betas for the Full Sample

Repeating the example for every formation month would use most of the same daily returns many times. Instead, we sum the regression inputs once per stock and month and roll those sums over each window. With market excess return \(x\) and stock excess return \(y\), daily_slope() calculates the slope as \([\sum xy-(\sum x)(\sum y)/n]/[\sum x^2-(\sum x)^2/n]\).

def daily_slope(market: str) -> pl.Expr:
    """Return the slope of `retrf` on `market` from sums of daily returns."""
    n = pl.col("n")
    x = pl.col(market)
    numerator = pl.col(product_name(market, "retrf")) - x * pl.col("retrf") / n
    denominator = pl.col(product_name(market, market)) - x.pow(2) / n
    return pl.when(denominator > 0).then(numerator / denominator)

For Scholes–Williams and Dimson, we also need to account for the trading days whose market leads extend beyond the formation month. adjusted_window() first adds up the counts, returns, and cross-products over the full twelve months. It then subtracts the contribution of the last lead trading days of the formation month from each of those totals. For example, each of our three stocks has 251 daily returns from December 2011 through November 2012. Subtracting the last trading day of November leaves 250 for Scholes–Williams, and subtracting the last five leaves 246 for Dimson. The function applies the 200-observation minimum to the count after subtraction.

With lead=1, we can recover the three Scholes–Williams slopes above from these sums.

sw_window = adjusted_window(
    example_returns, example_daily.select(keys), ["mkt_4", "mkt_5", "mkt_6"], lead=1,
)
rolling_slopes = sw_window.select(
    "permno", "n",
    b_lag=daily_slope("mkt_4"),
    b_same=daily_slope("mkt_5"),
    b_lead=daily_slope("mkt_6"),
)

For Dimson, lead=5 makes the five-day adjustment, and joint=True includes the cross-products between the eleven market predictors so that we can fit their slopes jointly.

We have put these steps in eap_pl.daily_betas(). Given the formation dates, daily stock excess returns, and daily market factors, it estimates all seven betas using BEM’s windows and observation minimums. It processes up to 1,000 stocks at a time, so we can pass the entire universe in one call.

with ptime():
    daily = daily_betas(universe, daily_excess, daily_factors)

Wall time: 24.383 s

We join the four monthly beta estimates to the daily estimates by stock and formation month.

with ptime():
    betas = daily
    for label, (months, minimum) in monthly_windows.items():
        betas = betas.join(monthly_beta(label, months, minimum), on=keys, how="left", validate="1:1")

beta_labels = [*daily_windows, *monthly_windows, "SW", "D"]

Wall time: 11.265 s

November 2012 is BEM’s last formation month, so December 2012 supplies the last holding returns in the Chapter 8 tables. Several later chapters use just the 12-month daily beta. On my machine, eap_pl.load_monthly_betas() takes about 1.2 seconds to calculate this measure for the full sample, so I calculate it on demand.

8.1.3 December Betas for the Methodologies Sample

The beta that BEM use in their Part I methodologies sample is a special case of \(\beta^{12M}\). They estimate it each December from 1988 through 2012 using the daily returns for that calendar year (Bali et al. 2016, 4–5). To reproduce that sample, we apply the same common-share screen through December 2012 and keep one December observation per eligible stock and year.

start_year, end_year = 1988, 2012
december_stocks = (
    load_beta_universe(pl.date(start_year, 12, 1), pl.date(end_year, 12, 1))
    .filter(pl.col("month").dt.month() == 12)
    .select("permno", year=pl.col("month").dt.year())
)

We match daily stock and market excess returns from January 1988 through December 2012 using the same June 2014 factor vintage.

_, annual_daily_returns = load_daily_beta_inputs(
    pl.date(start_year, 1, 1), pl.date(end_year, 12, 31), vintage=vintage,
)

Within each stock-year, we divide the covariance of the stock excess return (retrf) and the same day’s market excess return (mkt_5) by the variance of the market excess return. We require BEM’s minimum of 200 matched daily observations and a positive market variance to calculate the slope.

market_variance = pl.col("mkt_5").var()
annual_estimates = (
    annual_daily_returns
    .with_columns(year=pl.col("month").dt.year())
    .group_by("permno", "year")
    .agg(
        Beta=pl.when((pl.len() >= 200) & (market_variance > 0))
        .then(pl.cov("retrf", "mkt_5") / market_variance)
    )
)

We join the estimates to the December common stocks. The left join keeps an eligible stock-year even when its beta is missing.

annual_beta = (
    december_stocks
    .join(annual_estimates, on=["permno", "year"], how="left", validate="1:1")
    .collect()
)

I put these steps in eap_pl.load_annual_betas(), which returns a lazy query and defaults to 1988 through 2012. In Chapter 2, I collect the estimates once and use them for both the annual summary statistics and the stock-year panel.

from eap_pl import load_annual_betas

annual_beta = load_annual_betas(vintage=vintage).collect()

8.2 Summary Statistics

To calculate Table 8.1, we first put the eleven beta columns into long form. Each row of beta_long contains one beta measure for one stock in one formation month.

beta_long = betas.unpivot(
    on=beta_labels, index=keys, variable_name="measure", value_name="beta",
)

Within each month, we calculate the cross-sectional statistics for each measure using the stocks with an available estimate. We use sample standard deviations, bias-adjusted skewness and excess kurtosis, and linearly interpolated quantiles.

b = pl.col("beta")
monthly_summary = (
    beta_long
    .group_by("measure", "month")
    .agg(
        mean=b.mean(), sd=b.std(), skew=b.skew(bias=False),
        kurt=b.kurtosis(fisher=True, bias=False), min=b.min(),
        p05=b.quantile(.05, interpolation="linear"),
        p25=b.quantile(.25, interpolation="linear"), median=b.median(),
        p75=b.quantile(.75, interpolation="linear"),
        p95=b.quantile(.95, interpolation="linear"), max=b.max(), n=b.count(),
    )
)

We then average each statistic over months. For example, sd is the average of the monthly cross-sectional standard deviations, and n is the average number of stocks with a beta estimate.

summary = (
    monthly_summary
    .group_by("measure")
    .agg(pl.exclude("measure", "month").mean())
)
Code
beta_order = pl.DataFrame({"measure": beta_labels})
(
    beta_order
    .join(summary, on="measure", maintain_order="left")
    .with_columns(pl.col("n").round().cast(pl.Int64))
    .rename({"measure": "Beta", "mean": "Mean", "sd": "SD", "skew": "Skew",
             "kurt": "Kurt.", "min": "Min", "p05": "5%", "p25": "25%",
             "median": "Median", "p75": "75%", "p95": "95%", "max": "Max"})
    .eap.show_table()
)
Table 8.1: Cross-sectional summary statistics for market beta (BEM Table 8.1)
Beta Mean SD Skew Kurt. Min 5% 25% Median 75% 95% Max n
1M 0.74 1.39 0.18 23.73 -14.32 -1.13 0.05 0.64 1.38 2.90 15.44 4759
3M 0.76 0.87 0.30 9.13 -6.34 -0.42 0.23 0.68 1.23 2.23 7.88 4695
6M 0.77 0.71 0.41 3.88 -3.71 -0.19 0.30 0.70 1.18 2.02 5.46 4610
12M 0.78 0.61 0.49 1.46 -2.16 -0.05 0.35 0.71 1.15 1.89 3.90 4439
24M 0.79 0.54 0.55 0.57 -1.21 0.04 0.39 0.73 1.12 1.79 3.09 4017
1Y 1.13 1.34 0.93 21.17 -9.48 -0.66 0.37 1.01 1.78 3.33 16.17 4421
2Y 1.14 0.94 0.73 7.39 -4.74 -0.12 0.55 1.04 1.63 2.76 9.12 4071
3Y 1.14 0.80 0.64 4.27 -3.43 0.06 0.62 1.05 1.57 2.56 7.12 3958
5Y 1.14 0.72 0.50 6.68 -3.28 0.17 0.66 1.05 1.53 2.41 6.19 3994
SW 0.88 0.68 0.41 1.69 -2.69 -0.07 0.42 0.82 1.29 2.08 4.74 4437
D 1.06 1.00 0.52 10.26 -6.10 -0.33 0.44 0.97 1.59 2.75 9.08 4431

The dispersion of the one-month daily beta reflects both differences in stocks’ exposures and estimation noise from short return histories. In my data the five-day lead cutoff reduces coverage by eight stocks per month relative to the 12-month daily beta.

8.3 Correlations

For the Pearson correlations in Table 8.2, we first winsorize each beta measure within month at the 0.5th and 99.5th percentiles.

clipped = betas.with_columns(
    pl.col(beta_labels).eap.winsorize(prob=0.005, quantile_method="linear").over("month")
)

For each pair of measures, we calculate a correlation across stocks with both estimates available in a given month. We then average the monthly correlations for that pair.

def mean_correlations(panel, method):
    return (
        panel
        .group_by("month")
        .agg(
            pl.corr(a, b, method=method).alias(f"{a}:{b}")
            for i, a in enumerate(beta_labels) for b in beta_labels[i + 1:]
        )
        .select(pl.exclude("month").fill_nan(None).mean())
        .row(0, named=True)
    )

Below the diagonal we report Pearson correlations using the winsorized betas. Above the diagonal we report Spearman rank correlations using the original betas.

pearson = mean_correlations(clipped, "pearson")
spearman = mean_correlations(betas, "spearman")
Code
correlations = [
    [a, *[
        spearman[f"{a}:{b}"] if i < j else pearson.get(f"{b}:{a}")
        for j, b in enumerate(beta_labels)
    ]]
    for i, a in enumerate(beta_labels)
]
pl.DataFrame(correlations, schema=["Beta", *beta_labels], orient="row").eap.show_table()
Table 8.2: Monthly Pearson (below diagonal) and Spearman (above diagonal) correlations (BEM Table 8.2)
Beta 1M 3M 6M 12M 24M 1Y 2Y 3Y 5Y SW D
1M 0.67 0.57 0.51 0.47 0.22 0.25 0.26 0.26 0.43 0.29
3M 0.67 0.83 0.72 0.65 0.34 0.37 0.38 0.38 0.62 0.42
6M 0.56 0.83 0.87 0.77 0.40 0.44 0.45 0.45 0.73 0.51
12M 0.48 0.72 0.87 0.89 0.45 0.50 0.51 0.51 0.83 0.57
24M 0.43 0.64 0.77 0.89 0.43 0.55 0.57 0.57 0.77 0.54
1Y 0.19 0.31 0.38 0.43 0.40 0.74 0.65 0.58 0.52 0.64
2Y 0.22 0.35 0.42 0.48 0.53 0.75 0.87 0.77 0.54 0.59
3Y 0.23 0.35 0.43 0.50 0.55 0.66 0.87 0.89 0.55 0.56
5Y 0.23 0.35 0.42 0.49 0.56 0.58 0.78 0.89 0.54 0.53
SW 0.40 0.60 0.72 0.83 0.76 0.50 0.53 0.53 0.52 0.67
D 0.25 0.39 0.48 0.55 0.52 0.64 0.57 0.54 0.51 0.66

BEM describe Table 8.2 as monthly in §8.3 and annual in its caption. I use monthly cross-sections, consistent with the discussion and sample construction. Correlations between similar lookbacks can partly reflect the observations shared by the estimation windows.

8.4 Persistence

Table 8.3 compares a stock’s winsorized beta with its beta exactly \(\tau\) calendar months later. For each lag, BEM report only measures whose two windows use distinct return histories. For example, a lag of six months suffices for the six-month daily beta, but the twelve-month daily beta requires a lag of at least twelve months.

window_months = {label: months for label, (months, _) in (daily_windows | monthly_windows).items()}
window_months.update(SW=12, D=12)

For the eligible measures, we move the later estimates’ month labels back by lag months so that the join pairs each stock’s current and future betas. We calculate a Pearson correlation across stocks in each formation month and average the correlations over months.

def persistence(lag):
    columns = [b for b in beta_labels if window_months[b] <= lag]
    current = clipped.select(*keys, *columns)
    future = current.with_columns(month=pl.col("month").dt.offset_by(f"-{lag}mo"))
    return (
        current
        .join(future, on=keys, suffix="_future", validate="1:1")
        .group_by("month")
        .agg(pl.corr(b, f"{b}_future").alias(b) for b in columns)
        .select(pl.lit(lag).alias("Lag (months)"), pl.col(columns).fill_nan(None).mean())
    )

Stacking the results for BEM’s nine lags leaves a blank wherever the two estimation windows overlap.

persistence_table = pl.concat(
    [persistence(lag) for lag in [1, 3, 6, 12, 24, 36, 48, 60, 120]],
    how="diagonal",
)
Code
persistence_table.select(
    "Lag (months)", *daily_windows, "SW", "D", *monthly_windows,
).eap.show_table()
Table 8.3: Persistence of beta across nonoverlapping stock-return windows (BEM Table 8.3)
Lag (months) 1M 3M 6M 12M 24M SW D 1Y 2Y 3Y 5Y
1 0.23
3 0.21 0.41
6 0.19 0.39 0.54
12 0.18 0.36 0.49 0.63 0.52 0.30 0.20
24 0.16 0.31 0.43 0.55 0.67 0.45 0.26 0.18 0.31
36 0.14 0.29 0.39 0.50 0.61 0.41 0.24 0.16 0.29 0.37
48 0.13 0.26 0.36 0.47 0.57 0.38 0.22 0.15 0.26 0.34
60 0.12 0.25 0.34 0.43 0.53 0.36 0.21 0.14 0.25 0.32 0.41
120 0.10 0.20 0.27 0.35 0.43 0.30 0.17 0.11 0.20 0.26 0.33

The 12-month daily beta has a correlation of 0.63 with its value one year later. A year of monthly returns yields a correlation of 0.20. This difference suggests that, over the same one-year lookback, the daily estimate captures a more stable stock characteristic.

8.5 Beta and Stock Returns

8.5.1 Portfolio Analysis

For each beta measure, we sort stocks with an available estimate in formation month \(t\) into deciles. The default rule in assign_portfolio() puts a stock exactly on a breakpoint in the lower decile.

eligible = beta_long.lazy().filter(pl.col("beta").is_not_null())
members = assign_portfolio(
    eligible, "beta", 10, ["measure", "month"], label="decile",
)

To measure portfolio performance, we apply the delisting convention in Section 7.2 and subtract the holding month’s risk-free rate. We express the stock and market excess returns in percent per month.

Calculate holding-month excess returns
delist = (
    load_parquet("msedelist", "crsp")
    .filter(pl.col("dlstdt").is_between(
        first.dt.offset_by("1mo"), last_holding.dt.month_end()
    ))
    .select("permno", month=pl.col("dlstdt").dt.month_start(), dlret="dlret", dlstcd="dlstcd")
)
poor_performance = (
    pl.col("dlstcd").is_in([500, 520, 580, 584])
    | pl.col("dlstcd").is_between(551, 574)
)
imputed_delist = pl.when(poor_performance).then(-0.30).otherwise(-1.00)

holding_returns = (
    monthly_stock
    .select(*keys, "ret")
    .join(delist, on=keys, how="full", coalesce=True, validate="1:1")
    .join(monthly_market, on="month", validate="m:1")
    .with_columns(ret_adj=pl.when(pl.col("dlstcd").is_not_null())
                  .then(pl.coalesce("dlret", imputed_delist)).otherwise(pl.col("ret")))
    .select(
        "permno", holding="month",
        excess=100 * (pl.col("ret_adj") - pl.col("rf")), market=100 * pl.col("mktrf"),
    )
)

The weights and returns come from different months. For each stock in the formation sample, we take market capitalization from month \(t\) and the excess return from month \(t+1\). The stock can contribute a holding-period return even if it leaves the common-share universe during that month.

outcomes = (
    universe
    .lazy()
    .join(monthly_stock.select(*keys, "cap"), on=keys, how="left", validate="1:1")
    .with_columns(holding=pl.col("month").dt.offset_by("1mo"))
    .join(holding_returns, on=["permno", "holding"], how="left", validate="1:1")
    .collect()
)

We attach these weights and returns to the decile memberships using the stock identifier and formation month.

members = (
    members
    .with_columns(pl.col("decile").cast(pl.String))
    .join(outcomes.lazy(), on=keys, validate="m:1")
)

The equal-weighted decile return is the mean of the available excess returns. For the value-weighted return, we use stocks with both a return and a formation-month market capitalization so the same stocks enter the numerator and denominator.

has_weight = pl.all_horizontal(pl.col("cap", "excess").is_finite())
cap = pl.col("cap").filter(has_weight)
r = pl.col("excess").filter(has_weight)
portfolios = (
    members
    .group_by("measure", "holding", "decile")
    .agg(
        beta=pl.col("beta").mean(),
        equal=pl.col("excess").filter(pl.col("excess").is_finite()).mean(),
        value=(cap * r).sum() / cap.sum(),
        market=pl.col("market").drop_nulls().first(),
    )
    .collect()
)

For each measure and holding month, we subtract decile 1 from decile 10 to get the spread in average beta and in each of the two portfolio returns. Appending the spread to the ten deciles lets us analyze all eleven return series in the same way.

decile_values = pl.col("beta", "equal", "value")
spread = (
    portfolios
    .filter(pl.col("decile").is_in(["1", "10"]))
    .group_by("measure", "holding")
    .agg(
        decile_values.filter(pl.col("decile") == "10").first()
        - decile_values.filter(pl.col("decile") == "1").first()
    )
    .join(outcomes.select("holding", "market").drop_nulls().unique(), on="holding", validate="m:1")
    .with_columns(decile=pl.lit("10–1"))
    .select(portfolios.columns)
)
portfolio_series = pl.concat([portfolios, spread]).sort("holding")

For each return series, the intercept from a regression on a constant gives the mean excess return. Adding the holding month’s market excess return to the regression gives the CAPM alpha as its intercept. We use six Newey–West lags for both \(t\)-statistics.

def portfolio_fit(series, outcome):
    mean = sp.regress(f"{outcome} ~ 1", data=series, robust="hac", hac_lags=6, hac_small=True)
    capm = sp.regress(f"{outcome} ~ market", data=series, robust="hac", hac_lags=6, hac_small=True)
    return (
        mean.params["Intercept"], mean.tvalues["Intercept"],
        capm.params["Intercept"], capm.tvalues["Intercept"],
    )

We apply these regressions to each decile and to the high-minus-low portfolio for each beta measure. BEM also report the average formation beta in the equal-weighted table.

Code
deciles = [str(i) for i in range(1, 11)]

def portfolio_table(outcome, include_beta):
    rows = []
    for measure in beta_labels:
        data = portfolio_series.filter(pl.col("measure") == measure)
        average_beta, average_return, alpha = [], [], []
        for decile in [*deciles, "10–1"]:
            series = data.filter(pl.col("decile") == decile)
            assert series.height == series["holding"].n_unique() == 594
            assert series.select(pl.col(outcome, "market").is_finite().all()).row(0) == (True, True)
            avg, avg_t, intercept, intercept_t = portfolio_fit(series, outcome)
            average_beta.append(series["beta"].mean())
            average_return.append(f"{avg:.2f}<br>({avg_t:.2f})")
            alpha.append(f"{intercept:.2f}<br>({intercept_t:.2f})")
        if include_beta:
            rows.append([measure, "Mean beta", *[f"{value:.2f}" for value in average_beta]])
        rows.extend([
            ["" if include_beta else measure, "Excess return", *average_return],
            ["", "CAPM alpha", *alpha],
        ])
    return pl.DataFrame(rows, schema=["Beta", "Statistic", *deciles, "10–1"], orient="row")
Code
table_8_4 = portfolio_table("equal", include_beta=True)
table_8_4.eap.show_table()
Table 8.4: Equal-weighted returns to beta deciles (BEM Table 8.4)
Beta Statistic 1 2 3 4 5 6 7 8 9 10 10–1
1M Mean beta -1.54 -0.31 0.04 0.29 0.52 0.76 1.04 1.38 1.88 3.29 4.83
Excess return 0.79
(2.31)
0.76
(2.90)
0.73
(3.02)
0.82
(3.39)
0.81
(3.24)
0.83
(3.18)
0.78
(2.83)
0.76
(2.56)
0.69
(2.07)
0.44
(1.07)
-0.35
(-1.97)
CAPM alpha 0.32
(1.41)
0.37
(2.29)
0.35
(2.45)
0.41
(2.99)
0.35
(2.68)
0.34
(2.62)
0.25
(1.83)
0.17
(1.28)
0.03
(0.19)
-0.32
(-1.40)
-0.64
(-3.86)
3M Mean beta -0.62 0.01 0.23 0.42 0.59 0.78 0.98 1.23 1.58 2.41 3.04
Excess return 0.76
(2.38)
0.76
(2.99)
0.84
(3.37)
0.79
(3.18)
0.83
(3.33)
0.80
(3.00)
0.80
(2.84)
0.76
(2.46)
0.68
(2.00)
0.38
(0.91)
-0.38
(-1.72)
CAPM alpha 0.36
(1.62)
0.41
(2.45)
0.46
(3.04)
0.37
(2.61)
0.38
(2.89)
0.30
(2.22)
0.25
(1.80)
0.15
(1.05)
-0.00
(-0.00)
-0.42
(-1.77)
-0.77
(-3.70)
6M Mean beta -0.32 0.12 0.30 0.47 0.62 0.78 0.96 1.18 1.48 2.14 2.46
Excess return 0.86
(2.91)
0.76
(3.14)
0.84
(3.28)
0.84
(3.36)
0.84
(3.29)
0.81
(2.98)
0.74
(2.59)
0.72
(2.30)
0.62
(1.78)
0.37
(0.89)
-0.48
(-2.00)
CAPM alpha 0.50
(2.38)
0.43
(2.67)
0.45
(2.86)
0.42
(2.95)
0.38
(2.78)
0.31
(2.17)
0.19
(1.33)
0.11
(0.72)
-0.07
(-0.44)
-0.45
(-1.93)
-0.95
(-4.21)
12M Mean beta -0.13 0.18 0.35 0.50 0.64 0.79 0.95 1.15 1.42 1.98 2.11
Excess return 0.93
(3.52)
0.88
(3.61)
0.91
(3.56)
0.84
(3.35)
0.86
(3.36)
0.81
(2.92)
0.78
(2.63)
0.65
(2.10)
0.60
(1.71)
0.38
(0.93)
-0.55
(-2.08)
CAPM alpha 0.62
(3.21)
0.55
(3.38)
0.53
(3.32)
0.42
(2.90)
0.40
(2.78)
0.30
(2.07)
0.22
(1.45)
0.04
(0.24)
-0.10
(-0.61)
-0.44
(-2.01)
-1.07
(-4.55)
24M Mean beta -0.00 0.24 0.39 0.53 0.66 0.80 0.95 1.13 1.37 1.86 1.86
Excess return 0.99
(4.15)
0.89
(3.71)
0.94
(3.66)
0.94
(3.71)
0.91
(3.45)
0.85
(3.08)
0.86
(2.92)
0.73
(2.38)
0.63
(1.84)
0.43
(1.06)
-0.56
(-2.05)
CAPM alpha 0.70
(4.06)
0.57
(3.56)
0.55
(3.35)
0.51
(3.51)
0.45
(3.03)
0.34
(2.27)
0.30
(2.03)
0.13
(0.82)
-0.06
(-0.33)
-0.39
(-1.85)
-1.10
(-4.57)
1Y Mean beta -0.95 0.03 0.37 0.63 0.88 1.14 1.43 1.79 2.30 3.70 4.65
Excess return 0.65
(2.08)
0.67
(2.75)
0.75
(3.17)
0.82
(3.47)
0.85
(3.39)
0.83
(3.14)
0.86
(3.03)
0.91
(2.96)
0.73
(2.10)
0.59
(1.42)
-0.06
(-0.28)
CAPM alpha 0.23
(1.08)
0.30
(1.95)
0.36
(2.58)
0.40
(3.06)
0.39
(3.01)
0.34
(2.50)
0.32
(2.34)
0.32
(2.11)
0.07
(0.40)
-0.17
(-0.67)
-0.39
(-1.77)
2Y Mean beta -0.27 0.31 0.55 0.75 0.94 1.14 1.36 1.63 2.02 2.99 3.26
Excess return 0.75
(2.80)
0.71
(3.10)
0.80
(3.43)
0.87
(3.64)
0.91
(3.63)
0.92
(3.42)
0.90
(3.12)
0.84
(2.67)
0.81
(2.27)
0.63
(1.48)
-0.11
(-0.43)
CAPM alpha 0.40
(2.16)
0.36
(2.53)
0.42
(3.06)
0.44
(3.35)
0.45
(3.41)
0.41
(2.97)
0.36
(2.44)
0.24
(1.46)
0.14
(0.72)
-0.15
(-0.58)
-0.54
(-2.25)
3Y Mean beta -0.06 0.40 0.62 0.79 0.96 1.14 1.34 1.58 1.92 2.74 2.80
Excess return 0.76
(3.13)
0.78
(3.61)
0.85
(3.78)
0.90
(3.77)
0.85
(3.34)
0.86
(3.09)
0.89
(3.03)
0.88
(2.75)
0.84
(2.29)
0.68
(1.59)
-0.08
(-0.28)
CAPM alpha 0.44
(2.56)
0.44
(3.26)
0.47
(3.65)
0.47
(3.69)
0.39
(2.82)
0.35
(2.39)
0.33
(2.19)
0.28
(1.69)
0.17
(0.84)
-0.10
(-0.39)
-0.53
(-2.20)
5Y Mean beta 0.07 0.47 0.66 0.82 0.98 1.14 1.31 1.53 1.84 2.56 2.49
Excess return 0.76
(3.38)
0.77
(3.64)
0.86
(3.88)
0.90
(3.77)
0.90
(3.43)
0.91
(3.35)
0.84
(2.78)
0.82
(2.49)
0.78
(2.10)
0.75
(1.73)
-0.01
(-0.03)
CAPM alpha 0.46
(2.93)
0.44
(3.26)
0.48
(3.83)
0.47
(3.73)
0.43
(3.02)
0.40
(2.85)
0.28
(1.78)
0.21
(1.21)
0.10
(0.50)
-0.03
(-0.11)
-0.49
(-2.01)
SW Mean beta -0.17 0.23 0.42 0.58 0.74 0.90 1.08 1.29 1.58 2.19 2.36
Excess return 0.90
(3.39)
0.84
(3.70)
0.85
(3.68)
0.81
(3.30)
0.86
(3.30)
0.77
(2.83)
0.87
(2.97)
0.71
(2.25)
0.63
(1.72)
0.39
(0.91)
-0.51
(-1.90)
CAPM alpha 0.58
(3.00)
0.53
(3.47)
0.48
(3.37)
0.40
(2.74)
0.40
(2.79)
0.27
(1.85)
0.31
(2.08)
0.10
(0.65)
-0.08
(-0.44)
-0.44
(-1.87)
-1.02
(-4.50)
D Mean beta -0.52 0.17 0.44 0.66 0.87 1.08 1.31 1.60 2.00 2.98 3.51
Excess return 0.71
(2.52)
0.74
(3.24)
0.80
(3.48)
0.78
(3.25)
0.88
(3.49)
0.87
(3.23)
0.91
(3.13)
0.79
(2.49)
0.74
(2.06)
0.46
(1.03)
-0.25
(-0.99)
CAPM alpha 0.34
(1.68)
0.40
(2.72)
0.42
(3.10)
0.37
(2.74)
0.42
(3.17)
0.36
(2.70)
0.35
(2.49)
0.18
(1.18)
0.05
(0.25)
-0.33
(-1.30)
-0.67
(-3.12)
Code
table_8_5 = portfolio_table("value", include_beta=False)
table_8_5.eap.show_table()
Table 8.5: Value-weighted returns to beta deciles (BEM Table 8.5)
Beta Statistic 1 2 3 4 5 6 7 8 9 10 10–1
1M Excess return 0.38
(1.50)
0.43
(2.17)
0.45
(2.49)
0.49
(2.80)
0.46
(2.66)
0.47
(2.52)
0.46
(2.36)
0.57
(2.59)
0.44
(1.71)
0.25
(0.66)
-0.13
(-0.49)
CAPM alpha -0.04
(-0.24)
0.09
(0.90)
0.10
(1.18)
0.14
(1.77)
0.08
(1.29)
0.07
(1.00)
0.02
(0.36)
0.06
(1.02)
-0.16
(-1.67)
-0.50
(-2.56)
-0.46
(-1.83)
3M Excess return 0.16
(0.68)
0.45
(2.45)
0.48
(2.65)
0.45
(2.56)
0.54
(3.02)
0.45
(2.43)
0.55
(2.81)
0.50
(2.26)
0.45
(1.67)
0.35
(0.94)
0.19
(0.63)
CAPM alpha -0.16
(-0.96)
0.16
(1.44)
0.17
(1.65)
0.11
(1.25)
0.17
(2.48)
0.06
(0.68)
0.11
(1.52)
0.00
(0.04)
-0.14
(-1.44)
-0.40
(-2.11)
-0.24
(-0.85)
6M Excess return 0.33
(1.54)
0.56
(3.08)
0.43
(2.57)
0.45
(2.61)
0.53
(3.05)
0.40
(2.13)
0.49
(2.51)
0.41
(1.84)
0.41
(1.55)
0.37
(1.02)
0.04
(0.15)
CAPM alpha 0.04
(0.24)
0.29
(2.29)
0.13
(1.34)
0.14
(1.50)
0.18
(2.21)
0.02
(0.20)
0.05
(0.71)
-0.08
(-1.04)
-0.18
(-1.73)
-0.38
(-2.11)
-0.41
(-1.58)
12M Excess return 0.40
(2.02)
0.53
(3.06)
0.54
(3.28)
0.42
(2.43)
0.56
(3.36)
0.47
(2.58)
0.51
(2.49)
0.43
(1.93)
0.38
(1.42)
0.34
(0.97)
-0.06
(-0.21)
CAPM alpha 0.15
(1.02)
0.26
(2.26)
0.27
(2.65)
0.10
(1.05)
0.21
(2.72)
0.10
(1.16)
0.07
(0.83)
-0.06
(-0.75)
-0.20
(-1.93)
-0.40
(-2.31)
-0.55
(-2.18)
24M Excess return 0.37
(1.90)
0.62
(3.44)
0.48
(2.86)
0.53
(3.18)
0.49
(2.81)
0.49
(2.68)
0.55
(2.71)
0.45
(1.93)
0.32
(1.22)
0.35
(1.03)
-0.02
(-0.08)
CAPM alpha 0.12
(0.85)
0.38
(2.89)
0.20
(1.79)
0.22
(2.34)
0.14
(1.59)
0.11
(1.29)
0.12
(1.33)
-0.03
(-0.28)
-0.24
(-2.48)
-0.37
(-2.46)
-0.49
(-2.11)
1Y Excess return 0.22
(1.02)
0.39
(2.12)
0.44
(2.45)
0.57
(3.08)
0.69
(3.65)
0.51
(2.49)
0.48
(2.11)
0.48
(1.86)
0.47
(1.54)
0.52
(1.30)
0.30
(0.93)
CAPM alpha -0.16
(-1.20)
0.04
(0.43)
0.08
(0.78)
0.18
(2.43)
0.26
(4.00)
0.05
(0.73)
-0.04
(-0.62)
-0.10
(-1.11)
-0.19
(-1.45)
-0.27
(-1.25)
-0.11
(-0.39)
2Y Excess return 0.39
(2.09)
0.39
(2.15)
0.53
(3.09)
0.65
(3.52)
0.55
(2.89)
0.52
(2.54)
0.53
(2.26)
0.43
(1.69)
0.55
(1.70)
0.37
(0.94)
-0.02
(-0.05)
CAPM alpha 0.08
(0.60)
0.07
(0.64)
0.19
(2.20)
0.27
(3.34)
0.12
(1.71)
0.04
(0.52)
-0.01
(-0.16)
-0.15
(-1.72)
-0.13
(-0.90)
-0.43
(-2.07)
-0.51
(-1.76)
3Y Excess return 0.33
(1.98)
0.42
(2.35)
0.50
(2.92)
0.60
(3.33)
0.45
(2.33)
0.46
(2.20)
0.54
(2.27)
0.41
(1.51)
0.54
(1.70)
0.50
(1.25)
0.16
(0.46)
CAPM alpha 0.06
(0.45)
0.11
(0.97)
0.16
(1.88)
0.22
(2.60)
0.02
(0.29)
-0.03
(-0.34)
-0.00
(-0.01)
-0.19
(-2.13)
-0.14
(-0.99)
-0.31
(-1.61)
-0.37
(-1.36)
5Y Excess return 0.42
(2.46)
0.43
(2.60)
0.60
(3.62)
0.44
(2.38)
0.47
(2.34)
0.54
(2.47)
0.49
(1.96)
0.45
(1.64)
0.51
(1.55)
0.51
(1.27)
0.08
(0.23)
CAPM alpha 0.16
(1.19)
0.13
(1.35)
0.25
(2.95)
0.05
(0.65)
0.03
(0.40)
0.05
(0.64)
-0.06
(-0.83)
-0.15
(-1.70)
-0.17
(-1.13)
-0.31
(-1.62)
-0.47
(-1.70)
SW Excess return 0.33
(1.73)
0.46
(2.84)
0.51
(3.19)
0.43
(2.55)
0.47
(2.64)
0.58
(2.98)
0.39
(1.77)
0.50
(2.03)
0.45
(1.57)
0.28
(0.75)
-0.04
(-0.14)
CAPM alpha 0.08
(0.53)
0.20
(1.95)
0.24
(2.30)
0.11
(1.27)
0.11
(1.43)
0.17
(1.86)
-0.08
(-1.08)
-0.04
(-0.54)
-0.18
(-1.58)
-0.51
(-2.75)
-0.59
(-2.17)
D Excess return 0.32
(1.71)
0.42
(2.51)
0.54
(3.22)
0.47
(2.61)
0.58
(3.15)
0.51
(2.41)
0.57
(2.51)
0.43
(1.62)
0.48
(1.49)
0.15
(0.37)
-0.17
(-0.49)
CAPM alpha 0.01
(0.11)
0.13
(1.30)
0.21
(2.49)
0.11
(1.31)
0.16
(2.61)
0.04
(0.71)
0.05
(0.79)
-0.17
(-1.86)
-0.22
(-1.64)
-0.67
(-3.16)
-0.69
(-2.48)

Using 12-month daily betas, the high-minus-low excess return is \(-0.55\%\) per month with equal weights (Table 8.4) and \(-0.06\%\) with value weights (Table 8.5). The direction of the equal-weighted spread runs against the CAPM prediction, and the spread is much smaller when large stocks receive more weight.

8.5.2 Fama–MacBeth Regression Analysis

For each measure of beta, I regress next month’s excess return on beta in each monthly cross-section,

\[ r_{i,t+1}=a_{t+1}+b_{t+1}\widehat\beta_{i,t}+u_{i,t+1}. \]

We pair each winsorized beta from formation month \(t\) with the stock’s excess return in month \(t+1\). A stock enters a given regression when both its return and that measure of beta are available.

fm_data = (
    clipped
    .unpivot(on=beta_labels, index=keys, variable_name="measure", value_name="beta")
    .join(outcomes.select(*keys, "excess"), on=keys, validate="m:1")
    .filter(pl.all_horizontal(pl.col("beta", "excess").is_finite()))
)

For each measure, sp.fama_macbeth() fits the monthly cross-sectional regressions and averages the resulting coefficients over time. The CAPM predicts that the mean slope estimates the market risk premium and the mean intercept is zero. We use six Newey–West lags for inference on those means.

with ptime():
    fm = {
        b: sp.fama_macbeth(
            "excess ~ beta", data=fm_data.filter(pl.col("measure") == b),
            time="month", lags=6,
        )
        for b in beta_labels
    }

Wall time: 21.534 s

Code
def fm_column(fit):
    months = fit.model_info["period_coefs"]
    assert len(months) == 594
    adjusted_r2 = 1 - (1 - months["r2"]) * (months["nobs"] - 1) / (months["nobs"] - 2)
    return [
        f"{fit.params['beta']:.2f}<br>({fit.tvalues['beta']:.2f})",
        f"{fit.params['Intercept']:.2f}<br>({fit.tvalues['Intercept']:.2f})",
        f"{adjusted_r2.mean():.2f}",
        f"{months['nobs'].mean():.0f}",
    ]

table_8_6 = pl.DataFrame({
    "Statistic": ["Slope", "Intercept", "Adjusted R²", "n"],
    **{b: fm_column(fm[b]) for b in beta_labels},
})
table_8_6.eap.show_table()
Table 8.6: Fama–MacBeth regressions of next-month excess returns on beta (BEM Table 8.6)
Statistic 1M 3M 6M 12M 24M 1Y 2Y 3Y 5Y SW D
Slope -0.06
(-1.13)
-0.10
(-1.14)
-0.18
(-1.53)
-0.27
(-1.96)
-0.29
(-1.95)
0.03
(0.45)
0.01
(0.09)
-0.02
(-0.15)
-0.03
(-0.20)
-0.18
(-1.37)
-0.02
(-0.25)
Intercept 0.79
(2.97)
0.81
(3.16)
0.87
(3.54)
0.97
(4.09)
1.05
(4.57)
0.73
(2.90)
0.79
(3.52)
0.85
(4.07)
0.87
(4.41)
0.92
(4.17)
0.80
(3.52)
Adjusted R² 0.01 0.01 0.02 0.02 0.02 0.01 0.01 0.02 0.02 0.02 0.01
n 4749 4684 4597 4424 4006 4408 4056 3933 3947 4423 4416

In Table 8.6 an increase of one in 12-month daily beta is associated with about 0.27 percentage points lower excess return per month. The mean intercept is 0.97% per month, and the slopes for the betas estimated from monthly returns are all close to zero.


  1. BEM (p. 124) describe this as requiring “a maximum of 24 monthly data points.” We read 24 as the largest of the four minimum requirements listed in the preceding sentence.↩︎