Bernoulli and binomial random variables are used to model success/failure experiments. A Bernoulli variable represents a single trial with outcomes success (1) and failure (0). A binomial variable counts the number of successes in n independent Bernoulli trials. The probability of x successes in n trials is given by the binomial distribution. Its mean and variance can be derived. The moment generating function of the binomial distribution helps compute moments like variance.