Thomas Eapen · Selected work

Exploring the assumptions behind a staffing model

A research-focused Erlang-C illustration: calculate, cross-check and compare scenarios while keeping the model’s assumptions explicit.

Original tools: Excel / Python · Example calculations: PythonSynthetic example · independently invented data · One-page A3 landscape
84invented arrivals per hour
210smean service time
4.9erlangs of offered load
7servers in the highlighted scenario

SELECTED PYTHON

The calculation

Offered load = arrivals per hour × mean service seconds ÷ 3,600. The function requires positive load below the number of interchangeable servers.

from math import isfinite
from scipy.stats import poisson

def erlang_c(load, agents):
    if type(agents) is not int or agents < 1:
        raise ValueError('Use a positive integer server count.')
    if not isfinite(load) or not 0 < load < agents:
        raise ValueError('A stable example needs 0 < load < agents.')
    at_capacity = poisson.pmf(agents, load)
    below_capacity = poisson.cdf(agents - 1, load)
    return float(at_capacity / (
        at_capacity + (1 - load / agents) * below_capacity
    ))

Extracted from the new helper that computes this example.

Equivalent Excel probability expression

=POISSON.DIST(Agents,Load,FALSE) /
 (POISSON.DIST(Agents,Load,FALSE) +
  (1-Load/Agents)*POISSON.DIST(Agents-1,Load,TRUE))

Agents and Load are named input cells. This expression is provided for comparison; Excel was not executed for this new example.

COMPUTED SCENARIOS

Inspect the sensitivity to capacity

Same arrivals and service time; wait threshold 25s
ServersMust waitMean waitWithin 25s
655.2%105.4s51.6%
730.1%30.1s76.6%
815.3%10.4s89.4%
97.3%3.7s95.5%
Mean waiting time changes with the server-count assumptionWith the same invented arrival and service rates: 6 servers give 105.4 seconds mean queueing wait; 7 servers give 30.1 seconds mean queueing wait; 8 servers give 10.4 seconds mean queueing wait; 9 servers give 3.7 seconds mean queueing wait. These are steady-state model scenarios.Mean queueing wait across all arrivals, including immediate service6 servers105.4s7 servers30.1s8 servers10.4s9 servers3.7s
Mean waiting time changes with the server-count assumptionWith the same invented arrival and service rates: 6 servers give 105.4 seconds mean queueing wait; 7 servers give 30.1 seconds mean queueing wait; 8 servers give 10.4 seconds mean queueing wait; 9 servers give 3.7 seconds mean queueing wait. These are steady-state model scenarios.6 servers · 105.4s7 servers · 30.1s8 servers · 10.4s9 servers · 3.7s
Two independent Python formulations agreeThe Poisson-ratio result matches an Erlang-B recurrence followed by the B-to-C identity within 1e−12 for every shown scenario.

Mean wait = C × mean service time ÷ (servers − load). The within-threshold fraction is 1 − C × exp(−(servers − load) × threshold ÷ mean service time).

The research approachI explored these models in Excel and Python, then examined their limitations. This new study illustrates that approach with invented parameters and an independent implementation check. Agreement between formulas does not validate a real-world forecast.

State the assumptionsA stable long-run model with constant rates: Poisson arrivals, exponential service times, interchangeable servers, one unbounded FIFO queue and no abandonment. Skills-based routing and temporary surges need further investigation.