A supermarket probability experiment

What is the fastest checkout line if every shopper has a random number of items?

Count the items, not just the people.Choose the line with the least total work: visible items plus a small per-shopper payment overhead. If basket sizes truly cannot be seen, choose the shortest line. Best of all, use one shared serpentine line.

Checkout strategy simulator

READY
00:00 simulatedtrial 1 / 500
min
min
%
items
%

Expected wait by strategy

Lower is better · same random shoppers
0 min10 min

Live conclusion

0 simulated choices

Waiting for experiment

Run the shoppers to test each rule.

Every strategy faces identical generated stores, making the comparison fair. Adjust any assumption and the experiment reruns.

Advantage over random
Regret vs clairvoyant best lane
95% uncertainty in mean
Standard deviation
Chance wait exceeds 10 min
Human vs probability

Can you spot the fastest line?

Each round generates four visible queues. Pick one before the hidden cashier speeds, coupon snags, and actual service times are revealed. This is the single-trip version of the question: a smart choice improves your odds, but cannot guarantee a win.

CORRECT PICKS0 / 0
Choose a lane using the people and item counts.
How to use and read the model

Everything this experiment measures

This is a discrete-event simulation: each shopper has a randomly generated basket, each cashier processes one item at a time, and payment adds a fixed cost. It repeats the same decision hundreds or thousands of times to separate a good rule from a lucky guess.

01 / THE MAIN RULE

Least total work

Add all visible items ahead, then add one payment-and-bagging overhead for each shopper. Choose the smallest total. This beats simply counting people whenever baskets vary substantially. If baskets are hidden, the model automatically falls back to their expected size.

02 / SHORTEST LINE

When counting people works

If every basket is drawn from the same distribution and you cannot see its size, each person represents the same expected amount of work. The shortest line is then the rational choice—though chance can still make it lose on any single trip.

03 / SHARED QUEUE

Why serpentine is robust

A single line feeding the next free cashier pools risk. One slow basket delays everyone slightly instead of trapping one unlucky line. It generally reduces the long tail and makes waits fairer, even if its mean can resemble a well-chosen separate line.

04 / RANDOM BASKETS

Average and unpredictability

Basket size uses an over-dispersed random distribution. “Unpredictability” controls its spread: low values cluster shoppers near the average; high values create more tiny baskets and occasional overflowing carts.

05 / SERVICE MODEL

Scanning, paying, and cashier speed

Service time equals items × seconds per item + fixed pay/bag overhead, with modest random noise. The cashier-speed toggle gives lanes persistent speed differences, reproducing the frustrating line that looks short because its cashier is slow.

06 / FAIR COMPARISON

Common random numbers

All four rules are scored on the same generated queue in each trial. The bars show mean wait; the dashboard adds the 90th percentile, win rate, regret, and a 95% confidence interval for your selected rule.

07 / ANIMATION

What the store view shows

Colored circles are shoppers; the number inside is basket size. Cash registers sit at the top, queues advance toward them, and the orange outlined shopper is “you.” Speed changes playback only, never the calculated outcome.

08 / QUEUE PRESSURE

When every line becomes slow

Pressure compares arriving work with total scanning capacity. Above 100%, shoppers arrive faster than the checkouts can serve them, so a continuing queue would grow without bound. Picking cleverly cannot fix an understaffed store.

09 / LIMITS

A model, not a prophecy

Real lines include coupons, age checks, equipment failures, queue switching, express limits, and correlated family baskets. Use the result as a decision principle: estimate work when visible; otherwise minimize people; prefer pooled queues.

10 / QUICK EXPERIMENTS

Presets that stress the rule

Typical store is a balanced baseline. Basket lottery creates extreme basket variation. Friday rush pushes incoming work above capacity. Express test opens a 12-item lane and shrinks baskets so you can measure when eligibility matters.

11 / EXPRESS LANE

Eligibility changes the choice set

When enabled, lane 1 accepts shoppers with 12 items or fewer and is populated only by eligible baskets. A simulated shopper with a larger basket cannot choose it. This often makes express best for small trips, but a long express queue can still lose.

12 / HIDDEN SNAGS

Coupons and price checks

The snag controls add a configurable chance that each shopper triggers an extra random delay. Snags are not visible when a line is chosen, so they widen the wait distribution, increase tail risk, and demonstrate why the apparently optimal line sometimes loses.

13 / PREDICTION GAME

Practice the decision

The challenge creates a fresh four-lane store on every round. You see shopper counts, total items, and express status, then choose. It reveals hidden service times, the optimal line, time lost, and which simple heuristic would have made the same choice.

14 / RISK READOUTS

Mean is not the whole story

The 90th percentile describes a bad-but-common wait. Standard deviation measures volatility, tail risk reports waits above ten minutes, and regret measures extra time versus a clairvoyant choice. The 95% interval shows Monte Carlo precision, not real-world certainty.

15 / LIVE CONCLUSION

The answer changes with assumptions

The verdict names the lowest-mean strategy for the current controls. It also explains hidden baskets, express eligibility, and overload. Every slider reruns matched trials locally, so conclusions and uncertainty always describe the displayed setup.

Visible baskets?

Choose the smallest sum of item-scanning time plus one fixed transaction cost per shopper.

Hidden baskets?

Choose the shortest line. Identically distributed random baskets give every shopper equal expected work.

Choice of queue design?

A single shared line is most reliable because it automatically sends the next shopper to the first available cashier.