347. M/M/1

Exponential Distribution:
Inter-arrival Times

Rate parameter λ = 2 (same as above)

Poisson Distribution:
Number of Arrivals in Time Period 𝑡=2

Rate parameter 𝜆=2, so 𝜆𝑡=4

Key Relationship

Both distributions share the same rate parameter 𝜆 = 2

  1. Utilization (𝜌)

Fraction of time the server is busy

𝜌=𝜆𝜇
  1. Average Number of Customers in the System (𝐿)

Average number of customers (both waiting and being served) in the system

𝐿=𝜌1𝜌
  1. Average Number of Customers in the Queue (𝐿𝑞)

Average number of customers waiting in the queue

𝐿𝑞=𝜌21𝜌
  1. Average Time a Customer Spends in the System (𝑊)

Average time a customer spends in the system (from arrival until they are done being served)

𝑊=1𝜇𝜆
  1. Average Waiting Time in the Queue (𝑊𝑞)

Average time a customer spends just waiting in line before being served

𝑊𝑞=𝜌𝜇𝜆
  1. Probability that the System is Empty (𝑃0)

Probability that there are zero customers in the system (no one is being served and no one is waiting)

𝑃0=1𝜌
  1. Probability that n Customers are in the System (𝑃𝑛)

Probability that there are n customers in the system (either waiting or being served)

𝑃𝑛=(1𝜌)𝜌𝑛
  1. Probability the Queue is Full (if the Queue has Limited Capacity) (𝑃𝑛max)

Probability that the system is at full capacity

𝑃𝑛max=(1𝜌)𝑝𝑛max
  1. System Throughput

Rate at which customers are served and leave the system

Throughput=𝜆
  1. Expected Time in Service (𝑊𝑠)

Average time a customer spends actually being served (not including waiting time)

𝑊𝑠=1𝜇
  1. Idle Time (1𝜌)

Fraction of time that the server is idle (i.e., not serving any customers)

Idle Time=1𝜌
  1. Probability of Having to Wait in the Queue (𝑃𝑤)

Probability that an arriving customer will have to wait before being served, i.e., that the server is busy when the customer arrives

𝑃𝑤=𝜌
  1. Variance of the Number of Customers in the System (Var(𝐿))

Variance of the number of customers in the system

Var(𝐿)=𝜌(1𝜌)2
Example

A bank with a single teller

  • Arrival rate (𝜆): On average, 4 customers arrive every 10 minutes (𝜆=4 custommers per 10 minutes)

  • Service Rate (𝜇): The teller can serve 6 customers every 10 minutes (𝜇=6 customers per 10 minutes)

  1. Utilization (𝜌)
𝜌=𝜆𝜇=46=0.67

The teller is busy 67% of the time. The remaining 33% of the time, the teller is idle, waiting for the next customer

  1. Average Number of Customers in the System (𝐿)
𝐿=𝜌1𝜌=0.6710.67=2

On average, there are 2 customers in the coffee shop at any given time, either being served or waiting in line

  1. Average Number of Customers in the Queue (𝐿𝑞)
𝐿𝑞=𝜌21𝜌=0.67210.67=1.33

On average, about 1.33 customers are waiting in line at any time

  1. Average Time a Customer Spends in the System (𝑊)
𝑊=1𝜇𝜆=164=0.5

On average, a customer spends 5 minutes (0.5×10 minutes) in the shop (including both waiting in line and getting served)

  1. Average Waiting Time in the Queue (𝑊𝑞)
𝑊𝑞=𝜌𝜇𝜆=0.6764=0.33

On average, a customer waits 3.3 minutes (0.33×10 minutes) in line before being served by the teller

  1. Probability that the System is Empty (𝑃0)
𝑃0=1𝜌=10.67=0.33

There is a 33% chance that the coffee shop is empty, meaning there is no customer in the queue or being served

  1. Probability that n Customers are in the System (𝑃𝑛)
𝑃𝑛=(1𝜌)𝜌𝑛=(10.67)0.672=0.148

There is a 14.8% chance that exactly 2 customers are either in line or being served

  1. Probability the Queue is Full (if the Queue has Limited Capacity) (𝑃𝑛max)
𝑃𝑛max=(1𝜌)𝑝𝑛max=(10.67)0.675=0.028

There is a 2.8% chance that the system is full, and no new customers can enter

  1. System Throughput
Throughput=𝜆=4

The coffee shop serves 4 customers every 10 minutes, on average

  1. Expected Time in Service (𝑊𝑠)
𝑊𝑠=1𝜇=16=0.167

On average, a customer spends 1.67 minutes being served by the teller

  1. Idle Time (1𝜌)
Idle Time=1𝜌=10.67=0.33

The teller is idle 33% of the time

  1. Probability of Having to Wait in the Queue (𝑃𝑤)
𝑃𝑤=𝜌=0.67

There is a 67% chance that a customer will have to wait when they arrive

  1. Variance of the Number of Customers in the System (Var(𝐿))
Var(𝐿)=𝜌(1𝜌)2=0.67(10.67)2=6.122

The queue length varies significantly, with a variance of 6.12 customers

Costs

Total Waiting Cost=𝐿𝑞×𝐶𝑤×Unit TimeTotal Idle Cost=(1𝜌)×𝐶𝑠×Unit Time

Total Cost

Total Cost=Total Waiting Cost+Total Idle Cost
Example
  • Arrival Rate (𝜆): 4 customers per 10 minutes
  • Service Rate (𝜇): 6 customers per 10 minutes
  • Cost per Waiting Customer per Hour (𝐶𝑤): $10
  • Cost per Idle Server per Hour (𝐶𝑠): $20
  • Operational Time: 1 hour
  1. Utilization
𝜌=𝜆𝜇=46=0.67
  1. Average Number of Customers in Queue (𝐿𝑞)
𝐿𝑞=𝜌21𝜌=0.67210.67=1.33cusommers
  1. Total Waiting Cost
Total Waiting Cost=𝐿𝑞×𝐶𝑤×Unit Time=1.33×10×1=$13.33
  1. Idle Time
Idle Time=1𝜌=10.67=0.33
  1. Total Idle Cost
Total Idle Cost=(1𝜌)×𝐶𝑠×Unit Time=0.33×20×1=$6.67
  1. Total Cost
Total Cost=Total Waiting Cost+Total Idle Cost=13.33+6.67=$20