Probability Distributions
Binomial Probability Function
Suppose we perform Bernoulli trials, where the probability of success in each trial is . We can define the random variable as the number of successes obtained in the trials. The sample space of this experiment will consist of all sequences of length of successes and failures, and therefore its cardinality will be . The values that can take are , and it is said that follows a binomial distribution with parameters and . This is written as , and its probability function is:
where is the binomial coefficient.
This animation consists of a pyramid with rows, each containing obstacles. These obstacles cause the ball, when it hits them, to move to the left (failure) with a probability of or to the right (success) with a probability of .
In this way, the values of represent the number of successes obtained, that is, the number of times the ball moved to the right.
(You might need to reload the page for each animation)
0.5
10