Waiting For a Table

A simulation to estimate how long until you are seated at a restaurant.

It’s feeding time, your stomach grumbles, and if you don’t get something in your system soon, hunger will take over your civility. So you walk into a restaurant where there are a bunch of other people in line for a table. You ask the restaurant greeter how long the wait is.

“About 5 or 10 minutes.”

Uh huh. Five or ten minutes. Sure, you’ve heard that before, and then you end up waiting an hour just to get a table. Do you trust the estimate, or do you go off experience and head to the nearest fast food joint within walking distance?

Seinfeld party of four chose to wait and look what happened to them.

Here’s a better way to figure out how long you’ll have to wait until you’re seated.

Below is an interactive simulation that takes into account how many tables are available that your party can sit at, the number of parties (that need the same size table as your party) ahead of you, and the average length of a meal at the restaurant (for your party size).

The simulation makes a few assumptions for the sake of simplicity.

Each iteration assumes that all the tables are occupied when you enter the restaurant, and the time until completion for each table is randomly distributed. I don’t have actual meal data, but I imagine time of day factors in here as more people roll in for lunch or dinner.

I also assume that meal time is normally distributed around the average you select. My guess is that’s not far from the truth, but again, I don’t know for sure.

That said, I think this still gives you a good idea of how long you’ll wait for a table.

Notes

  • I used d3.js to implement this thing.
  • For those who enjoy the pain of waiting, that real-time button is for you.
  • The maximum for the rug chart represents waits that are two hours or more.

Chart Type Used

Bubble Chart

Points are placed like in a scatter plot, but they are sized based on the square root of data values.

Become a member. Support an independent site. Improve your visualization skills.

Join Today

Membership

This is for people interested in the process of creating, designing, and exploring data graphics. Your support goes directly to FlowingData, an independently run site.

What You Get

  • Instant access to tutorials on how to make and design data graphics
  • Source code and files to use with your own data
  • In-depth courses on visualization in R
  • Hand-picked links and resources from around the web

Favorites

Where Bars Outnumber Grocery Stores

A closer look at the age old question of where there are more bars than grocery stores, and vice versa.

Shifting Incomes for American Jobs

For various occupations, the difference between the person who makes the most and the one who makes the least can be significant.

10 Best Data Visualization Projects of 2015

These are my picks for the best of 2015. As usual, they could easily appear in a different order on a different day, and there are projects not on the list that were also excellent.

A Day in the Life of Americans

I wanted to see how daily patterns emerge at the individual level and how a person’s entire day plays out. So I simulated 1,000 of them.