Skip to content

Instantly share code, notes, and snippets.

@g-leech
Created August 20, 2019 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save g-leech/01fe74896b12e6d180a1dbc3b77c2fd0 to your computer and use it in GitHub Desktop.
Save g-leech/01fe74896b12e6d180a1dbc3b77c2fd0 to your computer and use it in GitHub Desktop.
Kelly bound on house insurance premium
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