R/expected_value.R
expected_value.Rd
This function calculates the expected value for a given bet.
expected_value(payout, risk, win_prob)
The dollar amount won if the bet pays out (500)
The dollar amount risked (550)
The probability that the bet wins (0.54)
Expected Value of a bet
expected_value(100, 110, 0.55) #> [1] 5.5 expected_value(175, 100, 0.35) #> [1] -3.75