Skip to content

Commit

Permalink
pass runs parameter as days per quarter.
Browse files Browse the repository at this point in the history
pass `runs` parameter as days per quarter.
no default in price_dividend_ratio_random_walk
  • Loading branch information
mesalas committed Feb 6, 2024
1 parent b9eeabb commit e7ee9d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sharkfin/markets/ammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def __init__(self,
seed=None,
queue_name='',
host='localhost',
dividend_growth_rate = 1.000628,
dividend_std = 0.011988,
dividend_growth_rate = 1.000203,
dividend_std = 0.011983,
price_to_dividend_ratio = 60 / 0.05,
rng = None,
macro_price_field = None,
Expand Down
2 changes: 1 addition & 1 deletion sharkfin/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def combine_lognormal_rates(ror1, std1, ror2, std2):


def price_dividend_ratio_random_walk(
DiscFac, CRRA, dividend_growth_rate, dividend_std, days_per_quarter=90
DiscFac, CRRA, dividend_growth_rate, dividend_std, days_per_quarter
):
## From Equation 30 from the C. Carroll Lucas asset pricing notes:
## http://www.econ2.jhu.edu/people/ccarroll/public/lecturenotes/AssetPricing/LucasAssetPrice.pdf
Expand Down
4 changes: 2 additions & 2 deletions simulate/run_any_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def env_param(name, default):

# General market arguments
market_class_name = str(args.market)

days_per_quater = runs
population_name = str(args.population)
pop_CRRA = float(args.pop_CRRA)
pop_DiscFac = float(args.pop_DiscFac)
Expand Down Expand Up @@ -334,7 +334,7 @@ def env_param(name, default):
"dividend_std": dividend_std,
"rng": rng,
"price_to_dividend_ratio": price_dividend_ratio_random_walk(
pop_DiscFac, pop_CRRA, dividend_growth_rate, dividend_std
pop_DiscFac, pop_CRRA, dividend_growth_rate, dividend_std, days_per_quater
),
}

Expand Down

0 comments on commit e7ee9d4

Please sign in to comment.