Every restaurant window in New York City has a health inspection grade that they are required to display in their establishment. I’ve always wondered how these inspections work, especially since every restaurant I’ve ever been to has somehow had an ‘A’ grade. Surely, not all eateries in the city are that clean 🥪🐀

Lucky for us, the Department of Health shares their inspection results here. Nobody quite understands the grading breakdown so I looked at the raw data and documentation that the Department of Health provides us with.

A low numeric score indicates fewer violations. Each violation type has different values assigned. So for instance, not sanitizing your utensils falls under the ‘general’ category and can cost you 2 or more points. Failing to keep food at the right temperature falls under the ‘public health hazard’ category and lands you a minimum of 7 points.

The final grade is determined by summing up the points, 0 to 13 earns an A, 14 to 27 earns a B and 28+ earns a C.

The entire dataset has around 160,000 entries but one row represents one inspection, so many restaurants have multiple entries. There are also some duplicate entries. After cleaning the dataset up a little, let’s look at the grade breakdown. You can see my code here.

This is weird, let’s zoom into a year (‘GRADE_DATE = 2021’) to see how the raw scores looked in 2021.

I found this random document the Department put out that partially explains the steepness. A restaurant essentially has 2 chances to receive an A grade. If during the first visit the restaurant does not receive an A, it is given a raw score but not a letter grade. Then, the inspector revisits the restaurant within a month, unannounced. Based on the scores of this visit, the restaurant is given a letter grade. This gives the restaurants an opportunity to correct their mistakes and ultimately leads to more ‘A’ displays on the windows in the city, benefitting both the business of the restaurant and the reputation of the Department of Health.

However, if the second inspection also leads to a ‘B’ or ‘C’, the restaurant must display that grade on their window. They then have the chance to appeal this grade if they believe that the inspector was unfair. This is what the ‘Z’ values represent in Chart 1. This got me curious about the impact these hearings have on a restaurant’s final grade. What percentage of restaurants obtain A’s through the OATH hearing adjudication pathway?

Footer