Skip to content

geometricDistribution

geometricDistribution(probability): Distribution

Defined in: geometric-distribution.ts:21

The geometric distribution — the number of failures before the first success.

The support therefore starts at 0, not 1. That is the convention under which geometricDistribution(p) and negativeBinomialDistribution(1, p) are the same distribution; libraries counting trials instead give an answer one larger throughout.

Every member has a closed form, quantile included, so none of them iterates.

number

Success probability of one attempt, in (0, 1].

Distribution

The distribution.

When probability is outside (0, 1].