Skip to contents

This function calculates the fair odds for a bet.

Usage

true_probability(line = -110, odds = c(-110, -110), type = "us")

Arguments

line

Line for the specific bet (-115)

odds

Vector with all lines for a wager (-115, -105)

type

Type of odds. Possible values are:

  • us, American Odds

  • dec, Decimal Odds

  • frac, Fractional Odds

Value

True Expected probability of bet

Examples

true_probability(1.8, c(1.8, 2.1), type = "dec")
#> [1] 0.5384615
true_probability(-115, c(-115, -105))
#> [1] 0.5108342
true_probability(258, c(285, -122, 258))
#> [1] 0.2565907
true_probability(line = -100, odds = c(-100, -120))
#> [1] 0.4782609