research: S&P 600 replication of mid-cap quality sleeves (all REJECT)
Preregistered replication vs IJR, 2017-01..2026-09, 20bp decides: quality composite +2.3%/yr (t 0.78; halves +8.0/-3.5), quality-filtered momentum +2.2% (t 0.73); SUE and lottery-filtered momentum also REJECT, all weaker at 40bp. Equal-weight members beat IJR (t 3.2) and every sleeve. Decision: drop quality stock selection in mid/small caps. Adds --universe small to fetch_us_fundamentals (IJR, name-checked CIKs), a `which` argument to fundamentals.load_mid, and --universe small to midcap_sleeve. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -294,6 +294,10 @@ def load(p, rebuild: bool = False, raw_path: str = RAW, cache: str = CACHE) -> d
|
||||
return F
|
||||
|
||||
|
||||
def load_mid(p, rebuild: bool = False) -> dict[str, pd.DataFrame]:
|
||||
"""The same factors for the S&P 400 panel (research/lab/panel_mid.py)."""
|
||||
return load(p, rebuild, MID_RAW, MID_CACHE)
|
||||
def load_mid(p, rebuild: bool = False, which: str = "mid") -> dict[str, pd.DataFrame]:
|
||||
"""The same factors for the S&P 400 ("mid") or S&P 600 ("small") panel
|
||||
(research/lab/panel_mid.py; raw facts from fetch_us_fundamentals --universe)."""
|
||||
if which == "mid":
|
||||
return load(p, rebuild, MID_RAW, MID_CACHE)
|
||||
return load(p, rebuild, os.path.join("data", "research", f"us_{which}_fund_raw.pkl"),
|
||||
os.path.join("data", "research", f"us_{which}_fund_factors.pkl"))
|
||||
|
||||
Reference in New Issue
Block a user