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 th arrival of a Poisson process at rate per second. For it's the exponential gap; each further arrival adds another independent gap.
- As grows, the wait bunches up around its mean, , with a spread of only : 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?
About 0.37: . Twelve hours at 2 a day averages 1 upset, and for a Poisson process the chance of none in a stretch with mean count is . Upsets don't wait their turn: a third of half-days pass clean, while others see two or three.
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 , one arrival happens with probability and two almost never. Then:
- The count in any interval of length is Poisson with mean :
- The gaps between arrivals are exponential with mean : .
- No memory: having waited seconds already, the remaining wait is still exponential with mean . The process doesn't know how long it's been.
Merging and splitting
- Merging independent Poisson streams of rates and gives a Poisson stream of rate , and each arrival came from stream 1 with probability .
- Splitting (thinning): if each arrival is kept independently with probability , the kept arrivals are a Poisson stream of rate , independent of the dropped ones.
Fluctuations
The count's variance equals its mean, , so its relative fluctuation is . That's the root of shot noise: a current is a stream of electrons at rate , and its graininess shows up as noise that a later lesson turns into .
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
- No upset in 12 hours. Twelve hours has mean :
- Three or more in a day. A day has mean 2:
- Expected wait. The gaps are exponential with mean , half a day: 12 hours.
- 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
- Short gaps. The gaps are exponential with rate 200 per second:
- 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.
- Merge the links. Merged, the stream is Poisson at 500 per second.
- Share from the first link. Each arrival came from the first link with probability
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 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
- Thin the stream. Thinning keeps a Poisson process Poisson: the detector sees a Poisson stream at
- Count in 1 ms. The mean count is 900, with standard deviation
- Relative fluctuation.
- 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 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 .
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 . Split into short pieces, each with an arrival probability of , independently.
Step 1
What's the chance that none of the 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°.
Step 2
What does that become as ?
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?
For a gap to be longer than , no arrival can happen in any of the many tiny intervals that make up , and each is independent with a small, fixed chance. Multiplying those chances gives , an exponential tail. Its density is largest at zero and falls steadily, so short gaps are the most likely, and the mean, , is pulled up by occasional long gaps: , about 63%, of gaps are shorter than the mean. Random arrivals therefore cluster, which is why queues form even when the average load is well under capacity.
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.