summaryrefslogtreecommitdiffstats
path: root/Doc/library/statistics.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/statistics.rst')
-rw-r--r--Doc/library/statistics.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst
index 026f4aa..38a499a 100644
--- a/Doc/library/statistics.rst
+++ b/Doc/library/statistics.rst
@@ -696,6 +696,16 @@ of applications in statistics.
Set *n* to 100 for percentiles which gives the 99 cuts points that
separate the normal distribution into 100 equal sized groups.
+ .. method:: NormalDist.zscore(x)
+
+ Compute the
+ `Standard Score <https://www.statisticshowto.com/probability-and-statistics/z-score/>`_
+ describing *x* in terms of the number of standard deviations
+ above or below the mean of the normal distribution:
+ ``(x - mean) / stdev``.
+
+ .. versionadded:: 3.9
+
Instances of :class:`NormalDist` support addition, subtraction,
multiplication and division by a constant. These operations
are used for translation and scaling. For example: