Explorar o código

Add margin cost calculator

betbetter hai 4 días
pai
achega
8af0d3b762
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      main.go

+ 13 - 0
main.go

@@ -0,0 +1,13 @@
+// Cost of the bookmaker margin per 100 staked (MIT).
+// Averages from https://betbetter.world/studies/state-of-the-vig-2026
+package main
+
+import "fmt"
+
+func cost(m float64) float64 { return 100 * m / (1 + m) }
+
+func main() {
+	for _, m := range []float64{0.048, 0.064, 0.075, 0.076} {
+		fmt.Printf("margin %.1f%% -> %.2f per 100\n", m*100, cost(m))
+	}
+}