The Relationship between Weather and Yelp Reviews

1. Introduction


Does the weather affect people's moods so much that they will rate restaurants lower or higher? Do people write more positive, five-star reviews on nice days because they are in a better mood? Does good weather lead to people having better experiences at restaurants, and lead to positive reviews? In general, we know that people are affected by the weather. And many researchers have conducted studies towards this issue. For example, in 2013, Horanont, et al. [1] use GPS location traces on mobile phones to passively track behavioral patterns in different weather. They found that people tend to stay at restaurants longer in colder weather. But does this effect also detectable in restaurant reviews? To investigate the answer, we conducted this research by using data from Yelp and NOAA.gov, a government website that contains daily weather data of every weather stations in the United States.

In this project, we compute sentiment analysis on the text of Yelp reviews. We look for correlations between the Yelp ratings and sentiment and the weather. We then attempt to predict the given Yelp rating based on the weather on the day of the review and the location of the restaurant. Beyond our principal data science question, we investigate regional differences in Yelp reviews and also determine relationships among the food-items mentioned in both high and low-star reviews.

The project is divided into the following sections. In Section 2, we discuss the process of data collection, data cleaning and the description of our data. In Section 3, we present our various methods and results. Finally, in Section 4, the overall results are discussed.