knitr::opts_chunk$set(echo = TRUE)
library(bettoR)
library(knitr)

GitHub release (latest by date) R-CMD-check Lifecycle: experimental Twitter Follow

Tools for Sports Betting

This package contains tools and functions to help sports bettors make more money!

Installation

You can install bettoR from GitHub with:

# install.packages("devtools")
devtools::install_github("papagorgio23/bettoR")

Examples

Implied Probability

Implied probabilities, or break-even win percentage, can easily be found with this function. Here is an example with given odds of -350 (US Odds), 180 (US Odds), 2.5 (Decimal Odds), 4.9 (Decimal Odds), 6-1 (Fractional Odds), 2/7 (Fractional Odds).

implied_prob(-350, type = "us")
implied_prob(180, type = "us")
implied_prob(2.5, type = "dec")
implied_prob(4.9, type = "dec")
implied_prob(6/1, type = "frac")
implied_prob(2/7, type = "frac")

Odds from Probabilities

Let's say you believe a bet has a 75% chance to cover, what would the price be? Using the implied odds function can give you the price based on your probability.

implied_odds(0.75, type = "us")
implied_odds(0.75, type = "frac")
implied_odds(0.75, type = "dec")
implied_odds(0.75, type = "all")

Converting Odds

Let's say you want to convert the American Odds you see on the screen (-175) to another type.

convert_odds(-175)

Calculate Sportsbook's hold

Betting into a market is difficult enough as is but some sportsbooks skew the odds even more in their favor. (-110, -110) is the industry standard. The hold, or vig/juice, for this bet can be found like this:

hold_calc(-110, -110)

Some sportsbooks in newly legalized states are taking advantage of bettors with lines (-125, -125)

hold_calc(-125, -125)

The increase in juice for this is:

(hold_calc(-125, -125) - hold_calc(-110, -110)) / hold_calc(-110, -110)

120% increase in price.

Special Thanks



papagorgio23/bettoR documentation built on May 24, 2023, 5:01 a.m.