[Scipy-svn] r5591 - trunk/scipy/stats

scipy-svn@scip... scipy-svn@scip...
Mon Feb 23 14:59:02 CST 2009


Author: josef
Date: 2009-02-23 14:57:32 -0600 (Mon, 23 Feb 2009)
New Revision: 5591

Modified:
   trunk/scipy/stats/stats.py
Log:
correct slope standard error in linregress

Modified: trunk/scipy/stats/stats.py
===================================================================
--- trunk/scipy/stats/stats.py	2009-02-23 10:46:04 UTC (rev 5590)
+++ trunk/scipy/stats/stats.py	2009-02-23 20:57:32 UTC (rev 5591)
@@ -1782,7 +1782,7 @@
     prob = betai(0.5*df,0.5,df/(df+t*t))
     slope = r_num / ss(xm)
     intercept = ymean - slope*xmean
-    sterrest = np.sqrt((1-r*r)*ss(y) / ss(x) / df)
+    sterrest = np.sqrt((1-r*r)*ss(ym) / ss(xm) / df)
     return slope, intercept, r, prob, sterrest
 
 



More information about the Scipy-svn mailing list