2. Two-Fold Randomness in Counting Processes: General Results
Consider departures from a stable, general single-server queue (i.e., a GI/GI/1 system) in steady state. This queuing model has an infinite waiting room and a work-conserving server with a finite service capacity defined by the maximum rate at which the server can perform work. The meaning of “work-conserving” is this: the server will not stand idle when there is unfinished work in the system. Customers arrive at this system according to a renewal process and are served one at a time. Times between successive arrivals are independent and identically distributed (i.i.d.) random variables with a finite mathematical expectation, and so are service times of customers. Inter-arrival times and service times are also mutually independent. For such a queue, a customer leaves the system if and only if the customer has been served. The mean inter-arrival time is greater than the mean service time. Hence the queue is stable and can reach its steady state as time approaches infinity. For the purpose of this study, it is not necessary to assume a specific queuing discipline.
According to the literature, times between consecutive departures from a stable queue in steady state follow a marginal distribution [
1]. However, the existence of such a marginal distribution is only an unjustified assumption taken for granted without verification. As can be readily seen in this section, for systems modeled by a stable GI/GI/1 queue, inter-departure times between customers consecutively leaving from the queue cannot be characterized by a marginal distribution, even if the queue is in steady state.
Let
represent the
jth customer served. Using the notation introduced in
Section 1, the event “
departs from the queue” occurs at
. Denote by
the queue size immediately after the
jth departure. By definition, “queue size” refers to the total number of customers in the queue (including the customer in service). Let
and
be the times between the
jth and the
th departures when
and
, respectively.
where
is the idle time spent by the server waiting for the arrival of a customer, and
is the service time of
. All arrived customers need to be served; their service times are not zero.
By definition, a random variable is a measurable real-valued function; its domain can be the whole sample space or a subset of the sample space. To define a random variable
U on the whole sample space
, a value must be assigned to
U at
each . Similarly, to define a random variable on a subset of
, a value must be assigned to this random variable at each sample point in the subset. Denote by
the Borel algebra in real line. For a random variable on the whole sample space, such as
U, its (marginal) distribution is defined by
where
is arbitrary. When it is necessary to emphasize the connection between
U and
on
, the right-hand side of the above equation can be used to express the distribution of
U directly.
Similarly, components of a random vector or terms of a stochastic sequence are random variables on . By definition, the components of a random vector (or the terms of a stochastic sequence) must take their values at the same . If a random vector has been defined, then the joint distribution of its components is fixed, and the marginal distribution of each component is determined by the joint distribution. Based on a given random vector, some new random variables may be constructed on subsets of .
For example, let be a random vector. The joint distribution is , which determines and , the marginal distributions of U and V. Based on this random vector, a random variable W may be constructed on with , such that for ; some values taken by U specify . Thus, W follows a conditional distribution determined by .
So far, two types of random variables have been mentioned; U and V are defined on the whole sample space, but W is only defined on a proper subset of the sample space and follows a conditional distribution. There also exist random variables different from those mentioned above. Random variables of this type are not components of a random vector, and their distributions are not determined by a joint distribution; times between successive departures from the GI/GI/1 queue are random variables of this type. They are defined on some proper subsets of . Their distributions and properties are determined by a chronological order of events experienced by customers. This chronological order is not determined by properties of the queuing model; it is determined by physical systems modeled by the queue. For a work-conserving system with an infinite waiting room, events experienced by every customer occur naturally as follows:
First, a customer arrives at the queue.
-
Upon arrival,
- -
the customer receives service immediately if the server is idle;
- -
otherwise the customer has to wait in line.
Finally, after being served, the customer departs.
Consequently, for an arbitrarily
given j, if the server becomes idle immediately after
leaves, the time between the departures of
and
is the sum of an idle time and a service time, as shown by Equation (
2.1); otherwise the inter-departure time is a service time, see Equation (
2.2). For this queuing model, the corresponding sample pace
possesses the properties required by a counting process with two-fold randomness due to the chronological order. Write
and
Clearly, at an arbitrarily
given ,
is a random partition of
, and it is not difficult to verify
for an arbitrarily
given , thus
is a partition of
. If
, then for the given
j, there would exist a sample point
; when
departs, the server would be both idle and busy. This is impossible. Because the queue is already in steady state,
,
, and
where
is the utilization factor.
In the literature, properties of the arrival process and stability of the GI/GI/1 queue are usually established by using the strong law of large numbers. Results of this kind are true for every , with the exception at most of a set where . Such results hold with probability one or almost surely. Removing sample points in will not change anything when the queue is already in steady state, and can be regarded as the sample space of an ideal random experiment performed after the queue has reached its steady state. Because of the properties possessed by , times between consecutive departures from the GI/GI/1 queue constitute a stochastic sequence with two-fold randomness.
Lemma 1.
If a stable GI/GI/1 queue is in steady state, and if the server has a finite service capacity, then for an arbitrarilygiven,
- (a)
cannot be expressed by any single, fixed random variable, i.e., no random variable defined on Ω can describe , thus cannot be characterized by a marginal (i.e., unconditional) distribution;
- (b)
is not a random vector, and hence has no distributions conditional on values taken by .
Corollary 1. The inter-departure times constitute a stochastic sequence with two-fold randomness.
To understand Lemma 1 and its corollary, the reader may consider how to answer the following question: if could be expressed by a random variable on , say , what would be the value of at corresponding to ? At any , the value of equals either zero or a positive integer. Whatever value takes at , it is impossible to assign any value to at corresponding to . In contrast to , service times of customers, the queue size , and times between consecutive arrivals are all random variables on . There is a subtlety here, however. For example, when playing the role of an inter-departure time defined on , is no longer a random variable on .
Proof. For an arbitrarily
given ,
. Consequently, at an arbitrarily
given , either
and
or
and
As shown by Equations (
2.1) and (
2.2),
and
are well-defined random variables; their distributions,
and
, are determined by the chronological order of events experienced by customers, as implied by Equations (
2.3) and (
2.4). Consequently, for an arbitrarily fixed
,
Thus, either Equation (
2.3) or Equation (
2.4) must hold
exclusively at the given sample point
, and for the given
j,
can only be described by
or
, i.e., any single, fixed random variable on
cannot express
. To see this, suppose to the contrary: there is a random variable
on
, which can take values at the same sample point
corresponding to
. Consequently,
Because
is independent of events concerning future departures after
leaves, such as
and
, Equation (
2.5) implies
where
is the distribution of
. Similarly,
is independent of
and
, so Equation (
2.6) implies
Because
and
for all
j, treating
as
on
leads to
This is absurd. The absurdity shows
. Consequently,
cannot be described by any single, fixed random variable on
or characterized by a marginal distribution.
By definition, each component of a random vector (or each term of a stochastic sequence) is a random variable on , and all the components (or terms) must take values at the same . Although is a random variable on , and cannot form a random vector, thus is not eligible to have distributions conditional on values taken by . Similarly, cannot form a sequence of random variables on ; they constitute a stochastic sequence with two-fold randomness. □
The conditions required by Lemma 1 exclude two conceivable scenarios for to be a single, fixed random variable defined on . One is the worst scenario, and the other is an ideal scenario.
The worst scenario is a queue with
for all
j, i.e., the queue is unstable. Because
, and because
,
Thus, with probability one, when each customer departs from the system, the queue is not empty, which implies
for all
j. In other words, the idle time
vanishes identically on
, making the server always busy almost surely. Consequently, the queue will never become empty, and the queue size will approach infinity with probability one.
The ideal scenario is a queue with
for all
j, i.e., the queue is always empty almost surely, because
for all
j implies
In other words, when each customer departs from the system, the server becomes idle almost surely, which implies
for every
j. That is, the server must have an infinite service capacity; this is the only way to make the service times of customers vanish identically. Consequently,
becomes an inter-arrival time with probability one.
The scenarios above illustrate two extreme situations. If a stable queue is in steady state, then and for each j. Consequently, is a stochastic sequence with two-fold randomness and differs essentially from any sequence of random variables defined on the whole sample space . To illustrate the difference, consider an arbitrarily given . At this sample point,
- (i)
if (i.e., immediately after departs, there is no unfinished work in the system), then equals ; otherwise the server is busy, and takes as its value;
- (ii)
thus,
can be divided into two subsequences randomly as follows.
Having a finite service capacity, the server is either busy or idle with a positive probability, thus realistic inter-departure times always fall into two categories. In steady state, the probability for the server to be busy or idle is fixed, and the values of inter-departure times are given by either
or
according to whether
(i.e, the server is idle) or
(i.e., the server is busy) immediately after
departs, see Eq.(
2.1) and Eq.(
2.2). In the literature, the distribution of
or
is interpreted as the distribution of
conditional on values taken by
. According to such interpretation, a marginal distribution of the inter-departure times could be constructed based on the distributions of
and
.
However, the above interpretation is questionable. By Lemma 1, for each , cannot be expressed as a random variable defined on the whole sample space or characterized by a marginal distribution; it is problematic to treat the distribution of or as the distribution of conditional on values taken by , because is not a random vector; its components cannot take values at the same sample point . As shown in the proof of Lemma 1, treating as a random vector leads to a contradiction. According to Corollary 1, the terms of are not random variables on ; they are terms of a stochastic sequence with two-fold randomness. The general results presented in this section may be better understood if a specific example is provided. A stable M/M/1 queue in steady state may serve as such an example, which will be considered in the following section.