GithubHelp home page GithubHelp logo

anafisa / nyc-taxi-demand-prediction Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 2.0 2.98 MB

The primary objective of this project is to build a Real-Time Taxi Demand Prediction Model for every district and zone of NYC.

License: MIT License

Jupyter Notebook 100.00%
taxi-demand-prediction machine-learning-projects coursera-final-project coursera-machine-learning time-series data-visualization timeseries visualization forecasting sarimax geodata demand-forecasting demand-prediction

nyc-taxi-demand-prediction's Introduction

NYC-Taxi-Demand-Prediction

The primary objective of this project is to build a Real-Time Taxi Demand Prediction Model for every district and zone of NYC.

Снимок экрана 2021-12-29 в 14 54 14

The yellow taxi trip records include fields capturing pick-up and drop-off dates/times, pick-up and drop-off locations, trip distances, itemized fares, rate types, payment types, and driver-reported passenger counts.

The data used in the attached datasets were collected and provided to the NYC Taxi and Limousine Commission (TLC) by technology providers authorized under the Taxicab & Livery Passenger Enhancement Programs (TPEP/LPEP). The whole dataset consists of approximately 30 million observations.

Project Structure:

  1. Data exploration and processing
  2. Geo data visualization
  3. Complex seasonal forecasting
  4. Model evaluation
  5. Model implementation
  6. Model enhancement

The main difficulty of the project is the fact that every district of NYC has its own structure, that's why we need to cluster districts with the same dynamic in groups. Then for each group we build unique model with optimal parameters and forecast the demand.

Снимок экрана 2021-07-09 в 00 34 18

Снимок экрана 2021-07-09 в 00 34 34

We should remember that the time series have complex seasonability with 24 and 168 lags, so we need to add extra features to the model. In this case we may use fourier series or dummy variables.

As for the model, it can be a linear regression or SARIMAX with exog features. The results of models are here.

Снимок экрана 2021-07-09 в 00 39 15

As we work with geo data, we may visualize forecasts on the map. It can be static or dynamic visualization.

Static visualization of NYC districts:

Снимок экрана 2021-07-08 в 22 18 37

Снимок экрана 2021-07-08 в 22 18 07

Dynamic visualization of forecasts in every NYC district in selected date and time:

sss

nyc-taxi-demand-prediction's People

Contributors

anafisa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.