<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by aminu abdulmalik on Medium]]></title>
        <description><![CDATA[Stories by aminu abdulmalik on Medium]]></description>
        <link>https://medium.com/@aminuabdul44?source=rss-f97153e82922------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Ru3aXwRjHuCvncyK</url>
            <title>Stories by aminu abdulmalik on Medium</title>
            <link>https://medium.com/@aminuabdul44?source=rss-f97153e82922------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:56:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aminuabdul44/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cyclistic case study: How does a Bike-Share Navigate Speedy Success?]]></title>
            <link>https://medium.com/@aminuabdul44/cyclistic-case-study-how-does-a-bike-share-navigate-speedy-success-c4737247400c?source=rss-f97153e82922------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4737247400c</guid>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[google-data-analytics]]></category>
            <dc:creator><![CDATA[aminu abdulmalik]]></dc:creator>
            <pubDate>Thu, 22 Aug 2024 22:43:45 GMT</pubDate>
            <atom:updated>2024-08-22T22:43:45.336Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*V8JiRp0pV2pCQHv9mOmBnw.jpeg" /></figure><h3>Introduction</h3><p>This is a final project for the Google Data Analytics Professional Certificate Course on Coursera.</p><p>In the given scenario, I am a junior data analyst working with the marketing team at a bike-sharing company in Chicago called, Cyclitic. The director of marketing believes the company’s success depends on increasing the annual membership numbers which will in turn increase profits. In order to achieve this, the marketing team will have to understand how the two types of Cyclistic users (casual riders and annual members) use Cyclistic bikes differently.</p><p><strong>About the Company.</strong></p><p>Cyclistic is a Chicago-based bike-sharing company with over 5,824 bicycles at 692 different stations. There are 3 types of bikes: Classic bikes, Electric bikes, and Docked bikes.</p><p>Cyclistic’s flexible pricing plans have proved to be a working marketing strategy:</p><p>a) Single ride passes: Purchased by Casual riders for a single bike ride.</p><p>b) Full-day passes: Purchased by Casual riders for the whole day ride.</p><p>c)Annual memberships: Purchased by annual members for the whole year</p><p>Cyclistic’s financial analyst concluded that annual member riders bring in more profit than casual riders. Based on that conclusion, maximizing the number of annual members will be the key to Cyclistic’s future growth.</p><p>Goal: By understanding how Casual riders use the bike-sharing service differently will be vital in converting them to annual members.</p><p>In order to answer the key business questions, analyze the available data and offer my professional recommendation based on my analysis, I’d have to follow the following process of data analysis:</p><ol><li>Ask- What is the problem you’re trying to solve? Business task?</li><li>Prepare — Source of your data? How it’s collected?</li><li>Process -Cleaning and manipulation of the data</li><li>Analyze -Analyzing the data to find trends</li><li>Share -sharing my insights.</li></ol><h3>ASK</h3><ul><li>Three questions will guide the future marketing program:</li></ul><ol><li>How do annual members and casual riders use Cyclistic bikes differently?</li><li>Why would casual riders buy Cyclistic annual memberships?</li><li>How can Cyclistic use digital media to influence casual riders to become members?</li></ol><p>Lily Moreno (the director of marketing and my manager) has assigned you the first question to answer: How do annual members and casual riders use Cyclistic bikes differently?</p><p>Key tasks</p><ul><li>Identify the business task</li></ul><p>The main objective is to design marketing strategies aimed at converting casual riders to annual members by understanding how they differ.</p><ul><li>Consider key stakeholders</li></ul><p>Director of Marketing (Lily Moreno), Marketing Analytics team, Executive team.</p><p>Deliverable</p><ul><li>A clear statement of the business task</li></ul><p>To find the differences between the casual riders and annual members.</p><h3>PREPARE</h3><ul><li>I will use Cyclistic’s historical trip data to analyze and identify trends. Datasets are available here <a href="https://divvy-tripdata.s3.amazonaws.com/index.html">link</a>.</li></ul><p>Key tasks</p><ol><li>Download data and store it appropriately.</li></ol><ul><li>Data has been downloaded and copies have been stored securely on my computer.</li></ul><p>2. Identify how it’s organized.</p><p>The data is in CSV (comma-separated values) format, and there are a total of 13 columns.</p><p>3. Sort and filter the data.</p><ul><li>For this analysis, I will be using data for the last 12 months (January 2023 — December 2023) because it is more current.</li></ul><p>4. Determine the credibility of the data.</p><ul><li>For the purpose of this case study, the datasets are appropriate and will enable me to answer the business questions. But data-privacy issues will prohibit me from using rider’s personally identifiable information and this will prevent me from determining if riders have purchased multiple single passes. All ride ids are unique.</li></ul><p>Deliverable</p><ol><li>A description of all data sources used</li><li>Main source of data provided by the <a href="https://divvy-tripdata.s3.amazonaws.com/index.html">Cylistic company</a>.</li></ol><h3>Install and load packages</h3><pre>install.packages(&quot;tidyverse&quot;)<br>install.packages(&quot;lubridate&quot;)<br>install.packages(&quot;ggplot2&quot;)<br>install.packages(&quot;dplyr&quot;)<br>install.packages(&quot;geosphere&quot;)<br>library(tidyverse)<br>library(lubridate)<br>library(ggplot2)<br>library(dplyr)<br>library(geosphere)</pre><h3>Import data to R studio</h3><pre>January23 &lt;-read_csv(&quot;cyclistic/January 23.csv.csv&quot;)<br>February23 &lt;-read_csv(&quot;cyclistic/February 23.csv.csv&quot;)<br>March23 &lt;-read_csv(&quot;cyclistic/March 23.csv.csv&quot;)<br>April23 &lt;-read_csv(&quot;cyclistic/April 23.csv.csv&quot;)<br>May23 &lt;-read_csv(&quot;cyclistic/May 23.csv.csv&quot;)<br>June23 &lt;-read_csv(&quot;cyclistic/June 23.csv.csv&quot;)<br>July23 &lt;-read_csv(&quot;cyclistic/July 23.csv.csv&quot;)<br>August23 &lt;-read_csv(&quot;cyclistic/August 23.csv.csv&quot;)<br>September23 &lt;-read_csv(&quot;cyclistic/September 23.csv.csv&quot;)<br>October23 &lt;-read_csv(&quot;cyclistic/October 23.csv.csv&quot;)<br>November23 &lt;-read_csv(&quot;cyclistic/November 23.csv.csv&quot;)<br>December23 &lt;-read_csv(&quot;cyclistic/December 23.csv.csv&quot;)</pre><h3>Bind monthly data frames into a large data frame</h3><pre>trip_data &lt;- bind_rows(February23, March23, April23, May23, June23, July23, August23, September23, October23, November23, December23, January23)</pre><h3>PROCESS</h3><h3>Cleaning and preparing data for analysis</h3><p>Key tasks</p><ol><li>Check the data for errors.</li><li>Choose your tools.</li><li>Transform the data so you can work with it effectively.</li><li>Document the cleaning process.</li></ol><p>Deliverable</p><ol><li>Documentation of any cleaning or manipulation of data</li></ol><p>Following code chunks will be used for this phase.</p><pre>head(trip_data) #see the first 6 rows of the data frame<br>nrow(trip_data) #how many rows are in the data frame<br>colnames(trip_data) #list of column names<br>dim(trip_data) #dimensions of the data frame<br>summary(trip_data) #statistical summary of data, mainly for numerics<br>str(trip_data) #see list of columns and data types<br>tail(trip_data) #see the last 6 rows of the data frame</pre><h3>Adding new columns for date, month, year, day of the week into the data frame.</h3><pre>trip_data$date &lt;- as.Date(trip_data$started_at) <br>trip_data$month &lt;- format(as.Date(trip_data$date), &quot;%m&quot;)<br>trip_data$day &lt;- format(as.Date(trip_data$date), &quot;%d&quot;)<br>trip_data$year &lt;- format(as.Date(trip_data$date), &quot;%Y&quot;)<br>trip_data$day_of_week &lt;- format(as.Date(trip_data$date), &quot;%A&quot;)<br>colnames(trip_data) #to get the names of all the columns</pre><h3>Add a ride_length calculation to trip_data</h3><pre>trip_data$ride_length &lt;- difftime(trip_data$ended_at, trip_data$started_at)<br>str(trip_data) #to inspect the structure of the columns</pre><h3>Convert ride_length from Factor to Numeric in order to run calculations</h3><pre>trip_data$ride_length &lt;- as.numeric(as.character(trip_data$ride_length))<br>is.numeric(trip_data$ride_length) #to confirm it is now numeric</pre><h3>Add ride_distance calculation to trip_data</h3><pre>trip_data$ride_distance &lt;- distGeo(matrix(c(trip_data$start_lng, trip_data$start_lat), ncol=2), matrix (c(trip_data$end_lng, trip_data$end_lat), ncol=2))<br>trip_data$ride_distance &lt;- trip_data$ride_distance/1000 #distance in km</pre><h3>Remove “bad” data</h3><p>The data frame includes a few hundred entries when bikes where taken out of docks and checked for quality by Divvy where ride_length was negative or “zero”</p><pre>trip_data_clean &lt;- trip_data[!(trip_data$ride_length &lt;= 0),]<br>glimpse(trip_data_clean) #gives column names and data in the column</pre><h3>ANALYZE</h3><p>All the required information is now in one place and ready for exploration.</p><p>Key tasks</p><ol><li>Aggregate your data so it’s useful and accessible.</li><li>Organize and format your data.</li><li>Perform calculations.</li><li>Identify trends and relationships.</li></ol><p>Deliverable</p><ol><li>A summary of the analysis.</li></ol><p>Following code chunks will be used for this phase</p><pre>str(trip_data_clean) #first lets check the structure of the data frame<br>summary(trip_data_clean) #to check the summarized details of the clean data frame</pre><h3>Conduct descriptive analysis</h3><h3>Descriptive analysis on ‘ride_length’</h3><p>mean = straight average (total ride length / total rides)</p><p>median = midpoint number of ride length</p><p>max = longest ride</p><p>min = shortest ride</p><pre>x &lt;- Member$ride_length<br>sum(x)<br>mean(x) <br>median(x)<br>max(x)<br>min(x)</pre><pre>y &lt;-Casual$ride_length<br>sum(y)  <br>mean(y)<br>median(y)<br>max(y) <br>min(y)</pre><h3>Let’s see total rides and average ride time by each day for members vs casual riders</h3><pre># lets order the days of the week<br>trip_data_clean$day_of_week &lt;- ordered(trip_data_clean$day_of_week, <br>                                    levels=c(&quot;Sunday&quot;, &quot;Monday&quot;, &quot;Tuesday&quot;, &quot;Wednesday&quot;, &quot;Thursday&quot;, &quot;Friday&quot;, &quot;Saturday&quot;))<br>trip_data_clean %&gt;% <br>  group_by(member_casual, day_of_week) %&gt;% #groups by member_casual<br>  summarise(number_of_rides = n() #calculates the number of rides and average duration <br>  ,average_ride_length = mean(ride_length),.groups=&quot;drop&quot;) %&gt;% # calculates the average duration<br>  arrange(member_casual, day_of_week) #sort</pre><p>#let’s visualize the above table by days of the week and number of rides taken by member and casual riders.</p><pre>trip_data_clean %&gt;% <br> group_by(member_casual, day_of_week) %&gt;% <br> summarise(number_of_rides = n(), .groups=&quot;drop&quot;) %&gt;% <br> arrange(member_casual, day_of_week) %&gt;% <br> ggplot(aes(x = day_of_week, y = number_of_rides, fill = member_casual)) +<br> labs(title =&quot;Total rides of Members and Casual riders Vs. Day of the week&quot;) +<br> geom_col(width=0.5, position = position_dodge(width=0.5)) +<br> scale_y_continuous(labels = function(x) format(x, scientific = FALSE))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnKo80kTwuquGcRMYypfcg.png" /></figure><p>From the above graph, it is observed that member riders have the highest number of rides on all days of the week especially (Tuesday Wednesday and Thursday) compared to the other days while casual are quite consistent, but they have the lowest number of rides on weekdays.</p><h3>Let’s visualize average ride by day of the week</h3><pre>trip_data_clean %&gt;%  <br>  group_by(member_casual, day_of_week) %&gt;% <br>  summarise(average_ride_length = mean(ride_length), .groups=&quot;drop&quot;) %&gt;%<br>  ggplot(aes(x = day_of_week, y = average_ride_length, fill = member_casual)) +<br>  geom_col(width=0.5, position = position_dodge(width=0.5)) + <br>  labs(title =&quot;Average ride time of Members and Casual riders Vs. Day of the week&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4SbZe4DOSvq15taiDh6Jgg.png" /></figure><ul><li>From the above graph, we can observe that casual riders ride for a longer time during the week with the highest ride on the weekends while members drive at a consistent pace during the week with the highest rides on the weekend.</li></ul><h3>Let’s visualize the total rides taken by members and casuals by month</h3><pre>trip_data_clean %&gt;%  <br>  group_by(member_casual, month) %&gt;% <br>  summarise(number_of_rides = n(),.groups=&quot;drop&quot;) %&gt;% <br>  arrange(member_casual, month)  %&gt;% <br>  ggplot(aes(x = month, y = number_of_rides, fill = member_casual)) +<br>  labs(title =&quot;Total rides by Members and Casual riders by Month&quot;) +<br>  theme(axis.text.x = element_text(angle = 45)) +<br>  geom_col(width=0.5, position = position_dodge(width=0.5)) +<br>  scale_y_continuous(labels = function(x) format(x, scientific = FALSE))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1lDUjlkFL4vcmWmy6BXUtw.png" /></figure><ul><li>From the above graph we can observe that members had higher number of rides all through the year.</li></ul><h3>Let’s compare Members and Casual riders depending on ride distance</h3><pre>trip_data_clean %&gt;% <br>  group_by(member_casual) %&gt;% drop_na() %&gt;%<br>  summarise(average_ride_distance = mean(ride_distance)) %&gt;%<br>  ggplot() + <br>  geom_col(mapping= aes(x= member_casual,y= average_ride_distance,fill=member_casual), show.legend = FALSE)+<br>  labs(title = &quot;Mean distance traveled by Members and Casual riders&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ItAo_KGRHHEOAQBXItg4g.png" /></figure><p>From the above graph, we can observe that casual riders went a longer distance compared to members by a few kilometers.</p><p>SHARE</p><p>This phase will be done by presentation.</p><p>Key tasks</p><ol><li>Determine the best way to share your findings.</li><li>Create effective data visualizations.</li><li>Present your findings.</li><li>Ensure your work is accessible.</li></ol><p>Deliverable</p><ol><li>Supporting visualizations and key findings</li></ol><h3>ACT</h3><p>This phase will be carried out by the executive team, Director of Marketing (Lily Moreno) and the Marketing Analytics team based on my analysis.</p><h3>Conclusion</h3><ol><li>Members have more bikes compared to casual riders.</li><li>We have more members riding in all months except the summer months (June, July and August) where we have more casual riders.</li><li>Casual riders go farther in terms of distance.</li><li>Casual riders travel for a longer time period.</li><li>Members ride less on the weekend compared to casual riders.</li></ol><p>Deliverable</p><ul><li>Your top three recommendations based on your analysis</li></ul><ol><li>Have a slash sale or promo for casual riders so they can acquire more bikes and indulge them in the benefits of being a member.</li><li>Encourage member riders to ride on weekends by giving them various coupons or extending their membership by a period of time.</li><li>Host fun biking competitions with prizes at intervals for members on the weekends. Since there are lot of casual riders on weekends, this will also attract them to get a membership.</li></ol><p>Resources</p><ul><li><a href="https://community.rstudio.com/">RStudio</a> and <a href="https://www.kaggle.com/discussion">Kaggle</a> community.</li></ul><p>THANKS FOR READING.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4737247400c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>