Skip to content

Commit fd4f467

Browse files
authored
Merge pull request numpy#27734 from AdrienCorenflos/main
Fix documentation for the chi-square distribution
2 parents 20d051a + b9aaad5 commit fd4f467

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
@@ -1676,7 +1676,7 @@ cdef class Generator:
16761676
The variable obtained by summing the squares of `df` independent,
16771677
standard normally distributed random variables:
16781678
1679-
.. math:: Q = \\sum_{i=0}^{\\mathtt{df}} X^2_i
1679+
.. math:: Q = \\sum_{i=1}^{\\mathtt{df}} X^2_i
16801680
16811681
is chi-square distributed, denoted
16821682

numpy/random/mtrand.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1969,7 +1969,7 @@ cdef class RandomState:
19691969
The variable obtained by summing the squares of `df` independent,
19701970
standard normally distributed random variables:
19711971
1972-
.. math:: Q = \\sum_{i=0}^{\\mathtt{df}} X^2_i
1972+
.. math:: Q = \\sum_{i=1}^{\\mathtt{df}} X^2_i
19731973
19741974
is chi-square distributed, denoted
19751975

0 commit comments

Comments
 (0)