GammaDistribution
The Gamma distribution with shape and scale .
GammaDistribution(k, theta)an inert distribution object with shape and scale .GammaDistribution(k)scale defaults to . NOT a Wolfram call form — GammaDistribution[alpha] alone errors there (GammaDistribution::argbu, confirmed against wolframscript); this is our own convenience.Typed signatures
| Type | Package | Applies |
|---|---|---|
(real<0..>, real<0..>?) -> distribution | statistics | always |
Details
- , via Gamma. No domain clamp outside .
- via the native two-argument GammaRegularized (not the three-argument generalized form
@enumeratio/analyticadds — this has no dependency on that package), clamped to below . - , , both exact.
- RandomVariate samples via Marsaglia–Tsang (shape ; boosted via a draw scaled by below ) — see RandomVariate for the seeded-PRNG divergence from Wolfram.
Examples
Basic #
, cross-checked against wolframscript's N[CDF[GammaDistribution[2,2],3]] = 0.4421745996289253
InOut
live ↗
InOut
live ↗
InOut
About
| Examples | 6 |
|---|
See also: BetaDistribution, PDF, CDF, RandomVariate