LogisticBetaDistribution

Documentation for the Logistic-Beta Distribution also known as Type IV generalized logistic distribution or the Fisher Z-distribution.

LogisticBetaDistribution.LogisticBetaType
LogisticBeta(α, β)

The Logistic-Beta distribution, also known Generalized Logistic distribution of Type IV.

\[f(x) = \frac{1}{\mathrm{B}(\alpha,\beta)} \frac{e^{-\beta x}}{(1 + e^{-x})^{(\alpha+\beta)}}, \quad -\infty < x < \infty\]

The distribution is defined by:

If Y ∼ Beta(α, β), then X = log(Y/(1-Y)) ∼ LogisticBeta(α, β).

The general LogisticBeta(α, β, μ, σ) is obtained by the location-scale construction:

LogisticBeta(α, β, μ, σ) = μ + σ*LogisticBeta(α, β)

d = LogisticBeta(1/2, 1/2)   # LogisticBeta distribution with shape parameters α and β

params(d)          # Get the parameters, i.e. (α and β)
pdf(d, 0.5)        # Probability density function at x = 0.5
mean(d)            # Mean 

External links

Examples

julia> d = LogisticBeta(1/2, 1/2)
julia> rand(d, 4)'
1×4 adjoint(::Vector{Float64}) with eltype Float64:
 1.00851  0.640297  0.566234  2.16941
julia> pdf(d, 1)
julia> cdf(d, 1)
julia> dist_general = 3 + 2*LogisticBeta(1/2, 1/2)
julia> pdf(dist_general, 1)
source
Base.randMethod
rand(d::LogisticBeta[, n::Integer])

Draw n random numbers from the logistic-beta distribution d.

source
Distributions.cdfMethod
cdf(d::LogisticBeta, x::Real)

Compute the cdf of the logistic-beta distribution d at x.

source
Distributions.logpdfMethod
logpdf(d::LogisticBeta, x::Real)

Compute the logpdf of the logistic-beta distribution d at x.

source
Distributions.pdfMethod
pdf(d::LogisticBeta, x::Real)

Compute the pdf of the logistic-beta distribution d at x.

source
Statistics.meanMethod

mean(d::LogisticBeta)

Compute the mean of the logistic-beta distribution d.

source
Statistics.quantileMethod

quantile(d::LogisticBeta, p::Real)

Compute the p-quantile of the logistic-beta distribution d.

source
Statistics.stdMethod

std(d::LogisticBeta)

Compute the standard deviation of the logistic-beta distribution d.

source
Statistics.varMethod

var(d::LogisticBeta)

Compute the variance of the logistic-beta distribution d.

source
StatsBase.modeMethod

mode(d::LogisticBeta)

Compute the mode of the logistic-beta distribution d.

source