Coder Social home page Coder Social logo

boombike_linear_regression's Introduction

Project Name

BoomBike - Multiple Linear Regression model is built on the BoomBikes data, to identity the significant variables in predicting the demand for shared bikes and also to understand the effect of these variables on the demand for the bikes

Table of Contents

General Information

BoomBike offers a bike-sharing system is a service in which bikes are made available for shared use to individuals on a short term basis for a price or free.

BoomBikes has recently suffered considerable dips in their revenues due to the ongoing Corona pandemic. The company is finding it very difficult to sustain in the current market scenario. So, it has decided to come up with a mindful business plan to be able to accelerate its revenue as soon as the ongoing lockdown comes to an end, and the economy restores to a healthy state.

Analytical Objective

  • To understand which variables are significant in predicting the demand for the shared bikes
  • How well those variables describe the bike demands

The dataset used in the time-series data of Total Bike Rentals recorded every day for the period of 2018 and 2019. The dataset is used a cross-sectional data by removing the temporal features from the data and by shuffling. There are 730 rows and 16 columns, some are irrelevant columns, those are not considered in the analysis.

Conclusions

  • The best fit model (OLS based MLR ) could only explain the 42% variance (Adjusted R-squared) in the test data as compared to 57% of variance in the train data, hence not recommended to be used for predicting the demand
  • The model has high bias and high variance and underfit the data
  • However the model can be used to explin the relationship between Independent Variable and Target Variable - 'cnt'
  • The variables that are considered in best fit model are - temp, windspeed, season_2, season_4, mnth_9, weekday_6, workingday_1, weathersit_2, and weathersit_3
  • While features temp, season_2, season_4, mnth_9, weekday_6, workingday_1 have positive relationships with demand, features - windspeed, weathersit_2, and weathersit_3 have negetive impact on the demand
  • Best fit model:
    $$ count = 1295.4 + (5307.68 * temp) - (1153.59 * windspeed) + (745.78 * season_2) + (1228.76 * season_4) + (792.85 * mnth_9) + (592.63 * weekday_6) + (565.29 * workingday_1) - (685.62 * weathersit_2) - (2876.88 * weathersit_3)
    $$
  • Using this model suitable promotional offerings / business plan can be deviced

Technologies Used

  • python - 3.10.1
  • pandas - 1.3.5
  • numpy - 1.21.5
  • matplotlib - 3.5.1
  • seaborn - 0.11.2
  • scikit-learn - 1.0.2
  • scipy - 1.7.3
  • statmodels - 0.13.1

Acknowledgements

Give credit here.

  • This project was inspired by...
  • References if any...
  • This project was based on this tutorial.

Contact

Created by [@githubusername] - feel free to contact me!

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.