9 ms·
If you want to monte carlo it, https://gist.github.com/patio11/546c64c927c749c69964b18527fabe30 https://gist.github.com/patio11/546c64c927c749c69964b18527fa...
by patio11 7y ago
If you want to monte carlo it, https://gist.github.com/patio11/546c64c927c749c69964b18527fabe30 https://gist.github.com/patio11/546c64c927c749c69964b18527fa... ; feel free to adjust the constants upwards and/or do a chi squared test after doing so.
It didn't sound plausible to me (because I misunderstood what the algorithm was; yay perl), hence quickly testing it, but it seems to work, and after appreciating what the algorithm actually is (see sibling replies), it not only works but it _should_ work. (There is a CS versus engineering joke in here, somewhere.)