Skip to content

Commit

Permalink
Merge pull request numpy#27734 from AdrienCorenflos/main
Browse files Browse the repository at this point in the history
Fix documentation for the chi-square distribution
  • Loading branch information
rkern authored Nov 11, 2024
2 parents 20d051a + b9aaad5 commit fd4f467
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion numpy/random/_generator.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,7 @@ cdef class Generator:
The variable obtained by summing the squares of `df` independent,
standard normally distributed random variables:

.. math:: Q = \\sum_{i=0}^{\\mathtt{df}} X^2_i
.. math:: Q = \\sum_{i=1}^{\\mathtt{df}} X^2_i

is chi-square distributed, denoted

Expand Down
2 changes: 1 addition & 1 deletion numpy/random/mtrand.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1969,7 +1969,7 @@ cdef class RandomState:
The variable obtained by summing the squares of `df` independent,
standard normally distributed random variables:
.. math:: Q = \\sum_{i=0}^{\\mathtt{df}} X^2_i
.. math:: Q = \\sum_{i=1}^{\\mathtt{df}} X^2_i
is chi-square distributed, denoted
Expand Down

0 comments on commit fd4f467

Please sign in to comment.