Click or drag to resize

Bernoulli

Bernoulli distribution is a discrete probability distribution, which takes value 1 with success probability p and value 0 with failure probability q = 1 − p.

Bernoulli class inherits from the Binomial class.

This topic contains the following sections:

Constructor

Constructor

Description

Performance

set success probability

Creates new instance of Bernoulli with user specified success probability.

methodBernoulli(Double)

Methods

Method

Description

Performance

pmf

Static probability mass function.

DBernoulli Pmf

StaticPmf(Int32, Double)

cdf

Static cumulative distribution function.

DBernoulli Cdf

StaticCdf(Int32, Double)

inverse cdf

Inverse cumulative distribution function. Is useful for quantile calculation. Function will return value of random variable such that likelihood for this random variable to occur less than or equal to returned value equal to specified pvalue parameter.

StaticInverseCdf(Double, Double)

See also inherited methods and properties in the description of parent Binomial class.