344. M/M/1

Exponential Distribution:
Inter-arrival Times

Rate parameter λ = 2 (same as above)

Poisson Distribution:
Number of Arrivals in Time Period

Rate parameter , so

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. Average Number of Customers in the Queue ()

Average number of customers waiting in the queue

  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. 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 ()

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

  1. Probability that n Customers are in the System ()

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

  1. Probability the Queue is Full (if the Queue has Limited Capacity) ()

Probability that the system is at full capacity

  1. System Throughput

Rate at which customers are served and leave the system

  1. Expected Time in Service ()

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

  1. Idle Time ()

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

  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 ()

Variance of the number of customers in the system

Example

A bank with a single teller

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

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

  1. Utilization ()

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 ()

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 ()

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

  1. Average Time a Customer Spends in the System ()

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

  1. Average Waiting Time in the Queue ()

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

  1. Probability that the System is Empty ()

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 ()

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) ()

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

  1. System Throughput

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

  1. Expected Time in Service ()

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

  1. Idle Time ()

The teller is idle 33% of the time

  1. Probability of Having to Wait in the Queue ()

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 ()

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

Costs

Total 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
  1. Average Number of Customers in Queue ()
  1. Total Waiting Cost
  1. Idle Time
  1. Total Idle Cost
  1. Total Cost