Hotelling’s Game, or Why Gas Stations Have Competitors Nearby

There are hundreds of gas stations around San Francisco in the California Bay area. One might think that gas stations would spread out to serve local neighborhoods. But this idea is contradicted by a common observation. Whenever you visit a gas station, there is almost always another in the vicinity, often just across the street.

Gas stations are highly clustered. To confirm the point, I made a map with the help of GasBuddy.com, a website that compares local gas prices. On the following map, the numbers indicate gas prices per gallon. More importantly, the prices are placeholders for the location of gas stations. Note the highly grouped gas stations. Many of the prices are right on top of each other, indicating locations in extreme proximity to one another:

 

San Francisco And Oakland Gas Stations

<click for larger image>

I don’t think this characteristic is special to the California Bay Area. I’ve been across many parts in America, and time and again, whenever I see a gas station, there seems to be another one just across the corner.

The rare exceptions to the rule are the gas stations I’ve encountered while driving in remote areas, like when I drive through the cornfields to visit the University of Illinois at Urbana-Champaign.

The phenomenon is partly explainable because of population clustering. Gas stations will be more common where demand is high, like in a city, rather than in sparsely populated areas like cornfields.

But why do stations locate right across the street from each other? Why don’t they spread out?

There are clearly many factors at play. It’s an optimization involving demand factors, real estate, estimates of population growth, and supply considerations–like the ease of refueling a station. The answer is complex, and any explanation I offer will have its problems.

But we can gain valuable insight from a simple game. Today I’ll discuss a model about location competition. It’s a bare bones model that ignores many realistic considerations, but it is useful nonetheless. It’s interesting because of the individual firm strategy, the ultimate outcome, and the implication on social efficiency. It has also been used to explain why political candidates appear indistinguishable. I’ll briefly discuss that application near the end of the article.

Hotelling’s Game

There are two players in this game. Each player is a hot dog stand that competes for customers on a beach.

The hypothetical beach is made up of straight shoreline, in which customers are uniformly spread out. We will label the endpoints -1 and 1 for convenience.

The hot dog stands compete purely on location (we ignore brand quality). Each stand will pick a location.

Conditional on where the stands locate, customers will simply choose the stand closer to them. If the stands are in the same spot, customers will pick a stand randomly.

For instance, if a customer is at point 0.5, and the stands are located at -1 and 1, the customer will be closer to the stand at 1 and go there.

Here’s a graphical representation of the game. Note the endpoints of the shore and the placeholders for each stand’s location.

Hotelling Beach Game

<image inspired by this one>

Where will each hot dog stand end up? That is, what is the Nash equilibrium of the game?

Finding the Solution (intuitive)

One way to approach the game is to ignore the competition. Assume you are the only hot dog stand on the beach. Where might you want to locate?

The answer is easy: any place you want. You are a monopoly so customers will have to walk to you no matter how far it is. If you choose to locate at one endpoint, customers will make the trek all the way from the other endpoint. It’s nice to be a monopoly.

But you are a paranoid monopoly, and any common sense would push you toward the center, labeled point 0. You worry that locating on the far left or far right end of the beach would leave you vulnerable to competition. If you favor the left side, for instance, an entrant could locate slightly to your right, closer to the center, and capture the majority of the market.

See this image where the market share of the monopoly (in blue) is overtaken by a new entrant (in orange).

Hotelling Beach Game Entrant Right

Such a problem does not happen if you locate in the center. A new entrant to either your left or right side would gain less than half the market.

Hotelling Beach Game Entrant Left

The logic shows that the center is favorable. If either party chooses it, the other will want to copy. Thus, both hot dog stands will choose the center point 0.

The above logic is correct though as a mathematicians would say, not “precise.” To get a better sense, it’s necessary to wade through the next mathematical proof. I highly encourage everyone to at least skim it since the thought process is important to solving many games.

But if you do choose to skip it, start reading at the section labeled “The Social Optimum.”

Finding the Solution (mathematical)

Each hot dog stand is simultaneously picking a location, a number between -1 and 1.

Each stand needs to take into account where the other might locate. That’s the key factor in game theory–decisions are interdependent.

I’ll break the problem down into two steps. This is a process you can use to solve other games.

Step 1: Think about Payoffs

Imagine the two stands locate at points 0.2 and 0.4. How much of the beach would each stand capture?

You can see it in the following diagram. It highlights the customers closer to the first stand (blue) and the second stand (orange).

Hotelling Beach Game Example

Here’s how I came up with that picture: the first stand clearly gets anyone lower than 0.2 (the left), and the second gets anyone higher than 0.4 (the right). Customers are split in the middle region at the halfway point of 0.3.

The length of the blue and orange lines represents the market power of each hot dog stand. In this example, the first stand gets 65% of the line compared 35% for the second.

You can see this is location is not an equilibrium of the game. If the second stand inches closer to the middle, say, at the point 0.2, then both stands would be equally close and would split the market 50/50. Of course, the first stand would then retaliate by moving.

There’s a mathematical way to describe how each stand would react to the other’s choice.

Step 2: Writing the Best Responses

The best response is the location that one stand would choose optimally, subject to the other stand’s location. The other stand’s location is not known, but rather a hypothetical number from which to work.

To simplify matters, instead of dealing with market share percentages, let make the game win/lose. Imagine a hot dog stand “wins” the game by having a majority of the market.

Suppose the second stand chooses a location k. What is the best response for stand one? What are the locations that will capture over half of the market?

There is not just one correct answer. As we reasoned in the intuitive section, anything closer to the center will capture a majority of the market. These are points that are less than distance k from the center. These are exactly the numbers between the values -k and k on the line.

Hotelling Beach Game Best Response Picture

If k=0, and is the center, then the unique best response is to pick the center.

The best response is described by the following piece-wise defined correspondence (with i,j representing either stand one or two):

Hotelling Beach Game Best Response Equation

The Nash equilibrium is when both stands are both playing a best response. This only occurs when both stands choose k=0, exactly in the center, splitting the market. You can interpret this as either both winning or both losing.

The Social Optimum

Game theory tells us what players will likely do. But that’s unfortunately not always going to be the best for society.

The equilibrium is an annoying situation for many customers. The hot dog stands are located in the center of the beach instead of spreading out and being closer to beachgoers.

In fact, if the stands could be spaced out across the entire beach (at points -0.25 and 0.25) then everyone would be happier. Both stands would still share 50% of the market, but no customer would have to travel more than 0.25 hot dog stands.

Hotelling Beach Game Social Optimum Picture

Why isn’t this social optimum sustainable?

Lacking enforcement, there is an incentive to deviate. One of the stores could put itself to the middle and gain more customers. The other would retaliate of course, and the game would go on until both would end up exactly in the center once again.

Gas Stations and Other Examples

The model suggests why competitors always seem to locate so close to each other and compete on real estate. Think about big burger chains, supermarkets, and video stores. You will almost always see them clustered even though it would be nicer if they spread out.

The model also has been applied to political candidates. Imagine two candidates picking a platform on a political spectrum from -1 (very liberal) to 1 (very conservative). If voters pick the candidate closer to their views, and voters are spread out across the spectrum, then both candidates would converge to the middle. It’s no surprise that politicians seek the “average vote.” It also suggests why it’s so hard to tell the difference between candidates during the campaign trail.

I have another application. I think a similar concept occurs in TV news. These channels compete for attention, and they can choose to pick stories that appeal to any number of customers. It would be nice if they talked about different topics, but that doesn’t happen. We end up with the same story being reported in virtually all news outlets instead of having hundreds of different important stories being reported.

That’s why the web has been so liberating. Entry is cheap, so information stands set up all over the spectrum. You can get news stories on whatever topic you are interested in. It’s kind of neat.



Share this post:

| More

Previous post:

Next post:



  • Pankaj

    Presh,

    I have recently started following your blog. I love game theory tuesdays! Could we have more weekdays devoted to these types of posts?

    Thank you,

    Pankaj

  • http://www.mikemccaffrey.net Mike

    Great explanation. Your graphics with the lines really made things clear quickly!

  • http://www.mindyourdecisions.com/blog Presh Talwalkar

    Pankaj: Thanks for the compliment. Per your suggestion, all I will say for now is stay tuned! I have something in the works to expand the game theory content on this website.

    Mike: Thanks! The graphics were an idea I came up with late in the writing process. It confirms to me that good articles, like good cooking, often requires a long simmering time.

  • http://www.mawsoft.com/blog RohoMech

    Something interesting to consider is that having multiple gas stations in a single area could benefit the consumer (given that they don’t care about brand), same with the hot-dog cart example.

    How so? Lets say there’s a long line at one of the stands, given that the other stand has a negligible price difference, people who want a hot-dog can walk the few feet over to it.

    Same with the gas stations, if you’re at a corner and one of the stations is busy, most likely the other station will have gas for a similar price (it might cost a penny more…), so why wait, just cross the street and fill up.

  • http://bizop.ca michael webster

    @Presh,

    Excellent use of graphics to explain Hotelling’s claim.

    What signals do you think that the vendors could credibly use to maximize, or in this case, minimize consumer travel distance?

    @rohomech

    The observation is that if the vendors or producers could agree not to infringe “on the middle” their average consumer would benefit by having less of a travel time.

  • http://www.mindyourdecisions.com/blog Presh Talwalkar

    RohoMech: Yes, there is something to be said for spillover convenience. At my old job there were two coffee shops. One had higher quality and longer lines, and the other basically served the people who didn’t want to wait.

    Michael Webster: I appreciate the encouragement on the graphics. I’ll try to include more when applicable.

    The question of signals is excellent. One of the best signals is a “low price guarantee”–don’t check the other guy since we’re always the lowest. Of course that guarantee only serves to help maximize profits as I wrote about before:

    http://mindyourdecisions.com/blog/2007/08/28/why-price-matching-guarantees-may-not-help-consumers/

    Oh, and one more note, here’s my “fix” for the @ convention. I simply bold and italicize the person I am responding too using the html tags –that is, <b><em> and <\b><\em>.

    You can use these in your comments as well.

    To be sure you’re using the tags correctly, you can use the newly installed comment preview button.

  • http://bizop.ca michael webster

    Presh Talwalka

    I was trying to think about how the hot dog vendor could credibly commit to not moving past 1/3 point as long as the other vendor did the same wrt to the 2/3 point.

    One trick would be if the consumers could somehow signal that they would only be at the 1/3 and 2/3 points – perhaps they have a token which limits how far they can travel.

    I think Hotelling’s point presents a fascinating challenge.

  • http://www.mindyourdecisions.com/blog Presh Talwalkar

    Michael Webster: Hotelling’s game notably ignores the cost to customers of transportation. So I agree, customers could fight back with the strategy you propose.

    Nothing else comes to mind, but it is a very interesting question you raise.

  • http://my-chaos.weblog.ro sidryane

    Hi, Presh!
    I have just discovered you web page and i want to congrat you for it… it’s just great!
    I want to let you know that i translated this article for a Game Theory project at my college. (of course we have to provide the original article and the source). Hope that is ok with you.
    I would also like (as a thank you) to put my translation on my blog and a link to yours.
    Best regards,
    Cristina

  • http://www.mindyourdecisions.com/blog Presh Talwalkar

    sidryane: Thanks for the comment and for publishing a translation.

    Could you please add a note saying the article is “Reprinted with permission for educational use.” That way my ownership and your permission is made clear to other readers.

    Thanks!

  • http://my-chaos.weblog.ro sidryane

    oki doki:)
    Thanks a lot!:)
    Take care:)

  • tom french

    Why is the social optimum 0.33? why not 0.25?At 0.33 some consuemrs would have to walk 0.33 to get to the nearest hotdog stand. Those in the middle would only have to walk 0.165, true ut if the stands were 0.25 then no-one would have more than 0.25 to walk!

  • http://www.mindyourdecisions.com/blog/ Presh Talwalkar

    Tom French: You’re absolutely correct–good catch! I’m going to fix it right now.

  • tom french

    Interesting that no-one else spotted it in three months of posting comments.

    This suggests people don’t read the article properly – or don’t understand it.

    Something to bear in mind…..

  • http://www.mindyourdecisions.com/blog/ Presh Talwalkar

    Tom French: Errors are easy to overlook and seem obvious once they are spotted. I’m not too worried because this problem is universal–I’ve seen fifth and even tenth editions of technical textbooks with basic arithmetic mistakes, and these are books people are forced to read!

    I never understood how hard it was to write error-free until I started this website. I triple-check my math, but I still make mistakes. That’s why I’m grateful for emails and comments like yours.

  • Anas

    Excellent post ***** Still, you should develop the part on gas stations clusters. I’m saying this because the last part is really illuminating.
    Regards ;)

  • Dean

    Perhaps I’m mistaken, but I think the social optimum points are still wrong. Namely, 0.25 points, in the sense of the quarters of the entire length of the beach ARE the correct locations. However, given that you stated in the begining that the end points of the beach are marked as -1 and 1, that means the optimum social points should be -0.5 and 0.5 (and not -0.25 and 0.25), shouldn’t they?

    In which case, the furthest any customer would have to cross is the 0.5 distance on a 2 point scale.

  • Pingback: How to find cheap gas using game theory - Mind Your Decisions

  • Pingback: hypothetical thinking.

  • Pingback: Why game theory matters for business (quote) - Mind Your Decisions

  • Brian

    I recall an interesting discussion which may or may not have been brought up in an intro economics class (I don’t remember). It was pointed out that when you stick two competing stores right next to each other, the total number of customers for *each* store often increases, because customers think, “I want product X” and associate it with that particular location (which also serves to put off making a decision about which brand to use). I would be skeptical that this would apply to gas stations, though.

    Also interesting: Launi Skinner, on Starbucks locations being being across the street from each other: “Going to the other side of the street can be a barrier.”

  • Pingback: The game theory of ATM locations - Mind Your Decisions

  • http://www.arinave.com Ari Nave

    I was asked a similar question in college during an interview at McKinsey — where to position a fastfood restaurant relative to the competition. I raised the issue of the lek which accounts for more dimensions in space, as well as other variables that perhaps reflect the real world to a greater extent.

    Leks are gatherings of male birds. They come together to compete and to show off to females with whom they desire to mate. It is an interesting illustration of the Nash Equilibrium. One would think that competing directly with lots of other males would be a costly strategy. Apparently, the pay-offs are worth the extra competition, particularly when in an environment where the cost of search is high.

    Take the Bird of Paradise, living in the dense forests of New Guinea. I would guess that the cost of search is great. Thus a little bit of competition at the lek my be offset by the potential cost of flying around the forest to find a mate.

    In such a case, you are better off being right across the street from you competitor. This may be particularly true if you are in a weak relative position and your competitor has finite capacity.

  • Pingback: Why burger stands, gas stations and politicians tend to cluster | mm

  • http://www.motivapps.com Merlin

    Thanks for this post.

    Actually, the nash equilibrum turned me from ultra-liberal to someone into the middle.

    In the free market we have a plenty of situations like the one you described. When I realized that a couple of years ago I understood that government control (to some extent) can actually be quite… helpful & liberating.

    Continuing your hot-dog stand example. The proper solution for it might be that government will intervene and say that (-0.25;0.25) is no man’s land. Hot dog stands will be forced to spread. Clients will benefit (less walking) and the hot dog stands will benefit (more clients because the distance is smaller).

  • http://www.re5.org revive ramesh

    gas stations – usually they follow driving patterns to work or home and usually clustered around roundabouts and junctions – i am under the impression that gas station location is mostly up tot he “road transport authorities” and no amount of cajoling can make them change minds – also I am told that safety considerations play a big role -

  • Cleopatra

    I don’t know if I agree that this theory extends to the news and political spectrum. As far as I’ve seen, people generally have a much wider variety of preferences for these things than for hotdogs.

    That’s why there’s such a wide variety of news available even outside the internet. Local newspapers cater to those nearby, Fox is widely acknowledged to have a right-wing slant and BBC news provides world news that may not be featured on other news sources. With politicians, it is particularly easy to distinguish between them based on their stance on different social issues. Therefore, news stories are diverse not only in the subject of the content, but also in the portrayal.

    However, I don’t think it’s a matter of these things being outlier exceptions- I think people more or less consciously choose differently based on preference for the product (news, politician).

  • Pingback: Puzzle: who wins this dart game? - Mind Your Decisions

  • Guru Sethupathy

    Hey Presh. How are you? Long time. Just wanted to offer a quick comment. The beach location problem that you discuss is for N = 2. The predictions are very different for N = 3 or any N > 2. So while I think using the beach location model is good for explaining two-party political equilibrium, I dont think it explains why N > 2 gas stations are located next to each other. Thoughts? Thanks, Guru

  • http://www.mindyourdecisions.com/blog/ Presh Talwalkar

    Hi Guru, yes long time. I agree the equilibrium for N > 2 is different, and I also did a bit of throat clearing during the intro since gas stations are also concerned with practical issues like highway access.

    Still, the phenomenon of gas stations clustering is a good excuse to learn about Hotelling’s game that shows why clustering happens even if it is not socially optimal.

  • Pingback: Best of Mind Your Decisions 2011 - Mind Your Decisions





Previous post:

Next post:

Other posts you may enjoy reading:

Random Posts