Enter the probability of success for a single trial, the number of trials, and the number of successes to calculate the binomial and cumulative probabilities.
The binomial distribution is a discrete probability distribution that models the number of successes in a fixed number of independent Bernoulli trials. It's widely used in various fields, including statistics, quality control, and data science.
The probability mass function for the binomial distribution is:
\[ P(X = k) = \binom{n}{k} p^k (1-p)^{n-k} \]
Where:
Let's calculate the probability of getting exactly 3 heads in 5 coin flips (assuming a fair coin):
Steps:
Therefore, the probability of getting exactly 3 heads in 5 flips of a fair coin is 0.3125 or 31.25%.
A visual representation can help understand the binomial distribution. Here's a diagram showing the probabilities for our example:
This diagram illustrates the probabilities for getting 0 to 5 heads in 5 coin flips. The pink bar represents the probability of getting exactly 3 heads, which we calculated in our example.