Permalink
Browse files

Fix bug in z-score calculation. Credit to Ivan.

  • Loading branch information...
1 parent cbd602a commit 25b5de3f40a2167b41b22d468eb7e4a184ce9e7d @patio11 patio11 committed Mar 16, 2010
Showing with 4 additions and 4 deletions.
  1. +2 −2 README
  2. +2 −2 lib/abingo/statistics.rb
View
4 README
@@ -1,4 +1,4 @@
-A/Bingo Version 1.0.0
+A/Bingo Version 1.0.1
======
Rails A/B testing. One minute to install. One line to set up a new A/B test.
@@ -106,4 +106,4 @@ A/Bingo defaults to using the same cache store as Rails. If you want to change
Abingo.cache = ActiveSupport::Cache::MemCacheStore.new("cache.example.com:12345") #best if really memcacheDB
-Copyright (c) 2009-2010 Patrick McKenzie, released under the MIT license
+Copyright (c) 2009-2010 Patrick McKenzie, released under the MIT license
View
4 lib/abingo/statistics.rb
@@ -26,7 +26,7 @@ def zscore
numerator = cr1 - cr2
frac1 = cr1 * (1 - cr1) / n1
- frac2 = cr2 * (1 - cr1) / n2
+ frac2 = cr2 * (1 - cr2) / n2
numerator / ((frac1 + frac2) ** 0.5)
end
@@ -87,4 +87,4 @@ def describe_result_in_words
words
end
-end
+end

0 comments on commit 25b5de3

Please sign in to comment.