GeometricDistribution
The Geometric distribution: the number of failures before the first success, with success probability .
GeometricDistribution(p)an inert distribution object — carries , unevaluated. PDF, CDF, Mean, Variance and RandomVariate all read it.Typed signatures
| Type | Package | Applies |
|---|---|---|
(real<0..1>) -> distribution | statistics | always |
Details
- Wolfram's own convention: support is the nonnegative integers (failures before the first success), not .
- — no support check outside the nonnegative integers (a documented divergence, same policy as unclamped PDFs elsewhere in this package).
- , clamped to below .
- , , both exact.
- RandomVariate samples via inverse transform: .
Examples
About
| Examples | 5 |
|---|---|
| Checked against | Wolfram Language 1 agree |
See also: BernoulliDistribution, NegativeBinomialDistribution, PDF, CDF, RandomVariate