Queueing_model

E. Quinn 3/3/2022

M/M/m queueing model for ICU capacity

Import standard python datascience packages

Overview

A major goal of Covid-19 mitigation strategies is to prevent the healthcare system from being overwhelmed with seriously ill Covid-19 patients.

According to the Johns Hopkins Coronavirus database, Rhode Island has 214 ICU beds.

Published numbers suggest the average ICU stay is abut 15.5 days: ICU LENGTH OF STAY IN CRITICALLY ILL PATIENTS WITH COVID-19: DOES RACE MATTER? CHEST Journal Volume 160, ISSUE 4, SUPPLEMENT, A1164, October 1, 202102517-4/fulltext) .

This notebook does a back-of-the-envelope queueing model (M/M/214 in Kendall's notation) to get an idea of the risk of exceeding capacity given the characteristics of the current pandemic in Rhode Island.

Formulation of the M/M/m model

The important input parameters are:

The important derived quantities are:

The traffic intensity:

$$\rho = \frac{\lambda}{m\mu}$$

The probability of the state with zero patients $P_0$:

$$P_0 = \left[\sum_{i=1}^{m-1}\frac{(m\rho)^i}{i!} + \frac{(m\rho)^m}{m!(1-\rho)}\right]^{-1} $$

The probability of the state with $i$ patients in the system:

$$P_i = \left\{\begin{array}{lcl}P_0\frac{(m\rho)^i}{i!}&for&i\leq m\\P_0\frac{m^m\rho^i}{m!}&for&i>m\end{array}\right.$$

The probability $P_Q$ that an arriving patient has to wait in the queue is (this is called the Erlang C formula):

$$P_Q = \frac{P_0(m\rho)^m}{m!(1-\rho)}$$

Compute and normalize queue length probabilities

Compute M/M/214 queueing system model

M/M/214 queueing model: arrival rate=1

M/M/214 queueing model: arrival rate=6

M/M/214 queueing model: arrival rate=10

M/M/214 queueing model: arrival rate=12

M/M/214 queueing model: arrival rate=13

M/M/214 queueing model: arrival rate=13.5

M/M/214 queueing model: arrival rate=14