Skip to content

binomialDistribution

binomialDistribution(trials, probability): number[]

Defined in: src/binomial_distribution.js:19

The Binomial Distribution is the discrete probability distribution of the number of successes in a sequence of n independent yes/no experiments, each of which yields success with probability probability. Such a success/failure experiment is also called a Bernoulli experiment or Bernoulli trial; when trials = 1, the Binomial Distribution is a Bernoulli Distribution.

Returns undefined when the distribution cannot be calculated: either argument is outside its domain or is not a number, or when trials is large enough that the table would run past a million cells.

number

number of trials to simulate

number

number[]

output