Skip to content

Bernoulli

A single yes/no outcome with a given probability, such as accept or reject, pass or fail, or rework or not.
Param: p (success probability) in [0, 1].

Category: special. Arrival: no. Delay: no. Support lower bound: 0.0.

Parameters

Parameter Default Hint
p 0.5 success probability, in [0, 1]

Draws

With p=0.3, 10,000 draws from a stream seeded 0:

Mean (formula) Mean of the draws Variance of the draws
0.3 0.301 0.21

Bernoulli: 10,000 draws

Example

In a model file, on any block or section that takes a duration:

{"distribution": "Bernoulli", "dist_params": {"p": 0.3}}

In the Python builder:

nb.Bernoulli(p=0.3)

Used in

Guides: How do I count the defects in a batch?.

See also