Discrete distribution · also called log-series distribution

Logarithmic distribution

A count of at least 1 whose probabilities fall off like : Fisher's model for the number of individuals of each species caught in a sample (many species seen once, a few seen often), the number of items bought by a customer who buys at all. Adding up a Poisson number of independent logarithmic counts gives a negative binomial, which is how the negative binomial arises as a compound Poisson.

Logarithmic probability calculator

P(X ≤ 1) = 0.654814

At the parameters set by the sliders. The shaded region on the plot is the probability; the dots on the CDF mark F at its ends. For a discrete distribution, < and ≤ differ.

PMF

00.20.40.6510P(X = k)mean

CDF

00.250.50.751510F(x)

mean 1.637 · variance 1.413 · sd 1.189 · mode 1

Formulas

Parameters
  • , the shape: larger , longer tail
Support
PMF
CDF
Mean
Variance
Mode
MGF

The name comes from the series , which is what makes the probabilities add up to 1. SciPy calls it logser.

Worked example

In a sample of moths, the number of individuals per species follows a logarithmic distribution with . What fraction of the species are represented by a single individual?

so nearly 40% of the species seen are singletons, the pattern Fisher found in Williams's light-trap data. answer checked by code

How it relates to others

All the relationships, as a diagram →

In Python

from scipy import stats
import numpy as np

X = stats.logser(p=0.6)
X.pmf(2)  # P(X = 2) = 0.1964
X.cdf(2)  # P(X ≤ 2) = 0.8513
X.mean(), X.var()  # 1.637, 1.413
X.ppf(0.95)  # 95th percentile
X.rvs(size=10, random_state=0)

rng = np.random.default_rng(0)
rng.logseries(p=0.6, size=10)

Choosing between this and its neighbours? Which distribution for count data?

← CategoricalZipf →