Skip to content

Predict the number of bike rentals which will be booked during a given day based on several factors like temperature,no of registered users. The count of users per hour were predicted using random forest regressor with 90% accuracy.

Notifications You must be signed in to change notification settings

vrunm/Bike_Sharing_Demand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bike Sharing Demand

Bike sharing systems are a means of renting bicycles where the process of obtaining membership, rental, and bike return is automated via a network of kiosk locations throughout a city. The data generated by these systems makes them attractive for researchers because the duration of travel, departure location, arrival location, and time elapsed is explicitly recorded. Bike sharing systems therefore function as a sensor network, which can be used for studying mobility in a city.

The data set was obtained from the Capital Bikeshare program in Washington, D.C. which contained the historical bike usage pattern with weather data spanning two years.

Predict the no of bike rides taken in a day depending on the weather conditions, time of the day, no of registered and non registered users.

Results from the Exploratory Data Analysis:

Target Distribution


Target Distribution


Target Distribution


Target Distribution


Target Distribution


  1. During Summer the most rides are taken.
  2. The highest demand for bikes is from 7-10am and 3-7pm these being the office times for most metro cities.
  3. The highest demand for bikes is when the temperature range is in between 30-35.

Results from Regression Analysis: The results from all the models have been summarized below:

Model R2 Score MSE
Linear Regression (default) 0.75 54.64
Lasso Regression (default) 0.77 62.92
Ridge Regression (fine-tuned) 0.85 80.74
BaggingRegressor (fine-tuned) 0.86 86.42
RandomForestRegressor (fine-tuned) 0.91 96.72
XGBRegressor (fine-tuned) 0.88 96.72

Comparing the MSE and R2 values for the different models: It can be seen that the Random Forest Regressor Model performs the best. Using the Random Forest Regressor model given several time and weather considerations for the day we are able to predict the no of bikes that will be rented on a particular day.

About

Predict the number of bike rentals which will be booked during a given day based on several factors like temperature,no of registered users. The count of users per hour were predicted using random forest regressor with 90% accuracy.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published