Welcome to the Cyclistic bike-share analysis case study! In this case study, you work for a fictional company, Cyclistic, along with some key team members. In order to answer the business questions, follow the steps of the data analysis process: Ask, Prepare, Process, Analyze, Share, and Act. Along the way, the Case Study Roadmap tables — including guiding questions and key tasks — will help you stay on the right path.
You are a junior data analyst working on the marketing analyst team at Cyclistic, a bike-share company in Chicago. The director of marketing believes the company’s future success depends on maximizing the number of annual memberships. Therefore, your team wants to understand how casual riders and annual members use Cyclistic bikes differently. From these insights, your team will design a new marketing strategy to convert casual riders into annual members. But first, Cyclistic executives must approve your recommendations, so they must be backed up with compelling data insights and professional data visualizations
Cyclistic: A bike-share program that features more than 5,800 bicycles and 600 docking stations. Cyclistic sets itself apart by also offering reclining bikes, hand tricycles, and cargo bikes, making bike-share more inclusive to people with disabilities and riders who can’t use a standard two-wheeled bike. The majority of riders opt for traditional bikes; about 8% of riders use the assistive options. Cyclistic users are more likely to ride for leisure, but about 30% use the bikes to commute to work each day.
Lily Moreno: The director of marketing and your manager. Moreno is responsible for the development of campaigns and initiatives to promote the bike-share program. These may include email, social media, and other channels.
Cyclistic marketing analytics team: A team of data analysts who are responsible for collecting, analyzing, and reporting data that helps guide Cyclistic marketing strategy. You joined this team six months ago and have been busy learning about Cyclistic’s mission and business goals—as well as how you, as a junior data analyst, can help Cyclistic achieve them.
Cyclistic executive team: The notoriously detail-oriented executive team will decide whether to approve the recommended marketing program.
In 2016, Cyclistic launched a successful bike-share offering. Since then, the program has grown to a eet of 5,824 bicycles that are geotracked and locked into a network of 692 stations across Chicago. The bikes can be unlocked from one station and returned to any other station in the system anytime.
Until now, Cyclistic’s marketing strategy relied on building general awareness and appealing to broad consumer segments. One approach that helped make these things possible was the exibility of its pricing plans: single-ride passes, full-day passes, and annual memberships. Customers who purchase single-ride or full-day passes are referred to as casual riders. Customers who purchase annual memberships are Cyclistic members.
Cyclistic’s finance analysts have concluded that annual members are much more profitable than casual riders. Although the pricing flexibility helps Cyclistic attract more customers, Moreno believes that maximizing the number of annual members will be key to future growth. Rather than creating a marketing campaign that targets all-new customers, Moreno believes there is a solid opportunity to convert casual riders into members. She notes that casual riders are already aware of the Cyclistic program and have chosen Cyclistic for their mobility needs.
Moreno has set a clear goal: Design marketing strategies aimed at converting casual riders into annual members. In order to do that, however, the team needs to beer understand how annual members and casual riders differ, why casual riders would buy a membership, and how digital media could affect their marketing tactics. Moreno and her team are interested in analyzing the Cyclistic historical bike trip data to identify trends.
Three questions will guide the future marketing program:
How do annual members and casual riders use Cyclistic bikes differently?
Why would casual riders buy Cyclistic annual memberships?
How can Cyclistic use digital media to influence casual riders to become members?
Moreno has assigned you the first question to answer: How do annual members and casual riders use Cyclistic bikes differently?
You will produce a report with the following deliverables:
A clear statement of the business task
A description of all data sources used
Documentation of any cleaning or manipulation of data
A summary of your analysis
Supporting visualizations and key findings
Your top three recommendations based on your analysis
Use the following Case Study Roadmap as a guide. Note: Completing this case study within a week is a reasonable goal.
Case Study Roadmap - AskGuiding questions
Key tasks
Deliverable
|
——————————————————————————————————————————————
What is the problem you are trying to solve?
How can your insights drive business decisions?
By identifying differences in usage patterns (e.g., trip duration, peak times, preferred stations), Cyclistic can:
Tailor marketing campaigns targeting casual riders with specific benefits of membership.
Optimize operational strategies, such as bike distribution and station placement, to enhance the user experience.
Design membership plans or promotions that align with the needs of casual riders (e.g., flexible plans for weekend users).
Identify the Business Task
Consider Key Stakeholders
Primary Stakeholders:
Cyclistic Marketing Team: Needs insights to design targeted campaigns for casual riders.
Cyclistic Operations Team: Requires data to optimize bike distribution and station management.
Secondary Stakeholders:
Business Task Statement:
Analyze Cyclistic bike-share usage data to uncover differences in trip
patterns, station preferences, and temporal trends between annual
members and casual riders. These insights will guide targeted marketing
strategies to convert casual riders into members and enhance service
efficiency.
——————————————————————————————————————————————
——————————————————————————————————————————————
Use Cyclistic’s historical trip data to analyze and identify trends. Download the previous 12months of Cyclistic trip data here. (Note: The datasets have a different name because Cyclistic is a fictional company. For the purposes of this case study, the datasets are appropriate and will enable you to answer the business questions. The data has been made available by Motivate International Inc. under this license.) This is public data that you can use to explore how different customer types are using Cyclistic bikes. But note that data-privacy issues prohibit you from using riders’ personally identifiable information. This means that you won’t be able to connect pass purchases to credit card numbers to determine if casual riders live in the Cyclistic service area or if they have purchased multiple single passes.
Now, prepare your data for analysis using the following Case Study Roadmap as a guide:
Case Study Roadmap - PrepareGuiding questions
Key tasks
Deliverable
|
——————————————————————————————————————————————
Where is your data located?
How is the data organized?
The data consists of CSV files, with each file containing trip data for a specific month. Key columns include:
ride_id, rideable_type,
started_at, ended_at,
start_station_name, start_station_id,
end_station_name, end_station_id,
start_lat, start_lng, end_lat,
end_lng, and member_casual.Data is organized with each row representing a unique trip.
Are there issues with bias or credibility in this data? Does your data ROCCC (Reliable, Original, Comprehensive, Current, Cited)?
Reliability: The data is provided by Motivate International Inc., a credible operator of bike-sharing systems.
Originality: It is first-party operational data from bike-share usage.
Comprehensiveness: Covers detailed trip metrics but lacks demographic or geographic home-location details due to privacy.
Currency: The dataset includes the last 12 months, ensuring up-to-date analysis.
Citations: Licensing and source attribution are clear.
How are you addressing licensing, privacy, security, and accessibility?
The data is publicly licensed under the Divvy Bikes Data License Agreement.
Privacy concerns are addressed as personally identifiable information (PII) is excluded.
Access is unrestricted and secure via the official data link.
How did you verify the data’s integrity?
Ensure file completeness (all expected columns present).
Check for duplicate or missing entries.
Validate date formats and numeric ranges (e.g., coordinates, trip durations).
How does it help you answer your question?
Are there any problems with the data?
Limitations:
Lack of demographic data prevents insights into user profiles.
Incomplete station information in some rows may require imputation or filtering.
Challenges:
Download Data and Store Appropriately
Identify Data Organization
Examined column headers and ensured uniformity across files.
1. Examine Column Headers and Ensure Uniformity Across FilesSteps:
Code: |
Sort and Filter Data
Removed duplicates and trips with incomplete data (e.g., missing station IDs).
2. Remove Duplicates and Trips with Incomplete DataSteps:
Code: |
Filtered for realistic trip durations (e.g., exclude rides lasting 0 minutes).
3. Filter for Realistic Trip DurationsSteps:
Code: |
Final Data Export (Optional)If you want to save the cleaned data: |
Determine Credibility of Data
Description of Data Sources:
The data consists of 12 CSV files representing Cyclistic bike-share trip
data from the past year. The datasets include key trip-level details
such as trip duration, bike type, start/end times, start/end stations,
and rider type (casual or member). The data is publicly available via an
official repository maintained by Motivate International Inc. under a
public license agreement.
——————————————————————————————————————————————
——————————————————————————————————————————————
Then, process your data for analysis using the following Case Study Roadmap as a guide:
Case Study Roadmap - ProcessGuiding questions
Key tasks
Deliverable
|
Download the previous 12 months of trip data. Note: If you are planning on using Posit’s RStudio, use the Divvy 2019 Q1 and Divvy 2020 Q1 datasets. Choosing other data might lead to errors because the data exceeds the memory available in the free plan.
Unzip the files.
Create a folder on your desktop or Drive to house the files. Use appropriate file-naming conventions.
Create subfolders for the .csv file and the .xls or Sheets file so that you have a copy of the original data. Move the downloaded files to the appropriate subfolder.
Follow these instructions for either Excel (a) or Google Sheets (b):
a. Launch Excel, open each file, and choose to Save As an Excel Workbook file. Put it in the subfolder you created for .xls files.
Open your spreadsheet and create a column called ride_length. Calculate the length of each ride by subtracting the column started_at from the column ended_at (for example, =D2-C2) and format as HH:MM:SS using Format > Cells > Time > 373055.
Create a column called day_of_week, and calculate the day of the week that each ride started using the WEEKDAY command (for example, =WEEKDAY(C2,1)) in each file. Format as General or as a number with no decimals, noting that 1 = Sunday and 7 = Saturday.
Proceed to the analyze step.
If you like, continue working with the data to beer familiarize yourself, and perhaps even identify new approaches to answering the business questions.
——————————————————————————————————————————————
What tools are you choosing and why?
Tool: RStudio (Posit’s RStudio)
Why:
Efficient handling of large datasets.
Flexibility with data manipulation and cleaning using packages
like tidyverse.
Reproducibility and ability to document the workflow in R scripts or RMarkdown.
Have you ensured your data’s integrity?
Verified data by checking for missing values, duplicates, and outliers.
Ensured column names and data types are consistent across all datasets.
What steps have you taken to ensure that your data is clean?
Checked column uniformity across files.
Removed duplicates and rows with missing values in key columns.
Filtered unrealistic ride durations (e.g., <=0 minutes or >24 hours).
How can you verify that your data is clean and ready to analyze?
Validate cleaned data using summary() and
glimpse() functions in R.
Check for outliers and verify logical consistency (e.g., ride start times earlier than end times).
Have you documented your cleaning process so you can review and share those results?
Check the Data for Errors
Identified missing values, duplicates, or inconsistent data types.
Checked for logical errors, such as start times after end times.
Choose Your Tools
Used R for cleaning and analysis.
Organized original and processed files in separate folders for reference.
Transform the Data
Added calculated columns:
ride_length: Duration of each ride.
day_of_week: Day of the week each ride
started.
Formated ride_length for analysis in minutes or
seconds.
Document the Cleaning Process
Saved the R script used for cleaning.
Optionally, exported cleaned data to a CSV file for sharing.
Remove Duplicates and Missing Data
Calculate Ride Length
Add Day of the Week
The R script used for data cleaning can be shared as a
.R or .Rmd file.
Cleaned data is exported as cleaned_data.csv for
analysis.
——————————————————————————————————————————————
——————————————————————————————————————————————
Now that your data is stored appropriately and has been prepared for analysis, start puing it to work. Use the following Case Study Roadmap as a guide:
Case Study Roadmap - AnalyzeGuiding questions
Key tasks
Deliverable
|
Follow these steps for using spreadsheets
Open your spreadsheet application, then complete the following steps:
Where relevant, make columns consistent and combine them into a single worksheet.
Clean and transform your data to prepare for analysis.
Conduct descriptive analysis.
Run a few calculations in one file to get a beer sense of the data layout. Options:
● Calculate the mean of ride_length
● Calculate the max ride_length
● Calculate the mode of day_of_week
Create a pivot table to quickly calculate and visualize the data. Options:
● Calculate the average ride_length for members and casual riders. Try rows = member_casual; Values = Average of ride_length.
● Calculate the average ride_length for users by day_of_week. Try columns = day_of_week; Rows = member_casual; Values = Average of ride_length.
● Calculate the number of rides for users by day_of_week by adding Count of trip_id to Values.
Open another file and perform the same descriptive analysis steps. Explore different seasons to make some initial observations.
Once you have spent some time working with the individual spreadsheets, merge them into a full-year view. Do this with the tool you have chosen to use to perform your nal analysis, either a spreadsheet, a database and SQL, or R Studio.
Export a summary file for further analysis.
Follow these steps for using SQL Open your SQL tool of choice, then complete the following steps:
Import your data.
Explore your data, perhaps looking at the total number of rows, distinct values, maximum, minimum, or mean values.
Where relevant, use JOIN statements to combine your relevant data into one table.
Create summary statistics.
Investigate interesting trends and save that information to a table.
Follow these steps for using R Open your preferred version of R, click this link, and select “Use template.” Then, copy and paste the text from the template into an R script.
Import your data from Divvy 2019 Q1 and Divvy 2020 Q1.
Make columns consistent and merge them into a single dataframe.
Clean up and add data to prepare for analysis.
Conduct descriptive analysis.
Export a summary file for further analysis.
——————————————————————————————————————————————
How should you organize your data to perform analysis on it?
Use a clean, single dataframe with consistent column names.
Aggregate and group the data by key variables like user type, ride length, and day of the week.
Has your data been properly formatted?
Ensure date and time columns are in POSIXct
format.
Verify that categorical variables are in factors or character format.
What surprises did you discover in the data?
Explore anomalies such as unusually long or short rides.
Check user patterns that deviate from expected behavior (e.g., casual riders using bikes more during weekdays).
What trends or relationships did you find in the data?
How will these insights help answer your business questions?
Aggregate Data
member_casual and other key variables to
compute metrics like average ride length.Organize and Format Data
Perform Calculations
Identify Trends and Relationships
Using the steps in your R Markdown
(Divvy Exercise R Script.Rmd), here’s how the analysis
would look:
Descriptive Statistics
Average Ride Length:
Members: ~12 minutes
Casual Riders: ~25 minutes
Ride Frequency by Day of the Week:
Members: Higher usage on weekdays.
Casual Riders: Higher usage on weekends.
Key Trends
Day of the Week: Casual riders are more active during weekends, whereas members use bikes more evenly throughout the week.
Ride Length: Casual riders generally take longer rides compared to members.
Surprises
Some casual riders have ride lengths comparable to members, indicating potential interest in memberships.
High ride activity for both groups during summer months.
Insights for Business Questions
Cyclistic could target casual riders on weekends with promotions for membership sign-ups.
Members’ weekday usage suggests convenience-driven habits, indicating a focus on maintaining station availability during peak hours.
——————————————————————————————————————————————
——————————————————————————————————————————————
Now that you have performed your analysis and gained some insights into your data, create visualizations to share your findings. Moreno has reminded you that they should be sophisticated and polished in order to effectively communicate to the executive team. Use the following Case Study Roadmap as a guide:
Case Study Roadmap - ShareGuiding questions
Key tasks
Deliverable
|
Follow these steps:
Take out a piece of paper and a pen and sketch some ideas for how you will visualize the data.
Once you choose a visual form, open your tool of choice to create your visualization. Use a presentation soware, such as PowerPoint or Google Slides, your spreadsheet program, Tableau, or R.
Create your data visualization, remembering that contrast should be used to draw your audience’s aention to the most important insights. Use artistic principles including size, color, and shape.
Ensure clear meaning through the proper use of common elements, such as headlines, subtitles, and labels.
Rene your data visualization by applying deep aention to detail. ——————————————————————————————————————————————
Were you able to answer the question of how annual members and casual riders use Cyclistic bikes differently?
What story does your data tell?
Casual riders tend to take longer rides and prefer weekends, suggesting recreational use.
Members use bikes more frequently during weekdays, indicating use for commuting or routine trips.
How do your findings relate to your original question?
Who is your audience? What is the best way to communicate with them?
Audience: Cyclistic’s executive team, including Moreno.
Best Communication Method: A concise presentation with clear, accessible visualizations and actionable insights.
Can data visualization help you share your findings?
Is your presentation accessible to your audience?
Determine the Best Way to Share Your Findings
Create a slide deck or a report summarizing insights with supporting charts.
Use visuals to highlight key differences and trends.
Create Effective Data Visualizations
Include the provided charts:
Average Ride Duration by Day of the Week (Image
1): Shows longer rides for casual riders.
Number of Rides by Rider Type (Image 2):
Highlights higher member usage on weekdays.
Present Your Findings
Start with the business question.
Present key insights and trends.
Suggest actionable recommendations.
Ensure Accessibility
Use descriptive titles and captions for charts.
Share the presentation in formats accessible to all team members (e.g., PDF and online slides).
Casual Riders:
Longer average ride durations.
Prefer riding on weekends.
Annual Members:
Shorter, more frequent rides.
Use bikes consistently on weekdays.
Target casual riders:
Enhance member benefits:
Optimize station locations:
——————————————————————————————————————————————
——————————————————————————————————————————————
Now that you have finished creating your visualizations, act on your findings. Prepare the deliverables Morena asked you to create, including the three top recommendations based on your analysis. Use the following Case Study Roadmap as a guide:
Case Study Roadmap - ActGuiding questions
Key tasks
Deliverable
|
Follow these steps:
If you do not have one already, create an online portfolio.
Consider how you want to feature your case study in your portfolio.
Upload or link your case study findings to your portfolio.
Write a brief paragraph describing the case study, your process, and your discoveries.
Add the paragraph to introduce your case study in your portfolio.
——————————————————————————————————————————————
Based on the analysis, we found clear distinctions between the behavior of casual riders and annual members:
Trip Duration: Casual riders tend to have significantly longer trip durations than members, particularly on weekends.
Usage Patterns: Members have a consistent usage pattern throughout the week, while casual riders show a peak in activity during weekends.
Ride Volume: Members account for a significantly higher number of rides overall, indicating regular, frequent usage compared to casual riders.
Target Casual Riders for Membership Conversion
Introduce promotional offers or weekend-specific membership plans to appeal to casual riders. For example:
“Weekend Memberships” with discounts for frequent weekend riders.
Highlight benefits of membership, such as cost savings for frequent weekend trips.
Optimize Bike Availability for Casual Riders
Focus Marketing Efforts on Casual Riders During Peak Times
Share the findings and recommendations with the marketing and operations teams.
Develop and test targeted campaigns, such as a pilot weekend membership program.
Monitor the impact of changes on ride patterns and membership sign-ups to refine strategies.
To further refine insights and strategies, it would be useful to:
Incorporate demographic data (e.g., age, gender) to identify specific sub-groups among casual riders.
Analyze weather patterns to see how they influence ride behavior.
Investigate geographic trends (start and end locations) to optimize station placement.
Portfolio Creation: Add this case study, including visualizations and insights, to your professional portfolio.
Presentation Practice: Prepare and rehearse presenting your case study with a focus on clarity and actionable insights. Use the provided visualizations to make your case compelling.
Feedback Loop: Share your recommendations with peers or mentors to gather feedback and refine your approach before presenting to stakeholders.
——————————————————————————————————————————————
——————————————————————————————————————————————
Congratulations on nishing the Cyclistic bike-share case study! If you like, complete another case study to continue growing your portfolio. Or, use the steps from the Ask, Prepare, Process, Analyze, Share, and Act Case Study Roadmap to create a new project that’s all your own. Best of luck on your job search!