A Python library for computing the cumulative distribution function (CDF) of a weighted sum of chi-squared random variables. Version 0.1.8 supports Imhof's method, Davies' method, and moment-based approximations. Developed by the PyPA, with monthly or less frequent releases.
pip install momentchi2Verified import paths — ran on the pinned version, not inferred.
Compute the CDF of a weighted sum of chi-squared random variables using Imhof's method. For other methods (e.g., Davies, moment-based), replace imhof with davies or moment_approximation.
Use import momentchi2 and call momentchi2.imhof(...) etc.
Use momentchi2.imhof() instead of momentchi2.davies().
Ensure len(weights) == len(df). If df is a scalar, repeat it to match the number of weights.
Check that len(weights) == len(df) and adjust accordingly.
Run pip install momentchi2 and ensure the correct Python environment is used.
No dependency data recorded yet.