[Scipy-tickets] [SciPy] #1329: porting mstats.plottingposition and similar to stats

SciPy Trac scipy-tickets@scipy....
Fri Nov 19 19:04:51 CST 2010


#1329: porting mstats.plottingposition and similar to stats
-------------------------+--------------------------------------------------
 Reporter:  josefpktd    |       Owner:  somebody   
     Type:  defect       |      Status:  new        
 Priority:  normal       |   Milestone:  Unscheduled
Component:  scipy.stats  |     Version:  0.8.0      
 Keywords:               |  
-------------------------+--------------------------------------------------
 I just found this again, trying to unify stats.stats and stats.mstats. I'm
 not sure what to do with it right now.

 see http://mail.scipy.org/pipermail/scipy-user/2010-August/026354.html


 I stumbled over plotting positions in mstats while looking at the
 Pareto family of distributions.

 plotting_positions, quantiles in stats.mstats has more options that
 the functions in stats (similar to a ecdf proposal by David Huard)

 Instead of writing plain ndarray versions, I was trying to have a
 common interface for plain ndarrays, ndarrays with nans and masked
 arrays. The implementations are different enough that merging the
 ndarray and masked array version didn't look useful (e.g. masked
 arrays or nans require apply_along_axis).

 Instead I just delegated the messy cases (ma, nans, limit) to
 stats.mstats and only the nice cases go through the plain ndarray
 version.

 Main question: Would it be useful to have this delegation in
 scipy.stats so that there is a single entry point for users, or is it
 better to keep the plain ndarray, nan and ma versions separate?
 The pattern could apply to quite a few functions in stats-mstats that
 are too difficult to merge.

 As a bonus, I added a plotting_positions_w1d that handles weights
 (since I recently saw the question somewhere). I am not completely
 sure about the definition for the plotting position correction, but if
 desired it will be easy enough to include it in the other functions or
 write also versions of quantiles and scoreatpercentile that take
 weights.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1329>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list