On Thu, 2004-12-30 at 10:39, Ross La Haye wrote:
[snip code listing]
> Is the way I've used the "Combin" class considered correct/appropriate in
> the "binprob" method? If not, what is the standard usage?
I'm afraid I have no idea what that's about, so I'll have to pass on
that.
> Also, I'm
Few questions. I have a module "combin" which contains "Combin" and "Prob"
classes. This is the "Prob" class:
class Prob:
def binprob(self,n,k,p):
fewerthan = sum([Combin().kcomb(n,i)*((p**i)*(1-p)**(n-i)) for i in
range(k)])
exact = Combin().kcomb(n,k)*((p**k)*(1-p)**(n-k))