Relative Content

Tag Archive for pythonpandasmleprobability-distribution

how to run a chi-square goodness of fit test on fitting discrete probability distributions in Python

I am trying to test the fit of several probability distributions on my data and perform a Maximum Likelihood estimation and KS test on the fit of each probability distribution to my data. My code works for continuous probability distributions but not for discrete (because they do not have a .fit object. To fix the discrete distributions I am attempting to use a chi-square test but I cannot get it to work.