http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89907
Revision: 89907
Author: rfaulk
Date: 2011-06-12 01:55:23 +0000 (Sun, 12 Jun 2011)
Log Message:
-----------
Fixed bug associated with TTest where the lower estimate of the confidence
interval is NULL. This is set to 0 (lower_p = 1 where conf = 1 - lower_p)
instead.
Modified Paths:
--------------
trunk/fundraiser-statistics/fundraiser-scripts/classes/HypothesisTest.py
Modified:
trunk/fundraiser-statistics/fundraiser-scripts/classes/HypothesisTest.py
===================================================================
--- trunk/fundraiser-statistics/fundraiser-scripts/classes/HypothesisTest.py
2011-06-12 01:52:52 UTC (rev 89906)
+++ trunk/fundraiser-statistics/fundraiser-scripts/classes/HypothesisTest.py
2011-06-12 01:55:23 UTC (rev 89907)
@@ -301,6 +301,7 @@
prob_diffs = [math.fabs(i-p) for i in probs]
min_index = min((n, i) for i, n in enumerate(prob_diffs))[1]
+ lower_p = 1
if min_index > 0:
lower_p = probs[min_index - 1]
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs