In probability and statistics, a **Bernoulli process** or a **Bernoulli experiment**
is a discrete-time stochastic process consisting of
finite or infinite sequence of independent random variables
`X`_{1}, `X`_{2}, `X`_{3},..., such that

- For each
`i`, the value of`X`_{i}is either 0 or 1; - For all values of
`i`, the probability that`X`_{i}=1 is the same number`p`.

Random variables associated with the Bernoulli process include

- The number of successes in the first
`n`trials; this has a binomial distribution; - The number of trials needed to get
`r`successes; this has a negative binomial distribution. - The number of trials needed to get one success; this has a geometric distribution, which is a special case of the negative binomial distribution.