From: Raymond Hettinger Date: Fri, 1 Mar 2019 05:47:26 +0000 (-0800) Subject: bpo-36018: Add documentation link to "random variable" (GH-12114) X-Git-Tag: v3.8.0a3~212 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9add4b3317629933d88cf206a24b15e922fa8941;p=thirdparty%2FPython%2Fcpython.git bpo-36018: Add documentation link to "random variable" (GH-12114) https://bugs.python.org/issue36018 --- diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst index 8d961b7ca5b1..8f8c0098f84a 100644 --- a/Doc/library/statistics.rst +++ b/Doc/library/statistics.rst @@ -471,9 +471,11 @@ A single exception is defined: :class:`NormalDist` objects =========================== -A :class:`NormalDist` is a a composite class that treats the mean and standard -deviation of data measurements as a single entity. It is a tool for creating -and manipulating normal distributions of a random variable. +:class:`NormalDist` is a tool for creating and manipulating normal +distributions of a `random variable +`_. It is a +composite class that treats the mean and standard deviation of data +measurements as a single entity. Normal distributions arise from the `Central Limit Theorem `_ and have a wide range @@ -530,7 +532,7 @@ of applications in statistics, including simulations and hypothesis testing. Using a `probability density function (pdf) `_, - compute the relative likelihood that a random sample *X* will be near + compute the relative likelihood that a random variable *X* will be near the given value *x*. Mathematically, it is the ratio ``P(x <= X < x+dx) / dx``. @@ -544,7 +546,7 @@ of applications in statistics, including simulations and hypothesis testing. Using a `cumulative distribution function (cdf) `_, - compute the probability that a random sample *X* will be less than or + compute the probability that a random variable *X* will be less than or equal to *x*. Mathematically, it is written ``P(X <= x)``. Instances of :class:`NormalDist` support addition, subtraction,