Data Analysis on Washington D.C Bike Share Demand
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.
Data shows Washington D.C. is home to about 705,749 people. As for any major city, this agglomeration of people in one place puts a toll on the transportation infrastructure. Until last decade, cars were the de facto method of transportation, followed by buses and then the metro.
However, except for the latter, traffic is their common nemesis. In addition, the rising numbers of motor vehicles and their emission of carbon monoxide poses a significant concern for its impact on climate change. Consequently, alternate modes of transportation are encouraged to be used whenever possible. One such alternative discussed here is the use of bicycles.
Data Acquisition and Project Objectives:
The purpose of this project is to review the available two years of data of the Washington D.C. bikeshare transactions, so as to obtain knowledge to accurately predict hourly bike demand. This could then be used to optimize the bike stocking process and grow the business.Data used for this project was acquired from Kaggle.com.
Yearly Data Analysis
โโโโA first look into the data revealed that there are two different types of users: registered users (those who subscribe to a monthly or yearly plan) and casual (those who use the service occasionally). As shown on the graph below, registered users account for about 80% of rides for every year in the dataset(2011 and 2012 respectively).
This proportion is consistent per season for every year in the data. In addition, the data showed that demand drops with cold temperature and This proportion is consistent per season for every year in the data. In addition, the data showed that demand correlates to the temperature. The lower the temperature, the lower the demand, and that applies to both user groups.This is illustrated on the plot below which shows demand proportion for each user group per season.
User Group Data Analysis
Once it was established that the two user groups have a consistent demand proportion year after year, it was substantiated to combine both years(given the size of the data) and look at the behavior of each user group individually. Here again, it was confirmed that demand is related to temperature as there was a rise in bike usage in warmer seasons and a decrease in colder seasons for both user groups. This was reasonable because generally, people tend to ride when the weather is nice.
With temperature depence established, the next factor to explore was time of day. Given that congested traffic is one of the reasons why some people bike to work, it was intuitive to think such a trend might exist in data. As shown on the graph below, it appeared that both user groups used the bike at different times of day. Registered users have two modes: 8AM and 5PM. It can be deduced here that most of these users are commuters going and coming back from work.
On the other hand, casual users have a steady usage increase from 7AM to 2 PM with a mode at 2 and 3 PM. and then a steady decrease. This shows that both user groups use the bike for different reasons. As Washington D.C is a city that attracts many tourists, it could be inferred that most of these users might be tourists visiting sites during the day.
Conclusion
Given our observation in the data, it is clear that bike demand is correlated to temperature and time of the day. My advice to this business owner in terms of business growth and efficiency will be to offer each user group Peak and OffPeak hour rates at their respective peak and perks during OffPeak to increase usage and most likely revenue.
The next step in this project will be to implement a regression model using dependent variables analyzed above(user type, time, temperature) to predict hourly demand and compare our model to more recent data from the company.