[Python-checkins] Update potentially confusing note for mean. (GH-30174)

mdickinson webhook-mailer at python.org
Tue Dec 21 04:01:09 EST 2021


https://github.com/python/cpython/commit/e9a01e231aae19fd1249368e477a60bc033b2646
commit: e9a01e231aae19fd1249368e477a60bc033b2646
branch: main
author: Mark Dickinson <mdickinson at enthought.com>
committer: mdickinson <dickinsm at gmail.com>
date: 2021-12-21T09:00:53Z
summary:

Update potentially confusing note for mean. (GH-30174)

files:
M Doc/library/statistics.rst

diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst
index 8638abfb697b8..4cd983bb25468 100644
--- a/Doc/library/statistics.rst
+++ b/Doc/library/statistics.rst
@@ -116,10 +116,11 @@ However, for reading convenience, most of the examples show sorted sequences.
 
    .. note::
 
-      The mean is strongly affected by outliers and is not a robust estimator
-      for central location: the mean is not necessarily a typical example of
-      the data points.  For more robust measures of central location, see
-      :func:`median` and :func:`mode`.
+      The mean is strongly affected by `outliers
+      <https://en.wikipedia.org/wiki/Outlier>`_ and is not necessarily a
+      typical example of the data points. For a more robust, although less
+      efficient, measure of `central tendency
+      <https://en.wikipedia.org/wiki/Central_tendency>`_, see :func:`median`.
 
       The sample mean gives an unbiased estimate of the true population mean,
       so that when taken on average over all the possible samples,



More information about the Python-checkins mailing list