Skip to content

Commit

Permalink
missing a '/2' in the price_to_dividend_ratio calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenthall committed Mar 21, 2023
1 parent 9140b17 commit c028d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sharkfin/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ def price_dividend_ratio_random_walk(DiscFac, CRRA, dividend_growth_rate, divide
DiscFac_daily = DiscFac ** (1.0 / days_per_quarter)

subjective_return = dividend_growth_rate ** (1 - CRRA) \
* DiscFac_daily * (dividend_std ** 2 + 1) ** (CRRA * (CRRA - 1))
* DiscFac_daily * (dividend_std ** 2 + 1) ** (CRRA * (CRRA - 1) / 2)

assert subjective_return < 1
print("subjective_return: " + str(subjective_return))
assert subjective_return < 1

return subjective_return / (1 - subjective_return)

Expand Down

0 comments on commit c028d0f

Please sign in to comment.