MAT SYS 5120 (Winter 2012) Assignment 5 (not to be submitted) There are 4 questions.

Similar documents
The Transition Probability Function P ij (t)

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

Introduction to Queuing Networks Solutions to Problem Sheet 3

Performance Evaluation of Queuing Systems

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

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

Part I Stochastic variables and Markov chains

QUEUING MODELS AND MARKOV PROCESSES

CPSC 531: System Modeling and Simulation. Carey Williamson Department of Computer Science University of Calgary Fall 2017

Non Markovian Queues (contd.)

Solutions to Homework Discrete Stochastic Processes MIT, Spring 2011

Continuous-Time Markov Chain

Lecture 20: Reversible Processes and Queues

Figure 10.1: Recording when the event E occurs

Class 11 Non-Parametric Models of a Service System; GI/GI/1, GI/GI/n: Exact & Approximate Analysis.

(b) What is the variance of the time until the second customer arrives, starting empty, assuming that we measure time in minutes?

Chapter 2 SOME ANALYTICAL TOOLS USED IN THE THESIS

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

Statistics 150: Spring 2007

Homework 1 - SOLUTION

Introduction to Markov Chains, Queuing Theory, and Network Performance

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 "

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER I EXAMINATION MH4702/MAS446/MTH437 Probabilistic Methods in OR

Random Walk on a Graph

Data analysis and stochastic modeling

HITTING TIME IN AN ERLANG LOSS SYSTEM

Dynamic Control of a Tandem Queueing System with Abandonments

L = λ W time average number in Line or system arrival rate W average Waiting time per customer

Examination paper for TMA4265 Stochastic Processes

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

IEOR 6711, HMWK 5, Professor Sigman

Statistics 253/317 Introduction to Probability Models. Winter Midterm Exam Friday, Feb 8, 2013

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

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

P (L d k = n). P (L(t) = n),

EXAM IN COURSE TMA4265 STOCHASTIC PROCESSES Wednesday 7. August, 2013 Time: 9:00 13:00

Lecture 10: Semi-Markov Type Processes

Chapter 5: Special Types of Queuing Models

Link Models for Circuit Switching

1.225 Transportation Flow Systems Quiz (December 17, 2001; Duration: 3 hours)

UNIVERSITY OF YORK. MSc Examinations 2004 MATHEMATICS Networks. Time Allowed: 3 hours.

Stochastic Processes. Theory for Applications. Robert G. Gallager CAMBRIDGE UNIVERSITY PRESS

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science

Stochastic process. X, a series of random variables indexed by t

2.2t t 3 =1.2t+0.035' t= D, = f ? t 3 dt f ' 2 dt

Since D has an exponential distribution, E[D] = 0.09 years. Since {A(t) : t 0} is a Poisson process with rate λ = 10, 000, A(0.

Name of the Student:

Solutions to Homework Discrete Stochastic Processes MIT, Spring 2011

IE 5112 Final Exam 2010

Continuous-time Markov Chains

T. Liggett Mathematics 171 Final Exam June 8, 2011

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

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

Queueing systems. Renato Lo Cigno. Simulation and Performance Evaluation Queueing systems - Renato Lo Cigno 1

Introduction to queuing theory

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

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

Q = (c) Assuming that Ricoh has been working continuously for 7 days, what is the probability that it will remain working at least 8 more days?

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

Little s result. T = average sojourn time (time spent) in the system N = average number of customers in the system. Little s result says that

Irreducibility. Irreducible. every state can be reached from every other state For any i,j, exist an m 0, such that. Absorbing state: p jj =1

Queues and Queueing Networks

Queuing Analysis. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall

16:330:543 Communication Networks I Midterm Exam November 7, 2005

STAT 380 Continuous Time Markov Chains

THE ROYAL STATISTICAL SOCIETY 2009 EXAMINATIONS SOLUTIONS GRADUATE DIPLOMA MODULAR FORMAT MODULE 3 STOCHASTIC PROCESSES AND TIME SERIES

Introduction to Queueing Theory with Applications to Air Transportation Systems

Course Outline Introduction to Transportation Highway Users and their Performance Geometric Design Pavement Design

Slides 9: Queuing Models

Computer Systems Modelling

Statistics 433 Practice Final Exam: Cover Sheet and Marking Sheet

Chapter 5. Continuous-Time Markov Chains. Prof. Shun-Ren Yang Department of Computer Science, National Tsing Hua University, Taiwan

The shortest queue problem

MATH 56A: STOCHASTIC PROCESSES CHAPTER 6

Continuous time Markov chains

Session-Based Queueing Systems

DISCRETE STOCHASTIC PROCESSES Draft of 2nd Edition

Markov Processes and Queues

Time Reversibility and Burke s Theorem

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

Queuing Theory. Using the Math. Management Science

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

Renewal theory and its applications

Stationary remaining service time conditional on queue length

Queuing Theory. 3. Birth-Death Process. Law of Motion Flow balance equations Steady-state probabilities: , if

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

1 IEOR 4701: Continuous-Time Markov Chains

Discrete Event Systems Exam

EXAMINATIONS OF THE ROYAL STATISTICAL SOCIETY

QueueTraffic and queuing theory

Continuous Time Processes

IEOR 6711: Stochastic Models I Fall 2012, Professor Whitt, Thursday, October 4 Renewal Theory: Renewal Reward Processes

PBW 654 Applied Statistics - I Urban Operations Research

Introduction to queuing theory

Intro Refresher Reversibility Open networks Closed networks Multiclass networks Other networks. Queuing Networks. Florence Perronnin

Readings: Finish Section 5.2

Classification of Queuing Models

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

QUEUING SYSTEM. Yetunde Folajimi, PhD

Modelling data networks stochastic processes and Markov chains

Transcription:

MAT 4371 - SYS 5120 (Winter 2012) Assignment 5 (not to be submitted) There are 4 questions. Question 1: Consider the following generator for a continuous time Markov chain. 4 1 3 Q = 2 5 3 5 2 7 (a) Give the probability transition matrix P for the corresponding embedded Markov chain. (b) Based on the following output from R, give the stationary distribution φ for the embedded Markov chain. > P<-matrix(nrow=3,c(0,2/5,5/7,1/4,0,2/7,3/4,3/5,0)) > P [1,] 0.0000000 0.2500000 0.75 [2,] 0.4000000 0.0000000 0.60 [3,] 0.7142857 0.2857143 0.00 > # the transpose of P > Pt<-t(P) > Pt [1,] 0.00 0.4 0.7142857 [2,] 0.25 0.0 0.2857143 [3,] 0.75 0.6 0.0000000 > # the eigenvalues and vectors of P transpose > v<-eigen(pt) > v$values [1] 1.0000000-0.7390457-0.2609543 > v$vectors [1,] -0.6332372-0.67884786 0.5524690 [2,] -0.3548312-0.05348088-0.7968913 [3,] -0.6878266 0.73232874 0.2444223 (c) Use returns to state 1 of the continuous time Markov chain to define cycles for a renewal process. Define X n as the length of the nth cycle and R n 1

as the time in state 1 during the n cycle. Define N(t) as the renewal counting process, i.e. it counts the number cycles by time t. In words, what do R(t) = N(t) n=1 R n and R(t)/t represent within the context of this problem? (d) Refer to part (c). Find the expected reward of a cycle, i.e. E[R], and the expected length of a cycle, i.e. E[X]. (e) Let π 1 be the long run proportion of time in 1. Use parts (c) and (d) to find π 1. Using similar arguments, give π 2 and π 3. (f) Let π be the long-run probability vector from part (e). Show that π is the stationary distribution of the continuous time Markov chain by showing that it satisfies the general balance equations (or equilibrium equations). solution: (a) The elements of Q are the transition rates. For example, q ij is the transition rate from state i to state j. The state transition probabilities of the embedded chain are { qij /q p ij = ii, i j 0, i = j. Thus, P = 0 1/4 3/4 2/5 0 3/5 5/7 2/7 0 (b) The vector v = [ 0.6332372, 0.3548312, 0.6878266] is a left eigenvector to P with corresponding eigenvalue 1. Normalizing v to get a distribution gives the stationary distribution for the embedded chain. We get φ = 1 [ 0.6332372, 0.3548312, 0.6878266] 0.6332372 + ( 0.3548312) + ( 0.6878266) = [0.3779, 0.2117, 0.4104]. (c) R(t) is the total amount of time that the CTMC is in state i up to time t. Thus, R(t)/t is the proportion of time that the CTMC is in state i. (d) R is the sojourn time in state 1. It has an exponential distribution with rate j:j 1 q 1j. Thus, 1 E[R] = j:j 1 q = 1 1j 4 = 0.25. 2

Between visits to state 1, the following visit ratios give the mean number of visits to state 2 and state 3 for the embedded chain, respectively, ν 12 = φ 2 φ 1 = 0.2117 0.3779 = 0.56020, ν 13 = φ 3 φ 1 = 0.4104 0.3779 = 1.0860. By Wald s identity, the expected length of a cycle is E[X] = µ 1 + ν 12 µ 2 + ν 13 µ 3, where µ i represents a mean sojourn time in state i. We get E[X] = 1 ( ) ( ) ( ) ( ) 0.2117 1 0.4104 1 4 + + = 0.51718. 0.3779 5 0.3779 7 (e) From the law of large numbers for reward renewal processes, we have R(t) t E[R] E[X] almost surely as t. Therefore, the long-run proportion of time in state 1 is π 1 = 0.25 0.51718 = 0.4834. Similarly, and π 2 = π 3 = φ 2 µ 2 (0.2117)(1/5) 3 i=1 φ = i µ i (0.3779)(1/4) + (0.2117)(1/5) + (0.4104)(1/7) = 0.2166 φ 3 µ 3 (0.4104)(1/7) 3 i=1 φ = i µ i (0.3779)(1/4) + (0.2117)(1/5) + (0.4104)(1/7) = 0.3000. (f) We need to show that π Q = 0. Here is a verification with R: > Q<-matrix(nrow=3,c(-4,2,5,1,-5,2,3,3,-7)) > Q [1,] -4 1 3 [2,] 2-5 3 [3,] 5 2-7 > pi<-matrix(nrow=1,c(0.4834, 0.2166, 0.3000)) > pi [1,] 0.4834 0.2166 0.3 > pi %*% Q [1,] -4e-04 4e-04 1.665335e-16 3

Taking rounding under consideration, we have π Q = 0. Question 2: In a two-bay car wash, where cars arrive at the rate of λ = 9 cars per hour and the average duration of a car wash is twelve minutes, what is the probability that an arriving customer will find at least one of the bays occupied? Solution: We can model the car wash as an M/M/2 queueing model. The arrival rate is λ = 9 cars per hour. The mean time to service a car is 12 minutes, which is equivalent to 0.2 hour. So the service rate for a bay is µ = 1/0.2 = 5 cars per hour. We want the probability that the system is not empty, that is 1 π 0 = 1 1 ρ 1 + ρ = 1 1.9 1 +.9 = 0.947, where the traffic intensity is ρ = λ/(2 µ) = 9/(2 (5)) = 0.9. So the probability that an arriving customer will find at least one of the bays occupied is 94.7%. Question 3: At a particular exit ramp on the highway, there is a single tollbooth. It was originally thought that there would be insufficient traffic at this point to justify more than one booth, but the traffic has increased recently. There are now (during rush hour, which is the period of concern) an average of 210 cars per hours, and the average service time is fifteen seconds. Two proposals have been made. The first is to add another toll booth identical to the first (assume the traffic would split evenly and at random between the two). The second is to add an automatic (that is, no human operator) booth that accepts exact change only. That booth would have an average service time of only five seconds, but only a third of the arrivals (selected at random) would have exact change. The performance measure of concern is the average delay incurred by the people who exit at this ramp. Using an appropriate queuing model, estimate the delay under the present system, the first proposal, and the second proposal. solution: Consider the case where we add a second booth. We have two M/M/1 queues, each as an arrival rate of λ = 210/2 = 105 cars per hour. The service rate at a booth is 1 customer per 15 seconds, which is equivalent to 4 customers per minute or µ = 240 customers per hour. The traffic intensity for each M/M/1 queue is ρ = λ/µ = 105/240 = 0.4375. The mean waiting time to go through such a system (i.e. queueing time plus 4

service time) is W = 1 λ L = 0.77778 105 = 0.0074 hours (or 26.64 seconds). Remark: We used the fact that the mean number of customers in the system for an M/M/1 queue is L = and Little s Law that L = λ W. ρ 1 ρ = 0.4375 1 0.4375 = 0.77778 Now let us consider the scenario with an automatic booth. Again we have 2 M/M/1 queues, but the traffic intensity of the first queue (with the human operators) is ρ = λ (2/3) (210) = = 0.58333. µ 240 The mean waiting time to go through such a system (i.e. queueing time plus service time) is where W = 1 λ L = 1.39998 = 0.01000 hours (or 36 seconds), (2/3)(210) L = ρ 1 ρ = 0.58333 1 0.58333 = 1.39998. The traffic intensity of the second queue (with the automatic operator) is ρ = λ µ = (1/3) (210) (3600)/5 = 0.097222. The mean waiting time to go through such a system (i.e. queueing time plus service time) is where W = 1 λ L = 0.107692 = 0.001538 hours (or 5.54 seconds), (1/3)(210) L = ρ 1 ρ = 0.097222 1 0.097222 = 0.107692. Thus, one third of the customers have a mean delay of 5.54 seconds, while the others have a mean delay of 36 seconds. So the expected delay time for the second scenario is (1/3) 5.54 + (2/3) 36 = 25.84 seconds. The mean delay for the first option is 26.64 seconds. Using an automatic booth will only improve the mean delay overall customers. However, the majority of 5

the drivers in the latter case would see their mean delay go up to 36 seconds. The first scenario is probably the best choice. Question 4: Consider an M/M/2/4 queue. (a) Set up the state transition rate diagram. (b) What are the equilibrium equations? (c) Solve the equilibrium equations to obtain the stationary distribution. solution: (a) (b) From equation 0, we get Substitute into equation 1, we get state flow in = flow out 0 π 1 µ = π 0 λ 1 π 0 λ + π 2 (2 µ) = π 1 (λ + µ) 2 π 1 λ + π 3 (2 µ) = π 2 (λ + 2 µ) 3 π 2 λ + π 4 (2 µ) = π 3 (λ + 2 µ) 4 π 3 λ = π 4 (2 µ) π 1 = π 0 λ/µ. π 2 = π 0 λ/µ(λ + µ) 2 µ Substitute into equation 2, we get π 3 = π 0 (λ 2 /(2µ 2 ))(λ + µ) 2 µ Substitute into equation 3, we get Using 1 = 4 i=0 π i, gives π 0 = λ 2 π 0 λ 2 µ = π 0 2 µ 2. π 1 λ 2 µ = π 0 (λ 2 /(2µ 2 ))(λ + µ) π 0 λ 2 2 µ 2 µ 2 = π 0 λ 3 4 µ 3. π 4 = π 0 λ 4 8 µ 4. [ 1 + λ µ + λ ] 1 2 µ 2 + λ3 4µ 3 + λ4 8µ 4. 6

Note that equation 4 is also satisfied. Therefore, π 1 = π 0 λ/µ, π 2 = π 0 λ 2 2 µ 2, π 3 = π 0 λ 3 4 µ 3, π 4 = π 0 λ 4 8 µ 4, and π 0 = [ 1 + λ µ + λ ] 1 2 µ 2 + λ3 4µ 3 + λ4 8µ 4. 7