Data Science, Statistics, Probability, Data Analytics, Data Science Interview.
distribution where the Probability of exactly k successes out of n, is given by where and p is the probability of success in each outcome and (1-p) the probability of failure. In our case, we have n = 5, p = ½ and k = 2. Substituting directly, we get Let us use Python to calculate these results.