binomial-pmf

4.0.0 • Public • Published

binomial-pmf

Binomial probability mass function.

Example

const pmf = require('binomial-pmf');

pmf(2, 3, 0.7);
// => 0.441

Installation

$ npm install binomial-pmf

API

const pmf = require('binomial-pmf');

pmf(k, n, p)

Returns the probability of getting exactly Number k successes in Number n trials given that the probability of a success is Number p.

Readme

Keywords

Package Sidebar

Install

npm i binomial-pmf

Weekly Downloads

7

Version

4.0.0

License

MIT

Unpacked Size

2.8 kB

Total Files

4

Last publish

Collaborators

  • kenan