Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/simplestatistics/index.js>binomialDistribution

simple statistics for node & browser javascript
Go to Latest
function binomialDistribution
import { binomialDistribution } from "https://deno.land/x/simplestatistics@v7.7.6/index.js";

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.

Parameters

trials

number of trials to simulate

probability