Function Reference: geopdf

statistics: y = geopdf (x, ps)

Geometric probability density function (PDF).

For each element of x, compute the probability density function (PDF) at x of the geometric distribution with parameter ps. The size of y is the common size of x and ps. A scalar input functions as a constant matrix of the same size as the other inputs.

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

See also: geocdf, geoinv, geornd, geostat

Source Code: geopdf