The Relation between Customer and Time Averages in Queues: H = λG on Every Sample Path When 0 < λ < ∞, G < ∞ and Each f_n Vanishes Outside [t_n, t_n + s_n] with s_n/n → 0Research Paper
Motivation
Little's law says that the long-run average number of customers in a system equals the arrival rate times the average time a customer spends there. It is one of the most used identities in queueing theory, and it holds on individual sample paths under weak conditions (Little 1961; Stidham 1974). Many quantities of interest are not head counts, however: the work in the system, the cost accumulated by customers in progress, the number of tokens a customer holds in some state. For these a more general relation is needed, between a time average and a customer average , of the form .
Heyman and Stidham (Oper. Res. 28 (1980)) prove such a relation on each sample path, for an arbitrary real-valued function attached to each customer, under a support condition that is much weaker than the continuous-sojourn assumption of the theorem. They then show by a counterexample that the support condition cannot simply be dropped, even when every customer function is an indicator.
Timeline.
- 1961: Little proves under stationarity assumptions (Little 1961).
- 1971: Brumelle proves under conditions (v.a), (v.b) on the tails of the (J. Appl. Prob. 8, 508–520).
- 1972: Stidham gives a new proof of , including the lemma relating and (Stidham 1972).
- 1974: Stidham proves on each sample path, assuming each sojourn is one uninterrupted interval (Stidham 1974).
- 1980: Heyman and Stidham prove on every sample path under the support condition below, and give the counterexample. The paper notes that its Theorem 1 is weaker than the sample-path version of Brumelle's theorem, with hypotheses stated directly on the sample path.
Setting
Fix one sample path. Customers arrive at epochs ; ties are allowed. The arrival count is the number of with , and the arrival rate is when the limit exists.
Customer carries a real-valued function on . Its total is , and the rate is . The customer average and time average are
When is the indicator of , is the sojourn time and is the number in system, so is .
The ASSUMPTION of the paper is that for each there is with
- (i) for ;
- (ii) .
For signed write , , and let , , , be the corresponding totals, rates and averages.
Formalization targets
Goal: Theorem 2 (p. 986)
Assume (i), (ii) and (v) for every . If , and exist with and , then exists, equals , exists, and
Milestones
- (2): for , if and only if .
- (3): for , , where sums over arrived customers and over customers with .
- (4): .
- , and .
- Theorem 1 (p. 985): for under (i)–(iv), .
- The identity and (6): , .
Companion results
- The §3 counterexample: , indicator with , so , but ; its support span satisfies (i) and fails (ii).
- Corollary 3 (p. 988): if is constant, the ensemble averages satisfy .
- implies (p. 986), the step by which Theorem 1 contains .
Significance
The result. converts between a time average, which is what a system designer measures, and a customer average, which is what a customer experiences. Applied to different it yields , the relation between average work in system and average customer work, and relations between time-stationary and embedded-chain probabilities; §2 of the paper derives the GI/M/c/K relation this way. Because the support condition (i)–(ii) allows a customer's contribution to be interrupted (leaving and re-entering the system), it covers preemptive priority queues and nodes of networks, which the continuous-sojourn theorem does not. The counterexample marks the boundary: with interrupted sojourns, indicator functions and finite , alone do not suffice.
Formalizing it. The result is proved on paper, with two steps delegated to earlier work "by mimicking" Lemma 1 and Theorem 2 of Stidham 1974. The indicator special case (with strictly increasing arrivals) is already proved on Prove2Me as queueing_general_littles_law (wenxinzhang). This mission asks for the general, signed, pathwise statement and its proof steps, a counterexample with an exactly computed time average , and the ensemble corollary.
Difficulty
The obvious argument, exchanging the time integral of with the sum over customers, gives , but a customer that has arrived by may contribute only part of its total by . The sandwich only bounds this loss; the hard step is showing that and have the same limit, which needs to compare at time with at a slightly earlier time. Without (ii) this fails, as the counterexample shows: customers there remain "open" for a window proportional to their index.
For signed the sandwich is not available directly, and the proof splits into positive and negative parts; the exchange of sum and integral then needs the finiteness of the parts on every .
Formalization scope
All statements except Corollary 3 are about one fixed sample path; the paper's "with probability one" is the pathwise statement applied to almost every path, and Corollary 3 states this explicitly with a probability measure and almost-sure hypotheses.
Conventions:
- Customers are indexed from in Lean; index is the paper's customer , so is written .
- Arrival epochs are
Monotonewith ; ties are allowed. - , but only values on enter: (i) is required only for , integrates over , and time averages integrate over .
- (iv) and (v) are stated as integrability of on ; the page prints (iv) as "", a misprint for "".
- is the cardinality of ; , , are infinite sums over all customers.
- " exists" includes integrability of on every .
- The page prints (6) as ""; the stated identity is , as the proof shows.
Added hypotheses: milestones (3), the identity and (6) assume , which the paper derives from (2); Corollary 3 assumes is integrable, which its definition of the ensemble average presupposes.
A formalization in which sums only over arrived customers, or in which a non-integrable or has integral , would make the statements trivial or different; the definitions rule this out by summing over all customers and requiring integrability.
Needed infrastructure: Cesàro averages and counting functions of nondecreasing sequences, interchange of countable sums and integrals for locally finite families, and harmonic sums . The counting-function lemma (2) and the squeeze for and are reusable well beyond this mission. Proofs of any milestone are welcome independently.
Selected references
- D. P. Heyman and S. Stidham, Jr., The relation between customer and time averages in queues, Operations Research 28(4):983–994, 1980. https://doi.org/10.1287/opre.28.4.983
- J. D. C. Little, A proof for the queuing formula: L = λW, Operations Research 9(3):383–387, 1961. https://doi.org/10.1287/opre.9.3.383
- S. Stidham, Jr., L = λW: a discounted analogue and a new proof, Operations Research 20(6):1115–1126, 1972. https://doi.org/10.1287/opre.20.6.1115
- S. Stidham, Jr., A last word on L = λW, Operations Research 22(2):417–421, 1974. https://doi.org/10.1287/opre.22.2.417
- S. L. Brumelle, On the relation between customer and time averages in queues, Journal of Applied Probability 8:508–520, 1971.