Re: SciPy mean (HW8)

2 views
Skip to first unread message

William Stein

unread,
May 19, 2011, 2:16:47 AM5/19/11
to Alex Arslan, 480uw11
On Wed, May 18, 2011 at 9:53 PM, Alex Arslan <arar...@uw.edu> wrote:
> Last one, I swear.
>
>
>
> The SciPy mean has been deprecated and will not compute. It says to use
> NumPy’s mean function.

Use the numpy one then.

That scipy "DeprecationWarning" is pretty lame, given than it is much
more than just a "warning". In Sage, DeprecationWarnings are supposed
to just be warning, i.e., the first time you use the deprecated
function you see a warning message, but get output, and the next time
you don't even see a warning.


> Another option is SciPy’s tmean(), the trimmed mean,
> which disregards outliers in the tails of the distribution in computation.

Don't use that.

> Likewise for median, it seems. There’s SciPy’s computed median, cmedian(),
> which seems a little unusual to me.

Use numpy.

>
> And of course standard deviation too. There’s tstd(), which computes in a
> similar fashion to tmean().

Use numpy.

>
>
>
> What should we do?
>
>
>
> Thanks,
>
> Alex

--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

Reply all
Reply to author
Forward
0 new messages