Zero-truncated Poisson distribution


In probability theory, the zero-truncated Poisson distribution is a certain discrete probability distribution whose support is the set of positive integers. This distribution is also known as the conditional Poisson distribution or the positive Poisson distribution. It is the conditional probability distribution of a Poisson-distributed random variable, given that the value of the random variable is not zero. Thus it is impossible for a ZTP random variable to be zero. Consider for example the random variable of the number of items in a shopper's basket at a supermarket checkout line. Presumably a shopper does not stand in line with nothing to buy, so this phenomenon may follow a ZTP distribution.
Since the ZTP is a truncated distribution with the truncation stipulated as, one can derive the probability mass function from a standard Poisson distribution ) as follows:
The mean is
and the variance is

Parameter estimation

The maximum-likelihood estimator for the parameter is obtained by solving
where is the sample mean.

Generated Zero-truncated Poisson-distributed random variables

Random variables sampled from the Zero-truncated Poisson distribution may be achieved using algorithms derived from Poisson distributing sampling algorithms.
init:
Let k ← 1, t ← e−λ / * λ, s ← t.
Generate uniform random number u in .
while s < u do:
k ← k + 1.
t ← t * λ / k.
s ← s + t.
return k.