Skip to content

Random arrivals

Events that arrive at a steady rate with no memory give counts that follow the Poisson law and gaps that follow the exponential law.

Helps to know firstContinuous random variables

Helps to know first
This topic

First, the picture

A Geiger counter clicks at random, twice a second on average. Guess what random looks like, then watch ten minutes of clicks.

Random arrivals

A Geiger counter's clicks for 600 seconds, made by a computer (seed 5100).

A Geiger counter clicks at random, 2 times a second on average. The first minute plays ten times faster than life.

clicks
0
window counts: mean
–
variance
–

Predict first. Twenty clicks at random times in a minute: which pattern is real random arrivals?

0.00 / 12.60 s
Describe this picture

Three panels. On top, a timeline of the first minute, where each click of a Geiger counter is a tick, at a rate of 2 per second (seed 5100). Below it, two histograms: the counts of clicks in the 200 separate 3-second windows of 600 seconds, as shares of the windows, over dots at the exact Poisson probabilities with mean 6; and the gaps between clicks, as a density, over the exact curve 2e−2t2e^{-2t}. Before the clip three drawings of 20 ticks on a line ask which is real random arrivals: “evenly spaced”, “clumps and gaps” or “two big bunches”; a tap picks one and starts the clip. In the clip the first minute plays tick by tick, ten times faster than life (127 clicks), and then the other nine minutes pour in. At the end your guess is drawn as dotted ticks under the timeline. Readouts give the number of clicks, 1270 by the end, and the mean and variance of the window counts, 6.3500 and 6.0175. There is no sound. After the clip a slider, “Clicks per second”, sets the rate from 0.5 to 5 in steps of 0.5; the window stays 3 seconds, and both histograms and their exact curves move.

What random looks like

Before the clip you picked a drawing. Real random arrivals are the one with clumps and gaps. On the timeline the ticks bunch together in places and leave long silences in others, though the counter never changed.

Most people expect random events to be spread out evenly, so a cluster or a long gap looks like a sign that something changed. It is not. Evenly spaced ticks would be the surprising picture: they would mean each tick knows where the last one was.

The clicks here have two properties:

  • A steady rate. On average λ\lambda clicks arrive per second, here λ=2\lambda=2, the same at every moment.
  • No memory. What happens in one stretch of time tells nothing about any other stretch that does not overlap it.

Events with these two properties form a Poisson process. The letter λ\lambda is a rate here, as in Continuous random variables; in the linear algebra course it is an eigenvalue.

Counts in a window

How many clicks land in a window of tt seconds? Cut the window into nn tiny slices, so thin that two clicks never share one. Each slice holds a click with chance λt/n\lambda t/n, independently of the others. The count is then binomial, Bin(n,λt/n)\mathrm{Bin}(n,\lambda t/n), as in Discrete random variables.

Now let the slices get thinner and thinner. The number of tries grows and the chance per try shrinks, while their product stays λt\lambda t. The binomial probabilities settle on the Poisson law with mean λt\lambda t:

Pr⁡{X=k}=e−λt (λt)kk!,k=0,1,2,…\Pr\{X=k\}=e^{-\lambda t}\,\frac{(\lambda t)^k}{k!},\qquad k=0,1,2,\dots

I write X∼Poisson(λt)X\sim\mathrm{Poisson}(\lambda t). Its mean and its variance are both λt\lambda t. In the picture the windows are 3 seconds long, so the counts have mean 6 and variance 6.

Over the whole 600 seconds the expected number of clicks is 1200, give or take about 1200=34.6\sqrt{1200}=34.6. The clip’s run gave 1270, about two of those give-or-takes above, and its 200 windows held 6.35 clicks on average with a variance of 6.02: mean and variance nearly equal, as they are for every Poisson count.

Gaps: the exponential law

How long until the next click? A gap longer than tt means no click in a window of length tt, and the Poisson law gives that chance directly:

Pr⁡{T>t}=Pr⁡{X=0}=e−λt.\Pr\{T>t\}=\Pr\{X=0\}=e^{-\lambda t}.

So the gap TT follows the exponential law Exp(λ)\mathrm{Exp}(\lambda), with density λe−λt\lambda e^{-\lambda t} and mean 1/λ1/\lambda: half a second here. That is the curve under the second histogram. Short gaps are the most common, which is why ticks bunch.

The exponential law has no memory, as Continuous random variables showed for light bulbs:

Pr⁡{T>s+t∣T>s}=Pr⁡{T>t}.\Pr\{T>s+t\mid T>s\}=\Pr\{T>t\}.

Watch out

After a long silence, a click is not “due”. The counter has no memory: the wait from now on has the same law as it had at the start. This is the gambler’s fallacy of Independence, in continuous time.

Merging and splitting streams

Two independent Poisson streams, at rates λ1\lambda_1 and λ2\lambda_2, merge into one Poisson stream at rate λ1+λ2\lambda_1+\lambda_2: each tiny slice now has two independent chances of a click.

Keep each click of a stream with chance pp, independently, and throw the rest away. The kept clicks form a Poisson stream at rate pλp\lambda, and, less obviously, the kept and the dropped clicks are independent of each other. This is called thinning.

The waiting-time paradox

Buses arrive as a Poisson process, on average every 10 minutes. You walk to the stop at a random moment. How long do you wait, on average?

By the missing memory, your wait from the moment you arrive is exponential with the same mean, 10 minutes, not 5. That seems to clash with gaps of 10 minutes on average. The answer is that you are more likely to arrive during a long gap than a short one, because long gaps cover more of the clock. The gap you land in has mean 20 minutes, twice the typical gap, and you wait for the part of it still to come.

If the buses ran exactly every 10 minutes, your average wait would be 5. Random arrivals double it.

Worked example

1. Clicks in a window. At 2 per second, a 3-second window has mean count 6.

Pr⁡{X=0}=e−6=0.00248,Pr⁡{X=6}=e−6 666!=0.1606,Pr⁡{X≥10}=1−Pr⁡{X≤9}=1−0.9161=0.0839.\begin{aligned} \Pr\{X=0\}&=e^{-6}=0.00248,\\ \Pr\{X=6\}&=e^{-6}\,\frac{6^6}{6!}=0.1606,\\ \Pr\{X\ge10\}&=1-\Pr\{X\le9\}=1-0.9161=0.0839. \end{aligned}

Even the most likely counts, 5 and 6, which are equally likely, each turn up in only about one window in six.

2. Gaps. A gap longer than 1 second has chance e−2=0.1353e^{-2}=0.1353. Half the gaps are shorter than ln⁡2/2=0.3466\ln2/2=0.3466 s, though the mean gap is 0.5 s. After a second of silence, the chance of another full second of silence is still 0.13530.1353.

3. Many rare chances. A thousand independent tries, each succeeding with chance 0.003, give a binomial count; the Poisson law with mean 3 is close to it:

SuccessesBinomialPoisson
00.049560.04979
10.149140.14936
20.224150.22404
30.224380.22404

4. Merging and thinning. Streams of 2 and 3 clicks per second merge into one of 5 per second. Keeping each click of the merged stream with chance 0.4 leaves 2 per second. Keeping each click of the 2-per-second stream with chance 0.4 leaves 0.8 per second.

5. Buses. With Poisson buses every 10 minutes on average, a rider arriving at random waits 10 minutes on average; with buses every 6 minutes, 6. With evenly spaced buses every 10 minutes, the average wait is 5.

6. Counting photons. A camera pixel collects on average 10 000 photons in an exposure. The count is Poisson, so it wobbles with standard deviation 10 000=100\sqrt{10\,000}=100. The ratio of signal to this noise is 10 000/100=10010\,000/100=100, or 40 dB. Four times the light only doubles it: the noise grows as the square root.

Try it yourself. At 2 per second, the mean count in 5 seconds is 10. The chance of no click in 1 second is e−2=0.135e^{-2}=0.135. After 10 seconds without a click, the rate is still 2 per second.

Where you’ll meet this

Traffic. Calls reaching an exchange, requests reaching a web server and packets reaching a router are modelled as Poisson streams. Queues are built from them, and the model predicts how long requests wait.

Radioactivity and light. Decays of a radioactive sample, and photons reaching a sensor, are Poisson. The photon count’s square-root wobble is shot noise, which limits every camera in dim light.

Failures. A part that fails at random, not by wearing out, has exponential lifetimes, and its failures in a fleet form a Poisson stream.

In signal processing · percentiles and queues

A real-time system that receives Poisson requests must size its buffers for a high percentile of the delay, not the mean. Real-time processing in the signal processing course shows how waiting grows sharply as the load nears 100 %.

Reference card

QuantityFormulaNotes
Poisson processsteady rate λ\lambda, no memoryclumps and gaps
Count in time ttPr⁡{X=k}=e−λt(λt)k/k!\Pr\{X=k\}=e^{-\lambda t}(\lambda t)^k/k!mean = variance = λt\lambda t
GapPr⁡{T>t}=e−λt\Pr\{T>t\}=e^{-\lambda t}Exp(λ)\mathrm{Exp}(\lambda), mean 1/λ1/\lambda
No memoryPr⁡{T>s+t∣T>s}=Pr⁡{T>t}\Pr\{T>s+t\mid T>s\}=\Pr\{T>t\}nothing is “due”
Binomial limitBin(n,λt/n)→Poisson(λt)\mathrm{Bin}(n,\lambda t/n)\to\mathrm{Poisson}(\lambda t)many rare chances
Mergerates addindependent streams
Thin with chance pprate pλp\lambdakept and dropped are independent
Waiting-time paradoxrandom arrival waits 1/λ1/\lambdaevenly spaced: half that

Keep reading with a free account.

By creating an account you accept the terms of use.

Sign in

Already have an account? Use the service you signed up with.

Or keep reading: get new lessons by email

Are you 13 or over?

Accounts and email updates are for people aged 13 or over. We keep only your answer, never your date of birth.

End of the lesson

Where to go next.

Phasorium

Account

Sign inKeep your place on any device

Subjects

Site

Look