Wrote a Blog Post
Wrote about how to apply chi-square test for the case of discrete random variables with an infinite number of values.
Windows Forms [C#]

https://blog.pableins.com/infinite-values