On Wed, 6 Jul 2016 22:16:43 +0200 Victor Stinner <victor.stinner@gmail.com> wrote:
but if so, there is a misunderstanding: I did not suggest to remove the samples outside of the range [median - 5%; median + 5%]. I suggested to remove the 5% smallest and the 5% largest samples.
I tried something to remove outliers. I didn't try to implement what you suggested.
5% smallest/5% largest: do you mean something like sorting all samples, remove items from the two tails?
Something like sorted(samples)[3:-3] ?
Yes.
Regards
Antoine.
2016-07-06 22:24 GMT+02:00 Antoine Pitrou <solipsis@pitrou.net>:
5% smallest/5% largest: do you mean something like sorting all samples, remove items from the two tails?
Something like sorted(samples)[3:-3] ?
Yes.
Hum, it may work if the distribution is uniform (symmetric), but usually the right tail is much longer.
Victor
participants (2)
-
Antoine Pitrou
-
Victor Stinner