<P> plot (Y, dgeom (Y, 0.6), type = "h", ylim = c (0, 1), main = "Geometric distribution for p = 0.6", ylab = "P (Y = Y)", xlab = "Y = Number of failures before first success") </P> <P> The geometric distribution, for the number of failures before the first success, is a special case of the negative binomial distribution, for the number of failures before s successes . </P> <P> The Excel function NEGBINOMDIST (number_f, number_s, probability_s) calculates the probability of k = number_f failures before s = number_s successes where p = probability_s is the probability of success on each trial . For the geometric distribution, let number_s = 1 success . </P> <P> For example, </P>

What is the mean and variance of geometric distribution