Closed
Description
Description
It's just a Gamma(alpha=nu/2, beta=1/2)
. No point in having the extra code:
pymc/pymc/distributions/continuous.py
Lines 2378 to 2434 in ec4407d
class Chisquare:
"""docs"""
def __new__(cls, name, nu, **kwargs):
return Gamma(name, nu/2, 1/2, **kwargs)
@classmethod
def dist(cls, nu, **kwargs):
return Gamma.dist(nu/2, 1/2, **kwargs)
Likewise, the ChiSquareRV
in PyTensor can be removed in favor of a helper that just returns the right gamma: