Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9add4b3

Browse files
rhettingermiss-islington
authored andcommitted
bpo-36018: Add documentation link to "random variable" (GH-12114)
https://bugs.python.org/issue36018
1 parent f684d83 commit 9add4b3

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Doc/library/statistics.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,11 @@ A single exception is defined:
471471
:class:`NormalDist` objects
472472
===========================
473473

474-
A :class:`NormalDist` is a a composite class that treats the mean and standard
475-
deviation of data measurements as a single entity. It is a tool for creating
476-
and manipulating normal distributions of a random variable.
474+
:class:`NormalDist` is a tool for creating and manipulating normal
475+
distributions of a `random variable
476+
<http://www.stat.yale.edu/Courses/1997-98/101/ranvar.htm>`_. It is a
477+
composite class that treats the mean and standard deviation of data
478+
measurements as a single entity.
477479

478480
Normal distributions arise from the `Central Limit Theorem
479481
<https://en.wikipedia.org/wiki/Central_limit_theorem>`_ and have a wide range
@@ -530,7 +532,7 @@ of applications in statistics, including simulations and hypothesis testing.
530532

531533
Using a `probability density function (pdf)
532534
<https://en.wikipedia.org/wiki/Probability_density_function>`_,
533-
compute the relative likelihood that a random sample *X* will be near
535+
compute the relative likelihood that a random variable *X* will be near
534536
the given value *x*. Mathematically, it is the ratio ``P(x <= X <
535537
x+dx) / dx``.
536538

@@ -544,7 +546,7 @@ of applications in statistics, including simulations and hypothesis testing.
544546

545547
Using a `cumulative distribution function (cdf)
546548
<https://en.wikipedia.org/wiki/Cumulative_distribution_function>`_,
547-
compute the probability that a random sample *X* will be less than or
549+
compute the probability that a random variable *X* will be less than or
548550
equal to *x*. Mathematically, it is written ``P(X <= x)``.
549551

550552
Instances of :class:`NormalDist` support addition, subtraction,

0 commit comments

Comments
 (0)