-
Notifications
You must be signed in to change notification settings - Fork 1k
Add Support for Fama-French 3/5 Factor Model to Expected Return Module #634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
def ff_expected_return(
|
Test for enhancement def test_ff3_expected_return_valid():
def test_ff5_expected_return_valid():
def test_ff_expected_return_missing_factors():
def test_ff_expected_return_no_overlap():
def test_ff_expected_return_compounding_toggle():
def test_ff3_expected_return_static():
def test_ff5_expected_return_static():
|
Enhance the expected_returns module by adding a new function ff_expected_return() that computes expected returns using the Fama-French 3-factor and 5-factor models via OLS regression.
This will expand the current set of return estimation methods (mean_historical_return, capm_return, etc.) with a more advanced and academically grounded model, improving flexibility for users in quantitative finance applications.
def ff_expected_return(
prices: pd.DataFrame,
factor_data: pd.DataFrame,
returns_data: bool = False,
model: str = "ff3",
compounding: bool = True,
frequency: int = 252,
log_returns: bool = False,
) -> pd.Series:
The text was updated successfully, but these errors were encountered: