Definition · M/M/1Arrivals are memoryless at rate λ; service times are memoryless with rate μ, so the mean service time is S = 1/μ; there is one server, unlimited room, and customers are taken in order. N is the number in the system, including the one in service, and πₙ = P(N = n) in the long run. The model settles precisely when ρ = λ/μ < 1.
The notation S = 1/μ is fixed here and used by the rest of this path: it is the mean service time, the thing a trace measures directly, and writing the results in terms of it is what makes the knee legible in the next lesson.
Theorem · The stationary distributionFor ρ = λ/μ < 1, πₙ = (1 − ρ)ρⁿ for every n ≥ 0.
Consider the boundary between {0, 1, …, n} and {n + 1, n + 2, …}. Every crossing upward is an arrival that happens while the system holds n, at rate λπₙ; every crossing downward is a completion while it holds n + 1, at rate μπₙ₊₁. In the long run the two counts differ by at most one, so the rates are equal: λπₙ = μπₙ₊₁.
Therefore πₙ₊₁ = ρπₙ, and by induction πₙ = ρⁿπ₀. The probabilities sum to one, so π₀ Σ ρⁿ = 1; the series converges exactly when ρ < 1, to 1/(1 − ρ), giving π₀ = 1 − ρ and πₙ = (1 − ρ)ρⁿ.
The mean is L = Σ nπₙ = (1 − ρ) Σ nρⁿ = (1 − ρ)·ρ/(1 − ρ)² = ρ/(1 − ρ), using the same geometric sum in its Σ nrⁿ = r/(1 − r)² form.
□
The tail falls out of the same geometric shape: P(N > k) = ρ^(k+1), because being above k means the chain climbed k + 1 steps each costing a factor ρ. L_q is L minus the one in service, L − ρ, which rearranges to ρ²/(1 − ρ). And W comes from Little's Law rather than from any new argument: W = L/λ, which simplifies to 1/(μ − λ) and hence to S/(1 − ρ).
λ = 4/5 per second μ = 1 per second S = 1/μ = 1 s
ρ = λ/μ = 4/5
π₀ = 1 − ρ = 1/5
π₂ = (1 − ρ)ρ² = (1/5)(16/25) = 16/125
L = ρ/(1 − ρ) = (4/5)/(1/5) = 4
L_q = ρ²/(1 − ρ) = (16/25)/(1/5) = 16/5
L − L_q = 4 − 16/5 = 4/5 = ρ the one in service
W = L/λ = 4 ÷ 4/5 = 5 s = S/(1 − ρ)
W_q = L_q/λ = (16/5) ÷ (4/5) = 4 s = W − S
P(N > 3) = ρ⁴ = 256/625 ≈ 0.4096
Every one of those is an exact fraction, and the two checks in the middle are free: L − L_q must be ρ, and W − W_q must be S. If either fails, an arithmetic slip has happened rather than a modelling one.
What this formula is not checked against
It is tempting to say the slotted simulation of “Why Queues Form at ρ < 1” confirms these closed forms. It does not, and the claim would be false. That simulation is a discrete-time chain: Bernoulli arrivals with probability p per slot, geometric service with parameter q, late arrivals. At p = 2/5 and q = 1/2 its server utilisation is p/q = 4/5, exactly as it should be, and its exact mean number in system is 12/5. ρ/(1 − ρ) at ρ = 4/5 is 4. The continuous formula overstates that system by a factor of 5/3.
The relation between the two is a limit, not an agreement. Hold λ and μ fixed and let the slot Δ shrink with p = λΔ and q = μΔ: the discrete chain's mean climbs toward ρ/(1 − ρ), and the gap closes in proportion to Δ.
λ = 4/5, μ = 1, so ρ = 4/5 and ρ/(1 − ρ) = 4
Δ = 1 p = 4/5, q = 1 exact mean 4/5 gap 16/5
Δ = 1/10 p = 2/25, q = 1/10 exact mean 92/25 gap 8/25
Δ = 1/100 p = 1/125, q = 1/100 exact mean 496/125 gap 4/125
each gap is exactly a tenth of the one above it: linear in Δ
The lab prints that sequence beside the closed form rather than claiming a single slot size agrees with it. The exact finite-slot answer at each step is Operations Research's, markov-chains-decisions-and-queues/queues-in-discrete-time; what is shown here is that it converges to this lesson's formula and how fast.
The same reconciliation runs the other way. The balance argument above is the steady state of a birth–death chain, and Operations Research builds that chain properly in markov-chains-decisions-and-queues/poisson-arrivals-and-the-mm1-queue, recovering this distribution as its continuous-time limit. System Design owns the closed forms — this lesson is the library's reference for L, L_q, W, W_q and P(N > k) — and nothing in the two treatments contradicts the other.
Four assumptions are doing the work, and the rest of this course takes each of them away in turn: memorylessness (“Variability: the Kingman Approximation” prices getting it wrong), the single server (“Many Servers: Pooling, and Erlang C”), the unlimited room (“Bounded Queues and Loss”), and the steady state itself (“Transient Overload and Draining the Backlog”).