Consider an experiment where the sample space is  and the
probability of a  is  .
A random variable  with such a pmf is termed a Bernoulli random variable. Examples include:
- 
• 
number of heads on the toss a of biased coin,
 
 
- 
• 
1 if the next patient has cancer, 0 otherwise
 
 
- 
• 
1 if the next person smokes and is over 6 ft tall, 0 otherwise
 
 
- 
• 
1 if the next baby is a boy, 0 otherwise.
 
 
Here outcomes are sometimes called failure and success for  and 
respectively. Note that all of these examples give an indicator function for the event concerned; indicator functions of events are always Bernoulli random variables.
 
For Bernoulli random variables
, 
and  otherwise.
The pmf of a Bernoulli random variable  is
  and  otherwise.
We say .