Our Unseen NYC Neighbor

Posted on May 15, 2020

If I asked you what group in NYC made up one of the most populous and wide-spread in the city, who would you think would most likely come to mind? No matter what your answer, the group would almost certainly be a group of humans. But no one in this city would also be able to deny that the city's wildlife is also one of its hallmarks. Between the pigeons overhead, the squirrels in the park, or the roaches in almost every corner of every apartment, we have more non-human life in NYC than human life by just about every metric we can come up with. So when you think about what group is closest to people in the city you may be both interested and disgusted by the knowledge that rats are our most common, and closest neighbors. Do not worry if that bothers you though, as that is just a sign that you are not comfortable with rodent infestation in general, and that is completely normal. But like it or not, our ratty friends are here to stay. 

Why do we really care and is it costing us anything?

Consider that since people could start drawing on walls in caves that rats were living right alongside us, it is a mystery how we have not figured out how to rid ourselves of them since we have always universally hated them. And that sentiment can be echoed in recent years when $32 million dollars was pledged by city officials to eliminate large swaths of the population of rodents in NYC.And yet 3 years, and far more than the initial $32 million dollar budget, later, populations of rats actually seem to be on the rise. There is even evidence to suggest that efforts to curb rat growth help to increase the population. 

The Data straight from the horse's mouth.

I took a large data set from the OpenDataNYC site2 about all the times that the city had to be called in to take care of an outbreak of rats in all boroughs of NYC in the last 10 years. There were over 1,000,000 cases where authorities were sent to search for rats in areas of the city, and while most cases came with no results, about 125,000 of the searches came up with active rat signs and the action of trying to eliminate the populations there.

Two ways to look at the data, not the results I thought I would get.

What I did within my shiny app was to look at two different ways to look at the data, by location and by time. Could there be areas of the city that were overly affected by the rats, and are there time frames that are clearly showing greater signs of rodent infestation?

Bushwick/Bedford, Alphabet City, UWS, and the West Bronx. All but the West Bronx saw huge renovations amid a push for gentrification in the last several years, which coincided with when rat populations began to explode in those areas. The evidence points to the constant destruction and reconstruction of buildings as being a driving factor. Rats taking up residence in new construction sites and being forced to the surface by hovel destruction caused the populations to increase significantly. As for the West Bronx, that area has had a very consistent issue with rats over the last decade due to being a low-income area and having close proximity to the Bronx Zoo.

Population increase over time.

There have always been rodents in major cities but perhaps there is an increase as of late. The charting of the data points over time shows that a rise in outbreaks in the last 3 years is proof of this. 

Focusing entirely on the last several years, you can see that numbers are extremely high compared to the past. Some might point to increased funding to programs for catching and killing rats as a reason for this increase but evidence shows otherwise.3

What should be done and will it actually help?

What can be done that would be useful to the problem as a whole is to increase how sanitary the city is. Less trash and less filth will naturally decrease the populations over time as the only way for rats to increase as much as they do is with a large and steady food supply. What we are doing is actively hunting and killing rats by the thousands. If that had any chance of making a difference then people would have eliminated the problem centuries ago. Rats are tougher than we are and if we kill off a lot of them then the ones left will eat their dead and replenish the population in a matter of months. This has been known to be scientific fact.4 Passive resistance is the way to win, not active aggression.


  1. https://www.nytimes.com/2017/07/12/nyregion/new-york-city-rat-problem.html
  2. https://data.cityofnewyork.us/Health/Rodent-Inspection/p937-wjvj
  3. https://www.nytimes.com/2019/05/22/nyregion/rat-infestation-nyc.html
  4. https://www.qsrmagazine.com/news/how-quickly-rats-can-breed-terrifying
  5. Link to my Shiny App: https://aviiavital.shinyapps.io/Shiny_Rats/
  6. Link to my Github Code for the app: https://github.com/aviiavital/NYC-Rat-Map

About Author

Leave a Comment

No comments found.

View Posts by Categories

Our Recent Popular Posts

View Posts by Tags

#python #trainwithnycdsa 2019 airbnb Alex Baransky alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus API Application artist aws beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep Bundles California Cancer Research capstone Career Career Day citibike clustering Coding Course Demo Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day Discount dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Hiring Partners Industry Experts Instructor Blog Instructor Interview Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter lasso regression Lead Data Scienctist Lead Data Scientist leaflet linear regression Logistic Regression machine learning Maps matplotlib Medical Research Meet the team meetup Networking neural network Neural networks New Courses nlp NYC NYC Data Science nyc data science academy NYC Open Data NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time Portfolio Development prediction Prework Programming PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau team TensorFlow Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping Weekend Course What to expect word cloud word2vec XGBoost yelp