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

25 March 2008 | by Presh Talwalkar

Cite / Print this article Cite / Print this article

Every Tuesday is a Game Theory article at Mind Your Decisions.

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.

Cite / Print this article Cite / Print this article

Related Posts:


  1. 15 Responses to “Hotelling’s Game, or Why Gas Stations Have Competitors Nearby”

  2. 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

    By Pankaj on Mar 25, 2008

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

    By Mike on Mar 25, 2008

  4. 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.

    By Presh Talwalkar on Mar 25, 2008

  5. 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.

    By RohoMech on Mar 25, 2008

  6. @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.

    By michael webster on Mar 25, 2008

  7. 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.

    By Presh Talwalkar on Mar 25, 2008

  8. 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.

    By michael webster on Mar 25, 2008

  9. 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.

    By Presh Talwalkar on Mar 26, 2008

  10. 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

    By sidryane on May 24, 2008

  11. 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!

    By Presh Talwalkar on May 27, 2008

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

    By sidryane on May 27, 2008

  13. 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!

    By tom french on Jun 28, 2008

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

    By Presh Talwalkar on Jun 29, 2008

  15. 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…..

    By tom french on Jun 29, 2008

  16. 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.

    By Presh Talwalkar on Jun 29, 2008

Leave a Comment