# Two fictional books, the same basketball fixture, sides and observation time. # Change one price, then run the file again to see which comparison moves. quotes <- data.frame(book = c("North", "South"), home = c(150, 145), away = c(-175, -165)) quotes$home_decimal <- parlayapiR::pa_american_to_decimal(quotes$home) home_prob <- parlayapiR::pa_implied_prob(quotes$home, odds_format = "american") away_prob <- parlayapiR::pa_implied_prob(quotes$away, odds_format = "american") quotes$overround_pct <- round(100 * (home_prob + away_prob - 1), 2) print(quotes, row.names = FALSE) # Overround is the excess implied probability across both outcomes. # Home decimal is the total return per unit on a winning home selection. cat("Higher home return:", paste(quotes$book[quotes$home_decimal == max(quotes$home_decimal)], collapse = ", "), "\n") cat("Lower two-side overround:", paste(quotes$book[quotes$overround_pct == min(quotes$overround_pct)], collapse = ", "), "\n")