binomial-cdf
v4.0.0
Published
Binomial cumulative distribution function
Downloads
133
Readme
binomial-cdf
Binomial cumulative distribution function.
Example
var cdf = require('binomial-cdf');
cdf(52, 100, 0.5);
// => 0.69
Installation
$ npm install binomial-cdf
API
var cdf = require('binomial-cdf');
cdf(k, n, p)
Returns the probability of having at most Number k
successes in Number
n
trials, given that the probability of a success is Number p
.