Giter Club home page Giter Club logo

the-impact-of-covid-19-on-us-restaurants's Introduction

The-Impact-of-COVID-19-on-US-Restaurants

Predict US restaurant revenues and dine-in percentage, and provide data support for offering decision-makers insights on developing business.

R Shiny App Link: https://yuran-zhu.shinyapps.io/covid-restaurant-impact/

Exploratory Data Analysis

Analyze and visualize data of restaurant revenues, dine-in percentage, community mobility, and COVID-19 cases. Explore the correlations among data, which helps in building the predcitive model.

  • Exploratory Data Analysis.Rmd: Records codes to perform EDA.
  • EDA Data: Stores all data sets explored.

Predictive Model

Predict restaurant total revenues and dine-in percentage in the next 3, 6, and 18 months. According to the possible COIVD-19 and economic situation, the project assumes 7 different scenarios in total. In order to connect with economy development, we add economic indicator into the model.

  • 3 months: Bad COVID & Bad Economy
  • 6 months: Bad COVID & Bad Economy, Good COVID & Bad Economy, Good COVID & Good Economy
  • 18 months: Bad COVID & Bad Economy, Good COVID & Bad Economy, Good COVID & Good Economy

Considering the limited data points and the fact that we haven't seen the full cycle of the pandemic, we thought that the neural network, time-series mode is not aprropriate for the project after several attemps. Eventually, we decided to use PCA to extract important features and derive unrelavant components, and then fit a linear regression model based on it.

  • Prediction_Model.Rmd: Records codes to perfrom PCA, run regression models, make predictions, and data visualization.
  • PCA_Data: Stores all data sets used for PCA for 7 scenarios, related to total revenues and dine-in percentage.
  • Prediction_Results.Rmd: Stores final data sets, integrating prediction results for 7 scenarios together, which can be directly used for visualization in Shiny App.

R Shiny App

Using R Shiny packages, we build an interactive web app for integrating visuals and predictions. Users can use the dropdown menu to select and compare future trends in different scenarios. All files in stored in the folder covid-restaurant-impact.

  • app.R: R script for designing and initiating the Shiny App.

Data Source

the-impact-of-covid-19-on-us-restaurants's People

Contributors

yuran-zhu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.