Skip to content

Commit bdc8d4e

Browse files
authored
DOC: Clarify use of standard deviation in mtrand.pyx (numpy#27556)
* DOC: Clarifify use of standard deviation in mtrand.pyx Previous texts mistakenly referred to the value as variance. Updated them to correctly reflect that standard deviation is being used. Removes confusion. * DOC: Clarify use of standard deviation in _generator.pyx
1 parent 5e0b16e commit bdc8d4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

numpy/random/_generator.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ cdef class Generator:
12581258
>>> rng = np.random.default_rng()
12591259
>>> s = rng.normal(mu, sigma, 1000)
12601260
1261-
Verify the mean and the variance:
1261+
Verify the mean and the standard deviation:
12621262
12631263
>>> abs(mu - np.mean(s))
12641264
0.0 # may vary

numpy/random/mtrand.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ cdef class RandomState:
15471547
>>> mu, sigma = 0, 0.1 # mean and standard deviation
15481548
>>> s = np.random.normal(mu, sigma, 1000)
15491549
1550-
Verify the mean and the variance:
1550+
Verify the mean and the standard deviation:
15511551
15521552
>>> abs(mu - np.mean(s))
15531553
0.0 # may vary

0 commit comments

Comments
 (0)