EFFICIENT COMPUTATION OF PROBABILITIES OF EVENTS DESCRIBED BY ORDER STATISTICS AND APPLICATION TO A PROBLEM OFQUEUES

Similar documents
The Queue Inference Engine and the Psychology of Queueing. ESD.86 Spring 2007 Richard C. Larson

Efficient Computation of Probabilities of Events Described by Order Statistics and Applications to Queue Inference. Lee K. Jones and Richard C.

ON THE LAW OF THE i TH WAITING TIME INABUSYPERIODOFG/M/c QUEUES

Queues and Queueing Networks

Probability and Statistics Concepts

Queuing Theory. Richard Lockhart. Simon Fraser University. STAT 870 Summer 2011

[4] T. I. Seidman, \\First Come First Serve" is Unstable!," tech. rep., University of Maryland Baltimore County, 1993.

Non Markovian Queues (contd.)

Networks of Queues Models with Several. Classes of Customers and Exponential. Service Times

Fluid Models of Parallel Service Systems under FCFS

Queuing Theory. Using the Math. Management Science

Link Models for Circuit Switching

Data analysis and stochastic modeling

MULTIPLE CHOICE QUESTIONS DECISION SCIENCE

Figure 10.1: Recording when the event E occurs

Robust Queueing Theory

GI/M/1 and GI/M/m queuing systems

Generation of Discrete Random variables

A TANDEM QUEUEING SYSTEM WITH APPLICATIONS TO PRICING STRATEGY. Wai-Ki Ching. Tang Li. Sin-Man Choi. Issic K.C. Leung

Exact Simulation of the Stationary Distribution of M/G/c Queues

HITTING TIME IN AN ERLANG LOSS SYSTEM

A STAFFING ALGORITHM FOR CALL CENTERS WITH SKILL-BASED ROUTING: SUPPLEMENTARY MATERIAL

λ λ λ In-class problems

Introduction to Queueing Theory

The Performance Impact of Delay Announcements

Queueing Theory II. Summary. ! M/M/1 Output process. ! Networks of Queue! Method of Stages. ! General Distributions

Lecture 20: Reversible Processes and Queues

THE INTERCHANGEABILITY OF./M/1 QUEUES IN SERIES. 1. Introduction

Answers to selected exercises

Introduction to Queueing Theory

System occupancy of a two-class batch-service queue with class-dependent variable server capacity

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science

TCOM 501: Networking Theory & Fundamentals. Lecture 6 February 19, 2003 Prof. Yannis A. Korilis

Submitted to IEEE Transactions on Computers, June Evaluating Dynamic Failure Probability for Streams with. (m; k)-firm Deadlines

Introduction to Queueing Theory with Applications to Air Transportation Systems

Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4

Recap. Probability, stochastic processes, Markov chains. ELEC-C7210 Modeling and analysis of communication networks

Elementary queueing system

Buzen s algorithm. Cyclic network Extension of Jackson networks

EE 368. Weeks 3 (Notes)

Lecture 7: Simulation of Markov Processes. Pasi Lassila Department of Communications and Networking

Answers to the problems from problem solving classes

Lesson 8: Why Stay with Whole Numbers?

Derivation of Formulas by Queueing Theory

Operations Research Letters. Instability of FIFO in a simple queueing system with arbitrarily low loads

Markov Chains. X(t) is a Markov Process if, for arbitrary times t 1 < t 2 <... < t k < t k+1. If X(t) is discrete-valued. If X(t) is continuous-valued

10.2 For the system in 10.1, find the following statistics for population 1 and 2. For populations 2, find: Lq, Ls, L, Wq, Ws, W, Wq 0 and SL.

Contents Preface The Exponential Distribution and the Poisson Process Introduction to Renewal Theory

Chapter 1. Introduction. 1.1 Stochastic process

Queueing Systems: Lecture 3. Amedeo R. Odoni October 18, Announcements

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

STAT 380 Continuous Time Markov Chains

Chapter 6 Queueing Models. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation

57:022 Principles of Design II Final Exam Solutions - Spring 1997

Appendix A: Matrices

QUEUING MODELS AND MARKOV PROCESSES

On the Partitioning of Servers in Queueing Systems during Rush Hour

Probability Models in Electrical and Computer Engineering Mathematical models as tools in analysis and design Deterministic models Probability models

Online Supplement to Delay-Based Service Differentiation with Many Servers and Time-Varying Arrival Rates

Time Reversibility and Burke s Theorem

2905 Queueing Theory and Simulation PART III: HIGHER DIMENSIONAL AND NON-MARKOVIAN QUEUES

Reading: Karlin and Taylor Ch. 5 Resnick Ch. 3. A renewal process is a generalization of the Poisson point process.

Making Delay Announcements

Economy of Scale in Multiserver Service Systems: A Retrospective. Ward Whitt. IEOR Department. Columbia University

Introduction to Queuing Networks Solutions to Problem Sheet 3

5/15/18. Operations Research: An Introduction Hamdy A. Taha. Copyright 2011, 2007 by Pearson Education, Inc. All rights reserved.

Simulation. Where real stuff starts

2905 Queueing Theory and Simulation PART IV: SIMULATION

ENGINEERING SOLUTION OF A BASIC CALL-CENTER MODEL

Queueing Theory I Summary! Little s Law! Queueing System Notation! Stationary Analysis of Elementary Queueing Systems " M/M/1 " M/M/m " M/M/1/K "

Markov Chain Model for ALOHA protocol

IEOR 6711: Stochastic Models I, Fall 2003, Professor Whitt. Solutions to Final Exam: Thursday, December 18.

Photo: US National Archives

One billion+ terminals in voice network alone

Queueing Theory and Simulation. Introduction

Introduction to Markov Chains, Queuing Theory, and Network Performance

Networking = Plumbing. Queueing Analysis: I. Last Lecture. Lecture Outline. Jeremiah Deng. 29 July 2013

Massachusetts Institute of Technology

Stationary Analysis of a Multiserver queue with multiple working vacation and impatient customers

Queuing Networks: Burke s Theorem, Kleinrock s Approximation, and Jackson s Theorem. Wade Trappe

Continuous-Time Markov Chain

reversed chain is ergodic and has the same equilibrium probabilities (check that π j =

Stationary Probabilities of Markov Chains with Upper Hessenberg Transition Matrices

SOLUTIONS IEOR 3106: Second Midterm Exam, Chapters 5-6, November 8, 2012

CSM: Operational Analysis

King Fahd University of Petroleum & Minerals Computer Engineering Dept

Situation: Summing the Natural Numbers

The Transition Probability Function P ij (t)

CHAPTER 4. Networks of queues. 1. Open networks Suppose that we have a network of queues as given in Figure 4.1. Arrivals

On the static assignment to parallel servers

A FAST MATRIX-ANALYTIC APPROXIMATION FOR THE TWO CLASS GI/G/1 NON-PREEMPTIVE PRIORITY QUEUE

IS 709/809: Computational Methods in IS Research Fall Exam Review

Queueing Theory. VK Room: M Last updated: October 17, 2013.

Analysis of Software Artifacts

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science

NEW FRONTIERS IN APPLIED PROBABILITY

Stochastic inventory system with two types of services

IEOR 6711, HMWK 5, Professor Sigman

Solutions to Homework Discrete Stochastic Processes MIT, Spring 2011

56:171 Operations Research Fall 1998

Transcription:

EFFICIENT COMPUTATION OF PROBABILITIES OF EVENTS DESCRIBED BY ORDER STATISTICS AND APPLICATION TO A PROBLEM OFQUEUES Lee K. Jones and Richard C. Larson OR 249-91 May 1991

Efficient Computation of Probabilities of Events Described by Order Statistics and Application to a Problem of Queues Lee K. Jones Institute for Visualization and Perception Research and Department of Mathematics University of Massachusetts-Lowell, Lowell, Massachusetts 01854 Richard C. Larson Operations Research Center and Department of Electrical Engineering and Computer Science Massachusetts Institute of Technology Cambridge, Massachusetts 02139 May 1991

ABSTRACT Consider a set of N i.i.d. random variables in [0, 1]. When the experimental values of the random variables are arranged in ascending order from smallest to largest, one has the order statistics of the set of random variables. In this note an O(N3) algorithm is developed for computing the probability that the order statistics vector lies in a given rectangle. The new algorithm is then applied to a problem of statistical inference in queues. Illustrative computational results are included. Key Words: Order statistics, queues, statistical inference, queue inference engine.

i Introduction Let X 1, X 2,, XN(1) be an i.i.d. sequence of random variables with values in [0,1] where the sequence length N(1) is an independent random integer. Recently, in an application to queue inference [6,7], an efficient algorithm [O(N 3 )] has been developed to compute the conditional cumulative probability of the vector of order statistics, Pr{X(l) < t 1, X(2) < t 2,., X(N) < tn I N(1)=N}, for the case of each X i uniform. (The algorithm presented here will efficiently calculate the latter probabilities for Xi having arbitrary given c.d.f. F(x).) Apparently the question of efficient computation of cumulative probabilities for the order statistics vector has not been previously treated in the literature. (See for example [1], [4].) It is most natural to ask for an efficient algorithm to calculate the probability of an order statistics vector lying in a given N-rectangle, i.e., to compute Fr(, t) Pr{sl < X(1 ) t 1, s 2 < X( 2 ) < t 2, SN < X(N) < tn I N(1) = N, where s - (s 1 s, 2., SN), t (t 1, t 2.., tn). We note that the method of computing the probability of a rectangle by applying repeated differences to the cumulative will require 2 N evaluations of the cumulative. This is too slow for many applications. In this note we develop an efficient algorithm [O(N 3 )] to compute these probabilities for arbitrary rectangular regions where the Xi have a given c.d.f. F(x). applications are given for deducing queue statistics from transactional data. 1. Analysis New Assume X i E (0, 1] and < tl < t 2 <... < tn < 1, 0 < sl < s 2 <... < sn < 1 and si < t i for i = 1, 2,..., N. Note that, since {t i } and {s i } are each nondecreasing as sequences,

we may merge the two sequences into 2N vi= 1, ordered according to magnitude, i=l using only O(N) operations. Consider Wki Pr{s 1 < X(1 ) < min {t 1, vi}, s2 < X( 2 ) < min {t 2, vi},., (1) s k < Xk < min {tk, v i } I N(1) = k}, i = 1, 2,..., 2N, k= 1,2,...,N We want to compute WN,2N = F(, D). This will require recursive computation of entries of the matrix W = (Wki), starting with k = 1. By noting impossible events we see that for all k,i such that sk vi, Wki = 0, implying that Wkl = 0 for k = 1,2,..., N. We also require as a boundary condition W0i = 1 for i = 1,2,..., 2N - 1, (2) which can be interpreted to be the probability that the event inequalities will be satisfied, given no random variables (hence no inequalities) in [0, 1]. Theorem. Wki can be computed using the following recursion: Wki = j= 0, 1, 2,... s.t. vi< tk - j+ i(k) Wk -j,i -1 [F(vi) - F(vi- 1)] Proof. Wki = Pr{s < X( 1 ) < min tl, vi}, s2 < X( 2 ) min t 2, vi),..., sk < Xk < min {tk, v i } I N(1) = k) = Pr{s 1 < X(1 ) < min {t 1, v i _ 1}, s 2 < X( 2 ) min t 2, v i -1},., s k < Xk < min {tk, v i - 1} I N(1) = k}

+ Pr{sl < X(1 ) < min tl, v i _ 1 }), 2 < X(2) < min {t 2, v i _ 1 },, Sk- 1 < X(k- 1) < min {tk _ 1, i- 1}, Vi- 1 < X(k) min {tk, vi} I N(1) = k} + Pr{s < X( 1 ) < min {tl, v i _ 1}, s2 < X( 2 ) min {t 2, v i _ 1},..., Sk - 2 < X(k - 2) < min {tk _ 2, Vi - 1}, i - 1 < X(k - 1) < min {tk _ 1, vi}, vi- 1 < X(k) < min {tk, vi} I N(1) = k } +... + Pr{s < X() < min {tl, v i _ 1}, s 2 < X( 2 ) min t 2, v i - 1,-, S k - j < X(k - j) < min {tk_ j, vi_ 1}, i - 1 < X(k- j +1) < min {tk - j+l, Vi},, vi- 1 < X(k) < min {tk, i} I N(1) = k} +... The term explicitly displaying X(k -_ j+l) on the RHS can be nonzero only if min{tk - j + 1, vi} = vi. Hence we can write Wki=W ki-l + ) W k -,i -1 F(vi) - F(vi _ 1)) + 2 k W k-2,i-1 (F(v ivj-fv1) i) - F(v -1)) 2 k +... + i Wk -j,i-1 (F(vi - F(vi _ )) j+... +Wo,i- (F(i) - F(vi -1))k for all j satisfying v i < tk j + 1 and where the last term on the RHS utilizing the boundary condition Eq. (2) is included only if vi < tl.. As a verification of the recursion we obtain as expected at the first iteration Wli = F(min{tl, vi}) - F(sl) i = 2, 3,..., 2N.

The matrix W = (Wki) can be partitioned into three regions: (1) Wki = O for k 2 i; (2) Wki 2 0 for i -N < k < i; (3) Wki > O for k <i -N; Hence the maximum possible number of nonzero terms in row k is 2N -k, and the minimum number is N - k + 1. The recursion to obtain Wki requires computation and addition of up to k + 1 terms. Thus, row k of (Wki) requires computation of up to (2N - k)(k + 1) terms. The total number of terms required to compute (Wki) is N 2 3 2 2 I (2N-k)(k+l)= N +2N - N k=l 3 3 yielding an O(N 3 ) procedure. For the special case s i = 0, i = 1, 2,..., N, all Wki in region (2) of W are zero and we have the problem of Refs. [6,7]. 2. Applications to the Oueue Inference Engine Ref. [6] uses events of order statistics to derive an algorithm, the "Queue Inference Engine," to compute various performance measures of Poisson arrival queues. In particular, N is the total number of customers to arrive to the queueing system during a congestion period, a continuous time interval during when all servers are busy and all arriving customers must queue for service. And t i is the observed time of departure of the ith customer to leave the system during the congestion period. Using the fact that the N unordered arrival times during any fixed time interval (0,T] are i.i.d. uniform and scaling the congestion period to (0, 1], then in our notation here F(0, t) is the apriori probability that the (unobserved)

arrival times X( 1 ), X( 2 ),..., X(N), obey the inequalities X(i) < t i for all i = 1, 2,..., N, a condition that must hold for the congestion period to persist. (Additional new work on the Queue Inference Engine is reported in [2], [3] and [5].) 2.1 The Maximum Experienced Queue Delay Assume we have a first-come, first-served (FCFS) queue. Suppose we set s = t - z, i.e., s i = Max{t i -, 0) for all i = 1, 2,..., N. Then F(t -, t) is the a priori probability that the observed departure time inequalities will be obeyed and that no arrival waits more than X time units in queue. Define D( I ) - conditional probability that none of the N customers waited more than z time units, given the observed departure time data. Clearly, D(.2 I Cum) = F(t-, ueu )/ Dela). (0, (3) 2.2 The Cumulative Distribution of Queue Delay Again assume we have a FCFS queue. Suppose we set s = Si, defined so that Si = 0 s = Maxtj-,0} i = 1, 2,...,j - i=j,j+1,...,n. Then if we define j ( I t) = Pr jth customer to arrive during the congestion period waited less than z time units I observed departure time data}, we can write 3 j ('C I t) = F(s, /rf(0,t). (4)

This result allows us to determine for any congestion period the probability that a random customer waited more than time units, given the observed departure data. We simply compute Eq. (4) once for each value of j and average the results. Or, if a less accurate computation is permitted, just select the customer j at random from the N available and apply Eq. (4) to the selected customer. By applying Eq. (4) for varying values of, we can determine the c.d.f. of queue delay, conditioned on the observed departure time data. 2.3 Maximum Queue Length Finally, without any assumption regarding queue discipline, suppose we define s = s*m such that *M where a negative subscript implies a value of zero. These values for s imply that each arriving customer i is to arrive no earlier than the departure time of departing customer i - M during the congestion period. Now we can compute the conditional probability that the queue length did not exceed M during the congestion period: P(Q < M I ) = Pr{queue length did not exceed M during the congestion period I observed departure time data} = F(s*M, /rf(o, D. (5)

2.4 Probability Distribution of Queue Length Following the same arguments as in [4], we can utilize the O(N 3 ) computational algorithm to determine for any queue discipline the probability distribution of queue length at departure epochs, and by a balance of flow argument, this distribution is also the queue length distribution experienced by arriving customers. 2.5 Behavior of Priority Queues As a final example, consider a multiserver queue with L priority classes of customers. At any given time during a congestion period there exists up to L distinct queues, indexed I = 1,..., L. A customer from class i is said to be higher priority than one from class j if i < j. Upon completion of service of a customer, the newly available server will select a customer from the highest priority nonempty queue. There must be at least one, otherwise the congestion period would be over. We define I i = priority of the customer whose service commences at time t i. We assume l i is known for each customer, thus I = (li) is an additional vector in the transactional data set. Analysis of the priority sequences in I uncovers subcongestion periods within the universal congestion period. As an example, suppose for a three priority system we have a single congestion period commencing at time t = 0, with = (3, 2, 1, 1, 1, 2, 3), t=(tl, t 2, t 3, t 4, t 5, t 6, t 7 ). Here, for example, the first priority 3 customer commences service at time t = 0, the first priority 1 customer to enter service does so at time t = t2, and the entire congestion period terminates at time t = t 7. The time interval [tl, t 4 ] is a continuous period of time during which the three consecutive customers to

enter service are priority 1; this period of time is a subcongestion period for priority 1 customers and a component of longer subcongestion periods for priority 2 and 3 customers. For instance, the subcongestion period for the single queued priority three customer is [0, t 6 ]. Each such subcongestion period may be analyzed separately using the ideas above to compute queue performance by priority class. If queue discipline is first-come, first-served within each priority class, then one can use Eq.(4) to determine the probability distribution of queue delay for each priority class. 2.6 Illustrative Computational Results Perhaps the most important queue inference application of the algorithm is use of Eq.(4) in computing points on the c.d.f. of the in-queue waiting time for a random customer, assuming a FCFS queue. We have done this for several different queues for which limiting or equilibrium results are known. One set of Monte Carlo simulation runs modeled the well known M/M/1 (Poisson customer arrivals, i.i.d. negative exponential service times, single server) queue under alternative load factors (ratio of customer arrival rate to available customer service rate). As one illustrative example an M/M/1 queue was simulated with an average of 10 customers arriving per hour, available service rate of 20 customers per hour (i.e., mean service time of 1/20 hour or 3 minutes) for a total of 1000+ simulated hours. The average load factor was 0.5. The transactional data of each of the 4961 observed congestion periods were analyzed with Eq.(4) to estimate points on the in-queue waiting time c.d.f. If Wq is the random variable of interest, then Eq.(4) yields the following c.d.f. estimates: P{Wq = 0} = 0.4922, P{Wq < 1 min.) = 0.5913, P{Wq < 2 min.} = 0.6476, P{Wq < 3 min.} = 0.6972. From the theory of M/M/1 queues, the analytically obtained limiting results are P{Wq = 0 = 0.5000, P{Wq < 1 min.} = 0.5768, P{Wq < 2 min.} = 0.6417, P{Wq < 3 min.} = 0.6967.

q Acknowledgements The work of the second author was supported by the National Science Foundation. Both authors thank Sue Hall for programming the algorithm and obtaining the computational results. References 1. Barlow, R. E., D. J. Bartholomew, J. M. Bremmer and H. D. Brunk, Statistical Inference Under Order Restriction, John Wiley and Sons, New York, 1972. 2. Bertsimas, D. J. and L.D. Servi, "Deducing Queueing from Transactional Data: The Queue Inference Engine Revisited," Technical Report OR 212-90, Operations Research Center, Massachusetts Institute of Technology, Cambridge, Mass. 1991. 3. Daley, D. J. and L. D. Servi, "Exploiting Markov Chains to Infer Queue-Length From Transactional Data," submitted to Journal of Applied Probability, 1991. 4. David, H. A., Order Statistics, John Wiley and Sons, New York, 1981. 5. Hall, S. A. and R. C. Larson, "The Queue Inference Engine (QIE) with Partial Queue Length Information," paper presented at TIMS/ORSA Nashville National Meeting, May 15, 1991. 6 Larson, Richard C., "The Queue Inference Engine: Deducing Queue Statistics from Transactional Data," Management Science, Vol. 36, No. 5, 1990, pp.586-601. 7. Larson, Richard C. "The Queue Inference Engine: Addendum," to appear in Management Science, 1991.