|
@@ -0,0 +1,6 @@
|
|
|
|
|
+# Overround and fair odds in R (MIT). Reference: https://betbetter.world/studies/state-of-the-vig-2026
|
|
|
|
|
+overround <- function(odds) sum(1 / odds) - 1
|
|
|
|
|
+fair_odds <- function(odds) { q <- 1 / odds; sum(q) / q }
|
|
|
|
|
+tennis <- c(1.80, 2.05)
|
|
|
|
|
+print(round(100 * overround(tennis), 2))
|
|
|
|
|
+print(round(fair_odds(tennis), 2))
|