Chi-squared test

TODO:

  • examples on how to minimize chi-squared to find distribution parameters