LogisticDistribution
class LogisticDistribution(val mu: Double = 0.0, val scale: Double = 1.0) : ContinuousDistribution(source)
The logistic distribution, defined by its location mu and scale parameter.
The logistic distribution is a symmetric, bell-shaped continuous distribution similar to the normal distribution but with heavier tails. It is widely used in logistic regression, modeling growth curves, and as the distribution of the log-odds in binary classification. Its CDF is the sigmoid function.
Example:
val dist = LogisticDistribution(mu = 0.0, scale = 1.0)
dist.pdf(0.0) // 0.25 (peak density at the mean)
dist.cdf(0.0) // 0.5
dist.quantile(0.75) // 1.0986... (log-odds)Content copied to clipboard