top of page

BESTAURANTS

incomevshealthscoreboxplot.png

The goal of this project was to determine which factors influence restaurant health inspection scores. My task was to determine whether or not the average income of the zip code in which a restaurant is located relates to the restaurant's health inspection score. I concluded that the average income of a zip code does not appear to be related to restaurant health inspection scores in that zip code in this data set. The data in this project is from San Francisco County and was collected from Yelp, DataSF, and the US Census Bureau.

 

Click the images below to enlarge
Income vs Health Score Scatterplot

Income vs Health Score Scatterplot

This scatterplot shows the relationship between the median household income and restaurant health inspection scores. Each red dot represents one zip code. The blue line represents a linear regression of the results. Based on the distribution of data points and the flatness of the regression line, there does not appear to be a link between health inspection scores and income levels.

Income vs Health Score Box Plot

Income vs Health Score Box Plot

This box and whisker plot breaks down restaurant health inspction scores by the income level of their zip code. The top of the box represents the 75th percentile of inspection scores, the green line in the middle represents the median, and the bottom of the box represents the 25th percentile. The 'whiskers' represent the statistical minimum and maximum scores, while the dots represent outliers. This chart demonstrates the similarity of the median and distribution of scores at each income level.

Income vs Inspection Count

Income vs Inspection Count

This bar chart shows how many restaurant health inspections took place in zip codes with different income levels. There were far more restaurants at lower income levels; however, there was still a sufficiently large sample of restaurant inspestions in higher income brackets.

bottom of page