summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-12-21 14:15:39 (GMT)
committerGitHub <noreply@github.com>2021-12-21 14:15:39 (GMT)
commit989d2371c8ff1c41e1b190a7df0a0d0231c2ae65 (patch)
treee6c50aaf60647fd5d4bf267ee1939fc9bee0fec6
parentdc73199a212a44553578eb4952631e5ba9e5f292 (diff)
downloadcpython-989d2371c8ff1c41e1b190a7df0a0d0231c2ae65.zip
cpython-989d2371c8ff1c41e1b190a7df0a0d0231c2ae65.tar.gz
cpython-989d2371c8ff1c41e1b190a7df0a0d0231c2ae65.tar.bz2
Update potentially confusing note for mean. (GH-30174) (GH-30220)
(cherry picked from commit e9a01e231aae19fd1249368e477a60bc033b2646)
-rw-r--r--Doc/library/statistics.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst
index 3c3f9d2..fd48619 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,