Stellar Grove · Research

Stellar Grove · Concrete Mathematical Modelling

Should the barber hire an assistant?

Customers who find every chair taken walk away. Does a second barber bring in enough of them to pay a wage?

Chapter 6 · Stationary distributions. A worked example rebuilt from the chapter's topic in Mike Mesterton-Gibbons, *A Concrete Approach to Mathematical Modelling*; the scenario and numbers are our own illustration, not the book's text.

Headline: Alone, the barber turns away 38% of customers. An assistant cuts that to 9%, adding 0.90 haircuts an hour worth $22.41, against a $30 wage: don't hire (net −$7.59 an hour).

The problem

Customers arrive at a barbershop at random, λ=3 an hour. A haircut takes on average 30 minutes (μ=2 an hour). There are 3 waiting chairs; anyone who finds them all full leaves. A haircut costs $25. Should the barber pay an assistant $30 an hour?

The model

With c barbers and room for N=c+chairs customers, the number in the shop is a birth-death chain on 0,…,N: arrivals at rate λ (blocked at N), departures at μmin(n,c). Detailed balance gives the stationary distribution:

πn=π0∏k=1nλμmin(k,c),∑n=0Nπn=1

Arrivals see the stationary distribution (Poisson arrivals see time averages), so the share turned away is πN and the shop serves λ(1−πN) customers an hour. Hiring pays if

pλ(πN(1)−πN(2))>w

Results

One barberTwo barbers
Customers turned away38.4%8.5%
Haircuts per hour1.852.74
Barbers busy92%69%
Mean wait of those who stay (min)6014
Revenue per hour$46.21$68.62
Net hourly gain from hiring, by how busy the shop is
Net hourly gain from hiring, by how busy the shop is

Try it

Barbershop explorer

Bars compare how many customers are in the shop with one barber and with two.

Key findings

from books.concrete_mathematics import stationary as st
r = st.hire_assistant(lam=3.0, mu=2.0, chairs=3, price=25.0, wage=30.0)
print(round(r["one"].p_block, 3), round(r["two"].p_block, 3), round(r["net_gain"], 2), r["hire"])

# → 0.384 0.085 -7.59 False

Assumptions and extensions