What Does an Arrival Observe?
At a randomly chosen time, an M/M/1 queue may be empty, busy with one customer, or contain several customers. An arriving customer samples the system at a particular event time, however, not at an arbitrary time. The PASTA principle—Poisson Arrivals See Time Averages—explains when these two ways of observing the system give the same distribution. The key condition is that arrivals are Poisson and their future increments are independent of the system’s history.
Work on a probability space \((\Omega,\mathcal{F},\mathbb{P})\). Let \(N_t\) be a Poisson process of rate \(\lambda>0\), and let \((\mathcal{F}_t)_{t\ge0}\) be a filtration containing the system’s history up to time \(t\), with future increments of \(N_t\) independent of \(\mathcal{F}_t\). Let \(X_t\) be the system state, adapted to this filtration, with right-continuous paths and left limits. An arrival at time \(t\) sees the pre-arrival state \(X_{t-}\), the state immediately before \(t\). This convention excludes the customer who has just arrived.
The finite-time statement is an equality of expected counts. It does not say that a random fraction of arrivals in a finite interval equals the random fraction of time spent in a state. A long-run, pathwise equality requires additional ergodicity conditions; PASTA’s expected-count identity does not require a Markov assumption.
Why the Poisson Sampling Identity Holds
For a state \(i\), define \(H_i(t)=\mathbf{1}_{\{X_{t-}=i\}}\). This indicator is predictable: at time \(t\), its value is determined by the state just before \(t\), not by the arrival at \(t\) or by future information. We first establish the identity that makes the argument work.
Proof. First take a predictable process of the form \(H(t)=Y\mathbf{1}_{(a,b]}(t)\), where \(0\le a<b\le T\) and \(Y\) is bounded and \(\mathcal{F}_a\)-measurable. The integral against \(dN_t\) is \(Y(N_b-N_a)\). Since \(N_b-N_a\) is independent of \(\mathcal{F}_a\) and has mean \(\lambda(b-a)\),
Finite sums of these elementary predictable processes therefore satisfy the identity. To extend it, define two finite measures on the predictable sets \(B\subseteq(0,T]\times\Omega\): \(\alpha(B)=\mathbb{E}\int\mathbf{1}_B\,dN_t\) and \(\beta(B)=\lambda\mathbb{E}\int\mathbf{1}_B\,dt\). The calculation just given shows that the measures agree on generating rectangles \((a,b]\times A\), where \(A\in\mathcal{F}_a\). Uniqueness of finite measures then gives \(\alpha(B)=\beta(B)\) for every predictable \(B\). Integration of bounded predictable \(H\) gives the stated identity. \(\square\)
Apply the identity with \(H=H_i\). The integral against \(dN_t\) adds one for each arrival whose pre-arrival state is \(i\); the integral against \(dt\) records the time spent in state \(i\). Thus
Stationarity makes \(\mathbb{P}(X_{t-}=i)=\pi_i\) for almost every \(t\), so the right-hand side is \(\lambda T\pi_i\). The expected total number of arrivals in the interval is \(\lambda T\). Dividing the state-\(i\) arrival rate by the total arrival rate gives \(\pi_i\), proving PASTA. The same calculation also gives a useful nonstationary version: the expected number of arrivals seeing \(i\) over \((0,T]\) is \(\lambda\int_0^T\mathbb{P}(X_{t-}=i)\,dt\). In that case it matches the time-averaged expected occupancy, not necessarily the occupancy distribution at any one fixed time.
Applying PASTA to the M/M/1 Queue
For an M/M/1 queue, let \(X_t\in S=\{0,1,2,\ldots\}\) be the number of customers in the system at time \(t\). Arrivals form a Poisson process of rate \(\lambda>0\), service times are independent exponential random variables of rate \(\mu>0\), and the arrival and service mechanisms are independent. Write \(\rho=\lambda/\mu\). When \(\rho<1\), the stationary distribution is \(\pi_n=(1-\rho)\rho^n\), for \(n\ge0\). PASTA applies to the state just before each arrival.
The geometric probabilities are normalized because \(\sum_{n\ge0}(1-\rho)\rho^n=1\) when \(0\le\rho<1\). They also satisfy the M/M/1 balance equations: \(\pi_0\lambda=\pi_1\mu\), and, for \(n\ge1\), \(\pi_{n-1}\lambda+\pi_{n+1}\mu=\pi_n(\lambda+\mu)\). For example, substituting \(\pi_n=(1-\rho)\rho^n\) into the latter gives \((1-\rho)\rho^{n-1}\lambda+(1-\rho)\rho^{n+1}\mu=(1-\rho)\rho^n(\lambda+\mu)\), using \(\lambda=\rho\mu\). The earlier stationary-distribution result for the stable M/M/1 queue gives uniqueness. PASTA therefore yields
Proof. The stationary state just before an arrival has distribution \(\pi\) by the PASTA theorem, so the probability of finding exactly \(n\) customers is \(\pi_n=(1-\rho)\rho^n\). For the tail probability, sum the geometric series: \(\sum_{n=k}^{\infty}(1-\rho)\rho^n=(1-\rho)\rho^k/(1-\rho)=\rho^k\). The formula also holds at \(k=0\), when the event is certain and \(\rho^0=1\). \(\square\)
Worked Example: An Arrival Finds an Empty or Nearly Empty System
Let \(\lambda=2\) and \(\mu=3\), so \(\rho=2/3<1\). Find the probabilities that an arriving customer finds zero, one, or at least two customers in the system.
By PASTA and the stationary formula, the empty-system probability is \(\pi_0=1-\rho=1/3\). The probability of exactly one customer is \(\pi_1=(1/3)(2/3)=2/9\). For at least two customers, sum from \(n=2\), or use the tail formula: \(\mathbb{P}(\text{at least 2})=\rho^2=(2/3)^2=4/9\).
Check: The three disjoint cases have probabilities \(1/3\), \(2/9\), and \(4/9\); their sum is \(3/9+2/9+4/9=1\). Over an interval of length \(T=3\), the expected number of arrivals is \(\lambda T=2\cdot3=6\), and the expected number that find the system empty is \(6\cdot(1/3)=2\), as also given by \(\lambda T\pi_0\).
Worked Example: Busy-System and Queue-Length Probabilities
Let \(\lambda=3\) and \(\mu=4\), giving \(\rho=3/4<1\). Find the probabilities that an arrival finds the system empty, finds exactly one customer, and finds at least two customers.
The probabilities are \(\pi_0=1-\rho=1/4\), \(\pi_1=(1/4)(3/4)=3/16\), and \(\mathbb{P}(X_{t-}\ge2)=\rho^2=(3/4)^2=9/16\). Finding at least one customer has probability \(1-\pi_0=1-1/4=3/4\). Finding at least two is the event that there is at least one customer waiting in addition to any customer in service.
Check: The three requested cases partition the possibilities, and \(1/4+3/16+9/16=4/16+3/16+9/16=1\). The probability of finding the system nonempty from these values is \(3/16+9/16=12/16=3/4\), which agrees with \(1-\pi_0\).
Worked Example: Pre-Arrival and Post-Arrival States
Let \(\lambda=1\) and \(\mu=2\), so \(\rho=1/2<1\). Find the probability an arrival finds the system empty, and compare it with the probability that the system contains one customer immediately after that arrival.
PASTA gives \(\mathbb{P}(X_{t-}=0)=\pi_0=1-\rho=1/2\). With probability one, an arrival increases the number in the system by one at its arrival time, so \(X_t=X_{t-}+1\) at an arrival. Consequently, the probability that the post-arrival system contains exactly one customer is \(\mathbb{P}(X_{t-}=0)=1/2\). In contrast, the probability an arrival finds exactly one customer is \(\pi_1=(1/2)(1/2)=1/4\).
Check: The post-arrival state is one exactly when the pre-arrival state is zero; it is two exactly when the pre-arrival state is one. The latter probability is \(\pi_1=1/4\), while the probability of finding one before the arrival is also \(1/4\). These matching values refer to different events and do not make pre-arrival and post-arrival states interchangeable.
When Arrivals Do Not See Time Averages
The independence condition matters. If arrivals are more likely in some system states than others, arrivals overrepresent those states. For example, suppose an external environment switches between states \(0\) and \(1\), with transition rate \(1\) in each direction, and has stationary probabilities \(1/2\) and \(1/2\). Suppose arrivals occur at rate \(1\) in state \(0\) and rate \(3\) in state \(1\). The time fraction in state \(1\) is \(1/2\), but the arrival fraction there is \(3/(1+3)=3/4\). This state-dependent arrival stream is not an independent Poisson input of constant rate, so PASTA does not apply.
Common mistake. Do not use the post-arrival customer count as the state an arrival finds. In the example with \(\lambda=1\) and \(\mu=2\), the stationary probability of one customer at an arbitrary time is \(\pi_1=1/4\). It would be wrong to conclude that an arrival sees one customer with probability \(1/2\) merely because the post-arrival system has one customer with probability \(1/2\). Post-arrival count one means pre-arrival count zero; pre-arrival count one has probability \(1/4\). PASTA applies to \(X_{t-}\), the state before the arrival joins.
In an M/M/1 queue, PASTA lets us use stationary time probabilities directly for arrival observations. It does not by itself give the arriving customer’s waiting-time or total time-in-system distribution; those require further analysis. Its immediate use here is precise: first identify the state just before an arrival, then use the stationary probabilities for that state.
Check Your Understanding
In each question, interpret the state as the number of customers in the system immediately before the arrival.
- For an M/M/1 queue with \(\lambda=1\) and \(\mu=3\), calculate the probability an arrival finds exactly two customers.
- If \(\rho=2/5\), calculate the probability an arrival finds at least three customers, and verify it by summing the stationary probabilities from \(n=3\).
- State the independence condition on the arrival process that is used in the PASTA proof.
- For \(\lambda=1\), \(\mu=2\), what pre-arrival state corresponds to a post-arrival count of three?
- Why can a state-dependent arrival rate cause the arrival-observed distribution to differ from the time distribution?