This function provides the fair odds for a given win probability for a given bet.
Arguments
- prob
Probability of winning a bet
- type
Type of odds. Possible values are:
all
, All typesus
, American Oddsdec
, Decimal Oddsfrac
, Fractional Odds
Examples
implied_odds(0.4)
#> [1] 150
implied_odds(0.5238095, type = "all")
#> Decimal American Fraction Implied.Probability
#> 1 1.909091 -110 10/11 0.5238095
implied_odds(c(0.3, 0.2, 0.909, 0.7143), type = "dec")
#> [1] 3.333333 5.000000 1.100110 1.399972
implied_odds(c(0.3, 0.2, 0.95, 0.7), type = "frac")
#> [1] 7/3 4 1/19 3/7