/ Home / statistics / 03._Probability / 01._Distribution / 01._Discrete / 01._Bernoulli /

  •  [Go Up]
  •  image/
  •  index

01. Bernoulli

A Bernoulli distribution is what you get when you make a test with a boolean result (being True:=1 with a probability of p).

f(x):=(cond ((= x 1) p) (else (- 1 p)))

Or for mathematicians:

f(x):=p^x⋅(1-p)^{1-x},x∈\{0,1\}

Expected Value

⟨X⟩=p

Variance

The variance V is:

V:=p⋅(1-p)

Author: Danny (remove the ".nospam" to send)

Last modification on: Thu, 09 May 2013 .