bikeshare

Analysis of Bike Share Ridership in Toronto 🚴🚴🚴

Data source: www.toronto.ca

Google API

Languages and packages

Overview

In the 2016 data, the bikers racked up:

There are:

Trip

585521 trips

Β  Mean Min Q1 Median Q2 Max
Duration (second) 948 60 437 667 1038 14400
Distance* (m) 2286 0 1254 2026 3020 24778
Velocity* (Km/h) 13.0 0.003 9.0 11.6 14.1 447.4

*Distance and velocity were estimated using Google Matrix Distance API

Interactive plots can be found at https://kienly.shinyapps.io/bike/

By month and week

By day of the week

By day of the month

By hour of the day

Observations

Station

201 of them

Station Map

Click the image above for the interactive map

From station to station

When considering the route from A -> B is the same as the route from B -> A:

Not all A -> B trips are the same as B -> A trips. For example, between Bleecker St (South of Wellesley) (A) and York St / Queens Quay W (B), distance of 3.0 km:

Route Number of trip Total duration (hour) Mean duration (minute) Velocity (Km/h)
A -> B 690 151 13 27
B -> A 510 136 16 23

Statistical test indicate that the duration and velocity from A -> B are significantly different from B -> A, with t.test p-value < 10-9, Wilcoxon p-value < 10-10 and permutation test p-value = 0 (10000 trials). Maybe there are terrestrial differences (slope), wind direction?

Distance

The two furthest stations are: Bloor St W / Dundas St W and Danforth Ave / Barrington Ave: 13 Km. No trip was registered on this route YET 😎.

User

🚲 Riders with membership are quite different from casual riders πŸ™‚ 🚲

All trips

User Number of trip Total duration (year) Mean duration per trip (minute Β±SE) Total distance* (Km) Mean distance* per trip (Km Β±SE) Velocity* (Km/h Β±SE)
All 585530 17.6 16 Β±0.0268 1338299 2.28 Β±0.0020 12.0 Β±0.0087
Member 436692 (75%) 9.4 (53%) 11 Β±0.0119 977951 2.24 Β±0.0021 12.9 Β±0.0095
Casual 148838 (25%) 8.3 (47%) 29 Β±0.0909 360374 2.42 Β±0.0047 9.0 Β±0.0178

*Distance and velocity were estimated using Google Matrix Distance API

Trips where pick up and drop off locations are the same

User Number of trip Total duration (year) Mean duration per trip (minute Β±SE)
All 17567 1.85 55 Β±0.4443
Member 4958 (28%) 0.16 (9%) 17 Β±0.3371
Casual 12609 (72%) 1.68 (91%) 70 Β±0.5504

Interactive plots can be found at https://kienly.shinyapps.io/bike/

In weekdays, there are more members on the bikes. But in weekend, causal riders roam the city.

In a typical day, members are more active between 7 AM and 8 AM, then between 3 PM and 5 PM. On the other hand, casual riders are more active between 10 AM and 5 PM.

Futhermore, if looking at mean duration of each ride, members spent about 11 minutes in each trip, regardless hour of the day. There are more fluctuation in the mean duration of each ride for casual riders, they spent from an average of 20 minutes to 33 minutes.

There are many differences between riders with membership and casual riders

Comments & further work

🌞 πŸš΄β€β€ πŸš΅β€ πŸ’¨ β€β€πŸš΄β€β€ πŸš΅β€ 🌴 β€β€πŸš΄β€β€ πŸš΅β€ πŸŒ™ β›„ β€β€πŸš΄β€β€ πŸš΅β€ 🌎


Part 2