Hypergeometric distribution
Bengt Richter
bokr at oz.net
Mon Jan 2 16:26:39 EST 2006
On 2 Jan 2006 03:35:33 -0800, "Raven" <balckraven at gmail.com> wrote:
[...]
>
>The problem with long integers is that to calculate the hypergeometric
>I need to do float division and multiplication because integer division
>returns 0. A solution could be to calculate log(Long_Factorial_Integer)
ISTM you wouldn't get zero if you scaled by 10**significant_digits (however many
you require) before dividing. E.g., expected hits per trillion (or septillion or whatever)
expresses probability too. Perhaps that could work in your calculation?
Regards,
Bengt Richter
More information about the Python-list
mailing list