Fixes failures due to precision errors in `test_chi_squared`.
Fixes failures due to precision errors in `test_chi_squared`.

jwaterfield/echidna,mjmottram/echidna,drjeannewilson/echidna,snoplusuk/echidna,EdLeming/echidna,arushanova/echidna,ashleyrback/echidna