Coder Social home page Coder Social logo

bike-sharing-assignment's Introduction

BikeRental-Regression-Assignmentimage

SUBMITTED BY DR RANJEET SINGH MAHLA

##DATE JANUARY 11, 2023

##MSC MACHINE LEARNING AND ARTIFICIAL INTELLIGENCE

Key files

1.BikeRental-Regression-Assignment.ipynb

2.bike rental data set (day.csv file)

3.subjective questions pdf

4.Data dictionar: Readme.txt

5.README.md

PROBLEM STATEMENT 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. Many bike share systems allow people to borrow a bike from a "dock" which is usually computer-controlled wherein the user enters the payment information, and the system unlocks it. This bike can then be returned to another dock belonging to the same system.

A US bike-sharing provider 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.

In such an attempt, BoomBikes aspires to understand the demand for shared bikes among the people after this ongoing quarantine situation ends across the nation due to Covid-19. They have planned this to prepare themselves to cater to the people's needs once the situation gets better all around and stand out from other service providers and make huge profits.

They have contracted a consulting company to understand the factors on which the demand for these shared bikes depends. Specifically, they want to understand the factors affecting the demand for these shared bikes in the American market. The company wants to know:

1) Which variables are significant in predicting the demand for shared bikes
2) How well those variables describe the bike demands

Based on various meteorological surveys and people's styles, the service provider firm has gathered a large dataset on daily bike demands across the American market based on some factors.

Table of Contents

General Information

  • MULTIPLE LINEAR REGRESSION IS PERFORMED ON BIKE RENTAL DATA
  • THIS PROJECT IS DONE TOWARDS AN ASSIGNMENT FOR MSC IN MACHINE LEARNING AND ARTIFICIAL INTELLIGENCE.
  • THIS PROJECT ESTIMATE THE KEY VARIABLES WHICH RELATE WITH BOOM BIKE RENTAL (some of the varaible represents to temperature, humidity, weather, holiday)
  • IN THIS MODEL BOOM BIKE RENTAL DATA IS USED FOR BUILDING THE MODEL FOR BUSINESS RECOMMENDATIONS

Steps

  1. Reading, understanding and visualizing the data

  2. Preparing the data for model training (train-test split, rescaling)

  3. Training the model

  4. Residual analysis

  5. Prediction and evaluation of the test set

ESSENTIAL CODE

from sklearn.metrics import r2_score r2_score(y_test, y_pred)

Conclusions

BOTH TEST AND TRAIN DATASET MEAN SQUARED ERROR IS NEAR TO 0 SUGGEST THE ACCURACY OF MODEL SIGNIFICANT VARIABLES ARE PRIDICTED BASED ON p-value and VIF AUTOMATED SELECTION OF VARIABLES WAS DONE BY RFE

BIKE DEMAND IS LARGELY DEPENDS ON WEATHER AND TEMPERATURE MORE BIKE RENTAL IN WINTER COMPARED WITH SUMMAR AND SPRING HIGH RENTAL IN SEPTERMBER AND OCTOBER MORE RENTAL ON WEDNESDAY, THRUSDAY AND SATURDAY MORE RENTAL ON HOLIDAYS

BUSINESS RECOMMENDATION

COMPANY SHOULD FOCUS ON MARKETING IN SUMMAR AND SPRING INTRODUCE MORE USERS OR DECREASE RENTAL PRICE IN SUMMAR AND SPRING MORE RENTAL OCCURED IN 2019, SO PEOPLE ARE TAKING IDEA AHEAD AND THESE CUSTOMERS SHOULD BE RETAINED

Technologies Used

  • matplotlib
  • statsmodels
  • sci-kit learn
  • numpy
  • pandas
  • seaborn

ACKNOLEDGEMENTS

-This project was inspired by upGrad case study for AI and ML (BOOM BIKE RENTALS) -This project is submitted towards frist case study of MSC in AI and ML

Contact

https://github.com/mahlaranjeet [email protected]

bike-sharing-assignment's People

Contributors

mahlaranjeet avatar

Stargazers

 avatar

Watchers

James Cloos 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.