import polars as pl
from eap_pl import (
bivariate_months, build_bm, build_momentum, build_sizes,
fama_macbeth_table, format_fit, get_ff_factors, hac, load_parquet, mean_cross_sections,
monthly_panel, period_correlations, plot_cumulative_returns, ptime,
)
from eap_pl._portfolios import assign_portfolio, portfolio_months, spread12 Short-Term Reversal
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.
Do stocks that rose last month continue to outperform, or do they give back some of their gains? Following Chapter 12 of Bali et al. (2016), I sort on the most recent monthly return and compare its predictive power with that of earlier returns. This complements Chapter 11, where the main momentum signal skips the formation month.
12.1 Measuring Short-Term Reversal
In BEM’s Equation (12.1), the reversal signal is the formation-month CRSP stock return in percentage points.
\[ \operatorname{Rev}_{i,t}=100 R_{i,t}. \tag{12.1}\]
Here \(R_{i,t}\) is the decimal return for stock \(i\) in month \(t\). Earlier returns are also expressed in percentage points and matched by calendar month, so a gap in the CRSP file does not make an older observation count as the previous month’s return. The formation sample runs from June 1963 through November 2012, and the outcome is the following month’s excess return, including the delisting treatment in Section 7.2.
first = pl.date(1963, 6, 1)
last = pl.date(2012, 11, 1)
vintage = "201406"
keys = ["permno", "month"]
lag_labels = {"rev": "`rev`", **{f"lag{k}": f"R(t−{k})" for k in range(1, 12)}}
stock_returns = (
load_parquet("msf", "crsp")
.filter(pl.col("date").is_between(first.dt.offset_by("-11mo"), last.dt.month_end()))
.select(
"permno", month=pl.col("date").dt.month_start(),
rev=pl.when(pl.col("ret").is_finite()).then(100 * pl.col("ret")),
)
)I join the formation-month return and other characteristics to the panel of next-month excess returns.
sizes = build_sizes()
book_to_market = build_bm(sizes).select(*keys, "bm")
panel = (
monthly_panel(sizes, first, last, vintage=vintage)
.join(book_to_market, on=keys, how="left", validate="1:1")
.join(build_momentum(first, last).select(*keys, "mom").lazy(),
on=keys, how="left", validate="1:1")
.join(stock_returns, on=keys, how="left", validate="1:1")
)For a lag of \(k\) months, I move each return’s date forward by \(k\) months before joining, so it matches the formation month exactly.
for k in range(1, 12):
lagged = (
stock_returns
.select("permno", month=pl.col("month").dt.offset_by(f"{k}mo"), **{f"lag{k}": pl.col("rev")})
.filter(pl.col("month").is_between(first, last))
)
panel = panel.join(lagged, on=keys, how="left", validate="1:1")
panel = panel.collect()12.2 Summary Statistics and Correlations
I compute the cross-sectional statistics each month and average them over time. For Pearson correlations, I winsorize the paired observations at 0.5% in each tail. Spearman correlations use the original ranks.
Code
mean_cross_sections(panel, {"rev": "`rev`"}).eap.show_table()| Measure | Mean | SD | Skew | Kurt. | Min | 5% | 25% | Median | 75% | 95% | Max | n |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
rev |
1.21 | 15.49 | 3.11 | 59.52 | -67.35 | -18.93 | -6.27 | 0.06 | 6.92 | 24.20 | 266.45 | 4748 |
Code
controls = {"beta": "Beta", "log_cap": "Size", "bm": "`bm`", "mom": "`mom`"}
correlations = (
period_correlations(panel, ["rev", *controls], "month")
.select(pl.exclude("month").mean())
.row(0, named=True)
)
pl.DataFrame([
{"Method": method, **{label: correlations[f"{method} rev–{term}"]
for term, label in controls.items()}}
for method in ("Pearson", "Spearman")
]).eap.show_table()| Method | Beta | Size | bm |
mom |
|---|---|---|---|---|
| Pearson | -0.02 | 0.07 | 0.02 | 0.02 |
| Spearman | -0.01 | 0.11 | 0.03 | 0.04 |
12.3 Reversal and Stock Returns
12.3.1 Univariate Portfolio Analysis
Sort stocks into deciles using breakpoints from all eligible stocks with the signal that month. The value-weighted portfolios use formation-month capitalization. Returns and alphas are in percentage points per month. The high-minus-low spread buys last month’s winners and sells last month’s losers, so a negative spread indicates reversal. I align the factors with the holding month and use the CAPM, the Fama–French three-factor model, and the four-factor model in Equation 11.2. Parentheses show six-lag Newey–West \(t\)-statistics (Newey and West 1987).
momentum_factor = get_ff_factors("momentum", vintage=vintage).select(
month=pl.col("date"), mom_factor=100 * pl.col("mom"),
)
factors = (
get_ff_factors("monthly", vintage=vintage)
.select(
month=pl.col("date"),
mkt=100 * pl.col("mktrf"), smb=100 * pl.col("smb"), hml=100 * pl.col("hml"),
)
.join(momentum_factor, on="month", how="left", validate="1:1")
)I estimate the average return and alphas by pairing each portfolio return with the factors from its holding month.
models = {
"Return": "1",
"CAPM α": "mkt",
"FF α": "mkt + smb + hml",
"FFC α": "mkt + smb + hml + mom_factor",
}
weights = {"EW": "Equal weighted", "VW": "Value weighted"}I form deciles separately for the most recent return and each lag. For the most recent return, I also summarize the characteristics of the stocks in each decile.
characteristics = {"rev": "`rev`", "beta": "Beta", "cap": "Market cap (millions)", "bm": "`bm`", "mom": "`mom`"}
deciles = [str(i) for i in range(1, 11)]
metrics = [pl.col(column).mean().alias(label) for column, label in characteristics.items()]
decile_returns = {}
for term in lag_labels:
members = assign_portfolio(panel.filter(pl.col(term).is_finite()), term, 10, "month")
decile_returns[term] = portfolio_months(
members, ["portfolio"], metrics if term == "rev" else (),
)Code
def portfolio_statistics(series, weight, specifications):
sample = (
series
.select(pl.col("month").dt.offset_by("1mo"), weight)
.join(factors, on="month", how="left", validate="m:1")
.drop_nulls(weight)
.sort("month")
)
return {
name: format_fit(hac(f"{weight} ~ {rhs}", sample), "Intercept")
for name, rhs in specifications.items()
}
monthly = decile_returns["rev"]
means = monthly.group_by("portfolio").agg(pl.col(*characteristics.values()).mean()).sort("portfolio")
pl.DataFrame([
{"Characteristic": label, **dict(zip(deciles, means[label]))}
for label in characteristics.values()
]).eap.show_table()
for weight in weights:
groups = monthly.partition_by("portfolio", as_dict=True)
series = {str(i): groups[i,] for i in range(1, 11)}
series["10–1"] = spread(monthly, 10, 1, "portfolio", weight)
stats = {label: portfolio_statistics(data, weight, models) for label, data in series.items()}
pl.DataFrame([
{"Statistic": name, **{label: values[name] for label, values in stats.items()}}
for name in models
]).eap.show_table()| Characteristic | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
rev |
-21.37 | -10.47 | -6.26 | -3.37 | -1.00 | 1.28 | 3.81 | 7.01 | 12.09 | 30.86 |
| Beta | 0.89 | 0.84 | 0.78 | 0.74 | 0.72 | 0.72 | 0.74 | 0.78 | 0.83 | 0.84 |
| Market cap (millions) | 280.10 | 718.63 | 1058.47 | 1343.02 | 1496.58 | 1592.01 | 1560.85 | 1501.00 | 1115.95 | 489.94 |
bm |
0.94 | 0.93 | 0.93 | 0.93 | 0.93 | 0.93 | 0.92 | 0.91 | 0.93 | 1.02 |
mom |
11.70 | 13.86 | 13.99 | 14.11 | 14.13 | 14.69 | 15.07 | 15.54 | 16.37 | 14.48 |
| Statistic | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 10–1 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Return | 2.31 (5.67) |
0.97 (3.00) |
0.78 (2.72) |
0.71 (2.62) |
0.74 (2.84) |
0.69 (2.75) |
0.66 (2.60) |
0.54 (2.06) |
0.36 (1.24) |
-0.37 (-1.05) |
-2.68 (-9.67) |
| CAPM α | 1.61 (5.88) |
0.38 (2.07) |
0.25 (1.65) |
0.23 (1.60) |
0.26 (2.07) |
0.25 (1.93) |
0.22 (1.73) |
0.08 (0.63) |
-0.13 (-0.88) |
-0.91 (-4.19) |
-2.52 (-9.36) |
| FF α | 1.32 (5.80) |
0.11 (0.90) |
-0.02 (-0.17) |
-0.05 (-0.60) |
0.00 (0.06) |
-0.01 (-0.10) |
-0.02 (-0.34) |
-0.14 (-1.98) |
-0.34 (-4.20) |
-1.10 (-7.20) |
-2.41 (-8.19) |
| FFC α | 1.86 (6.29) |
0.40 (2.95) |
0.18 (1.83) |
0.09 (1.21) |
0.12 (1.84) |
0.07 (1.13) |
0.04 (0.49) |
-0.08 (-0.94) |
-0.30 (-3.09) |
-1.07 (-6.51) |
-2.93 (-8.23) |
| Statistic | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 10–1 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Return | 0.72 (2.11) |
0.50 (1.80) |
0.74 (3.25) |
0.66 (3.12) |
0.60 (2.98) |
0.47 (2.49) |
0.49 (2.48) |
0.44 (2.12) |
0.33 (1.54) |
0.12 (0.45) |
-0.60 (-2.37) |
| CAPM α | 0.01 (0.03) |
-0.09 (-0.75) |
0.21 (2.33) |
0.20 (2.85) |
0.14 (2.34) |
0.04 (0.81) |
0.07 (1.19) |
0.01 (0.09) |
-0.12 (-1.39) |
-0.40 (-2.78) |
-0.41 (-1.67) |
| FF α | -0.09 (-0.45) |
-0.15 (-1.12) |
0.18 (1.89) |
0.17 (2.43) |
0.11 (2.00) |
0.04 (0.71) |
0.05 (0.77) |
0.01 (0.20) |
-0.11 (-1.20) |
-0.40 (-2.81) |
-0.31 (-1.18) |
| FFC α | 0.29 (1.57) |
0.04 (0.34) |
0.28 (2.49) |
0.23 (2.75) |
0.13 (2.13) |
0.02 (0.39) |
0.04 (0.64) |
-0.01 (-0.19) |
-0.16 (-1.67) |
-0.48 (-3.49) |
-0.77 (-3.14) |
The winner-minus-loser spread is −2.68% per month with equal weights and −0.60% with value weights. The value-weighted spread has a four-factor alpha of −0.77% per month.
12.3.2 Sorting on Earlier Returns
Each row uses a different past month to sort stocks, but every portfolio earns its return in month \(t+1\). This tests how the signal changes as I move it further back from formation.
Code
lag_models = {name: models[name] for name in ("Return", "FF α", "FFC α")}
for weight in weights:
rows = []
for term, label in lag_labels.items():
monthly = decile_returns[term]
means = monthly.group_by("portfolio").agg(pl.col(weight).mean()).sort("portfolio")
stats = portfolio_statistics(spread(monthly, 10, 1, "portfolio", weight), weight, lag_models)
rows.append({
"Sort variable": label, **dict(zip(deciles, means[weight])),
"10–1": stats["Return"], "FF α": stats["FF α"], "FFC α": stats["FFC α"],
})
pl.DataFrame(rows).eap.show_table()| Sort variable | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 10–1 | FF α | FFC α |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rev |
2.31 | 0.97 | 0.78 | 0.71 | 0.74 | 0.69 | 0.66 | 0.54 | 0.36 | -0.37 | -2.68 (-9.67) |
-2.41 (-8.19) |
-2.93 (-8.23) |
| R(t−1) | 0.53 | 0.81 | 0.84 | 0.83 | 0.78 | 0.80 | 0.76 | 0.70 | 0.69 | 0.55 | 0.02 (0.13) |
0.19 (0.98) |
-0.36 (-1.58) |
| R(t−2) | 0.19 | 0.59 | 0.69 | 0.76 | 0.84 | 0.82 | 0.87 | 0.82 | 0.90 | 0.89 | 0.69 (4.97) |
0.81 (6.03) |
0.29 (1.87) |
| R(t−3) | 0.37 | 0.57 | 0.79 | 0.83 | 0.86 | 0.80 | 0.81 | 0.76 | 0.80 | 0.71 | 0.34 (2.18) |
0.38 (2.50) |
-0.10 (-0.51) |
| R(t−4) | 0.43 | 0.64 | 0.69 | 0.75 | 0.84 | 0.83 | 0.80 | 0.83 | 0.81 | 0.73 | 0.29 (1.93) |
0.43 (3.29) |
-0.05 (-0.35) |
| R(t−5) | 0.45 | 0.57 | 0.67 | 0.80 | 0.83 | 0.78 | 0.79 | 0.82 | 0.88 | 0.87 | 0.42 (2.22) |
0.56 (3.15) |
0.07 (0.34) |
| R(t−6) | 0.42 | 0.56 | 0.66 | 0.72 | 0.77 | 0.78 | 0.88 | 0.84 | 0.93 | 0.91 | 0.49 (3.07) |
0.58 (4.51) |
0.20 (1.40) |
| R(t−7) | 0.63 | 0.61 | 0.69 | 0.74 | 0.77 | 0.79 | 0.80 | 0.84 | 0.83 | 0.80 | 0.17 (1.09) |
0.24 (1.64) |
-0.15 (-0.82) |
| R(t−8) | 0.59 | 0.65 | 0.70 | 0.76 | 0.80 | 0.77 | 0.77 | 0.81 | 0.86 | 0.91 | 0.32 (1.77) |
0.45 (2.55) |
-0.00 (-0.00) |
| R(t−9) | 0.66 | 0.75 | 0.68 | 0.74 | 0.78 | 0.82 | 0.86 | 0.76 | 0.79 | 0.78 | 0.12 (0.81) |
0.20 (1.32) |
-0.14 (-0.98) |
| R(t−10) | 0.47 | 0.58 | 0.69 | 0.74 | 0.73 | 0.81 | 0.91 | 0.88 | 0.89 | 0.95 | 0.47 (3.18) |
0.53 (3.76) |
0.29 (2.06) |
| R(t−11) | 0.29 | 0.47 | 0.53 | 0.67 | 0.78 | 0.83 | 0.90 | 0.97 | 1.10 | 1.20 | 0.90 (6.44) |
0.89 (6.68) |
0.74 (4.98) |
| Sort variable | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 10–1 | FF α | FFC α |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rev |
0.72 | 0.50 | 0.74 | 0.66 | 0.60 | 0.47 | 0.49 | 0.44 | 0.33 | 0.12 | -0.60 (-2.37) |
-0.31 (-1.18) |
-0.77 (-3.14) |
| R(t−1) | -0.07 | 0.50 | 0.51 | 0.61 | 0.56 | 0.42 | 0.46 | 0.40 | 0.51 | 0.49 | 0.57 (2.51) |
0.74 (3.19) |
0.12 (0.59) |
| R(t−2) | -0.17 | 0.36 | 0.37 | 0.53 | 0.57 | 0.55 | 0.52 | 0.48 | 0.51 | 0.66 | 0.83 (3.59) |
1.02 (4.35) |
0.37 (1.72) |
| R(t−3) | 0.08 | 0.32 | 0.49 | 0.52 | 0.50 | 0.43 | 0.48 | 0.55 | 0.48 | 0.41 | 0.33 (1.66) |
0.32 (1.53) |
-0.25 (-1.13) |
| R(t−4) | 0.05 | 0.32 | 0.47 | 0.53 | 0.51 | 0.47 | 0.54 | 0.55 | 0.53 | 0.57 | 0.51 (2.35) |
0.66 (3.21) |
0.08 (0.36) |
| R(t−5) | 0.09 | 0.15 | 0.31 | 0.44 | 0.51 | 0.54 | 0.43 | 0.54 | 0.55 | 0.66 | 0.57 (2.23) |
0.70 (2.72) |
0.15 (0.63) |
| R(t−6) | 0.09 | 0.28 | 0.39 | 0.36 | 0.53 | 0.43 | 0.48 | 0.47 | 0.52 | 0.62 | 0.53 (2.53) |
0.60 (2.78) |
0.15 (0.60) |
| R(t−7) | 0.37 | 0.32 | 0.34 | 0.44 | 0.40 | 0.50 | 0.42 | 0.52 | 0.55 | 0.75 | 0.38 (1.90) |
0.48 (2.22) |
0.13 (0.56) |
| R(t−8) | 0.21 | 0.31 | 0.25 | 0.36 | 0.43 | 0.46 | 0.43 | 0.47 | 0.77 | 0.85 | 0.64 (2.70) |
0.79 (3.37) |
0.28 (1.29) |
| R(t−9) | 0.16 | 0.26 | 0.25 | 0.46 | 0.48 | 0.49 | 0.65 | 0.49 | 0.61 | 0.65 | 0.49 (2.21) |
0.58 (2.76) |
0.16 (0.76) |
| R(t−10) | -0.08 | 0.22 | 0.23 | 0.36 | 0.45 | 0.49 | 0.59 | 0.58 | 0.73 | 0.80 | 0.88 (4.93) |
1.00 (5.53) |
0.58 (2.77) |
| R(t−11) | 0.04 | 0.19 | 0.27 | 0.32 | 0.39 | 0.46 | 0.53 | 0.63 | 0.77 | 0.81 | 0.77 (3.55) |
0.80 (4.07) |
0.50 (2.60) |
The equal-weighted spread is close to zero when I sort on month \(t-1\) and is positive at every earlier lag in the table.
12.3.3 Controlling for Size, Beta, Book-to-Market, and Momentum
For dependent sorts, calculate reversal breakpoints separately within each control quintile. For independent sorts, calculate both sets of breakpoints for the whole cross-section and intersect the resulting groups. The average column equally weights the control quintiles within each month before estimating the return or alpha.
sort_variables = {"beta": "Beta", "cap": "Market cap", "bm": "`bm`", "mom": "`mom`"}
quintiles = [str(i) for i in range(1, 6)]
dependent_sorts = {
variable: bivariate_months(panel, variable, "rev", nyse=False, dependent=True)
for variable in sort_variables
}
independent_sorts = {
variable: bivariate_months(panel, variable, "rev", nyse=False, dependent=False)
for variable in sort_variables
}Code
def two_way_results(monthly, weight, specifications, *, show_cells=False):
groups = monthly.partition_by("control", as_dict=True)
series = {label: groups[i,] for i, label in enumerate(quintiles, 1)}
series["Average"] = monthly.group_by("month", "target").agg(
pl.col(weight).mean(), pl.col("market").first(),
)
rows = []
if show_cells:
for target in range(1, 6):
rows.append({
"Statistic": f"`rev` {target}",
**{label: f'{cell.filter(pl.col("target") == target)[weight].mean():.2f}'
for label, cell in series.items()},
})
stats = {
label: portfolio_statistics(spread(cell, 5, 1, "target", weight), weight, specifications)
for label, cell in series.items()
}
rows.extend(
{"Statistic": f"5–1 {name}", **{label: values[name] for label, values in stats.items()}}
for name in specifications
)
return pl.DataFrame(rows)
for weight in weights:
two_way_results(dependent_sorts["cap"], weight, models, show_cells=True).eap.show_table()| Statistic | 1 | 2 | 3 | 4 | 5 | Average |
|---|---|---|---|---|---|---|
rev 1 |
3.92 | 1.27 | 1.01 | 0.99 | 0.82 | 1.60 |
rev 2 |
1.27 | 0.68 | 0.70 | 0.85 | 0.73 | 0.85 |
rev 3 |
0.91 | 0.63 | 0.68 | 0.72 | 0.60 | 0.71 |
rev 4 |
1.00 | 0.60 | 0.59 | 0.51 | 0.44 | 0.63 |
rev 5 |
-0.41 | -0.42 | 0.09 | 0.19 | 0.22 | -0.07 |
| 5–1 Return | -4.33 (-12.49) |
-1.69 (-6.65) |
-0.92 (-4.21) |
-0.80 (-4.55) |
-0.61 (-3.97) |
-1.67 (-8.77) |
| 5–1 CAPM α | -4.17 (-12.23) |
-1.54 (-6.06) |
-0.78 (-3.67) |
-0.69 (-4.02) |
-0.49 (-3.27) |
-1.53 (-8.24) |
| 5–1 FF α | -4.09 (-11.26) |
-1.47 (-5.65) |
-0.69 (-3.04) |
-0.65 (-3.36) |
-0.44 (-2.66) |
-1.47 (-7.31) |
| 5–1 FFC α | -4.59 (-10.49) |
-1.83 (-6.15) |
-0.98 (-4.22) |
-0.84 (-4.31) |
-0.65 (-3.85) |
-1.78 (-7.93) |
| Statistic | 1 | 2 | 3 | 4 | 5 | Average |
|---|---|---|---|---|---|---|
rev 1 |
2.80 | 1.25 | 1.01 | 0.99 | 0.57 | 1.32 |
rev 2 |
1.01 | 0.68 | 0.73 | 0.85 | 0.57 | 0.77 |
rev 3 |
0.68 | 0.62 | 0.69 | 0.71 | 0.47 | 0.64 |
rev 4 |
0.82 | 0.62 | 0.57 | 0.51 | 0.36 | 0.57 |
rev 5 |
-0.56 | -0.35 | 0.12 | 0.20 | 0.24 | -0.07 |
| 5–1 Return | -3.36 (-10.65) |
-1.61 (-6.25) |
-0.89 (-4.08) |
-0.79 (-4.46) |
-0.32 (-2.06) |
-1.39 (-7.49) |
| 5–1 CAPM α | -3.19 (-10.22) |
-1.45 (-5.65) |
-0.75 (-3.55) |
-0.68 (-3.94) |
-0.22 (-1.43) |
-1.26 (-6.90) |
| 5–1 FF α | -3.11 (-9.70) |
-1.38 (-5.25) |
-0.66 (-2.90) |
-0.64 (-3.27) |
-0.15 (-0.92) |
-1.19 (-6.14) |
| 5–1 FFC α | -3.57 (-8.95) |
-1.75 (-5.83) |
-0.95 (-4.11) |
-0.83 (-4.23) |
-0.37 (-2.00) |
-1.49 (-6.78) |
Code
pl.concat([
two_way_results(dependent_sorts[variable], weight, lag_models)
.select(pl.lit(sort_variables[variable]).alias("Control"), pl.lit(weight).alias("Weights"), pl.all())
for variable in ("beta", "bm", "mom")
for weight in weights
]).eap.show_table()| Control | Weights | Statistic | 1 | 2 | 3 | 4 | 5 | Average |
|---|---|---|---|---|---|---|---|---|
| Beta | EW | 5–1 Return | -1.82 (-8.69) |
-1.56 (-7.87) |
-1.82 (-8.84) |
-1.74 (-7.45) |
-1.82 (-6.79) |
-1.75 (-8.90) |
| Beta | EW | 5–1 FF α | -1.61 (-7.68) |
-1.38 (-6.73) |
-1.62 (-7.97) |
-1.46 (-6.03) |
-1.60 (-5.64) |
-1.53 (-7.62) |
| Beta | EW | 5–1 FFC α | -1.96 (-8.95) |
-1.69 (-7.60) |
-1.98 (-8.25) |
-1.91 (-5.68) |
-2.16 (-6.31) |
-1.94 (-8.00) |
| Beta | VW | 5–1 Return | -0.72 (-3.34) |
-0.77 (-4.22) |
-0.95 (-5.31) |
-0.18 (-0.99) |
-0.12 (-0.51) |
-0.55 (-3.61) |
| Beta | VW | 5–1 FF α | -0.53 (-2.36) |
-0.60 (-3.00) |
-0.73 (-4.13) |
0.03 (0.17) |
0.10 (0.41) |
-0.34 (-2.15) |
| Beta | VW | 5–1 FFC α | -0.75 (-3.51) |
-0.84 (-4.00) |
-1.01 (-5.51) |
-0.28 (-1.31) |
-0.38 (-1.59) |
-0.65 (-4.16) |
bm |
EW | 5–1 Return | -2.09 (-8.67) |
-1.76 (-7.49) |
-1.75 (-8.65) |
-1.67 (-8.17) |
-2.20 (-9.06) |
-1.89 (-9.57) |
bm |
EW | 5–1 FF α | -1.90 (-7.13) |
-1.57 (-6.00) |
-1.53 (-6.89) |
-1.43 (-7.03) |
-1.98 (-8.60) |
-1.69 (-8.02) |
bm |
EW | 5–1 FFC α | -2.37 (-7.45) |
-2.00 (-6.02) |
-1.87 (-7.21) |
-1.76 (-7.28) |
-2.26 (-9.04) |
-2.05 (-8.06) |
bm |
VW | 5–1 Return | -0.30 (-1.29) |
-0.66 (-2.95) |
-0.46 (-2.00) |
-0.54 (-2.56) |
-0.52 (-1.97) |
-0.49 (-2.77) |
bm |
VW | 5–1 FF α | -0.07 (-0.29) |
-0.45 (-1.86) |
-0.19 (-0.81) |
-0.21 (-0.96) |
-0.22 (-0.80) |
-0.23 (-1.20) |
bm |
VW | 5–1 FFC α | -0.46 (-1.90) |
-0.78 (-3.02) |
-0.49 (-2.07) |
-0.51 (-1.83) |
-0.39 (-1.27) |
-0.53 (-2.62) |
mom |
EW | 5–1 Return | -5.07 (-13.47) |
-1.74 (-7.85) |
-1.00 (-5.87) |
-0.81 (-5.15) |
-0.60 (-3.40) |
-1.84 (-10.12) |
mom |
EW | 5–1 FF α | -4.81 (-12.27) |
-1.55 (-7.16) |
-0.81 (-4.84) |
-0.58 (-3.64) |
-0.36 (-2.02) |
-1.62 (-8.80) |
mom |
EW | 5–1 FFC α | -5.40 (-12.04) |
-1.92 (-8.15) |
-1.11 (-6.59) |
-0.82 (-5.22) |
-0.61 (-3.40) |
-1.97 (-9.95) |
mom |
VW | 5–1 Return | -2.17 (-6.34) |
-0.97 (-3.95) |
-0.54 (-2.85) |
-0.40 (-2.38) |
-0.19 (-0.97) |
-0.86 (-5.18) |
mom |
VW | 5–1 FF α | -1.90 (-6.21) |
-0.76 (-2.85) |
-0.35 (-1.87) |
-0.26 (-1.40) |
0.02 (0.12) |
-0.65 (-3.93) |
mom |
VW | 5–1 FFC α | -2.51 (-8.08) |
-1.05 (-3.26) |
-0.57 (-2.85) |
-0.45 (-2.52) |
-0.20 (-1.00) |
-0.96 (-5.65) |
Code
spread_models = {name: models[name] for name in ("Return", "FFC α")}
pl.concat([
two_way_results(monthly, weight, spread_models)
.select(pl.lit(sort_variables[variable]).alias("Control"), pl.lit(weight).alias("Weights"), pl.all())
for variable, monthly in independent_sorts.items()
for weight in weights
]).eap.show_table()| Control | Weights | Statistic | 1 | 2 | 3 | 4 | 5 | Average |
|---|---|---|---|---|---|---|---|---|
| Beta | EW | 5–1 Return | -1.97 (-8.74) |
-1.69 (-7.99) |
-1.85 (-8.42) |
-1.76 (-7.76) |
-1.75 (-7.40) |
-1.81 (-9.05) |
| Beta | EW | 5–1 FFC α | -2.13 (-8.17) |
-1.85 (-7.32) |
-2.04 (-8.02) |
-1.93 (-6.39) |
-2.02 (-7.38) |
-2.00 (-8.12) |
| Beta | VW | 5–1 Return | -0.56 (-2.34) |
-0.84 (-4.10) |
-0.87 (-4.54) |
-0.19 (-0.99) |
-0.19 (-0.90) |
-0.53 (-3.38) |
| Beta | VW | 5–1 FFC α | -0.58 (-2.39) |
-0.86 (-3.67) |
-0.99 (-5.19) |
-0.30 (-1.44) |
-0.38 (-1.92) |
-0.62 (-3.99) |
| Market cap | EW | 5–1 Return | -3.32 (-12.30) |
-1.55 (-6.57) |
-0.90 (-4.21) |
-0.77 (-4.06) |
-0.48 (-2.55) |
-1.41 (-7.63) |
| Market cap | EW | 5–1 FFC α | -3.52 (-10.39) |
-1.69 (-6.27) |
-0.99 (-4.29) |
-0.86 (-4.08) |
-0.55 (-2.71) |
-1.52 (-7.16) |
| Market cap | VW | 5–1 Return | -2.70 (-10.74) |
-1.47 (-6.12) |
-0.87 (-4.04) |
-0.75 (-3.90) |
-0.13 (-0.66) |
-1.18 (-6.54) |
| Market cap | VW | 5–1 FFC α | -2.87 (-8.86) |
-1.62 (-5.91) |
-0.95 (-4.14) |
-0.82 (-3.90) |
-0.22 (-1.01) |
-1.30 (-6.18) |
bm |
EW | 5–1 Return | -1.92 (-8.72) |
-1.74 (-7.24) |
-1.80 (-8.35) |
-1.85 (-8.47) |
-2.20 (-9.55) |
-1.90 (-9.57) |
bm |
EW | 5–1 FFC α | -2.14 (-7.74) |
-1.95 (-6.19) |
-1.95 (-7.04) |
-1.94 (-7.38) |
-2.26 (-9.18) |
-2.05 (-8.14) |
bm |
VW | 5–1 Return | -0.47 (-2.24) |
-0.55 (-2.45) |
-0.36 (-1.57) |
-0.37 (-1.60) |
-0.63 (-2.50) |
-0.48 (-2.66) |
bm |
VW | 5–1 FFC α | -0.55 (-2.56) |
-0.66 (-2.49) |
-0.41 (-1.66) |
-0.35 (-1.19) |
-0.49 (-1.71) |
-0.49 (-2.47) |
mom |
EW | 5–1 Return | -4.00 (-13.98) |
-1.74 (-7.81) |
-1.04 (-5.21) |
-0.85 (-4.77) |
-0.59 (-3.31) |
-1.64 (-9.05) |
mom |
EW | 5–1 FFC α | -4.25 (-12.50) |
-1.89 (-8.15) |
-1.18 (-5.76) |
-0.89 (-4.58) |
-0.63 (-3.09) |
-1.77 (-8.79) |
mom |
VW | 5–1 Return | -1.63 (-5.34) |
-0.92 (-3.94) |
-0.32 (-1.38) |
-0.32 (-1.68) |
-0.13 (-0.65) |
-0.66 (-3.87) |
mom |
VW | 5–1 FFC α | -1.86 (-6.68) |
-1.05 (-3.78) |
-0.32 (-1.33) |
-0.43 (-2.17) |
-0.14 (-0.69) |
-0.76 (-4.43) |
12.3.4 Controlling for Reversal
Now examine beta, size, book-to-market, and momentum spreads within reversal quintiles. For size spreads, omit smb from the factor model. For book-to-market spreads, omit hml. For momentum spreads, use the three-factor model. For the dependent sort, follow BEM’s discussion and the heading of Table 12.8 and set the second breakpoints within each reversal quintile.
Code
def spreads_within_reversal(sorts):
alpha = {
"beta": {"FFC α": models["FFC α"]},
"cap": {"FFC α (excl. `smb`)": "mkt + hml + mom_factor"},
"bm": {"FFC α (excl. `hml`)": "mkt + smb + mom_factor"},
"mom": {"FF α": models["FF α"]},
}
results = []
for term, monthly in sorts.items():
for weight in weights:
table = two_way_results(monthly, weight, {"Return": "1", **alpha[term]})
results.append(table.select(
pl.lit(sort_variables[term]).alias("Second sort"),
pl.lit(weight).alias("Weights"), pl.all(),
))
return pl.concat(results)
spreads_within_reversal({
term: bivariate_months(panel, "rev", term, nyse=False, dependent=True)
for term in sort_variables
}).eap.show_table()| Second sort | Weights | Statistic | 1 | 2 | 3 | 4 | 5 | Average |
|---|---|---|---|---|---|---|---|---|
| Beta | EW | 5–1 Return | -0.76 (-3.22) |
0.08 (0.36) |
-0.20 (-0.91) |
-0.44 (-1.89) |
-0.38 (-1.61) |
-0.34 (-1.64) |
| Beta | EW | 5–1 FFC α | -0.77 (-3.45) |
-0.07 (-0.38) |
-0.45 (-2.46) |
-0.62 (-3.48) |
-0.47 (-2.35) |
-0.48 (-3.02) |
| Beta | VW | 5–1 Return | -0.76 (-2.65) |
0.10 (0.41) |
-0.14 (-0.63) |
0.14 (0.58) |
0.15 (0.54) |
-0.10 (-0.46) |
| Beta | VW | 5–1 FFC α | -0.66 (-2.67) |
0.13 (0.66) |
-0.23 (-1.10) |
0.09 (0.45) |
0.15 (0.63) |
-0.10 (-0.59) |
| Market cap | EW | 5–1 Return | -2.76 (-8.56) |
0.02 (0.06) |
-0.27 (-1.11) |
-0.45 (-1.86) |
0.55 (2.12) |
-0.58 (-2.51) |
| Market cap | EW | 5–1 FFC α (excl. smb) |
-3.05 (-7.48) |
-0.10 (-0.37) |
-0.45 (-1.75) |
-0.58 (-2.34) |
0.48 (1.82) |
-0.74 (-2.95) |
| Market cap | VW | 5–1 Return | -2.35 (-7.16) |
0.12 (0.45) |
-0.26 (-1.01) |
-0.27 (-1.07) |
0.79 (2.85) |
-0.39 (-1.61) |
| Market cap | VW | 5–1 FFC α (excl. smb) |
-2.60 (-6.15) |
0.08 (0.31) |
-0.36 (-1.40) |
-0.34 (-1.35) |
0.71 (2.56) |
-0.50 (-1.96) |
bm |
EW | 5–1 Return | 1.35 (6.18) |
0.94 (5.12) |
0.80 (4.68) |
0.92 (5.28) |
1.06 (4.48) |
1.02 (5.82) |
bm |
EW | 5–1 FFC α (excl. hml) |
1.49 (6.50) |
1.13 (6.50) |
1.02 (6.64) |
1.13 (6.70) |
1.29 (5.58) |
1.21 (7.28) |
bm |
VW | 5–1 Return | 0.71 (2.77) |
0.34 (1.59) |
0.48 (2.36) |
0.31 (1.60) |
0.66 (2.69) |
0.50 (2.80) |
bm |
VW | 5–1 FFC α (excl. hml) |
0.78 (2.93) |
0.51 (2.51) |
0.62 (3.11) |
0.47 (2.51) |
0.79 (3.48) |
0.63 (3.81) |
mom |
EW | 5–1 Return | -0.82 (-2.34) |
0.86 (3.52) |
0.96 (4.01) |
1.16 (5.10) |
2.96 (11.33) |
1.02 (4.32) |
mom |
EW | 5–1 FF α | -0.57 (-1.74) |
1.10 (5.00) |
1.18 (5.80) |
1.38 (6.84) |
3.21 (13.03) |
1.26 (6.10) |
mom |
VW | 5–1 Return | 0.35 (0.82) |
0.82 (2.56) |
0.79 (3.02) |
0.97 (3.62) |
2.18 (7.06) |
1.02 (3.73) |
mom |
VW | 5–1 FF α | 0.70 (2.09) |
1.12 (3.90) |
0.98 (3.87) |
1.18 (4.61) |
2.51 (8.24) |
1.30 (5.42) |
Code
spreads_within_reversal({
term: monthly.rename({"control": "target", "target": "control"})
for term, monthly in independent_sorts.items()
}).eap.show_table()| Second sort | Weights | Statistic | 1 | 2 | 3 | 4 | 5 | Average |
|---|---|---|---|---|---|---|---|---|
| Beta | EW | 5–1 Return | -0.67 (-2.79) |
0.12 (0.50) |
-0.28 (-1.09) |
-0.59 (-2.31) |
-0.45 (-1.87) |
-0.37 (-1.66) |
| Beta | EW | 5–1 FFC α | -0.66 (-3.00) |
-0.00 (-0.00) |
-0.51 (-2.53) |
-0.73 (-3.84) |
-0.54 (-2.74) |
-0.49 (-2.92) |
| Beta | VW | 5–1 Return | -0.47 (-1.80) |
0.23 (0.93) |
-0.19 (-0.69) |
-0.07 (-0.28) |
-0.10 (-0.34) |
-0.12 (-0.53) |
| Beta | VW | 5–1 FFC α | -0.35 (-1.26) |
0.26 (1.19) |
-0.24 (-0.99) |
-0.15 (-0.67) |
-0.15 (-0.62) |
-0.12 (-0.64) |
| Market cap | EW | 5–1 Return | -2.18 (-7.10) |
0.01 (0.04) |
-0.27 (-1.10) |
-0.54 (-2.15) |
0.66 (2.43) |
-0.46 (-1.93) |
| Market cap | EW | 5–1 FFC α (excl. smb) |
-2.44 (-6.19) |
-0.13 (-0.46) |
-0.49 (-1.84) |
-0.70 (-2.66) |
0.59 (2.09) |
-0.63 (-2.43) |
| Market cap | VW | 5–1 Return | -1.65 (-5.36) |
0.09 (0.35) |
-0.26 (-0.96) |
-0.41 (-1.51) |
0.92 (3.18) |
-0.26 (-1.03) |
| Market cap | VW | 5–1 FFC α (excl. smb) |
-1.87 (-4.84) |
0.03 (0.11) |
-0.40 (-1.45) |
-0.50 (-1.84) |
0.83 (2.84) |
-0.38 (-1.45) |
bm |
EW | 5–1 Return | 1.36 (6.32) |
1.00 (5.39) |
0.91 (4.83) |
1.04 (5.52) |
1.09 (4.54) |
1.08 (6.04) |
bm |
EW | 5–1 FFC α (excl. hml) |
1.49 (6.73) |
1.19 (6.82) |
1.15 (6.63) |
1.25 (6.93) |
1.30 (5.62) |
1.28 (7.50) |
bm |
VW | 5–1 Return | 0.83 (3.27) |
0.34 (1.48) |
0.62 (2.76) |
0.46 (2.11) |
0.68 (3.06) |
0.59 (3.18) |
bm |
VW | 5–1 FFC α (excl. hml) |
0.86 (3.25) |
0.52 (2.36) |
0.76 (3.36) |
0.58 (2.73) |
0.80 (3.75) |
0.71 (3.97) |
mom |
EW | 5–1 Return | -0.53 (-1.70) |
0.88 (3.07) |
1.09 (3.63) |
1.34 (5.29) |
2.87 (11.96) |
1.13 (4.47) |
mom |
EW | 5–1 FF α | -0.28 (-1.03) |
1.14 (4.51) |
1.32 (5.23) |
1.59 (6.96) |
3.13 (13.66) |
1.38 (6.33) |
mom |
VW | 5–1 Return | 0.45 (1.20) |
0.80 (2.33) |
1.01 (3.14) |
1.06 (3.45) |
1.94 (6.45) |
1.05 (3.67) |
mom |
VW | 5–1 FF α | 0.78 (2.66) |
1.19 (4.00) |
1.28 (4.24) |
1.35 (4.67) |
2.25 (7.76) |
1.37 (5.56) |
The dependent size sorts show the strongest reversal in the smallest capitalization quintile for both weighting methods. The spread remains negative on average when controlling for beta, book-to-market, or momentum. When I reverse the sorts and control for reversal, the average book-to-market and momentum spreads remain positive.
12.4 Fama–MacBeth Regressions
Regress next month’s excess return on the formation-month characteristics. Winsorize the regressors at 0.5% in each tail within each formation month and use six Newey–West lags for inference on their average coefficients.
Code
terms = {"rev": "`rev`", **controls}
specifications = [["rev"], *[["rev", term] for term in controls], list(terms)]
fama_macbeth_table(panel, specifications, terms, digits=3).eap.show_table()| Term | (1) | (2) | (3) | (4) | (5) | (6) |
|---|---|---|---|---|---|---|
rev |
-0.048 (-10.05) |
-0.053 (-10.81) |
-0.051 (-10.71) |
-0.054 (-10.77) |
-0.054 (-11.08) |
-0.062 (-12.71) |
| Beta | -0.239 (-1.70) |
-0.121 (-0.75) |
||||
| Size | -0.103 (-2.11) |
-0.125 (-2.29) |
||||
bm |
0.415 (5.36) |
0.233 (3.62) |
||||
mom |
0.007 (3.02) |
0.006 (3.11) |
||||
| Intercept | 0.756 (2.57) |
0.974 (3.97) |
1.163 (2.51) |
0.431 (1.45) |
0.621 (2.27) |
1.080 (2.58) |
| Adjusted R² | 0.01 | 0.03 | 0.02 | 0.02 | 0.02 | 0.05 |
| n | 4738 | 4421 | 4738 | 3392 | 4405 | 3371 |
The reversal slope is −0.048 without controls and −0.062 with all four controls.
Code
lag_terms = list(lag_labels)
specifications = [[term] for term in lag_terms] + [lag_terms]
with ptime():
lagged_regressions = fama_macbeth_table(panel, specifications, lag_labels, digits=3)Wall time: 26.003 s
Code
lagged_regressions.eap.show_table()| Term | (1) | (2) | (3) | (4) | (5) | (6) | (7) | (8) | (9) | (10) | (11) | (12) | (13) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rev |
-0.048 (-10.05) |
-0.060 (-12.21) |
|||||||||||
| R(t−1) | -0.000 (-0.01) |
-0.006 (-1.66) |
|||||||||||
| R(t−2) | 0.013 (4.37) |
0.011 (4.02) |
|||||||||||
| R(t−3) | 0.005 (1.67) |
0.006 (2.11) |
|||||||||||
| R(t−4) | 0.007 (2.10) |
0.008 (2.61) |
|||||||||||
| R(t−5) | 0.008 (2.01) |
0.009 (2.91) |
|||||||||||
| R(t−6) | 0.010 (3.33) |
0.009 (3.37) |
|||||||||||
| R(t−7) | 0.005 (1.40) |
0.006 (2.27) |
|||||||||||
| R(t−8) | 0.009 (2.62) |
0.011 (3.57) |
|||||||||||
| R(t−9) | 0.003 (1.05) |
0.005 (1.99) |
|||||||||||
| R(t−10) | 0.010 (3.18) |
0.009 (3.51) |
|||||||||||
| R(t−11) | 0.020 (6.67) |
0.019 (7.75) |
|||||||||||
| Intercept | 0.756 (2.57) |
0.686 (2.43) |
0.717 (2.60) |
0.717 (2.60) |
0.693 (2.58) |
0.726 (2.69) |
0.759 (2.80) |
0.734 (2.70) |
0.777 (2.89) |
0.787 (2.93) |
0.762 (2.82) |
0.776 (2.86) |
0.594 (2.56) |
| Adjusted R² | 0.01 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.04 |
| n | 4738 | 4701 | 4663 | 4626 | 4589 | 4553 | 4517 | 4481 | 4445 | 4410 | 4375 | 4339 | 4304 |
Code
terms = {**lag_labels, **controls}
specifications = [[*lag_terms, term] for term in controls] + [list(terms)]
fama_macbeth_table(panel, specifications, terms, digits=3).eap.show_table()| Term | (1) | (2) | (3) | (4) | (5) |
|---|---|---|---|---|---|
rev |
-0.060 (-12.14) |
-0.061 (-12.47) |
-0.062 (-12.32) |
-0.061 (-12.20) |
-0.066 (-12.89) |
| R(t−1) | -0.005 (-1.42) |
-0.005 (-1.52) |
-0.008 (-2.18) |
-0.013 (-3.13) |
-0.022 (-4.10) |
| R(t−2) | 0.012 (4.50) |
0.013 (4.86) |
0.008 (2.90) |
0.004 (1.08) |
-0.003 (-0.71) |
| R(t−3) | 0.006 (2.22) |
0.007 (2.53) |
0.006 (1.89) |
-0.002 (-0.54) |
-0.007 (-1.78) |
| R(t−4) | 0.007 (2.61) |
0.010 (3.27) |
0.007 (1.95) |
0.000 (0.05) |
-0.005 (-1.18) |
| R(t−5) | 0.010 (3.38) |
0.011 (3.51) |
0.008 (2.30) |
0.002 (0.50) |
-0.003 (-0.70) |
| R(t−6) | 0.008 (2.99) |
0.010 (4.06) |
0.007 (2.43) |
0.002 (0.45) |
-0.006 (-1.56) |
| R(t−7) | 0.007 (2.55) |
0.007 (2.57) |
0.006 (2.02) |
-0.001 (-0.33) |
-0.007 (-1.58) |
| R(t−8) | 0.011 (3.86) |
0.012 (4.61) |
0.010 (3.31) |
0.003 (0.83) |
-0.002 (-0.54) |
| R(t−9) | 0.006 (2.30) |
0.007 (2.67) |
0.005 (1.58) |
-0.002 (-0.69) |
-0.007 (-1.63) |
| R(t−10) | 0.010 (3.89) |
0.009 (3.90) |
0.007 (2.55) |
0.002 (0.53) |
-0.006 (-1.59) |
| R(t−11) | 0.019 (7.92) |
0.016 (7.30) |
0.016 (6.42) |
0.012 (4.13) |
0.001 (0.18) |
| Beta | -0.411 (-3.69) |
-0.178 (-1.32) |
|||
| Size | -0.158 (-3.85) |
-0.130 (-2.72) |
|||
bm |
0.363 (5.56) |
0.224 (3.52) |
|||
mom |
0.009 (4.65) |
0.014 (4.40) |
|||
| Intercept | 0.791 (3.56) |
1.264 (3.43) |
0.256 (1.09) |
0.582 (2.52) |
1.075 (2.77) |
| Adjusted R² | 0.05 | 0.05 | 0.05 | 0.04 | 0.06 |
| n | 4304 | 4304 | 3336 | 4304 | 3336 |
In the joint regression with all twelve returns and no other controls, the return from exactly one year before the outcome month has a coefficient of 0.019. With all controls included, the coefficients on months \(t-2\) through \(t-11\) are statistically indistinguishable from zero at the 5% level, and the coefficients on rev and \(R_{t-1}\) remain negative.
12.5 The Short-Term Reversal Factor
The Kenneth French short-term reversal factor uses six value-weighted portfolios formed by intersecting two size groups and three prior-return groups. The cutoffs are the NYSE median capitalization and the NYSE 30th and 70th percentiles of the previous month’s return. The factor buys recent losers and sells recent winners, so its sign is opposite to the high-minus-low spreads above.
\[ \mathrm{STR}_{t+1} =\frac{R_{\mathrm{Small,Low},t+1}+R_{\mathrm{Big,Low},t+1}}{2} -\frac{R_{\mathrm{Small,High},t+1}+R_{\mathrm{Big,High},t+1}}{2}. \tag{12.2}\]
I use the French library’s June 2014 archive and plot the same July 1926–December 2012 window as BEM. With \(\mathrm{STR}_m\) in decimal units, the two panels use the following scales.
\[ C_t=\prod_{m\le t}(1+\mathrm{STR}_m)-1, \qquad L_t=\sum_{m\le t}\log(1+\mathrm{STR}_m). \tag{12.3}\]
Code
reversal_factor = (
get_ff_factors("reversal", vintage=vintage)
.filter(pl.col("date").is_between(pl.date(1926, 7, 1), pl.date(2012, 12, 1)))
.sort("date")
.with_columns(
compounded=(1 + pl.col("str")).cum_prod() - 1,
cumulative_log=pl.col("str").log1p().cum_sum(),
)
)
assert reversal_factor["date"].equals(
pl.date_range(pl.date(1926, 7, 1), pl.date(2012, 12, 1), "1mo", eager=True)
)
assert reversal_factor.select(pl.col("str").is_finite().fill_null(False).all()).item()
plot_cumulative_returns(reversal_factor, y_label="Cumulative reversal factor return")
The archived series compounds to 120,879% and reaches a cumulative log return of 709.82%.
To estimate the four-factor alpha, use January 1927 through December 2012 because the momentum factor starts in January 1927. The regression outcome is in percentage points per month.
str_sample = (
reversal_factor
.select(month="date", str_pct=100 * pl.col("str"))
.join(factors.drop_nulls("mom_factor"), on="month", validate="1:1")
.sort("month")
)
str_fit = hac("str_pct ~ mkt + smb + hml + mom_factor", str_sample)The four-factor alpha is 0.77% per month (\(t\) = 5.96).