Bernoulli and Binomial Random Variable¶
Bernoulli and Binomial Random Variable¶
Binomial Random Variable \(X\) is defined as the number of successes in an experiment with \(n\) independent trials, where each trial can only have two outcomes, success or failure. Each trial is also known as a Bernoulli random variable or a Bernoulli trial. Let \(X_{i}\) denote the Random Variable corresponding to the individual trials, with probability of success \(p\). Then we have the following
where \(X\) denotes the Binomial random variable.
Mean and Variance¶
First let's calculate the mean and variance for a Bernoulli trial \(X_{i}\)
We know that all \(X_{i}'s\) are independent. Hence, the mean and variance for X become
Moment Generating Functions¶
Bernoulli Trial¶
Binomial Variable¶
A binomial variable is a sum of \(n\) Bernoulli trials
Sum of Binomial Random Variables¶
Suppose we have \(k\) independent variables \(X_{i} \sim binmomial(n_{i},p)\), then their sum also has a binomial distribution
which follows from the fact that the sum of the random variables represents an experiment with \(n_{1} + \cdots + n_{k}\) trials where the probability of success of any trial still remains the same at \(p\). The same can also be derived from the moment generating function.