summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2019-03-07 08:54:31 -0800
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-03-07 08:54:31 -0800
commit14bab7abeea195c97f4166740ee1d15471964244 (patch)
tree260ffc8bf218fc7f6dbb008280802e440159bf3a /Doc
parent16e6f7dee7f02bb81aa6b385b982dcdda5b99286 (diff)
downloadcpython-git-14bab7abeea195c97f4166740ee1d15471964244.tar.gz
NormalDist.overlap() only needs one example (GH-12218)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/statistics.rst21
1 files changed, 4 insertions, 17 deletions
diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst
index 157500ed4b..9aa83331ee 100644
--- a/Doc/library/statistics.rst
+++ b/Doc/library/statistics.rst
@@ -553,23 +553,10 @@ of applications in statistics.
Compute the `overlapping coefficient (OVL)
<http://www.iceaaonline.com/ready/wp-content/uploads/2014/06/MM-9-Presentation-Meet-the-Overlapping-Coefficient-A-Measure-for-Elevator-Speeches.pdf>`_
- between two normal distributions.
-
- Measures the agreement between two normal probability distributions.
- Returns a value between 0.0 and 1.0 giving the overlapping area for
- two probability density functions.
-
- In this `example from John M. Linacre
- <https://www.rasch.org/rmt/rmt101r.htm>`_ about 80% of each
- distribution overlaps the other:
-
- .. doctest::
-
- >>> N1 = NormalDist(2.4, 1.6)
- >>> N2 = NormalDist(3.2, 2.0)
- >>> ovl = N1.overlap(N2)
- >>> f'{ovl * 100.0 :.1f}%'
- '80.4%'
+ between two normal distributions, giving a measure of agreement.
+ Returns a value between 0.0 and 1.0 giving `the overlapping area for
+ two probability density functions
+ <https://www.rasch.org/rmt/rmt101r.htm>`_.
Instances of :class:`NormalDist` support addition, subtraction,
multiplication and division by a constant. These operations