https://jython.pythonprogramminghelp.com/3-reasons-to-chi-square-goodness-of-fit-tests/