For a binomial distribution with n trials, probability of success p, and probability of failure q, the formulas for mean and variance are:
Mean=np
Variance=npq
We are given:
np=4
npq=2
Step 1: Find the Probabilities p and q
To find q, we divide the variance by the mean:
npnpq=42
q=21
Since the sum of the probabilities of success and failure is always 1 (p+q=1), we can find p:
p=1−q=1−21=21
Step 2: Find the Number of Trials n
Substitute the value of p back into the mean equation:
n⋅(21)=4
n=8
Step 3: Calculate the Probability of 2 Successes
The probability of getting exactly k successes in a binomial distribution is given by the formula:
P(X=k)=(kn)⋅pk⋅qn−k
We need to find the probability for k=2 successes:
P(X=2)=(28)⋅(21)2⋅(21)8−2
P(X=2)=(28)⋅(21)2⋅(21)6
P(X=2)=(28)⋅(21)8
Now evaluate the combination and power terms:
(28)=2×18×7=28
(21)8=2561
Substitute these values back into the equation:
P(X=2)=28⋅2561
P(X=2)=25628
Therefore, the probability of 2 successes is 25628.