NumPy RandomLesson 22Free preview
Binomial Distribution
This lesson is part of NumPy · All levels
Summary
A binomial distribution describes the results of a number of independent experiments that have only two possibilities: successful or failed. A classic example is the correct number of numbers when tossing a coin or dice a few times.
Key points
- Binomial(n, p, size): n experiments, p chances of success, size of sample number.
- Each experiment is independent and only has two results (Bernoulli).
- The mean distribution is n x p, the variance is n x p x (1 - p).
- The bigger the n, the closer the distribution form is to normal.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.