View source: R/expected_value.R
expected_value | R Documentation |
This function calculates the expected value for a given bet.
expected_value(payout, risk, win_prob)
payout |
The dollar amount won if the bet pays out (500) |
risk |
The dollar amount risked (550) |
win_prob |
The probability that the bet wins (0.54) |
Expected Value of a bet
expected_value(100, 110, 0.55)
expected_value(175, 100, 0.35)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.