From 6ba433aaa146e2b8369fe0b60e29e10b641c840d Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 7 Mar 2019 08:11:44 -0800 Subject: [PATCH 1/2] Only need one example for overlap() --- Doc/library/statistics.rst | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst index 157500ed4b4a10..c247526343070b 100644 --- a/Doc/library/statistics.rst +++ b/Doc/library/statistics.rst @@ -556,20 +556,9 @@ of applications in statistics. 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 - `_ 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%' + Returns a value between 0.0 and 1.0 giving `the overlapping area for + two probability density functions + `_. Instances of :class:`NormalDist` support addition, subtraction, multiplication and division by a constant. These operations From d0a77060383224ca15b7e86054ce2f46b50c282b Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 7 Mar 2019 08:14:23 -0800 Subject: [PATCH 2/2] Tighten-up wording. --- Doc/library/statistics.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst index c247526343070b..9aa83331ee0eb4 100644 --- a/Doc/library/statistics.rst +++ b/Doc/library/statistics.rst @@ -553,9 +553,7 @@ of applications in statistics. Compute the `overlapping coefficient (OVL) `_ - between two normal distributions. - - Measures the agreement between two normal probability distributions. + 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 `_. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy