Ver Fonte

Add margin cost calculator

betbetter há 4 dias atrás
pai
commit
8af0d3b762
1 ficheiros alterados com 13 adições e 0 exclusões
  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))
+	}
+}