bad formula for chi-squared probability density function
In the following page, the formula for the chi-squared density is incorrect: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chi2.html (See the Wikipedia page at https://en.wikipedia.org/wiki/Chi-squared_distribution#Probability_density_f... for the correct expression). Phillip
It looks correct to me other than the $\gamma$ which should have been $\Gamma$. On Mon, Apr 2, 2018 at 11:12 AM, Phillip Feldman < phillip.m.feldman@gmail.com> wrote:
In the following page, the formula for the chi-squared density is incorrect:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chi2.html (See the Wikipedia page at https://en.wikipedia.org/wiki/ Chi-squared_distribution#Probability_density_function for the correct expression).
Phillip
_______________________________________________ SciPy-Dev mailing list SciPy-Dev@python.org https://mail.python.org/mailman/listinfo/scipy-dev
-- webpage: http://mirca.github.io github: @mirca <http://www.github.com/mirca> twitter: @mircaze <http://www.twitter.com/mircaze>
Looks like the issue with $\gamma$ ---> $\Gamma$ is spread all over due to the rewrite from pseudo-code to TeX. See Evgeni Burovski's comment here https://github.com/scipy/scipy/pull/8563 On Mon, Apr 2, 2018 at 11:53 AM, Zé Vinícius <jvmirca@gmail.com> wrote:
It looks correct to me other than the $\gamma$ which should have been $\Gamma$.
On Mon, Apr 2, 2018 at 11:12 AM, Phillip Feldman < phillip.m.feldman@gmail.com> wrote:
In the following page, the formula for the chi-squared density is incorrect:
https://docs.scipy.org/doc/scipy/reference/generated/scipy. stats.chi2.html (See the Wikipedia page at https://en.wikipedia.org/wiki/ Chi-squared_distribution#Probability_density_function for the correct expression).
Phillip
_______________________________________________ SciPy-Dev mailing list SciPy-Dev@python.org https://mail.python.org/mailman/listinfo/scipy-dev
-- webpage: http://mirca.github.io github: @mirca <http://www.github.com/mirca> twitter: @mircaze <http://www.twitter.com/mircaze>
-- webpage: http://mirca.github.io github: @mirca <http://www.github.com/mirca> twitter: @mircaze <http://www.twitter.com/mircaze>
On Sun, Apr 1, 2018 at 11:12 PM, Phillip Feldman < phillip.m.feldman@gmail.com> wrote:
In the following page, the formula for the chi-squared density is incorrect:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chi2.html (See the Wikipedia page at https://en.wikipedia.org/wiki/ Chi-squared_distribution#Probability_density_function for the correct expression).
Thanks, Phillip, that looks like a typesetting problem. There is an extraneous opening parenthesis before the 2 in the denominator, and that lower-case gamma should be upper-case--it is the Gamma function. Warren Phillip
_______________________________________________ SciPy-Dev mailing list SciPy-Dev@python.org https://mail.python.org/mailman/listinfo/scipy-dev
participants (3)
-
Phillip Feldman
-
Warren Weckesser
-
Zé Vinícius