The expression for pdf given here https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chi2.html#scipy.stats.chi2 doesn't seem to match that given in other references: https://en.wikipedia.org/wiki/Chi-squared_distribution or Proakis: Digital Communications, 3rd edition, pg 42