From 9d9d4dd1677fc25d224381606da5935842a8723f Mon Sep 17 00:00:00 2001 From: Allen Downey Date: Tue, 11 Nov 2014 09:42:11 -0500 Subject: [PATCH] Fixing euro2.py --- euro2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/euro2.py b/euro2.py index 0b3d31f..19a8a21 100644 --- a/euro2.py +++ b/euro2.py @@ -52,7 +52,7 @@ def AverageLikelihood(suite, data): total = 0 for hypo, prob in suite.Items(): - like = suite.Likelihood(hypo, data) + like = suite.Likelihood(data, hypo) total += prob * like return total