Business Data Trends in Vegas

Posted on Aug 16, 2020
The skills I demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

Ever wondered what the spread of businesses was in Las Vegas? Or what factors there might make businesses more successful? Did reading those questions make you interested? If you thought yes to any of those, our data will help you, so read on!Ā 

Data:

This project uses data from 3 sources:

The yelp dataset from kaggle is a subset of yelp data from the last decade. It seems to be filtered by region, with more completeness in a select few regions. Las Vegas has the most data, so I focused the study there.Ā 

The US census data is a complete set of demographic data from the US Census Bureau in 2017. The data is indexed by census tract, the smallest available region with demographic data.Ā 

The Geo-FCC api allows for census tract lookup by latitude/longitude coordinates. I used the python requests library to access their API. (I wrapped a few of these in python functions to make it easier, available here)Ā 

 

Method:

I don't have any domain knowledge of this data-set. The closest I've ever been to Vegas is the airport (although I did get to try the slots there!)Ā  So IĀ  created an application that helps me explore and analyze this data. I used R Shiny to build the app.

There are two tools in the app, one for mapping businesses in Las Vegas and one for analyzing the bivariate relationship between features in the data set. I tried to add as much flexibility in the app as possible, giving the user the ability to apply transformations on the data and pick and choose from a wide set of the available features.Ā 

Example Data Analysis:

Now lets put the app to the test! I will pretend to be a restaurateur opening a new restaurant in Las Vegas.Ā  I want to know:Ā 

  • Where should I open my restaurant?
  • How do I keep my restaurant open?Ā 

First I'll use the mapping tool to map restaurant locations:Ā 

Business Data Trends in Vegas

Each circle is centered at a census tract, and the radius indicates the amount of restaurants located in that tract.Ā  The above image shows a clear trends: the majority of restaurants are located in one location, the strip.Ā 

Closed Restaurant Locations

Next I'll filter to only show closed restaurant locations:Ā 

Business Data Trends in Vegas

There seems to be a more even spread of the locations of closed restaurants. The majority is still on the strip, but other locations have more proportionally than they do open restaurants. This seems to indicate that it is less risky to open a restaurants on the strip, and warrants a deeper analysis into the differences between closed and open restaurants.Ā 

Yelp Starts

Next I'll go into the analysis tool. Plotting the number of reviews to the amount of yelp stars for open restaurants:

Business Data Trends in Vegas

I scaled the x-axis on a log scale to more easily visualize a trend. It seems clear that the more reviews a restaurant has the higher amount of yelp stars it has. There is a dense region of businesses with around 4 stars and hundreds of reviews. Comparing this to the closed businesses:Ā 

Trend

The trend is similar, more reviews -> more stars, but the densest region seems to have a lower mean amount of stars and less reviews. My takeaway is that earning above 4 stars with well over a hundred reviews puts a restaurant in a better place to succeed.Ā 

With my limited domain knowledge that is the extent of the conclusions I am comfortable making. I included a slew of demographic data as well. But, because of the high concentration of restaurants in one tract it is difficult to eke out any trends there (most of the restaurant locations have the same demographics, those of the strip.)

Conclusion:

Using R Shiny was a great way to take a massive, complicated data set and start to pick out trends. It allowed easily sifting through the data and looking at relationships between features.Ā 

However my lack of domain knowledge coming into this stunted my ability to perform a more meaningful analysis.Ā 

Checkout my code for this project on github and other projects I've done at the NYC Data Science Academy.

Thanks for reading!

About Author

Michael Sender

I have an MS in Applied Math from the University of Washington, and a BS in both Material Science and Math from Rutgers University. Before joining NYC Data Science Academy I worked for over 5 years as a...
View all posts by Michael Sender >

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans 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 boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis 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 seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI