Discrete distribution · also called Poisson difference distribution

Skellam distribution

The difference of two independent Poisson counts with means and : the goal difference in a football match, the net change in a queue (arrivals minus departures), photon counts minus a background count in imaging. It can be negative, and it is symmetric about 0 when .

Skellam probability calculator

P(X ≤ 2) = 0.592192

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.050.10.15−10−50510P(X = k)mean

CDF

00.250.50.751−10−50510F(x)

mean 2 · variance 6 · sd 2.449

Formulas

Parameters
  • , the mean of the first count
  • , the mean of the count subtracted
Support
PMF
CDF
Mean
Variance
MGF

is the modified Bessel function of the first kind. Variances add even though the counts are subtracted. Applied to football scores, the Skellam assumes the two teams score independently, which is a simplification.

Worked example

A home side scores a Poisson(1.6) number of goals and the visitors, independently, a Poisson(1.1) number. What is the probability of a draw?

A draw is a goal difference of 0: The home side wins with probability . 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.skellam(mu1=4, mu2=2)
X.pmf(1)  # P(X = 1) = 0.1564
X.cdf(1)  # P(X ≤ 1) = 0.4264
X.mean(), X.var()  # 2, 6
X.ppf(0.95)  # 95th percentile
X.rvs(size=10, random_state=0)

rng = np.random.default_rng(0)
rng.poisson(lam=4, size=10) - rng.poisson(lam=2, size=10)

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

← Zero-inflated PoissonHypergeometric →