: geopdf (x, p)

For each element of x, compute the probability density function (PDF) at x of the geometric distribution with parameter p.

The geometric distribution models the number of failures (x) of a Bernoulli trial with probability p before the first success.

Package: statistics