DrawMargin { public static double GetDrawMarginFromDrawProbability(double drawProbability, double beta) { return inverseCumulativeTo(.5 * (drawProbability + 1), 0, 1) * Math.sqrt(1 + 1) * beta; }  static double GetDrawMarginFromDrawProbability(double drawProbability, double beta);  }
@Test public void GetDrawMarginFromDrawProbabilityTest() { double beta = 25.0 / 6.0; AssertDrawMargin(0.10, beta, 0.74046637542690541); AssertDrawMargin(0.25, beta, 1.87760059883033); AssertDrawMargin(0.33, beta, 2.5111010132487492); }