Skip to content

Commit

Permalink
adding dividend stats to macro_parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenthall committed Feb 8, 2024
1 parent bfdbc8b commit 94d71e7
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions macro/macro_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

######################
# Change Defaults #
######################
# #####################

sharkfin_portfolio = init_portfolio.copy()
sharkfin_portfolio["cycles"] = 0 # 0 for infinite horizon
Expand All @@ -15,7 +15,7 @@

######################
# Annual Parameters #
######################
# #####################

annual_params = sharkfin_portfolio.copy()
annual_params["CRRA"] = 5
Expand All @@ -27,7 +27,7 @@

######################
# Quarterly Parameters #
######################
# #####################

quarterly_params = annual_params.copy()
quarterly_params["DiscFac"] = annual_params["DiscFac"] ** (1 / 4)
Expand All @@ -36,3 +36,36 @@
quarterly_params["PermShkStd"] = list(np.asarray(annual_params["PermShkStd"]) / 2)
quarterly_params["TranShkStd"] = list(4 * np.asarray(annual_params["TranShkStd"]))
quarterly_params["aXtraMax"] = 4 * annual_params["aXtraMax"]

###############################################################################
# --- Computing the risky expectations from the dividend statistics

from sharkfin.utilities import price_dividend_ratio_random_walk, lucas_expected_rate_of_return, ror_quarterly, sig_quarterly


""
def expected_quarterly_returns(dgr, dst):
# dgr - daily dividend growth rate
# dst - daily dividend standard deviation

pdr = price_dividend_ratio_random_walk(
quarterly_params["DiscFac"],
annual_params["CRRA"],
dgr,
dst,
60
)

(ror, sig) = lucas_expected_rate_of_return(pdr, dgr, dst)
return ror_quarterly(ror, 60), sig_quarterly(sig, 60)



""
expected_quarterly_returns(1.0000882, 0.00258)

""


""

0 comments on commit 94d71e7

Please sign in to comment.