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