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 toward the exit.
When it comes to queuing, 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 line. After all, a short line could indicate it has an efficient server, and a long line 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 queue. For example, if the short line at the supermarket has two very full trolleys and the long queue has four relatively empty baskets, many people would actually join the longer loner. 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 carts 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 fast-food restaurant you might have two servers both taking orders and accepting money. Then it is most often better to join the shortest queue 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 inter-arrival 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 queue 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 math to try to determine the fastest queue, 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, Professor of Statistics and Probability, University of Sussex and Nicos Georgiou, Lecturer in Mathematics, Probability and Statistics, University of Sussex
This article was originally published on The Conversation. Read the original article.