A1113 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A11 · Lesson 13 · The Poisson process

Random arrivals in time, the gaps between them, and how streams combine

Cosmic rays flip bits in a memory chip at random moments. Packets reach a router, photons reach a detector, electrons cross a diode's junction, calls reach a switch. None of these arrive on a schedule, but each has a steady average rate, and each arrival is unaffected by the others. Lesson 12 counted such events in a fixed window. This lesson follows them in time: the Poisson process says how many arrive in any interval, how long you wait for the next one, and what happens when streams merge or split.

  • The curve is the probability density of the time until the kth arrival of a Poisson process at rate λ per second. For k=1 it's the exponential gap; each further arrival adds another independent gap.
  • As k grows, the wait bunches up around its mean, k/λ, with a spread of only k/λ: many random gaps add up to something fairly predictable.

Predict

A memory chip suffers 2 bit upsets a day on average, at random. What's the chance of a 12-hour stretch with none?

Name it

The Poisson process

Arrivals at average rate λ per second form a Poisson process when arrivals in non-overlapping intervals are independent and, in a short interval Δt, one arrival happens with probability λΔt and two almost never. Then:

  • The count in any interval of length t is Poisson with mean λt:
P(N=k)=(λt)ke−λtk!
  • The gaps between arrivals are exponential with mean 1/λ: P(gap>t)=e−λt.
  • No memory: having waited s seconds already, the remaining wait is still exponential with mean 1/λ. The process doesn't know how long it's been.

Merging and splitting

  • Merging independent Poisson streams of rates λ1 and λ2 gives a Poisson stream of rate λ1+λ2, and each arrival came from stream 1 with probability λ1/(λ1+λ2).
  • Splitting (thinning): if each arrival is kept independently with probability p, the kept arrivals are a Poisson stream of rate pλ, independent of the dropped ones.

Fluctuations

The count's variance equals its mean, λt, so its relative fluctuation is 1/λt. That's the root of shot noise: a current I is a stream of electrons at rate I/q, and its graininess shows up as noise that a later lesson turns into 2qIB.

Worked example

A memory sees 2 upsets per day on average. Find the chance of no upset in 12 hours, the chance of 3 or more in a day, and the expected wait for the next upset.

Show the solution
  1. No upset in 12 hours. Twelve hours has mean λt=1: P(0)=e−1=0.368
  2. Three or more in a day. A day has mean 2: P(≥3)=1−e−2(1+2+222)=1−5e−2=0.323
  3. Expected wait. The gaps are exponential with mean 1/λ, half a day: 12 hours.
  4. No memory. Because of the missing memory, that's also the expected wait from any moment, even if the last upset was hours ago.

Answer the chance of no upset in 12 hours is 0.368, of 3 or more in a day 0.323, and the expected wait is 12 hours.

Worked example

Packets reach a router at 200 per second. What fraction of the gaps are shorter than 1 ms? A second link adds 300 packets per second; what's the merged rate, and what fraction of the merged arrivals come from the first link?

Show the solution
  1. Short gaps. The gaps are exponential with rate 200 per second: P(gap<1 ms)=1−e−200×0.001=1−e−0.2=0.181
  2. What it means. Nearly a fifth of the packets arrive within a millisecond of the one before, even though the average gap is 5 ms. Short gaps are the most common kind; that's what makes queues build up.
  3. Merge the links. Merged, the stream is Poisson at 500 per second.
  4. Share from the first link. Each arrival came from the first link with probability 200500=0.4

Answer 18.1% of the gaps are shorter than 1 ms; the merged rate is 500 per second, and 40% of the merged arrivals come from the first link.

Worked example

A detector counts photons at an average of 106 per second. If 10% of the photons are absorbed before reaching it, what does it count? What is the relative fluctuation of the count in 1 ms?

Show the solution
  1. Thin the stream. Thinning keeps a Poisson process Poisson: the detector sees a Poisson stream at 0.9×106per second
  2. Count in 1 ms. The mean count is 900, with standard deviation 900=30
  3. Relative fluctuation. 130=3.3%
  4. Counting longer. Counting for 100 ms instead brings it to 0.33%: the precision of any photon or particle measurement improves only as the square root of the counting time.

Answer it counts 0.9×106 photons per second, and the count in 1 ms fluctuates by 3.3%.

Check

Arrivals form a Poisson process at 2 per second. What's the probability of exactly 3 arrivals in 0.75 s?

Check

Packets arrive as a Poisson process at 200 per second. What's the probability that the gap after a packet is longer than 1 ms?

Check

Two independent Poisson streams, at 100 and 50 arrivals per second, merge. Then each merged arrival is marked as an error with probability 0.2, independently.

(a)

What is the merged rate, per second?

(b)

What fraction of the merged arrivals come from the first stream?

(c)

At what rate do errors arrive?

Check

A detector counts Poisson arrivals at 100000 per second for 1 ms. What is the count's relative fluctuation, its standard deviation over its mean, in percent?

Check

Simulate a Poisson process at lam = 2 per second for 10 000 seconds with rng = np.random.default_rng(s): draw exponential gaps with rng.exponential(1 / lam, n) (take enough, n = int(lam * 10000 * 1.2)), add them up into arrival times and keep those below 10 000. Set counts to the number of arrivals in each 1-second window (an array of 10 000), mean, var to their mean and variance, and p0 to the fraction of windows with no arrivals, to compare with e−λ.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Derive the chance of no arrival in time t. Split t into n short pieces, each with an arrival probability of λt/n, independently.

Step 1

What's the chance that none of the n pieces has an arrival?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

A Poisson stream of failures has a mean gap of 1000 hours. The last failure was 800 hours ago. What is the expected time to the next one?

Explain why

Why do the gaps between random arrivals have an exponential distribution, and why does that mean most gaps are shorter than the average?

Practice

Keep practicing

7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.