Bernoulli distribution
How can you describe a coin flip with a single number?
Using a Bernoulli distribution, named after Swiss mathematician Jacques Bernoulli: the variable equals 1 for success with probability p, and 0 for failure with probability 1 − p. A coin flip result follows a Bernoulli distribution with parameter 0.5. This parameter p is also the expected value of the variable, since 0 × (1 − p) + 1 × p = p.