[Scipy-svn] r2223 - trunk/Lib/stats

scipy-svn at scipy.org scipy-svn at scipy.org
Sun Sep 24 00:28:44 CDT 2006


Author: rkern
Date: 2006-09-24 00:28:38 -0500 (Sun, 24 Sep 2006)
New Revision: 2223

Modified:
   trunk/Lib/stats/distributions.py
Log:
Fix 251

Modified: trunk/Lib/stats/distributions.py
===================================================================
--- trunk/Lib/stats/distributions.py	2006-09-24 05:12:27 UTC (rev 2222)
+++ trunk/Lib/stats/distributions.py	2006-09-24 05:28:38 UTC (rev 2223)
@@ -924,7 +924,7 @@
         return special.btdtri(a,b,q)
     def _stats(self, a, b):
         mn = a *1.0 / (a + b)
-        var = (a*b*1.0)*(a+b+1.0)/(a+b)**2.0
+        var = (a*b*1.0)/(a+b+1.0)/(a+b)**2.0
         g1 = 2.0*(b-a)*sqrt((1.0+a+b)/(a*b)) / (2+a+b)
         g2 = 6.0*(a**3 + a**2*(1-2*b) + b**2*(1+b) - 2*a*b*(2+b))
         g2 /= a*b*(a+b+2)*(a+b+3)



More information about the Scipy-svn mailing list