expected_utility | R Documentation |
Calculate the expected utility from a bet
expected_utility( earnings = c(), losings = c(), probabilities = c(), u_function = function(x) { x }, endowment = 0 )
earnings |
value you get if you win the bet |
losings |
value you loose if you do not win the bet (always negative numbers) |
probabilities |
set of probabilities for the options of the bet (the order should be as follows c(earnings,losings) ) |
u_function |
Form of the utility function |
endowment |
Initial endowment |
Expected utility from a bet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.