compute_factor_exposure
Decompose any stock's returns into Fama-French five-factor and momentum exposures. Get alpha, factor betas, and risk metrics to identify alpha-generating regimes.
Instructions
Decompose a symbol's returns into Fama-French 5-factor + momentum exposures using real Polygon daily data. Returns alpha, market beta, SMB/HML/momentum betas, R-squared, information ratio, tracking error. Identifies alpha-generating vs factor-exposed regimes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | 1y | |
| symbol | Yes | ||
| benchmark | No | SPY |