Created
August 20, 2019 14:28
-
-
Save g-leech/01fe74896b12e6d180a1dbc3b77c2fd0 to your computer and use it in GitHub Desktop.
Kelly bound on house insurance premium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
probability = 1/10000 | |
wealth = 120000 | |
houseValue = 100000 | |
bound = probability * np.log(wealth - houseValue) \ | |
+ (1 - probability) * np.log(wealth) | |
maxPremium = wealth - np.exp(bound) | |
maxPremium | |
# 21.499187504436122 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment