Skip to content

Extra Discrete Distributions

AdditionalDistributions.BetaNegBinomial Type
julia
BetaNegBinomial(r,α,β)

A Beta Negative Binomial is the compound distribution of the NegativeBinomial distribution where the probability of success p is distributed according to the Beta. It has three parameters: r, the number of successes number of successes until the experiment is stopped and two shape parameters α, β

P(X=k)=B(r+k,α+β)B(r,α)k!Γ(k+β)Γ(β)
julia
BetaNegBinomial()        # equivalent to BetaNegBinomial(1, 1, 1)
BetaNegBinomial(r)       # equivalent to BetaNegBinomial(r, 1, 1)
BetaNegBinomial(r, α)    # equivalent to BetaNegBinomial(r, α, α)

params(d)        # Get the parameters, i.e. (r , α, β)
succprob(d)    # Get the number of successes, i.e. r

External links

source
AdditionalDistributions.Borel Type
julia
Borel(a)

A Borel distribution is a discrete probability distribution often used in branching processes and queueing theory. The probability mass function (PMF) of the Borel distribution is given by:

P(X=k)=eak(ak)k1k!,k{1,2,3,}
julia
Borel()        # equivalent to Borel(0)

params(d)        # Get the parameters, i.e. a

External link:

source
AdditionalDistributions.Conway Type
julia
Conway(λ, ν)

A Conway–Maxwell–Poisson distribution, often used to model overdispersed and underdispersed count data, is defined by the following probability mass function (PMF):

P(X=x)=λx(x!)νZ(λ,ν),x{0,1,2,}

where:

  • Z(λ,ν)=j=0λj(j!)ν is a normalization constant that ensures the sum of probabilities equals 1.
julia
Conway()        # equivalent to Conway(1, 1)
Conway(λ)       # equivalent to Conway(λ, 1)
Conway(λ, ν)    # equivalent to Conway(λ, ν)

params(d)        # Get the parameters, i.e. (λ, ν)

External link:

source
AdditionalDistributions.Delaporte Type
julia
Delaporte(λ,α,β)

A Delaporte distribution is a discrete probability distribution that can be viewed as a compound distribution. It combines a Poisson distribution (with mean λ) and a Gamma distribution (with shape parameters α and β). The probability mass function (PMF) of the Delaporte distribution is given by:

P(X=k)=i=0kΓ(α+i)βiλkieλΓ(α)i!(ki)!,k{0,1,2,}
julia
Delaporte()        # equivalent to Delaporte(1, 1, 1)
Delaporte(λ)       # equivalent to Delaporte(λ, 1, 1)
Delaporte(λ, α)    # equivalent to Delaporte(r, α, α)

params(d)        # Get the parameters, i.e. (λ, α, β)

External link:

source
AdditionalDistributions.FlorySchulz Type
julia
FlorySchulz(a)

A Flory-Schulz distribution, commonly used in polymer chemistry to describe the distribution of chain lengths, is defined by the following probability mass function (PMF):

P(X=k)=a2k(1a)k1,k{1,2,3,}

where:

julia
FlorySchulz()        # equivalent to FlorySchulz(0.5)

params(d)        # Get the parameters, i.e. a

External link:

source
AdditionalDistributions.GaussKuzmin Type
julia
GaussKuzmin()

A Gauss-Kuzmin distribution is a discrete probability distribution that arises as the limiting distribution of the coefficients in the continued fraction expansion of a random variable uniformly distributed on (0, 1). The probability mass function (PMF) of the Gauss-Kuzmin distribution is given by:

P(X=k)=log2(11(1+k)2),k{1,2,3,}

where:

julia
GaussKuzmin()        # equivalent to GaussKuzmin()

params(d)        # Get the parameters, i.e. none

External link:

source
AdditionalDistributions.Logarithmic Type
julia
Logarithmic(a)

A Logarithmic distribution, also known as the log-series distribution, is defined by the following probability mass function (PMF):

P(X=k)=1log(1p)pkk,k{1,2,3,}

where:

julia
Logarithmic()        # equivalent to Logarithmic(0.5)

params(d)        # Get the parameters, i.e. a

External link:

source
AdditionalDistributions.Rademacher Type
julia
Rademacher()

A Rademacher distribution is a discrete probability distribution where a random variate X has a 50% chance of being +1 and a 50% chance of being 1.

P(X=k)={0.5for k=1,0.5for k=+1.
julia
Rademacher()    # Rademacher distribution

External link:

source
AdditionalDistributions.Yule Type
julia
Yule(a)

The Yule distribution is a discrete probability distribution defined by the following probability mass function (PMF):

P(X=k)=aB(k,a+1)

where:

  • B(k,a+1) is a beta function
julia
Yule()        # equivalent to Yule(1)

params(d)        # Get the parameters, i.e. a

External link

source
AdditionalDistributions.Zeta Type
julia
Zeta(s)

The Zeta distribution is a discrete probability distribution defined by the following probability mass function (PMF):

P(X=k)=1ζ(s)1ks

Where ζ is a Riemann Function

julia
Zeta()      # equivalent to Zeta(1)

params(d)   # Get the parameters, i.e. s

External link:

*Zeta Distribution on Wikipedia

source
AdditionalDistributions.ZIB Type
julia
ZIB(n, θ, p)

The Zero-Inflated Binomial (ZIB) distribution is a discrete probability distribution that extends the binomial distribution by incorporating an excess of zero counts. The probability mass function (PMF) is defined as:

P(X=k)={θ+(1θ)(1p)nif k=0,(1θ)(nk)pk(1p)nkif k>0.
julia
ZIB()       # equivalent to ZIB(1, 0.5, 0.5)
ZIB(n)      # equivalent to ZIB(n, 0.5, 0.5)
ZIB(n, θ)   # equivalent to ZIB(n, θ, 0.5)

params(d)   # Get the parameters, i.e. (n, θ, p)
source
AdditionalDistributions.ZINB Type
julia
ZINB(n, θ, p)

The Zero-Inflated Negative Binomial (ZINB) distribution is a discrete probability distribution that combines the negative binomial distribution with an excess of zeros. The probability mass function (PMF) is defined as:

P(X=k)={θ+(1θ)(1p)rif k=0,(1θ)(k+r1k)pr(1p)kif k>0.
julia
ZINB()       # equivalent to ZINB(1, 0.5, 0.5)
ZINB(r)      # equivalent to ZINB(r, 0.5, 0.5)
ZINB(r, θ)   # equivalent to ZINB(r, θ, 0.5)

params(d)   # Get the parameters, i.e. (r, θ, p)
source
AdditionalDistributions.ZIP Type
julia
ZIP(λ, p)

The Zero-Inflated Poisson (ZIP) distribution is a discrete probability distribution that models a scenario where there are more zeros in the data than would be expected from a standard Poisson distribution. It is defined by the following probability mass function (PMF):

P(X=k)={p+(1p)eλif k=0,(1p)λkeλk!if k1.

julia ZIP() # equivalent to ZIP(1, 0.5) ZIP(λ) # equivalent to ZIP(λ, 0.5)

params(d) # Get the parameters, i.e. (λ, p) ```

External link:

*Zero Inflated Poisson (ZIP) distribution on Wikipedia

source
AdditionalDistributions.Zipf Type
julia
Zipf(N, s)

A Zipf distribution ...

P(X=k)=1HN,s1ks

Where HN,s is a generalized harmonic number

julia
Zipf()      # equivalent to BetaNegBinomial(1, 1)
Zipf(N)     # equivalent to BetaNegBinomial(N, 1)

params(d)   # Get the parameters, i.e. (N, s)

External link:

*Zipf distribution on Wikipedia

source

Index