Always Pick the Wrong Line at the Checkout? Math Can Explain Why

Commuters line London
Commuters adjust their helmets as they queue at a bike hire point at Waterloo Station on July 9, 2015 in London, England. Math can help explain how to pick the fastest line. Dan Kitwood/Getty

This article was originally published on The Conversation. Read the original article.

It seems obvious. You arrive at the checkouts and see one line is much longer than the other, so you join the shorter one. But, before long, the people in the bigger line zoom past you and you've barely moved towards the exit.

When it comes to picking lines, the intuitive choice is often not the fastest one. Why do lines feel like they slow down as soon as you join them? And is there a way to decide beforehand which line is really the best one to join? Mathematicians have been studying these questions for years. So can they help us spend less time waiting in line?

The intuitive strategy seems to be to join the shortest one. After all, a short line could indicate it has an efficient server, and a long one could imply it has an inexperienced server or customers who need a lot of time. But generally this isn't true.

Without the right information, it could even be disadvantageous to join the shortest line. For example, if the short line at the supermarket has two very full trolleys and the long one has four relatively empty baskets, many people would actually join the longer line. If the servers are equally efficient, the important quantity here is the number of total items in the line, not the number of customers. But if the trolleys weren't very full but the hand baskets were, it wouldn't be so easy to estimate and the choice wouldn't be so clear.

This simple example introduces the concept of service time distribution. This is a random variable that measures how long it will take a customer to be served. It contains information about the average (mean) service time and about the standard deviation from the mean, which represents how the service time fluctuates depending on how long different customers need.

The other important variable is how often customers join the line (the arrival rate). This depends on the average amount of time that passes between two consecutive customers entering the shop. The more people that arrive to use a service at a specific time, the longer the lines will be.

Depending on what these variables are, the shortest line might be the best one to join—or it might not. For example, in a fish and chip shop you might have two servers both taking orders and accepting money. Then it is most often better to join the shortest line since the time the servers' tasks take doesn't vary much.

Unfortunately, in practice, it's hard to know exactly what the relevant variables are when you enter a shop. So you can still only guess what the fastest line to join will be, or rely on tricks of human psychology, such as joining the leftmost line because most right-handed people automatically turn right.

Did you get it right?

Once you're in the line, you'll want to know whether you made the right choice. For example, is your server the fastest? It is easy to observe the actual line length and you can try to compare it to the average. This is directly related to the mean and standard deviation of the service time via something called the Pollaczek-Khinchine formula, first established in 1930. This also uses the mean interarrival time between customers.

Unfortunately, if you try to measure the time the first person in the line takes to get served, you'll likely end up feeling like you chose the wrong line. This is known as Feller's paradox or the inspection paradox. Technically, this isn't an actual logical paradox but it does go against our intuition. If you start measuring the time between customers when you join a line, it is more likely that the first customer you see will take longer than average to be served. This will make you feel like you were unlucky and chose the wrong queue.

The inspection paradox works like this: suppose a bank offers two services. One service takes either zero or five minutes, with equal probability. The other service takes either ten or 20 minutes, again with equal probability. It is equally likely for a customer to choose either service and so the bank's average service time is 8.75 minutes.

If you join the line when a customer is in the middle of being served then their service can't take zero minutes. They must be using either the five, ten or 20 minute service. This pushes the time that customer will take to be served to more than 11 minutes on average, more than the true average for the of 8.75 minutes. In fact, two out of three times you encounter the same situation, the customer will want either the 10 or 20 minute service. This will make it seem like the line is moving more slowly than it should, all because a customer is already there and you have extra information.

So while you can use maths to try to determine the fastest line, in the absence of accurate data—and for your own peace of mind—you're often better just taking a gamble and not looking at the other options once you've made your mind up.

Enrico Scalas is a professor of Statistics and Probability at the University of Sussex, U.K. Nicos Georgiou is a lecturer in Mathematics, Probability and Statistics at the University of Sussex, U.K.

Editor's pick

Newsweek cover
  • Newsweek magazine delivered to your door
  • Unlimited access to Newsweek.com
  • Ad free Newsweek.com experience
  • iOS and Android app access
  • All newsletters + podcasts
Newsweek cover
  • Unlimited access to Newsweek.com
  • Ad free Newsweek.com experience
  • iOS and Android app access
  • All newsletters + podcasts