{"action":"closed","issue":{"url":"https://api.github.com/repos/haypo/perf/issues/1","repository_url":"https://api.github.com/repos/haypo/perf","labels_url":"https://api.github.com/repos/haypo/perf/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/haypo/perf/issues/1/comments","events_url":"https://api.github.com/repos/haypo/perf/issues/1/events","html_url":"https://github.com/haypo/perf/issues/1","id":159752326,"number":1,"title":"Use a better measures than average and standard deviation","user":{"login":"mahmoud","id":130193,"avatar_url":"https://avatars.githubusercontent.com/u/130193?v=3","gravatar_id":"","url":"https://api.github.com/users/mahmoud","html_url":"https://github.com/mahmoud","followers_url":"https://api.github.com/users/mahmoud/followers","following_url":"https://api.github.com/users/mahmoud/following{/other_user}","gists_url":"https://api.github.com/users/mahmoud/gists{/gist_id}","starred_url":"https://api.github.com/users/mahmoud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahmoud/subscriptions","organizations_url":"https://api.github.com/users/mahmoud/orgs","repos_url":"https://api.github.com/users/mahmoud/repos","events_url":"https://api.github.com/users/mahmoud/events{/privacy}","received_events_url":"https://api.github.com/users/mahmoud/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2016-06-11T02:59:59Z","updated_at":"2016-06-15T23:15:26Z","closed_at":"2016-06-15T23:15:26Z","body":"Hey Victor! Great library you've got going here (not a surprise; I've been a fan since long before faulthandler was in the stdlib).\r\n\r\nAs I mentioned [on Twitter](https://twitter.com/mhashemi/status/741455010693677056), I think perf would benefit from using a more [robust](https://en.wikipedia.org/wiki/Robust_statistics) set of measures than average + standard deviation. I recommended median and [median absolute deviation](https://en.wikipedia.org/wiki/Median_absolute_deviation). I have a well-rounded Python2/3 compatible implementation in [boltons.statsutils](http://boltons.readthedocs.io/en/latest/statsutils.html). You can lift the whole module, if you'd like, or just reimplement those functions.\r\n\r\nIn addition to making the statistics more robust, this also gets rid of the pesky problem of whether to use [Bessel's correction](https://en.wikipedia.org/wiki/Bessel's_correction). The Python 3 statistics module is rife with it, and in this domain it raises more questions than it answers.\r\n\r\nI've written a bit about statistics for exactly cases like these, so I'm obligated to link: [Statistics for Software](https://www.paypal-engineering.com/2016/04/11/statistics-for-software/). Let me know if that helps and/or if I can help clarify further."}}
{"actor":{"display_login":"haypo"}}