chickadee » statistics » binomial-cumulative-probability

Identifier search
binomial-cumulative-probability n k pprocedure

returns the probability that less than k positive outcomes occur for a binomial distribution B(n, p).

```> (do-ec (: i 0 11)
(format #t "i = ~d P = ~f~&" i (binomial-cumulative-probability 10 i 0.5)))
i = 0 P = 0.0
i = 1 P = 0.0009765625
i = 2 P = 0.0107421875
i = 3 P = 0.0546875
i = 4 P = 0.171875
i = 5 P = 0.376953125
i = 6 P = 0.623046875
i = 7 P = 0.828125
i = 8 P = 0.9453125
i = 9 P = 0.9892578125
i = 10 P = 0.9990234375```