Tutorials › Stochastic Processes › Existence and Uniqueness of the Stationary Distribution

The M/M/1 Queue · Tutorial 626 of 994

Existence and Uniqueness of the Stationary Distribution

You will learn when an M/M/1 queue has a stationary probability distribution and why its normalized local-balance solution is unique.

Intermediate 10 min read

What You'll Learn

  • Define stationarity for the continuous-time M/M/1 queue.
  • Check irreducibility and the generator’s row sums.
  • Normalize the local-balance weights when the arrival rate is below the service rate.
  • Prove that every stationary probability distribution must equal the normalized solution.
  • See why the critical and overloaded cases cannot be normalized.
  • Distinguish a stationary distribution from a claim about convergence to equilibrium.

From Local Balance to a Probability Distribution

Local balance identifies the relative weights of the states in an M/M/1 queue. Relative weights are not yet a probability distribution: their sum must be finite, and they must be normalized. Even after finding a stationary distribution, a separate question remains: could there be another one? Here we answer both questions for the queue-length process.

Let \((N_t)_{t\ge0}\) be the M/M/1 queue-length process on a probability space \((\Omega,\mathcal{F},\mathbb{P})\), with its natural filtration \((\mathcal{F}_t)_{t\ge0}\), and state space \(S=\{0,1,2,\ldots\}\). Arrivals form a Poisson process of rate \(\lambda>0\); service times are exponential with rate \(\mu>0\), and the server works whenever the queue is nonempty. The generator \(Q=(q_{ij})\) has \(q_{0,1}=\lambda\), \(q_{0,0}=-\lambda\), and, for \(n\ge1\), \(q_{n,n+1}=\lambda\), \(q_{n,n-1}=\mu\), and \(q_{n,n}=-(\lambda+\mu)\). All other entries are zero. Each generator row sums to zero: the row at 0 has sum \(-\lambda+\lambda=0\), while each row \(n\ge1\) has sum \(\lambda+\mu-(\lambda+\mu)=0\).

Definition: A probability row vector \(\pi=(\pi_0,\pi_1,\ldots)\) is a stationary distribution if, when \(N_0\) has distribution \(\pi\), \(N_t\) has distribution \(\pi\) for every \(t\ge0\). Equivalently, \(\pi P(t)=\pi\) for every \(t\ge0\), where \(P(t)\) is the transition semigroup. The traffic intensity is \(\rho=\lambda/\mu\).

The chain is irreducible: for any states \(i,j\in S\), a finite sequence of upward jumps connects \(i\) to \(j\) when \(j\ge i\), and a finite sequence of downward jumps connects \(i\) to \(j\) when \(j<i\). Every required jump has positive rate because \(\lambda,\mu>0\). In particular, every state communicates with every other state. Irreducibility does not by itself give a stationary probability distribution; the weights still have to be summable.

For a stationary distribution, local balance across the boundary between states \(n\) and \(n+1\) gives \(\lambda\pi_n=\mu\pi_{n+1}\). Thus the weights are proportional to successive powers of \(\rho\). The normalization question is whether those powers have a finite sum.

Existence and Uniqueness

Theorem: For an M/M/1 queue with \(\lambda>0\) and \(\mu>0\), a stationary probability distribution exists if and only if \(\lambda<\mu\). When \(\lambda<\mu\), it is unique and is given by \(\pi_n=(1-\rho)\rho^n\) for \(n\ge0\), where \(\rho=\lambda/\mu\).

Proof. First suppose \(\lambda<\mu\), so \(0<\rho<1\). Define \(\pi_n=(1-\rho)\rho^n\). The geometric-series formula gives \(\sum_{n=0}^{\infty}\pi_n=(1-\rho)\sum_{n=0}^{\infty}\rho^n=(1-\rho)/(1-\rho)=1\), and every \(\pi_n\ge0\). Also \(\lambda\pi_n=\mu\pi_{n+1}\) for every \(n\ge0\), since \(\mu(1-\rho)\rho^{n+1}=\mu\rho(1-\rho)\rho^n=\lambda\pi_n\). At state 0, the coordinate of \(\pi Q\) is \(\mu\pi_1-\lambda\pi_0=0\). At every state \(n\ge1\), that coordinate is \(\lambda\pi_{n-1}+\mu\pi_{n+1}-(\lambda+\mu)\pi_n\). The local-balance identities give \(\lambda\pi_{n-1}=\mu\pi_n\) and \(\mu\pi_{n+1}=\lambda\pi_n\), so this coordinate is also zero.

To see that \(\pi Q=0\) implies stationarity here, set \(\nu=\lambda+\mu\) and \(R=I+Q/\nu\). The rows of \(R\) are probability distributions: at state 0 the entries are \(R_{0,0}=\mu/\nu\), \(R_{0,1}=\lambda/\nu\); at \(n\ge1\) they are \(R_{n,n-1}=\mu/\nu\), \(R_{n,n+1}=\lambda/\nu\). Each displayed row sums to 1. The queue can be constructed using potential events from a Poisson process of rate \(\nu\), applying one transition of \(R\) at each event; a transition from 0 to 0 is a potential event with no change in queue length. Consequently, \(P(t)=e^{-\nu t}\sum_{k=0}^{\infty}(\nu t)^kR^k/k!\). Since \(\pi Q=0\), \(\pi R=\pi\), so \(\pi R^k=\pi\) for every \(k\ge0\), and the series yields \(\pi P(t)=\pi\). This proves existence.

Now let \(\alpha\) be any stationary probability distribution. The same series gives \(P(t)=I+\nu t(R-I)+O(t^2)\) as \(t\) decreases to zero. The remainder is bounded in the row-sum norm because \(R\) is stochastic; hence stationarity, \(\alpha P(t)=\alpha\), implies \(\alpha Q=0\) by subtracting \(\alpha\), dividing by \(t\), and taking the limit. The state-0 coordinate of this equation is \(\mu\alpha_1-\lambda\alpha_0=0\). For \(n\ge1\), its state-\(n\) coordinate is \(\lambda\alpha_{n-1}+\mu\alpha_{n+1}-(\lambda+\mu)\alpha_n=0\). Define \(J_n=\lambda\alpha_n-\mu\alpha_{n+1}\). The equation at 0 says \(J_0=0\). For \(n\ge1\), rearranging the state-\(n\) equation gives \(J_n=J_{n-1}\), so induction gives \(J_n=0\) for every \(n\ge0\). Therefore \(\alpha_{n+1}=\rho\alpha_n\) and \(\alpha_n=\rho^n\alpha_0\).

If \(\rho<1\), normalization forces \(\alpha_0=1-\rho\), so \(\alpha=\pi\); this proves uniqueness. If \(\rho\ge1\), then either \(\alpha_0=0\), which by the recurrence makes every \(\alpha_n=0\), or \(\alpha_0>0\). In the latter case, \(\sum_n\alpha_n=\alpha_0\sum_n\rho^n\) diverges: for \(\rho=1\) every term is \(\alpha_0\), and for \(\rho>1\) the terms do not tend to zero. Neither case can give a probability distribution. Thus no stationary probability distribution exists when \(\lambda\ge\mu\), completing both directions. \(\square\)

Worked Normalizations

Worked Example: Arrival Rate Two and Service Rate Three

Take \(\lambda=2\) and \(\mu=3\). At state 0 the generator entries are \(q_{0,0}=-2\) and \(q_{0,1}=2\), whose sum is 0. At each state \(n\ge1\), the entries are \(q_{n,n-1}=3\), \(q_{n,n}=-5\), and \(q_{n,n+1}=2\), whose sum is \(3-5+2=0\). The traffic intensity is \(\rho=2/3<1\), so the theorem applies.

The local-balance weights are \(\rho^n=(2/3)^n\). Their sum is \(\sum_{n=0}^{\infty}(2/3)^n=1/(1-2/3)=3\). The normalizing multiplier is therefore \(1/3\), giving \(\pi_n=(1/3)(2/3)^n\). In particular, \(\pi_0=1/3\), \(\pi_1=2/9\), and \(\pi_2=4/27\).

Check: The full sum is \((1/3)\cdot3=1\). At state 0, \(\mu\pi_1-\lambda\pi_0=3(2/9)-2(1/3)=2/3-2/3=0\). For every \(n\ge1\), the local-balance identity holds because \(3\pi_{n+1}=3(1/3)(2/3)^{n+1}=2(1/3)(2/3)^n=2\pi_n\). Thus the normalized vector is stationary, and the theorem says it is the only stationary probability distribution.

Worked Example: Normalizing Weights for Rates One and Three

Take \(\lambda=1\) and \(\mu=3\). The generator row at 0 sums to \(-1+1=0\); each row \(n\ge1\) sums to \(1-4+3=0\). Here \(\rho=1/3\), so the unnormalized weights are \(w_n=(1/3)^n\). Their total is \(\sum_{n=0}^{\infty}w_n=1/(1-1/3)=3/2\). Dividing each weight by \(3/2\) gives \(\pi_n=(2/3)(1/3)^n\).

The first three probabilities are \(\pi_0=2/3\), \(\pi_1=2/9\), and \(\pi_2=2/27\). The normalizing check is \((2/3)\sum_{n=0}^{\infty}(1/3)^n=(2/3)(3/2)=1\). The state-0 balance is \(3\pi_1-\pi_0=3(2/9)-2/3=0\). At state 1, the generator equation gives \(\lambda\pi_0+\mu\pi_2-(\lambda+\mu)\pi_1=2/3+3(2/27)-4(2/9)=2/3+2/9-8/9=0\). For all higher states the identity \(\pi_{n+1}=\pi_n/3\) gives the same balance. This confirms the normalized solution directly.

Worked Example: The Critical Case Has No Normalization

Take \(\lambda=\mu=2\). The generator row at 0 sums to \(-2+2=0\), and each row \(n\ge1\) sums to \(2-4+2=0\). The local-balance equations require \(2\pi_n=2\pi_{n+1}\), hence \(\pi_{n+1}=\pi_n\). Thus every candidate has the form \(\pi_n=c\) for all \(n\ge0\), where \(c\ge0\).

If \(c=0\), the total mass is 0. If \(c>0\), the partial sum through state \(m\) is \(\sum_{n=0}^{m}\pi_n=(m+1)c\), which grows without bound as \(m\) increases. No choice of \(c\) makes the total mass equal to 1. The generator rows satisfy their required zero-sum condition, but there is no stationary probability distribution because the local-balance weights cannot be normalized.

What Uniqueness Does—and Does Not—Say

The uniqueness proof uses more than the recurrence alone. It first shows that any stationary probability distribution must satisfy the generator balance equations, then uses the boundary equation at state 0 to set the constant flow \(J_0\) to zero. The equations at the other states force that flow to remain zero across every boundary. This pins down all relative weights, and normalization pins down their common multiplier.

Common mistake. For \(\rho=2/3\), one might incorrectly write \(\sum_{n=0}^{\infty}\rho^n=1/\rho=3/2\), then use \(\pi_0=2/3\). The geometric-series formula instead gives \(\sum_{n=0}^{\infty}\rho^n=1/(1-\rho)=3\). With the incorrect multiplier, the total mass would be \((2/3)\cdot3=2\), not 1. The correct multiplier is the reciprocal of 3, namely \(\pi_0=1/3\).

Finally, a stationary distribution is an invariant probability law: if the queue starts with that distribution, its distribution remains unchanged at every time. The existence and uniqueness result does not by itself assert that the law from every fixed initial state converges to the stationary distribution. In particular, it is important not to confuse an invariant distribution with a limiting-distribution claim. The next calculations about idle-server probability can use the normalized distribution, but that quantity is distinct from the existence-and-uniqueness argument established here.

Check Your Understanding

Use the local-balance equations and normalization to justify each answer.

  1. For \(\lambda=1\) and \(\mu=2\), compute \(\rho\), the sum of the unnormalized weights, and the normalizing multiplier.
  2. Why does the state-0 balance equation determine the constant \(J_0\) in the uniqueness proof?
  3. For \(\lambda=3\) and \(\mu=2\), what do the local-balance equations imply about the terms \(\pi_n\), and why can they not sum to 1?
  4. Explain why checking \(\pi Q=0\) alone needs a justification before concluding that \(\pi\) is stationary.
  5. Does uniqueness of a stationary distribution alone establish convergence to it from every initial state? Explain the distinction.