[Numpy-discussion] Return values stats.mstats.linregress
Gökhan Sever
gokhansever@gmail....
Fri Oct 1 14:58:18 CDT 2010
Hello,
mstats.linregress returns 6 values. I don't see this documented from
the function docstring. I know 0.91... is r. What is masked_array
return here?
I[29]: stats.mstats.linregress(np.ma.hstack(all_measured[0::6]),
np.ma.hstack(all_predicted[0::6]))
O[29]:
(2.6309756058562122,
-358.84572340482669,
0.91388013590912054,
masked_array(data = 8.93881546632e-73,
mask = False,
fill_value = 1e+20)
,
241.88030264140224,
8.2881035327089627)
When I run with mstats:
I[30]: stats.linregress(np.ma.hstack(all_measured[0::6]),
np.ma.hstack(all_predicted[0::6]))
O[30]:
(2.5731434548927012,
-325.98658013998079,
0.90619871728013224,
1.4284868970559915e-69,
0.089246202128717186)
Any idea also why the returned p-value is so large from the mstats
version. Shouldn't p-values lie in between [0,1) ?
Thanks.
--
Gökhan
More information about the NumPy-Discussion
mailing list