[Python-ideas] NAN handling in the statistics module

David Mertz mertz at gnosis.cx
Mon Jan 7 12:28:30 EST 2019

On Mon, Jan 7, 2019 at 12:19 PM David Mertz <mertz at gnosis.cx> wrote:

> Under a partial ordering, a median may not be unique.  Even under a total
> ordering this is true if some subset of elements form an equivalence
> class.  But under partial ordering, the non-uniqueness can get much weirder.

I'm sure with more thought, weirder things can be thought of.  But just as
a quick example, it would be easy to write classes such that:

    a < b < c < a

In such a case (or expand for an odd number of distinct things), it would
be reasonable to call ANY element of [a, b, c] a median. That's funny, but
it is not imprecise.

Keeping medicines from the bloodstreams of the sick; food
from the bellies of the hungry; books from the hands of the
uneducated; technology from the underdeveloped; and putting
advocates of freedom in prisons.  Intellectual property is
to the 21st century what the slave trade was to the 16th.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190107/9aa5b609/attachment.html>

More information about the Python-ideas mailing list