statistics-0.10.5.2: A library of statistical types, data, and functions

Portabilityportable
Stabilityexperimental
Maintainerbos@serpentine.com
Safe HaskellNone

Statistics.Distribution.Geometric

Contents

Description

The Geometric distribution. There are two variants of distribution. First is the probability distribution of the number of Bernoulli trials needed to get one success, supported on the set [1,2..] (GeometricDistribution). Sometimes it's referred to as the shifted geometric distribution to distinguish from another one.

Second variant is probability distribution of the number of failures before first success, defined over the set [0,1..] (GeometricDistribution0).

Synopsis

Documentation

Constructors

geometricSource

Arguments

:: Double

Success rate

-> GeometricDistribution 

Create geometric distribution.

geometric0Source

Arguments

:: Double

Success rate

-> GeometricDistribution0 

Create geometric distribution.

Accessors