I'm trying to check if a set of data has a Poisson distribution and for that I'm trying to implement a chi square test. My input data is an array that counts the amount of events registered in 1 second and I wanted to use the method:
scipy.stats.chisquare(data,expected)
As I understand from chisquare documentation(https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.chisquare.html) I have to give an array "expected" of what frecuencies I expect to get, but I'm not sure how to generate this array.