what’s in an a- pest violations in nyc restaurant inspections

17
What’s in an A? Pest Violations in NYC Restaurants Michael Johns Metis, Project Luther 10/28/16

Upload: michael-johns

Post on 17-Jan-2017

18 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: What’s in an A- Pest Violations in NYC Restaurant Inspections

What’s in an A?Pest Violations in NYC RestaurantsMichael JohnsMetis, Project Luther10/28/16

Page 2: What’s in an A- Pest Violations in NYC Restaurant Inspections

“Cronut-Loving Mouse Frolics Inside Dominique Ansel Bakery”

Page 3: What’s in an A- Pest Violations in NYC Restaurant Inspections

NYC Restaurant Inspections

Program began in 2010

Point System

‘A’: 0-13 points

‘B’: 14-27

‘C’: 28+

Page 4: What’s in an A- Pest Violations in NYC Restaurant Inspections

Inspection Checklist

Page 5: What’s in an A- Pest Violations in NYC Restaurant Inspections

NYC Restaurant Inspections

Grades improving over time

Over 80% of restaurants received an A

Page 6: What’s in an A- Pest Violations in NYC Restaurant Inspections

NYC Restaurant Inspections

Grades improving over time

Over 80% of restaurants received an A

Can we predict Pest Violations?

Page 7: What’s in an A- Pest Violations in NYC Restaurant Inspections

Target Data

NYC Restaurant Inspection Data- 10/20/15 to 10/20/16

- Indicator of any pest violations during last inspection

Page 8: What’s in an A- Pest Violations in NYC Restaurant Inspections

- 24,000 restaurants- 85% A grades- 45% pest violations

Page 9: What’s in an A- Pest Violations in NYC Restaurant Inspections

Neighborhood Factors

Rodent Inspection:- “Active Signs”

- “Bait laid”

% Living in Poverty

311 Complaints:- Rodents

- Overflowing trash bins

- Unsanitary conditions

Page 10: What’s in an A- Pest Violations in NYC Restaurant Inspections

Restaurant Factors

Food Type: Top 20- “American”

- “Chinese”

- “Cafe”

- etc.

Date of Inspection:- Quarter

- Month

- Day of week

Page 11: What’s in an A- Pest Violations in NYC Restaurant Inspections

311 + Poverty

Page 12: What’s in an A- Pest Violations in NYC Restaurant Inspections

311 + Poverty + Food Type

Page 13: What’s in an A- Pest Violations in NYC Restaurant Inspections

311 + Poverty + Food Type + Inspection Date

Page 14: What’s in an A- Pest Violations in NYC Restaurant Inspections

Best Model:

Accuracy: 70%

Precision: .62

Recall: .67

F1: .64

Feature Importances

Page 15: What’s in an A- Pest Violations in NYC Restaurant Inspections

Conclusion

Predicting pest violations seems plausible

Timing effects are curious

More data or more model?

Page 16: What’s in an A- Pest Violations in NYC Restaurant Inspections

Thank You!Questions?

Page 17: What’s in an A- Pest Violations in NYC Restaurant Inspections