Bernoulli variable

Constructs a variable following a Bernoulli distribution.

Syntax

bernoulli_variable(Real)

Description

Given a real p[0,1], returns a random variable following a Bernoulli distribution with parameter p.

statistics.bernoulli_variable.calc.png