bpo-36018: Add documentation link to "random variable" (GH-12114) · python/cpython@9add4b3 (original) (raw)

`@@ -471,9 +471,11 @@ A single exception is defined:

`

471

471

`` :class:NormalDist objects

``

472

472

`===========================

`

473

473

``

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.

`

477

479

``

478

480

`` Normal distributions arise from the `Central Limit Theorem

``

479

481

`` 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.

`

530

532

``

531

533

`` Using a `probability density function (pdf)

``

532

534

`` 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

`

534

536

``` the given value *x*. Mathematically, it is the ratio ``P(x <= X <


`535`

`537`

```  x+dx) / dx``.

536

538

``

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

`

544

546

``

545

547

`` Using a `cumulative distribution function (cdf)

``

546

548

`` 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

`

548

550

``` equal to *x*. Mathematically, it is written P(X <= x).

```

549

551

``

550

552

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

``