From 2277965dfcb979a0377b28b7ba61c24b06cb6f06 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Sat, 20 Jun 2020 15:07:50 +0200 Subject: [PATCH] change norm calculation --- python/backends/trueskillWrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/backends/trueskillWrapper.py b/python/backends/trueskillWrapper.py index d034d55..2da88d9 100644 --- a/python/backends/trueskillWrapper.py +++ b/python/backends/trueskillWrapper.py @@ -98,7 +98,7 @@ def predictOutcome(teamA, teamB): # than a random point from normDistB is normA - normB and then the # "1 - Cumulative Distribution Function" (cdf) aka the "Survival Function" (sf) # of the resulting distribution being greater than zero - prob = scipy.stats.norm(loc=muTeamA-muTeamB, scale=math.sqrt(sigmaTeamB**2+sigmaTeamA**2)).sf(0) + prob = scipy.stats.norm(loc=muTeamB-muTeamA, scale=sigmaTeamB+sigmaTeamA).sf(0) if prob >= 0.5: return (0, prob) elif prob < 0.5: