Background
This is the capstone of the Google Data Analytics programme. Cyclistic is a fictional bike-share company in Chicago, but the data analysed is real trip data from the Divvy system.
Finance found that annual members are much more profitable than casual riders, so leadership believes growing the number of annual members is the key to growth. Marketing needs to understand how the two groups differ before designing a campaign.
- Casual riders: buy a single-ride or a full-day pass.
- Members: buy an annual membership.
Business task
Identify how annual members and casual riders use Cyclistic bikes differently, to optimise marketing aimed at what characterises casual riders.
The dataset
- Scope: the previous 12 months of trip data, March 2022 to February 2023, one CSV file per month.
- First-party data stored in the company’s cloud; historical and structured.
- Made available by Motivate International Inc. under a public licence.
- Meets the ROCCC standard: reliable, original, comprehensive, current and cited.
| Column | Description | Type |
|---|---|---|
ride_id | ID of each trip | Character |
rideable_type | Type of bike used, one of 3: classic, electric and docked | Character |
started_at | Date and time the trip started (CST) | Date and time |
ended_at | Date and time the trip ended (CST) | Date and time |
start_station_name | Name of the start station | Character |
start_station_id | ID of the start station | Character |
end_station_name | Name of the end station | Character |
end_station_id | ID of the end station | Character |
start_lat | Latitude of the start station | Numeric |
start_lng | Longitude of the start station | Numeric |
end_lat | Latitude of the end station | Numeric |
end_lng | Longitude of the end station | Numeric |
member_casual | casual: a rider who bought a 24-hour pass; member: a rider with an annual membership | Character |
Preparing the data in R
- Merged the 12 CSV files into one table.
- Removed duplicate rows.
- Kept only the columns needed, to cut the file size:
member_casual,rideable_type,started_at,ended_at,start_station_name. - Exported a new CSV file for SQL Server.
Cleaning the data in SQL Server
Wrote T-SQL to build the analysis columns and drop invalid rows, following the cleaning plan below. The output is Cyclistic_clean_v4.csv for the analysis step.
| Column | Action | Description | Integrity check |
|---|---|---|---|
member_casual | Available | casual: a rider who bought a 24-hour pass; member: a rider with an annual membership | Only 2 values: casual, member |
rideable_type | Available | The type of bike used: classic, electric or docked | Only 3 values: classic_bike, electric_bike, docked_bike |
trip_duration | Seconds from started_at to ended_at | Trip length in seconds | Keep trips of 2 minutes or more (trip_duration >= 120); find and drop outliers longer than 1 day |
start_hour | Hour of started_at | The hour the trip started | Between 0 and 23 |
day_of_week | Weekday of started_at | The day of the week of the trip | Monday to Sunday |
start_location | Split start_station_name (an intersection) into 2 columns, keep the first as the main location (road, avenue, university…) and drop blank rows | Where the trip started | Many locations, no blanks (thanks to the previous step) |
Analysing in Excel
Loaded the cleaned file with Power Query and built a pivot table for each question:
- A cross table and side-by-side bar chart: how often each group uses each bike type.
- Average trip duration in hh:mm:ss.
- Trips by weekday and by start hour.
- Locations where casual riders outnumber members: a helper column “casual − member”, filtered above 0 and sorted by total trips, largest first.


Key findings
- Casual riders rarely use docked bikes, and members never do.
- Casual riders use classic and electric bikes equally; members clearly prefer classic bikes.
- Casual riders’ average trip is twice as long as members’: they already know Cyclistic and choose it for getting around.
- Casual riders ride mostly at weekends (Saturday and Sunday), members mostly on workdays.
- Both groups share the same daily rhythm: rising in the morning, peaking in the afternoon, falling at night. Members alone jump at 6–8 am and 4–6 pm, matching commuting hours.
- Many busy locations still have a casual majority. The ten busiest: Michigan Avenue, DuSable Lake Shore Drive, Streeter Drive, Millennium Park, Theater on the Lake, Shedd Aquarium, Montrose Harbor, DuSable Harbor, Adler Planetarium, Lincoln Park Conservatory.
Recommendations
- Offer a discount or a 5-day trial card (Monday to Friday) for classic bikes, so casual riders feel the convenience of cycling to school or work during the week.
- Focus marketing on weekends and at attractions, when casual riders ride most and longest.
- Concentrate the budget on the ten locations above, ideally right at the Cyclistic stations to keep costs down.
- Run activities between noon and 7 pm to reach the most casual riders.
