Let X be the number of correct answers. X has the binomial distribution with n = 20 trials and success probability p = 0.2
In general, if X has the binomial distribution with n trials and a success probability of p then
P[X = x] = n!/(x!(n-x)!) * p^x * (1-p)^(n-x)
for values of x = 0, 1, 2, ..., n
P[X = x] = 0 for any other value of x.
The probability mass function is derived by looking at the number of combination of x objects chosen from n objects and then a total of x success and n - x failures.
Or, in other words, the binomial is the sum of n independent and identically distributed Bernoulli trials.
X ~ Binomial( n = 20 , p = 0.2 )
the mean of the binomial distribution is n * p = 4
the variance of the binomial distribution is n * p * (1 - p) = 3.2
the standard deviation is the square root of the variance = √ ( n * p * (1 - p)) = 1.788854
The Probability Mass Function, PMF,
f(X) = P(X = x) is:
P( X = 0 ) = 0.01152922 ← answer
P( X = 1 ) = 0.05764608
P( X = 2 ) = 0.1369094
P( X = 3 ) = 0.2053641
P( X = 4 ) = 0.2181994
P( X = 5 ) = 0.1745595
P( X = 6 ) = 0.1090997
P( X = 7 ) = 0.05454985
P( X = 8 ) = 0.02216088
P( X = 9 ) = 0.007386959
P( X = 10 ) = 0.002031414
P( X = 11 ) = 0.0004616849
P( X = 12 ) = 8.656592e-05
P( X = 13 ) = 1.331783e-05
P( X = 14 ) = 1.664729e-06
P( X = 15 ) = 1.664729e-07
P( X = 16 ) = 1.300570e-08
P( X = 17 ) = 7.65041e-10
P( X = 18 ) = 3.187671e-11
P( X = 19 ) = 8.388608e-13
P( X = 20 ) = 1.048576e-14