<div dir="ltr">That's really interesting. I did not know there were so many way to consider quantiles. Maybe we should indeed wait for numpy to take a decision on the matter and go with their default choice so we remain consistent with the ecosystem?</div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-16 5:36 GMT+01:00 Stephen J. Turnbull <span dir="ltr"><<a href="mailto:turnbull.stephen.fw@u.tsukuba.ac.jp" target="_blank">turnbull.stephen.fw@u.tsukuba.ac.jp</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Steven D'Aprano writes:<br>
<br>
> Indeed. I've been considering quantiles and quartiles for a long time,<br>
> and I've found at least ten different definitions for quantiles and<br>
> sixteen for quartiles.<br>
<br>
</span>My take is "don't let the perfect be the enemy of the good."<br>
Quantiles are used a lot for "government work". Pick a definition<br>
that's good enough for that.<br>
<br>
Pick one that is commonly used and has nice invariance properties if<br>
any are applicable (e.g., quartile1(list) == quartile3(reversed(list),<br>
although I'm not even sure that is appropriate!), document it<br>
carefully, and give (some) examples of the edge cases that affect<br>
comparability of the statistics module's computation to alternative<br>
formulae.<br>
<br>
I'd like to see your list written up. To my mind, it would be of<br>
enough general interest that you could probably publish the results of<br>
your research in a political science or maybe psychology journal, or a<br>
statistics journal oriented to practitioners and/or educators[1]. I'm<br>
not suggesting you should do the work involved in actually submitting<br>
unless there's benefit to you in it, I'm just saying I think it's that<br>
interesting.<br>
<br>
Regards,<br>
<br>
Steve<br>
<br>
<br>
Footnotes:<br>
[1] I'd find it useful in talking to my students about trusting<br>
computers, for one thing.<br>
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/<wbr>codeofconduct/</a><br>
</div></div></blockquote></div><br></div>