The Lawfare Academy

Lawfare Group → Knowledge Institute → Lawfare Academy

← Back to program

← Quality and Productivity

Unit 3

Queues and variability

Learning objectives

  • Explain queues and variability in your own words.
  • Apply the principle to the worked business case.
  • Evaluate the answer and identify an assumption that could change it.

Queues and variability

Queue performance depends on utilization and variability in arrivals and service. In an M/M/1 model, average system time is 1/(service rate-arrival rate), assuming stable Poisson arrivals and exponential service.

Worked example

At four arrivals per hour and service capacity five per hour, modeled system time is one hour.

Current on-site learning

All required original teaching, complete derivations and optional practice models are on LawfareGroup.com. External references are optional provenance or further reading. Florida is the state-law default; federal, historical and comparative contexts remain distinct. Independent human subject review and observed learner testing remain pending. Written quality-productivity preparation establishes no actual legal opinion, technical clearance, licensing approval, funding authorization or observed professional competence.

Work through the reasoning

Map the customer, delivery process, money flows, and decision authority. For this unit, connect the explanation of queues and variability to the worked example before answering the practice question.

Check the limits

Check whether the proposed action can be delivered with the stated people, capacity, and cash. If the source model and the practical example use different assumptions, state the difference rather than applying the formula or rule mechanically.

Apply it independently

Modeled average time in the system is: Write an answer before opening the model response. Show the calculation or explain the causal or logical steps. Change one material assumption and say whether your conclusion changes. This practice is optional; you can read every part of the course without submitting work.

Advanced investigation: Queueing models: derive the nonlinear cost of utilization

A queue accumulates when work arrives before the required resource is available. Average capacity exceeding average demand is necessary for stability in many simple models, but it does not imply short waits. Variability creates periods of excess demand; high utilization leaves little slack to recover. Specify whether the metric is waiting before service, service duration, total system time or a percentile promise. Those are different quantities.

Under the ideal M/M/1 assumptions, arrivals are Poisson at rate λ, service times are independent exponential with rate μ, there is one server, and λ<μ. Let ρ=λ/μ. Balance between neighboring system states gives stationary probabilities πn=(1−ρ)ρ^n. The mean number in the system is the geometric-series result L=ρ/(1−ρ). Little's Law, using the same boundary and stable averages, gives W=L/λ=1/(μ−λ). Subtract mean service time 1/μ to obtain Wq=λ/[μ(μ−λ)]. The derivation exposes why the gap μ−λ matters rather than only the percentage of nominal capacity used.

This model's memoryless assumptions are restrictive. Scheduled arrivals, batch work, priorities, abandonment, changing staffing, correlated demand and nonexponential service can produce different waits. Two systems with the same means can have different waiting distributions. An average is also not a service-level guarantee. Even a correct average cannot by itself justify promising that almost every customer will finish within that time.

Little's Law is a conservation-style average relationship, not a complete causal improvement theory. If stable throughput is four jobs per hour and average system time is 0.4 hour, average work in process is 1.6 jobs. That equation does not establish whether reducing work in process by rejecting arrivals improves service or merely changes the population served. Match the entering and leaving populations, include unfinished work consistently and inspect trends before assuming steady state.

Choose an intervention by its mechanism. Appointment smoothing can reduce arrival variation. Cross-training can alter effective capacity or pooling. Shorter processing can raise μ. Better triage can improve urgent-case service while worsening another group's wait. Evaluate the whole distribution and distribution of burdens, not only a single favorable utilization ratio.

Worked investigation

A fictional single-server system has λ=4 arrivals/hour and μ=5 completions/hour. Utilization is 0.8, W=1 hour, service time is 0.2 hour and Wq=0.8 hour. Raising μ to 6 gives W=0.5 hour and Wq=1/3 hour. If demand then rises to λ=5 with μ=6, W returns to 1 hour and Wq becomes 5/6 hour. A 20% capacity increase did not permanently halve waiting because the demand assumption changed. At λ≥μ the stated stationary formulas do not define a stable finite mean.

Independent transfer

With λ=4, find the service rate required for modeled mean total system time no greater than 0.4 hour. Calculate utilization and mean waiting before service at that rate. Does this establish a 95th-percentile service promise?

Transfer reasoning

From 1/(μ−4) ≤ 0.4, require μ≥6.5/hour. At 6.5, utilization is 4/6.5 = 0.6154; Wq=0.4−1/6.5 = 0.24615 hour, about 14.77 minutes. This is a model of the mean under the stated assumptions, not a demonstrated 95th-percentile promise for the actual process.

Original Academy expansion: waiting is a consequence of variability

Average capacity exceeding average demand does not imply little waiting. Arrivals cluster and processing times vary. A system needs slack to absorb those fluctuations. As utilization approaches one, recovery opportunities shrink, so queues can grow sharply. A service promise based only on average handling time ignores waiting, dispatch, batching, and rework. The customer experiences the complete elapsed time.

For the idealized M/M/1 queue, arrivals follow a Poisson process, service times are independent exponential variables, and one server works under the model's discipline with arrival rate lambda below service rate mu. The long-run utilization is rho = lambda/mu. Mean time in system is W = 1/(mu - lambda), and mean waiting before service is Wq = lambda/[mu(mu - lambda)]. These formulas illustrate a mechanism under restrictive assumptions. They are not universal estimators for every clinic, shop, or call center.

Worked investigation: the last slice of utilization is costly

Suppose service capacity is six jobs per hour, corresponding to ten minutes mean service time. At arrivals of three per hour, rho = 0.5 and W = 1/3 hour, or twenty minutes. Mean waiting is ten minutes. At five arrivals per hour, rho is about 0.8333 and W = one hour. Mean waiting is fifty minutes. At 5.5 arrivals per hour, W = two hours and mean waiting is 110 minutes. Service time stayed ten minutes throughout. The growth came from congestion under the model.

Pooling can reduce the chance that one server sits idle while another has a long line, but pooled queues are not always operationally interchangeable. Skills, priorities, travel, privacy, and setup costs can limit pooling. Appointment systems can smooth arrivals but do not eliminate no-shows, overruns, or urgent cases. Batching may reduce setup time while increasing waiting for a batch to form. Each policy trades one mechanism against another.

Variability reduction can create value without raising average service speed. Standardized preparation, complete intake information, maintained equipment, and clearer handoffs can reduce preventable extreme delays. Distinguish controllable variation from legitimate case complexity. Forcing every case into the same time allowance can conceal necessary work or encourage avoidance of complex customers. Stratify the work where appropriate and evaluate both service outcomes and access.

Progressive practice and reasoning

  1. Foundation: with mu = 6 and lambda = 4, compute W = 0.5 hour and Wq = one-third hour, or twenty minutes.
  2. Application: explain why scheduling arrivals equal to nominal capacity leaves no slack for ordinary variation.
  3. Transfer: a manager reports average service time of ten minutes and promises every customer departure within fifteen minutes. Identify waiting, tail behavior, and model assumptions missing from that promise.
  4. Critique: propose a small measurement study of arrival timestamps, service starts, service ends, case type, and interruptions. Explain why direct measurement is needed before applying an M/M/1 formula to the real process.

Reading alignment for this expansion

The earlier introductory links remain background reading. Use the complete current onsite studios and preserved native investigations for the full preparation; external links are optional provenance. The original Academy worked records above are not quotations from those sources.

Open the runnable laboratory

Complete current conceptual preparation

Locate and resource the actual operating promise

The native M/M/1 derivation and every worked queue sensitivity remain intact. This complete original Academy method supplies the assigned location/layout, dependent material requirements, manufacturing/enterprise planning, make-or-buy and resource-feasibility preparation. Cobalt site/component/assembly records and earlier-course references remain independent of the native continuous mix and Mangrove clinic; their assumptions are not actual supplier or facility evidence.

Complete original Academy method and independent-case boundary

The following studio is reproduced in full. Its original numerical cases, prior-course references, rubrics and source-consultation statements remain in their own context. This inclusion claims no new whole-source review, actual operating result or learner competence.

Fit the facility and resource plan to the operating promise

A location choice is a constrained system decision

Compare a facility's access to necessary inputs, people, customers, transport, utilities and supporting services. Include relocation/setup, recurring costs, delivery consequences, disruption exposure and any actually applicable site constraints. An offered incentive is conditional until its amount, timing and obligations are verified. A weighted score can organize preferences but cannot override a mandatory qualification or capacity failure.

Layout also changes movement and coordination. A functional layout groups similar resources and supports varied routes; a product route arranges repeated steps in sequence; a fixed-position job keeps the output stationary while resources move; a cell brings a product family's relevant work together. Neither a name nor a floor-plan drawing establishes feasible staffing, accessibility, safety, technical approval or customer service. The following Cobalt cases are original hypothetical decision models; no real facility or applicable legal requirement is represented as verified.

Worked location screen: a cheaper site can be infeasible

Site A has annual fixed cost 12000 and relevant variable cost 4 per completed unit; site B has fixed 20000 and variable 2. Under this deliberately linear cost boundary, equal costs solve 12000+4 q=20000+2 q, givingq 4000. At 3000 units A costs 24000 and B 26000; at 5000 A 32000 and B 30000. State which costs are included and avoid adding an allocation that does not change with the decision.

Now stipulate that B can actually complete at most 4500 units yearly while the required scope is 5000. Its lower calculated cost at 5000 does not make that quantity deliverable. Select a feasible alternative or evaluate an explicitly changed plan with its own evidence and costs. A's capacity must also be established; the cost equation itself does not supply it. If transportation, customer response, outage risk or required qualification differs, the linear comparison is incomplete.

A cost-volume crossover is a screening tool, not an empirical forecast that demand will reach the threshold. Test plausible volumes and step changes. Verify common currency, time horizon, accepted output and actual contracted cost terms before treating the difference as a business gain. Florida remains the state-law default, while federal and comparative international questions are distinct; none of these synthetic figures establishes current permits, incentives, wages or taxes.

Resource planning translates the output plan into dated requirements

A bill of materials states component quantity per defined finished unit. A master production schedule specifies which finished units are planned in which periods. Material requirements planning relates that dependent demand to available inventory, scheduled receipts, lot rules and lead times. Manufacturing-resource and enterprise systems can connect capacity, finance, purchasing and other functions, but a shared database does not validate incorrect input definitions or create unavailable supply.

Use a separate Cobalt assembly plan:20 finished units in period 1 and 30 in period 2, each needing 2 clips and 1 panel. Clips' gross requirements are 40 and 60. Stipulate opening clips 15, a confirmed 10 clip scheduled receipt before period 1 use, required ending buffer 5 and one-period replenishment lead time. Under a lot-for-lot rule, period 1 net receipt need is 40+5−15−10=20; projected ending inventory becomes 5. Period 2 needs 60+5−5=60. The planned receipts 20/60 require planned releases in period 0/1 respectively under the stated one-period lead convention.

Panels begin with 12, no scheduled receipt or required buffer, giving net receipts 8 and 30 for gross 20/30. Release those one period before required availability. These are planned orders, not confirmations that a supplier accepted them. A receipt that arrives after consumption is due cannot be counted as available merely because both occur in the same reporting month. Define the period boundary and enforce actual timestamps when the decision requires finer timing.

If assembly takes 3 minutes per finished unit, work is 60 minutes in period 1 and 90 in period 2. A 100 minute usable assembly budget in each period supports those loads under the supplied no-setup/no-rework assumption. A one-minute-per-unit extra required test instead raises loads 80 and 120, making period 2 infeasible. A material plan can balance while the capacity plan fails. Replan dates, volume or actual resources; do not call an overloaded schedule feasible because software generated it.

Make or buy must respect the same incremental boundary

For another independent component decision, making a quantityq requires an avoidable fixed 600 plus 8 per unit; buying costs 11 per unit with equivalent accepted scope and timing stipulated. The equal-cost quantity is 200. At 150, make 1800 versusbuy 1650 favors buying by 150. At 300, make 3000 versusbuy 3300 favors making by 300 only if actual internal capacity, quality and authority support it.

If the internal operation can make only 250 and the requirement is 300, the all-internal alternative is unavailable. A mixed make/buy policy needs a new comparison including the fixed cost, capacity allocation, supplier terms and whether minimum commitments apply. A sunk historical machine purchase is not automatically an avoidable new fixed cost, and spare capacity with an alternative profitable use can carry an opportunity cost. Keep those distinctions explicit rather than label every allocated unit cost relevant.

A resource plan still needs a variability model

The original Alder queue chapter already derives M/M/1 and its limitations. Preserve arrival 4/service 5 per hour, utilization .8, total-system mean 1 hour, queue wait .8 hour and mean queue 3.2. The location and material-planning examples do not establish Poisson arrivals, exponential service, independence, unlimited waiting or no abandonment. Those are separate model assumptions.

In a stated compatible M/M/1 sensitivity, improving service to 6 while arrival remains 4 gives utilization 2/3, total-system mean 1/(6−4)=.5 hour, service 1/6 hourand queue wait 1/3 hour. Mean system population 2 and mean queue 4/3 follow from matching Little's Law. A faster mean service can reduce congestion, but an added mandatory check, travel or interruptions can reverse the modeled capacity change. Protect the customer promise with evidence about the actual arrival/service process, not a nominal location score.

An operating response can improve readiness, reduce variability, pool appropriate resources, change release or add qualified capability. Each affects a different mechanism. A planned staffing change and a purchased machine are not proof that service rate actually improved. A finite horizon or deterministic schedule needs its own trace/model rather than a negative or infinite stationary formula used mechanically.

Optional practice and complete revised models

Guided: a low cost does not satisfy a hard requirement

Model: sites tie at 4000 units; at 5000 B's 30000 cost is below A's 32000. Changed fact: B's verified capacity is 4500. Revised analysis: exclude B's unsupported 5000 plan or define a feasible revised network, including all added costs and constraints. Do not use a favorable score to override the quantity requirement. A's capacity also needs actual evidence before implementation.

Independent: the dated bill of materials

Model: clipsgross 40/60, opening 15 and confirmed 10 receipt, buffer 5 yield netplanned receipts 20/60 and ending inventory 5/5. Panelsgross 20/30 with opening 12 need 8/30. Changed fact: the scheduled 10 clipreceipt is delayed past period 1 use. Revised model: period 1 additional required receipt rises 20 to 30 if all other assumptions remain; the original plan otherwise has a ten-clip shortfall. A later receipt can change later balances but cannot fund earlier consumption retrospectively.

Transfer: the resource budget changes after a new quality step

Model:3 minutes per unit gives 60/90 minutes for 20/30 units, within 100 per period. Changed fact: a required one-minute test adds to the same constrained resource. Revised model:4 minutes per unit gives 80/120; period 2 exceeds capacity by 20 minutes. Identify a feasible authorized response while keeping material timing and accepted quality intact. An unqualified waiver of the test is not a capacity improvement.

Integrated resource-plan rubric:20 points

Award four points each for site/layout and hard-gate reasoning; consistent cost-volume comparison; bill-of-material/lead-time derivation; complete capacity/variability model; and an evidence-based changed-fact response. Complete model: reproduce crossover 4000 and B's capacity exclusion, clips 20/60 and panels 8/30 with the stated period 0/1 releases, then show the new test's 20 minuteperiod 2 overload. Keep the independent make/buy 150/300 comparisons and M/M/1 service 6 sensitivity in their own files. State current evidence, responsible owner, resource terms and a feasible fallback; a model output is not actual facility approval, supplier availability or human review.

Optional source summaries

OpenStax 10.3 was consulted for location and layout decision categories;10.4 for material/resource planning, make-or-buy and cross-function coordination. The Cobalt site equations, dated component explosion, resource-overload test and full changed-fact models are original teaching. Optional location provenance; Optional resource-planning provenance. Consulted October 30,2026. Required teaching is entirely on site.

Apply the idea

At four arrivals per hour and service capacity five per hour, modeled system time is one hour.

Modeled average time in the system is: Explain your reasoning, then identify one changed fact that could alter the conclusion.

Advanced worked record — a separate fictional scenario: A fictional single-server system has λ=4 arrivals/hour and μ=5 completions/hour. Utilization is 0.8, W=1 hour, service time is 0.2 hour and Wq=0.8 hour. Raising μ to 6 gives W=0.5 hour and Wq=1/3 hour. If demand then rises to λ=5 with μ=6, W returns to 1 hour and Wq becomes 5/6 hour. A 20% capacity increase did not permanently halve waiting because the demand assumption changed. At λ≥μ the stated stationary formulas do not define a stable finite mean.

Independent transfer: With λ=4, find the service rate required for modeled mean total system time no greater than 0.4 hour. Calculate utilization and mean waiting before service at that rate. Does this establish a 95th-percentile service promise?

Expanded transfer investigation: Why should the M/M/1 formula not be applied automatically to an appointment service?

Show the calculation or argument, identify the information available at the decision time, and state which assumption supports your conclusion. The four progressive tasks in the Learn stage provide additional practice.

Read the worked reasoning

1 hour. 1/(5-4)=1 hour under the specified model, not a universal service law. In an independent response, state the given facts, identify the governing relationship, work through the calculation or comparison, and distinguish the conclusion from assumptions that still need evidence.

Advanced transfer reasoning: From 1/(μ−4) ≤ 0.4, require μ≥6.5/hour. At 6.5, utilization is 4/6.5 = 0.6154; Wq=0.4−1/6.5 = 0.24615 hour, about 14.77 minutes. This is a model of the mean under the stated assumptions, not a demonstrated 95th-percentile promise for the actual process.

Expanded transfer reasoning: A formula is conditional on a process model, not merely the availability of two averages.

Progressive practice reasoning: 1. Foundation: with mu = 6 and lambda = 4, compute W = 0.5 hour and Wq = one-third hour, or twenty minutes. 2. Application: explain why scheduling arrivals equal to nominal capacity leaves no slack for ordinary variation. 3. Transfer: a manager reports average service time of ten minutes and promises every customer departure within fifteen minutes. Identify waiting, tail behavior, and model assumptions missing from that promise. 4. Critique: propose a small measurement study of arrival timestamps, service starts, service ends, case type, and interruptions. Explain why direct measurement is needed before applying an M/M/1 formula to the real process.

Check understanding

In the stated M/M/1 model, lambda=5/hour and mu=6/hour. What is mean time in system?

  1. 50 minutes
    Feedback

    Incorrect. Fifty minutes is mean queue waiting, excluding service.

  2. 60 minutes
    Feedback

    Correct. W=1/(6-5)=one hour.

  3. 10 minutes
    Feedback

    Incorrect. Ten minutes is the mean service time, excluding waiting.

Further reading

All required original teaching, complete derivations and optional practice models are on LawfareGroup.com. External references are optional provenance or further reading. Florida is the state-law default; federal, historical and comparative contexts remain distinct. Independent human subject review and observed learner testing remain pending. Written quality-productivity preparation establishes no actual legal opinion, technical clearance, licensing approval, funding authorization or observed professional competence.

My learning →