Update app.py
Browse files
app.py
CHANGED
@@ -50,11 +50,13 @@ def aggregate(wins: npt.NDArray[np.int64], ties: npt.NDArray[np.int64],
|
|
50 |
iterations += 1
|
51 |
|
52 |
v_numerator = np.sum(
|
53 |
-
ties * (pi[:,
|
|
|
54 |
) / 2
|
55 |
|
56 |
v_denominator = np.sum(
|
57 |
-
wins * 2 * np.sqrt(pi[:,
|
|
|
58 |
)
|
59 |
|
60 |
v = v_numerator / v_denominator
|
|
|
50 |
iterations += 1
|
51 |
|
52 |
v_numerator = np.sum(
|
53 |
+
ties * (pi[:, np.newaxis] + pi) /
|
54 |
+
(pi[:, np.newaxis] + pi + 2 * v * np.sqrt(pi[:, np.newaxis] * pi))
|
55 |
) / 2
|
56 |
|
57 |
v_denominator = np.sum(
|
58 |
+
wins * 2 * np.sqrt(pi[:, np.newaxis] * pi) /
|
59 |
+
(pi[:, np.newaxis] + pi + 2 * v * np.sqrt(pi[:, np.newaxis] * pi))
|
60 |
)
|
61 |
|
62 |
v = v_numerator / v_denominator
|