Re: [Numpy-discussion] Weighted percentile / quantile

2016-03-01 Thread Joseph Fox-Rabinovitz
Alex, At the moment, there does not appear to be anything in numpy. However, I am working (slowly) on upgrading the C code for partitioning with arbitrary arrays of real weights. That will get `partition`, `median`, `percentile` to work with weights, as well as enabling weights for the automated b

[Numpy-discussion] Weighted percentile / quantile

2016-03-01 Thread Alex Rogozhnikov
Hi, I know the topic was already raised a long ago: https://mail.scipy.org/pipermail/numpy-discussion/2010-July/051851.html There are also several questions on SO: http://stackoverflow.com/questions/20601872/numpy-or-scipy-to-calculate-weighted-median http://stackoverflow.com/questions/13546146/

[Numpy-discussion] About inv/lstsq

2016-03-01 Thread Irvin Probst
Hi, I'm not sure if I should send this here or to scipy-user, feel free to redirect me there if I'm off topic. So, there is something I don't understand using inv and lstsq in numpy. I've built *on purpose* an ill conditioned system to fit a quadric a*x**2+b*y**2+c*x*y+d*x+e*y+f, the data poi