Doing statistics using Python programming - Using Lognormal distribution in Python

Опубликовано: 13 Февраль 2026
на канале: EasyDataScience
195
1

The continuous random variable X has a lognormal distribution if the random
variable Y = ln(X) has a normal distribution with mean μ and standard
deviation σ.

Lognormal distribution functions in Python:
from scipy.stats import lognorm
lognorm.pdf(quantile, a, b) probability density
lognorm.cdf(quantile, a, b) cumulative probabilities
lognorm.ppf(probs, a, b) quantiles
lognorm.rvs(a, b, size = n) random number generation

a : location parameter, or the mean of lognormal variable
b: shape or sigma


#python
#statistics
#lognormal
#normaldistribution
#easydatascience2508