Description
A random variable X
possesses Bernoulli distribution with parameters a,b,p,
where a < b and 0 < p < 1,
if it takes only values a è b, and
P(X = a) = 1 - p, P(X = b) = p.
Denote this variable by Ba,b,p, and
Bp - standard Bernoulli variable with parameters
a = 0, b = 1.
The following picture presents graphs of the
probability function
(bound to the left axis)
and CDF
(bound to the right axis) for B 0,2,0.3.
Characteristics
The next table contains formulae for calculation of characteristics
of Bernoulli distribution
B a,b,p.
Simulation
To get values of a random variable
Ba,b,p
one can use the following method.
- Get U with
uniform distribution
on [0,1].
- If U < p, then set Ba,b,p = b,
else set Ba,b,p = a.
Simulation of uniform distribution on [0,1] is described
here.
Sign guest book     
View guest book
|