<?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 Kübra Kıssa on Medium]]></title>
        <description><![CDATA[Stories by Kübra Kıssa on Medium]]></description>
        <link>https://medium.com/@kbrkssa?source=rss-6c057671845b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*590DX4oxudETcb52EWiehQ.jpeg</url>
            <title>Stories by Kübra Kıssa on Medium</title>
            <link>https://medium.com/@kbrkssa?source=rss-6c057671845b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 17:41:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kbrkssa/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[Data Analyst Job Market Analysis]]></title>
            <link>https://medium.com/@kbrkssa/data-analyst-job-market-analysis-3462b77d2db2?source=rss-6c057671845b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3462b77d2db2</guid>
            <dc:creator><![CDATA[Kübra Kıssa]]></dc:creator>
            <pubDate>Sun, 16 Feb 2025 16:28:03 GMT</pubDate>
            <atom:updated>2025-02-16T16:36:35.752Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aYZ5aA9qyonkQtcpZ7B3yQ.jpeg" /></figure><h3>1. ASK</h3><h3>Business Statement</h3><p>This project aims to analyze job postings from the Glassdoor platform to identify the best salaries, industries, and locations for data analysts. Understanding how different factors in job postings (company size, industry, location, etc.) affect salaries and job application ease will help candidates make informed career decisions.</p><h3>Key Questions</h3><p>This analysis will address the following questions:</p><p><strong>Market Trends</strong>: How do salary ranges for data analysts vary?</p><p><strong>Company Analysis</strong>: Which companies offer higher salaries? Do larger companies pay more than smaller ones?</p><p><strong>Location Impact</strong>: Which cities or states have the highest salary offers?</p><p><strong>Industry Comparison</strong>:</p><ul><li>In which industries do data analysts earn the most?</li><li>Which industries have the highest number of job postings?</li></ul><p><strong>Remote vs. In-Person Jobs</strong>:</p><ul><li>How do salaries compare between remote and in-person data analyst roles?</li><li>Which type of job (remote vs. in-person) has more job postings?</li></ul><p><strong>Job Application Ease</strong>: Is there a relationship between job postings with the “Easy Apply” option and salary levels?</p><p><strong>Company Culture</strong>: Is there a connection between company ratings and salary levels or job descriptions?</p><h3>Dataset Overview</h3><p><strong>Dataset Name</strong>: dataanalyst_job1.csv</p><p><strong>Source</strong>: Glassdoor</p><p><strong>Columns</strong>:</p><ul><li>Job Title — Name of the position</li><li>Salary Estimate — Estimated salary</li><li>Job Description — Description of the job</li><li>Rating — Company rating</li><li>Company Name — Name of the company</li><li>Location — Location of the job</li><li>Headquarters — Company’s headquarters</li><li>Size — Company size</li><li>Founded — Year the company was founded</li><li>Type of Organization — Type of company (Private, Public, etc.)</li><li>Industry — Industry type</li><li>Sector — General sector category</li><li>Revenue — Revenue range</li><li>Easy Apply — Whether the job offers an easy application option</li></ul><p><strong>2.PREPARE</strong></p><p>Let’s begin the Prepare phase of the Data Analyst Jobs analysis and visualization project by loading the necessary R libraries for data analysis and visualization.</p><pre>library(tidyverse)<br>library(lubridate)<br>library(dplyr)<br>library(ggplot2)<br>library(tidyr)<br>library(here)<br>library(skimr)<br>library(janitor)</pre><p>I use list.files(“/kaggle/input/”) to check the files and identify the file path where the dataset is located.</p><pre>list.files(&quot;/kaggle/input/&quot;)</pre><p>‘data-analyst-jobs’</p><pre>list.files(&quot;/kaggle/input/data-analyst-jobs&quot;)</pre><p>‘DataAnalyst.csv’</p><pre>data_analyst_jobs &lt;- read.csv(&quot;/kaggle/input/data-analyst-jobs/DataAnalyst.csv&quot;)<br>head(data_analyst_jobs,1)</pre><p>I use str(data_analyst_jobs) to inspect the structure of the dataset, checking the data types and the first few entries of each column.</p><pre>str(data_analyst_jobs)</pre><pre>&#39;data.frame&#39;:	2253 obs. of  16 variables:<br> $ X                : int  0 1 2 3 4 5 6 7 8 9 ...<br> $ Job.Title        : chr  &quot;Data Analyst, Center on Immigration and Justice (CIJ)&quot; &quot;Quality Data Analyst&quot; &quot;Senior Data Analyst, Insights &amp; Analytics Team [Customer Operations]&quot; &quot;Data Analyst&quot; ...<br> $ Salary.Estimate  : chr  &quot;$37K-$66K (Glassdoor est.)&quot; &quot;$37K-$66K (Glassdoor est.)&quot; &quot;$37K-$66K (Glassdoor est.)&quot; &quot;$37K-$66K (Glassdoor est.)&quot; ...<br> $ Job.Description  : chr  &quot;Are you eager to roll up your sleeves and harness data to drive policy change? Do you enjoy sifting through com&quot;| __truncated__ &quot;Overview\n\nProvides analytical and technical support for the integration of multiple data sources used to prep&quot;| __truncated__ &quot;We’re looking for a Senior Data Analyst who has a love of mentorship, data visualization, and generating action&quot;| __truncated__ &quot;Requisition NumberRR-0001939\nRemote:Yes\nWe collaborate. We create. We innovate.\n\nIntrigued?\n\nYou’re a bus&quot;| __truncated__ ...<br> $ Rating           : num  3.2 3.8 3.4 4.1 3.9 3.9 4.4 3.7 4 4.4 ...<br> $ Company.Name     : chr  &quot;Vera Institute of Justice\n3.2&quot; &quot;Visiting Nurse Service of New York\n3.8&quot; &quot;Squarespace\n3.4&quot; &quot;Celerity\n4.1&quot; ...<br> $ Location         : chr  &quot;New York, NY&quot; &quot;New York, NY&quot; &quot;New York, NY&quot; &quot;New York, NY&quot; ...<br> $ Headquarters     : chr  &quot;New York, NY&quot; &quot;New York, NY&quot; &quot;New York, NY&quot; &quot;McLean, VA&quot; ...<br> $ Size             : chr  &quot;201 to 500 employees&quot; &quot;10000+ employees&quot; &quot;1001 to 5000 employees&quot; &quot;201 to 500 employees&quot; ...<br> $ Founded          : int  1961 1893 2003 2002 2009 2014 2001 1914 1896 2013 ...<br> $ Type.of.ownership: chr  &quot;Nonprofit Organization&quot; &quot;Nonprofit Organization&quot; &quot;Company - Private&quot; &quot;Subsidiary or Business Segment&quot; ...<br> $ Industry         : chr  &quot;Social Assistance&quot; &quot;Health Care Services &amp; Hospitals&quot; &quot;Internet&quot; &quot;IT Services&quot; ...<br> $ Sector           : chr  &quot;Non-Profit&quot; &quot;Health Care&quot; &quot;Information Technology&quot; &quot;Information Technology&quot; ...<br> $ Revenue          : chr  &quot;$100 to $500 million (USD)&quot; &quot;$2 to $5 billion (USD)&quot; &quot;Unknown / Non-Applicable&quot; &quot;$50 to $100 million (USD)&quot; ...<br> $ Competitors      : chr  &quot;-1&quot; &quot;-1&quot; &quot;GoDaddy&quot; &quot;-1&quot; ...<br> $ Easy.Apply       : chr  &quot;True&quot; &quot;-1&quot; &quot;-1&quot; &quot;-1&quot; ...</pre><p>I have opted not to include the ‘<strong>Job.Description</strong>’ column in my analysis, as I believe it will not yield valuable insights through cleaning or manipulation. To minimize redundancy in the dataset, I have decided to remove this column.</p><pre>data_analyst_jobs &lt;- data_analyst_jobs[ , -which(names(data_analyst_jobs) == &#39;Job.Description&#39;)]</pre><p>I used the <strong>names()</strong> function to quickly inspect the structure of the dataset and identify the column names for further analysis or manipulation.</p><pre>names(data_analyst_jobs)</pre><ol><li>‘X’</li><li>‘Job.Title’</li><li>‘Salary.Estimate’</li><li>‘Rating’</li><li>‘Company.Name’</li><li>‘Location’</li><li>‘Headquarters’</li><li>‘Size’</li><li>‘Founded’</li><li>‘Type.of.ownership’</li><li>‘Industry’</li><li>‘Sector’</li><li>‘Revenue’</li><li>‘Competitors’</li><li>‘Easy.Apply’</li></ol><p>I removed the ‘<strong>X</strong>’ column from the data_analyst_jobs dataset because it was not relevant to my analysis, and then I previewed the updated dataset using head(data_analyst_jobs).</p><pre>data_analyst_jobs &lt;- data_analyst_jobs[ , -which(names(data_analyst_jobs) == &#39;X&#39;)]<br>head(data_analyst_jobs)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHpTgBExKYsE4vpKlZhcKg.png" /></figure><p>Next, I performed <strong>NA</strong> and <strong>duplicate</strong> checks and observed that there are no null or duplicate values in the dataset. However, upon reviewing the data, I noticed an inexplicable ‘<strong>-1</strong>’ value appearing in multiple places. As the next step, I intend to investigate these ‘-1’ values further to understand their significance.</p><pre>sum(is.na(data_analyst_jobs))</pre><p>0</p><pre>sum(duplicated(data_analyst_jobs))</pre><p>0</p><p>Let’s count the occurrences of ‘-1’ values in each column and observe their distribution.</p><pre>colSums(data_analyst_jobs == -1)</pre><p>Job.Title:0,Salary.Estimate:1,Rating:272,Company.Name:0,Location:0,Headquarters:172,Size:163,Founded:660,Type.of.ownership:163,Industry:353,Sector:353,Revenue:163,Competitors:1732,Easy.Apply:2173</p><p>As observed in the query results, several columns contain a significant number of ‘-1’ values, which are not meaningful. I would like to calculate the percentage of ‘-1’ entries in each column.</p><pre>result &lt;- data_analyst_jobs %&gt;%<br>  summarise_all(~sum(. == -1)) %&gt;%<br>  gather(Column, Count_of_minus_1) %&gt;%<br>  mutate(<br>    Total_rows = nrow(data_analyst_jobs),<br>    Percentage_minus_1 = (Count_of_minus_1 / Total_rows) * 100<br>  )<br>print(result)</pre><pre>Column Count_of_minus_1 Total_rows Percentage_minus_1<br>1          Job.Title                0       2253         0.00000000<br>2    Salary.Estimate                1       2253         0.04438526<br>3             Rating              272       2253        12.07279183<br>4       Company.Name                0       2253         0.00000000<br>5           Location                0       2253         0.00000000<br>6       Headquarters              172       2253         7.63426542<br>7               Size              163       2253         7.23479805<br>8            Founded              660       2253        29.29427430<br>9  Type.of.ownership              163       2253         7.23479805<br>10          Industry              353       2253        15.66799822<br>11            Sector              353       2253        15.66799822<br>12           Revenue              163       2253         7.23479805<br>13       Competitors             1732       2253        76.87527741<br>14        Easy.Apply             2173       2253        96.44917887</pre><p>I have decided not to perform any further analysis on the ‘Competitors’ and ‘Easy.Apply’ columns due to the significant amount of missing data. The large proportion of missing values in these columns could lead to biased or misleading insights, making them unreliable for meaningful analysis. Therefore, excluding them from the analysis ensures that the results are more accurate and representative of the available data.</p><pre>head(data_analyst_jobs)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UmnoQyv-zNnBdztyUiwhhQ.png" /></figure><p>Initially, I opted to replace all ‘-1’ values with NA to enhance the dataset’s meaningfulness.</p><pre>data_analyst_jobs[data_analyst_jobs == -1] &lt;- NA<br>head(data_analyst_jobs)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fAx3fEzx099W1AJAzEVlSQ.png" /></figure><pre>data_analyst_jobs &lt;- data_analyst_jobs[ , -which(names(data_analyst_jobs) == &#39;Competitors&#39;)]<br>head(data_analyst_jobs)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5uXKBamWX8Rr4FR6STpV5Q.png" /></figure><pre>data_analyst_jobs &lt;- data_analyst_jobs[ , -which(names(data_analyst_jobs) == &#39;Easy.Apply&#39;)]<br>head(data_analyst_jobs)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4SGAZkxkso5o4h_FB61ZAw.png" /><figcaption>linkcode</figcaption></figure><h3>3.PROCESS</h3><p>After completing the data prepare phase, I now proceed to the process phase of the Data Analyst Jobs analysis project. In this phase, I undertake rigorous data cleaning, transformation, and exploratory analysis to uncover critical trends and patterns. This systematic approach ensures that our insights are robust and will effectively support strategic decision-making.</p><p>To extract meaningful insights from the <strong>Salary.Estimate</strong> column, I decided to modify its structure. In its current <strong>string</strong> format, it is not practical for direct analysis, especially since I aim to examine the minimum and maximum salary ranges. Therefore, I plan to split the column into two separate columns — ‘<strong>Minimum Salary</strong>’ and ‘<strong>Maximum Salary</strong>’ — and convert the salary amounts into integers.</p><pre>library(dplyr)<br>library(stringr)<br>library(tidyr)<br>data_analyst_jobs &lt;- data_analyst_jobs %&gt;%<br>  mutate(Salary.Estimate = str_replace_all(Salary.Estimate, &quot;\\$|K|\\(Glassdoor est\\.\\)&quot;, &quot;&quot;)) %&gt;% <br>  separate(Salary.Estimate, into = c(&quot;Minimum_Salary&quot;, &quot;Maximum_Salary&quot;), sep = &quot;-&quot;, remove = TRUE) %&gt;%<br>  mutate(<br>    Minimum_Salary = as.numeric(Minimum_Salary) * 1000,<br>    Maximum_Salary = as.numeric(Maximum_Salary) * 1000<br>  )<br>head(data_analyst_jobs)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HcuCk3ofRdVyStnMyVvSyQ.png" /></figure><p>I decided to rename the ‘Minimum_Salary’ and ‘Maximum_Salary’ columns to ‘<strong>Minimum_Salary ($)</strong>’ and ‘<strong>Maximum_Salary ($)</strong>’, respectively, to make them more descriptive. Next, I will convert these columns into <strong>integer</strong>format for better analysis.</p><pre>colnames(data_analyst_jobs)[colnames(data_analyst_jobs) == &quot;Minimum_Salary&quot;] &lt;- &quot;Minimum_Salary ($)&quot;<br>colnames(data_analyst_jobs)[colnames(data_analyst_jobs) == &quot;Maximum_Salary&quot;] &lt;- &quot;Maximum_Salary ($)&quot;<br>head(data_analyst_jobs)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9MOsgHOdjNd7vDY3J_U7TQ.png" /></figure><pre>data_analyst_jobs$Minimum_Salary &lt;- as.integer(data_analyst_jobs$Minimum_Salary)<br>data_analyst_jobs$Maximum_Salary &lt;- as.integer(data_analyst_jobs$Maximum_Salary)<br>head(data_analyst_jobs[, c(&quot;Minimum_Salary&quot;, &quot;Maximum_Salary&quot;)])</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*_5qhn2wp_5zLGHV5-Lq5Pw.png" /></figure><p>Although we have both the <strong>Company.Name</strong> and <strong>Rating</strong> columns, I observed that the rating values are appended to the company names in the Company.Name column. To ensure data consistency and clarity, I decided to clean and refine the Company.Name column by <strong>removing</strong> the rating values from the company names.</p><pre>data_analyst_jobs$Company.Name &lt;- gsub(&quot;\\d+\\.\\d+&quot;, &quot;&quot;, data_analyst_jobs$Company.Name)<br>head(data_analyst_jobs)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dLl7G5Jp9SPq3yv7SvwKYQ.png" /></figure><p>I want to observe the <strong>unique</strong> values in certain columns. Understanding the range of values will help me identify which columns are suitable for visualization in my analysis.</p><pre>unique_sizes &lt;- unique(data_analyst_jobs$Size)<br>print(unique_sizes)</pre><pre>[1] &quot;201 to 500 employees&quot;    &quot;10000+ employees&quot;       <br>[3] &quot;1001 to 5000 employees&quot;  &quot;501 to 1000 employees&quot;  <br>[5] &quot;5001 to 10000 employees&quot; &quot;1 to 50 employees&quot;      <br>[7] &quot;51 to 200 employees&quot;     &quot;Unknown&quot;                <br>[9] NA</pre><pre>unique_industry &lt;- unique(data_analyst_jobs$Industry)<br>print(unique_industry)</pre><pre>[1] &quot;Social Assistance&quot;                        <br> [2] &quot;Health Care Services &amp; Hospitals&quot;         <br> [3] &quot;Internet&quot;                                 <br> [4] &quot;IT Services&quot;                              <br> [5] &quot;Sports &amp; Recreation&quot;                      <br> [6] &quot;Investment Banking &amp; Asset Management&quot;    <br> [7] &quot;Insurance Carriers&quot;                       <br> [8] &quot;Venture Capital &amp; Private Equity&quot;         <br> [9] &quot;Research &amp; Development&quot;                   <br>[10] NA                                         <br>[11] &quot;Advertising &amp; Marketing&quot;                  <br>[12] &quot;Brokerage Services&quot;                       <br>[13] &quot;Building &amp; Personnel Services&quot;            <br>[14] &quot;Consulting&quot;                               <br>[15] &quot;Casual Restaurants&quot;                       <br>[16] &quot;Enterprise Software &amp; Network Solutions&quot;  <br>[17] &quot;Lending&quot;                                  <br>[18] &quot;Banks &amp; Credit Unions&quot;                    <br>[19] &quot;Computer Hardware &amp; Software&quot;             <br>[20] &quot;Staffing &amp; Outsourcing&quot;                   <br>[21] &quot;Motion Picture Production &amp; Distribution&quot; <br>[22] &quot;Legal&quot;                                    <br>[23] &quot;Real Estate&quot;                              <br>[24] &quot;Federal Agencies&quot;                         <br>[25] &quot;TV Broadcast &amp; Cable Networks&quot;            <br>[26] &quot;Accounting&quot;                               <br>[27] &quot;Food &amp; Beverage Stores&quot;                   <br>[28] &quot;Health, Beauty, &amp; Fitness&quot;                <br>[29] &quot;Biotech &amp; Pharmaceuticals&quot;                <br>[30] &quot;Insurance Agencies &amp; Brokerages&quot;          <br>[31] &quot;Gambling&quot;                                 <br>[32] &quot;Video Games&quot;                              <br>[33] &quot;Colleges &amp; Universities&quot;                  <br>[34] &quot;Architectural &amp; Engineering Services&quot;     <br>[35] &quot;General Repair &amp; Maintenance&quot;             <br>[36] &quot;Security Services&quot;                        <br>[37] &quot;News Outlet&quot;                              <br>[38] &quot;Commercial Equipment Repair &amp; Maintenance&quot;<br>[39] &quot;Publishing&quot;                               <br>[40] &quot;Energy&quot;                                   <br>[41] &quot;Other Retail Stores&quot;                      <br>[42] &quot;Health Fundraising Organizations&quot;         <br>[43] &quot;Utilities&quot;                                <br>[44] &quot;Consumer Products Manufacturing&quot;          <br>[45] &quot;Municipal Governments&quot;                    <br>[46] &quot;Electrical &amp; Electronic Manufacturing&quot;    <br>[47] &quot;Industrial Manufacturing&quot;                 <br>[48] &quot;Preschool &amp; Child Care&quot;                   <br>[49] &quot;Aerospace &amp; Defense&quot;                      <br>[50] &quot;Food &amp; Beverage Manufacturing&quot;            <br>[51] &quot;Vehicle Dealers&quot;                          <br>[52] &quot;Telecommunications Services&quot;              <br>[53] &quot;Construction&quot;                             <br>[54] &quot;Financial Transaction Processing&quot;         <br>[55] &quot;Beauty &amp; Personal Accessories Stores&quot;     <br>[56] &quot;Automotive Parts &amp; Accessories Stores&quot;    <br>[57] &quot;Chemical Manufacturing&quot;                   <br>[58] &quot;Department, Clothing, &amp; Shoe Stores&quot;      <br>[59] &quot;K-12 Education&quot;                           <br>[60] &quot;Transportation Management&quot;                <br>[61] &quot;Miscellaneous Manufacturing&quot;              <br>[62] &quot;Logistics &amp; Supply Chain&quot;                 <br>[63] &quot;Catering &amp; Food Service Contractors&quot;      <br>[64] &quot;Health Care Products Manufacturing&quot;       <br>[65] &quot;Drug &amp; Health Stores&quot;                     <br>[66] &quot;Wholesale&quot;                                <br>[67] &quot;Membership Organizations&quot;                 <br>[68] &quot;Oil &amp; Gas Services&quot;                       <br>[69] &quot;Sporting Goods Stores&quot;                    <br>[70] &quot;Gas Stations&quot;                             <br>[71] &quot;Truck Rental &amp; Leasing&quot;                   <br>[72] &quot;Express Delivery Services&quot;                <br>[73] &quot;Cable, Internet &amp; Telephone Providers&quot;    <br>[74] &quot;Metals Brokers&quot;                           <br>[75] &quot;Grocery Stores &amp; Supermarkets&quot;            <br>[76] &quot;Pet &amp; Pet Supplies Stores&quot;                <br>[77] &quot;Education Training Services&quot;              <br>[78] &quot;Financial Analytics &amp; Research&quot;           <br>[79] &quot;Audiovisual&quot;                              <br>[80] &quot;Transportation Equipment Manufacturing&quot;   <br>[81] &quot;Convenience Stores &amp; Truck Stops&quot;         <br>[82] &quot;Consumer Product Rental&quot;                  <br>[83] &quot;Consumer Electronics &amp; Appliances Stores&quot; <br>[84] &quot;State &amp; Regional Agencies&quot;                <br>[85] &quot;Trucking&quot;                                 <br>[86] &quot;Stock Exchanges&quot;                          <br>[87] &quot;Home Centers &amp; Hardware Stores&quot;           <br>[88] &quot;General Merchandise &amp; Superstores&quot;        <br>[89] &quot;Hotels, Motels, &amp; Resorts&quot;</pre><pre>unique_revenue &lt;- unique(data_analyst_jobs$Revenue)<br>print(unique_revenue)</pre><pre>[1] &quot;$100 to $500 million (USD)&quot;       &quot;$2 to $5 billion (USD)&quot;          <br> [3] &quot;Unknown / Non-Applicable&quot;         &quot;$50 to $100 million (USD)&quot;       <br> [5] &quot;$1 to $2 billion (USD)&quot;           &quot;$5 to $10 billion (USD)&quot;         <br> [7] &quot;$1 to $5 million (USD)&quot;           &quot;$25 to $50 million (USD)&quot;        <br> [9] &quot;$10+ billion (USD)&quot;               &quot;Less than $1 million (USD)&quot;      <br>[11] &quot;$10 to $25 million (USD)&quot;         NA                                <br>[13] &quot;$500 million to $1 billion (USD)&quot; &quot;$5 to $10 million (USD)&quot;</pre><pre>unique_ownership &lt;- unique(data_analyst_jobs$Type.of.ownership)<br>print(unique_ownership)</pre><pre>[1] &quot;Nonprofit Organization&quot;         &quot;Company - Private&quot;             <br> [3] &quot;Subsidiary or Business Segment&quot; &quot;Company - Public&quot;              <br> [5] &quot;Hospital&quot;                       &quot;Unknown&quot;                       <br> [7] &quot;Contract&quot;                       NA                              <br> [9] &quot;Government&quot;                     &quot;School / School District&quot;      <br>[11] &quot;Other Organization&quot;             &quot;College / University&quot;          <br>[13] &quot;Self-employed&quot;                  &quot;Private Practice / Firm&quot;       <br>[15] &quot;Franchise&quot;</pre><pre>unique_founded &lt;- unique(data_analyst_jobs$Founded)<br>print(unique_founded)</pre><pre>[1] 1961 1893 2003 2002 2009 2014 2001 1914 1896 2013 1841   NA 1884 2004 2016<br> [16] 1996 1958 2006 1998 1969 2011 2017 2005 1904 2018 1956 2007 1990 1923 2015<br> [31] 1951 1981 2000 1966 1939 1999 1812 1945 1985 1984 1962 1995 2012 1967 1799<br> [46] 1918 1948 1994 1895 1845 1968 2008 1911 1997 1832 1934 1938 1963 1992 1977<br> [61] 1886 1862 1906 1993 1935 1971 1989 1859 1946 1818 1932 1784 1856 1978 1912<br> [76] 1957 1937 1982 1964 1850 1983 1869 1947 1868 1936 1853 2010 1902 1944 1888<br> [91] 1880 1973 1931 1987 2019 1919 1979 1954 1980 1976 1872 1926 1991 1855 1959<br>[106] 1986 1890 1882 1883 1837 1817 1908 1988 1965 1828 1889 1898 1928 1913 1901<br>[121] 1916 1857 1955 1949 1970 1822 1972 1864 1975 1960 1885 1922 1740 1830 1887<br>[136] 1974 1905 1953 1952 1897 1865 1921 1867 1933 1874 1891 1807 1870 1892 1852<br>[151] 1698 1924 1907 1682 1875 1917 1876 1785 1909 1789 1930</pre><p>I decided to use the <strong>summary()</strong> function to obtain a general overview of the dataset, including key statistics such as minimum, maximum, mean, and median values for numerical columns, as well as the distribution of categorical variables. This will help me identify any anomalies or patterns before proceeding with further analysis.</p><pre>summary(data_analyst_jobs)</pre><pre>Job.Title         Minimum_Salary ($) Maximum_Salary ($)     Rating     <br> Length:2253        Min.   : 24000     Min.   : 38000     Min.   :1.000  <br> Class :character   1st Qu.: 41000     1st Qu.: 70000     1st Qu.:3.300  <br> Mode  :character   Median : 50000     Median : 87000     Median :3.700  <br>                    Mean   : 54267     Mean   : 89979     Mean   :3.732  <br>                    3rd Qu.: 64000     3rd Qu.:104000     3rd Qu.:4.100  <br>                    Max.   :113000     Max.   :190000     Max.   :5.000  <br>                    NA&#39;s   :1          NA&#39;s   :1          NA&#39;s   :272    <br> Company.Name         Location         Headquarters           Size          <br> Length:2253        Length:2253        Length:2253        Length:2253       <br> Class :character   Class :character   Class :character   Class :character  <br> Mode  :character   Mode  :character   Mode  :character   Mode  :character  <br>                                                                            <br>                                                                            <br>                                                                            <br>                                                                            <br>    Founded     Type.of.ownership    Industry            Sector         <br> Min.   :1682   Length:2253        Length:2253        Length:2253       <br> 1st Qu.:1970   Class :character   Class :character   Class :character  <br> Median :1997   Mode  :character   Mode  :character   Mode  :character  <br> Mean   :1978                                                           <br> 3rd Qu.:2006                                                           <br> Max.   :2019                                                           <br> NA&#39;s   :660                                                            <br>   Revenue          Minimum_Salary   Maximum_Salary  <br> Length:2253        Min.   : 24000   Min.   : 38000  <br> Class :character   1st Qu.: 41000   1st Qu.: 70000  <br> Mode  :character   Median : 50000   Median : 87000  <br>                    Mean   : 54267   Mean   : 89979  <br>                    3rd Qu.: 64000   3rd Qu.:104000  <br>                    Max.   :113000   Max.   :190000  <br>                    NA&#39;s   :1        NA&#39;s   :1</pre><p>The data preparation process is now complete, and I am ready to move on to the analysis phase. Let’s dive into the insights!</p><h3>4.ANALYSIS</h3><p>Now that the data has been cleaned and prepared, I can proceed with the analysis phase. In this step, I will explore key trends, patterns, and relationships within the dataset to extract meaningful insights. By leveraging visualizations and statistical summaries, I aim to uncover valuable information about data analyst job salaries, company ratings, and other relevant factors.</p><pre>library(ggplot2)<br>library(dplyr)<br><br>salary_bins &lt;- cut(data_analyst_jobs$Minimum_Salary, <br>                   breaks = seq(min(data_analyst_jobs$Minimum_Salary, na.rm = TRUE), <br>                                max(data_analyst_jobs$Minimum_Salary, na.rm = TRUE), <br>                                by = 5000), <br>                   include.lowest = TRUE, <br>                   labels = seq(min(data_analyst_jobs$Minimum_Salary, na.rm = TRUE) + 5000, <br>                                max(data_analyst_jobs$Minimum_Salary, na.rm = TRUE), <br>                                by = 5000))<br><br>salary_counts &lt;- data.frame(table(salary_bins)) %&gt;%<br>  rename(Salary_Range = salary_bins, Job_Count = Freq)<br>max_salary_range &lt;- salary_counts %&gt;%<br>  filter(Job_Count == max(Job_Count)) %&gt;%<br>  pull(Salary_Range)<br><br>ggplot(salary_counts, aes(x = Salary_Range, y = Job_Count, fill = Salary_Range == max_salary_range)) +<br>  geom_bar(stat = &quot;identity&quot;, color = &quot;black&quot;) +<br>  scale_fill_manual(values = c(&quot;TRUE&quot; = &quot;red&quot;, &quot;FALSE&quot; = &quot;mistyrose&quot;)) +    <br>  labs(title = &quot;Distribution of Minimum Salaries&quot;,<br>       x = &quot;Minimum Salary Ranges ($)&quot;,<br>       y = &quot;Number of Job Listings&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1), legend.position = &quot;none&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*c9TLUmWfDAtOwA_S.png" /></figure><pre>salary_bins_max &lt;- cut(data_analyst_jobs$Maximum_Salary, <br>                       breaks = seq(min(data_analyst_jobs$Maximum_Salary, na.rm = TRUE), <br>                                    max(data_analyst_jobs$Maximum_Salary, na.rm = TRUE), <br>                                    by = 10000), <br>                       include.lowest = TRUE, <br>                       labels = seq(min(data_analyst_jobs$Maximum_Salary, na.rm = TRUE) + 5000, <br>                                    max(data_analyst_jobs$Maximum_Salary, na.rm = TRUE), <br>                                    by = 10000))<br><br>salary_counts_max &lt;- data.frame(table(salary_bins_max)) %&gt;%<br>  rename(Salary_Range = salary_bins_max, Job_Count = Freq)<br><br>max_salary_range_max &lt;- salary_counts_max %&gt;%<br>  filter(Job_Count == max(Job_Count)) %&gt;%<br>  pull(Salary_Range)<br><br>ggplot(salary_counts_max, aes(x = Salary_Range, y = Job_Count, fill = Salary_Range == max_salary_range_max)) +<br>  geom_bar(stat = &quot;identity&quot;, color = &quot;black&quot;) +<br>  scale_fill_manual(values = c(&quot;TRUE&quot; = &quot;red&quot;, &quot;FALSE&quot; = &quot;mistyrose&quot;)) +  <br>  labs(title = &quot;Distribution of Maximum Salaries&quot;,<br>       x = &quot;Maximum Salary Ranges ($)&quot;,<br>       y = &quot;Number of Job Listings&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1), legend.position = &quot;none&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*8G3JnLOS5JdPj_W8.png" /></figure><pre>library(ggplot2)<br>library(dplyr)<br><br>data_analyst_jobs_filtered &lt;- data_analyst_jobs %&gt;%<br>  filter(!is.na(Rating))<br>data_analyst_jobs_filtered &lt;- data_analyst_jobs_filtered %&gt;%<br>  mutate(Rating_Range = case_when(<br>    Rating &gt;= 1 &amp; Rating &lt; 2 ~ &quot;1-2&quot;,<br>    Rating &gt;= 2 &amp; Rating &lt; 3 ~ &quot;2-3&quot;,<br>    Rating &gt;= 3 &amp; Rating &lt; 4 ~ &quot;3-4&quot;,<br>    Rating &gt;= 4 &amp; Rating &lt;= 5 ~ &quot;4-5&quot;<br>  ))<br><br>ggplot(data_analyst_jobs_filtered, aes(x = Rating_Range)) +<br>  geom_bar(aes(fill = Rating_Range), show.legend = FALSE) +<br>  scale_fill_manual(values = c(&quot;1-2&quot; = &quot;mistyrose&quot;, &quot;2-3&quot; = &quot;mistyrose&quot;, &quot;3-4&quot; = &quot;red&quot;, &quot;4-5&quot; = &quot;mistyrose&quot;)) +<br>  labs(title = &quot;Distribution of Job Ratings in Range&quot;, x = &quot;Rating Range&quot;, y = &quot;Count&quot;) +<br>  theme_minimal()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*0FSNFYYw8Tu1z1Qo.png" /></figure><pre>data_analyst_jobs_filtered &lt;- data_analyst_jobs %&gt;%<br>  filter(!is.na(Rating) &amp; !is.na(Maximum_Salary))<br><br>correlation &lt;- cor(data_analyst_jobs_filtered$Rating, data_analyst_jobs_filtered$Maximum_Salary)<br>print(paste(&quot;Pearson Correlation: &quot;, correlation))<br><br>ggplot(data_analyst_jobs_filtered, aes(x = Rating, y = Maximum_Salary)) +<br>  geom_point(color = &quot;blue&quot;) +<br>  geom_smooth(method = &quot;lm&quot;, se = FALSE, color = &quot;red&quot;) +<br>  labs(title = &quot;Rating vs. Maximum Salary&quot;, x = &quot;Rating&quot;, y = &quot;Maximum Salary&quot;) +<br>  theme_minimal()<br></pre><pre>[1] &quot;Pearson Correlation:  0.0513872185689384&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*ts1MDtigJ_TqX1YV.png" /></figure><pre>library(ggplot2)<br>library(scales)<br><br>data_analyst_jobs_filtered &lt;- data_analyst_jobs %&gt;%<br>  filter(!is.na(Rating) &amp; !is.na(Minimum_Salary))<br><br>correlation &lt;- cor(data_analyst_jobs_filtered$Rating, data_analyst_jobs_filtered$Minimum_Salary)<br>print(paste(&quot;Pearson Correlation: &quot;, correlation))<br>ggplot(data = data_analyst_jobs, aes(x = Rating, y = Minimum_Salary)) + <br>  geom_point(color = &quot;blue&quot;, alpha = 0.5) + <br>  geom_smooth(method = &quot;lm&quot;, color = &quot;red&quot;, se = FALSE) +  <br>  labs(title = &quot;Rating vs Minimum Salary&quot;, <br>       x = &quot;Rating&quot;, <br>       y = &quot;Minimum Salary ($)&quot;) +<br>  scale_y_continuous(labels = scales::comma) + <br>  theme_minimal()</pre><pre>[1] &quot;Pearson Correlation:  0.0256641127384836&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*XmeudnZefONqyJfk.png" /></figure><pre>job_title_counts &lt;- data_analyst_jobs %&gt;%<br>  count(Job.Title) %&gt;%<br>  arrange(desc(n)) %&gt;%<br>  head(10) <br><br>job_title_counts$color &lt;- ifelse(job_title_counts$n == max(job_title_counts$n), &quot;red&quot;, &quot;mistyrose&quot;)<br>ggplot(job_title_counts, aes(x = reorder(Job.Title, -n), y = n, fill = color)) +<br>  geom_bar(stat = &quot;identity&quot;) +<br>  labs(title = &quot;Top 10 Job Titles with Most Job Openings&quot;, x = &quot;Job Title&quot;, y = &quot;Number of Job Openings&quot;) +<br>  scale_fill_identity() + <br>  theme(axis.text.x = element_text(angle = 45, hjust = 1), <br>        panel.background = element_blank(), <br>        plot.background = element_blank())</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*axNKhhabNoof4wpv.png" /></figure><pre>top_10_locations &lt;- data_analyst_jobs %&gt;%<br>  group_by(Location) %&gt;%<br>  summarise(Maximum_Minimum_Salary = max(Minimum_Salary, na.rm = TRUE)) %&gt;%<br>  arrange(desc(Maximum_Minimum_Salary)) %&gt;%<br>  head(10)<br><br>ggplot(top_10_locations, aes(x = reorder(Location, -Maximum_Minimum_Salary), y = Maximum_Minimum_Salary, fill = Maximum_Minimum_Salary)) +<br>  geom_bar(stat = &quot;identity&quot;, fill = &quot;red&quot;) +  <br>  labs(title = &quot;Top 10 Locations with the Highest Minimum Salary Offers&quot;, <br>       x = &quot;Location&quot;, <br>       y = &quot;Minimum Salary ($)&quot;) +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1),  <br>        panel.background = element_blank(),  <br>        plot.background = element_blank())<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*5XMq0vEJEFShnfxe.png" /></figure><pre>top_10_locations &lt;- data_analyst_jobs %&gt;%<br>  group_by(Location) %&gt;%<br>  summarise(Maximum_Maximum_Salary = max(Maximum_Salary, na.rm = TRUE)) %&gt;%<br>  arrange(desc(Maximum_Maximum_Salary)) %&gt;%<br>  head(10)<br><br>ggplot(top_10_locations, aes(x = reorder(Location, -Maximum_Maximum_Salary), y = Maximum_Maximum_Salary, fill = Maximum_Maximum_Salary)) +<br>  geom_bar(stat = &quot;identity&quot;, fill = &quot;red&quot;) +  <br>  labs(title = &quot;Top 10 Locations with the Highest Maximum Salary Offers&quot;, <br>       x = &quot;Location&quot;, <br>       y = &quot;Maximum Salary ($)&quot;) +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1),  <br>        panel.background = element_blank(),  <br>        plot.background = element_blank())<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*OlhPfU3QLvQsAtfU.png" /></figure><pre>lowest_salary_locations &lt;- data_analyst_jobs %&gt;%<br>  group_by(Location) %&gt;%<br>  summarise(Min_Salary = min(as.numeric(gsub(&quot;K&quot;, &quot;&quot;, gsub(&quot;\\$&quot;, &quot;&quot;, Minimum_Salary))))) %&gt;%<br>  arrange(Min_Salary) %&gt;%<br>  slice_head(n = 10)<br><br>ggplot(lowest_salary_locations, aes(x = reorder(Location, Min_Salary), y = Min_Salary)) +<br>  geom_bar(stat = &quot;identity&quot;, fill = &quot;red&quot;) +<br>  labs(title = &quot;Top 10 Locations with the Lowest Minimum Salary Offers&quot;,<br>       x = &quot;Location&quot;, y = &quot;Minimum Salary ($)&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1))<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*kgV_L0GH09brkVMN.png" /></figure><pre>lowest_salary_locations &lt;- data_analyst_jobs %&gt;%<br>  group_by(Location) %&gt;%<br>  summarise(Max_Salary = min(as.numeric(gsub(&quot;K&quot;, &quot;&quot;, gsub(&quot;\\$&quot;, &quot;&quot;, Maximum_Salary))))) %&gt;%<br>  arrange(Max_Salary) %&gt;%<br>  slice_head(n = 10)<br><br>ggplot(lowest_salary_locations, aes(x = reorder(Location, Max_Salary), y = Max_Salary)) +<br>  geom_bar(stat = &quot;identity&quot;, fill = &quot;red&quot;) +<br>  labs(title = &quot;Top 10 Locations with the Lowest Maximum Salary Offers&quot;,<br>       x = &quot;Location&quot;, y = &quot;Maximum Salary ($)&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1))<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*UYFwIeroW_YLbII0.png" /></figure><pre>data_analyst_jobs_filtered &lt;- data_analyst_jobs %&gt;%<br>  filter(!is.na(Size)) <br><br>size_location_group &lt;- data_analyst_jobs_filtered %&gt;%<br>  group_by(Size) %&gt;%<br>  summarise(Job_Count = n()) %&gt;%<br>  arrange(desc(Job_Count))<br><br>max_job_count &lt;- max(size_location_group$Job_Count)<br><br>ggplot(size_location_group, aes(x = Size, y = Job_Count, fill = Job_Count == max_job_count)) +<br>  geom_bar(stat = &quot;identity&quot;, color = &quot;black&quot;) +<br>  scale_fill_manual(values = c(&quot;TRUE&quot; = &quot;red&quot;, &quot;FALSE&quot; = &quot;mistyrose&quot;)) +  <br>  labs(title = &quot;Job Count by Company Size&quot;,<br>       x = &quot;Company Size&quot;,<br>       y = &quot;Number of Job Listings&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1), legend.position = &quot;none&quot;)<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*SUnfgfKalpEC8da6.png" /></figure><pre>data_analyst_jobs_filtered &lt;- data_analyst_jobs %&gt;%<br>  filter(!is.na(Revenue) &amp; Revenue != &quot;Unknown / Non-Applicable&quot;)<br><br>revenue_counts &lt;- data.frame(table(data_analyst_jobs_filtered$Revenue)) %&gt;%<br>  rename(Revenue_Range = Var1, Job_Count = Freq)<br><br>max_job_count_revenue &lt;- revenue_counts %&gt;%<br>  filter(Job_Count == max(Job_Count)) %&gt;%<br>  pull(Revenue_Range)<br><br>ggplot(revenue_counts, aes(x = Revenue_Range, y = Job_Count, fill = Revenue_Range == max_job_count_revenue)) +<br>  geom_bar(stat = &quot;identity&quot;, color = &quot;black&quot;) +<br>  scale_fill_manual(values = c(&quot;TRUE&quot; = &quot;red&quot;, &quot;FALSE&quot; = &quot;mistyrose&quot;)) +  <br>  labs(title = &quot;Job Count by Revenue Range&quot;,<br>       x = &quot;Revenue Range&quot;,<br>       y = &quot;Number of Job Listings&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1), legend.position = &quot;none&quot;)<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*z_xeWroZblLHgIM-.png" /></figure><pre>data_analyst_jobs_filtered_ownership &lt;- data_analyst_jobs %&gt;%<br>  filter(!is.na(Type.of.ownership) &amp; Type.of.ownership != &quot;Unknown&quot;)<br><br>ownership_counts &lt;- data.frame(table(data_analyst_jobs_filtered_ownership$Type.of.ownership)) %&gt;%<br>  rename(Ownership_Type = Var1, Job_Count = Freq)<br><br>max_job_count_ownership &lt;- ownership_counts %&gt;%<br>  filter(Job_Count == max(Job_Count)) %&gt;%<br>  pull(Ownership_Type)<br>ggplot(ownership_counts, aes(x = Ownership_Type, y = Job_Count, fill = Ownership_Type == max_job_count_ownership)) +<br>  geom_bar(stat = &quot;identity&quot;, color = &quot;black&quot;) +<br>  scale_fill_manual(values = c(&quot;TRUE&quot; = &quot;red&quot;, &quot;FALSE&quot; = &quot;mistyrose&quot;)) + <br>  labs(title = &quot;Job Count by Ownership Type&quot;,<br>       x = &quot;Type of Ownership&quot;,<br>       y = &quot;Number of Job Listings&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1), legend.position = &quot;none&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*bW1TaIuos8XYBHqm.png" /></figure><pre>data_analyst_jobs_filtered_industry &lt;- data_analyst_jobs %&gt;%<br>  filter(!is.na(Industry))<br><br>industry_counts &lt;- data.frame(table(data_analyst_jobs_filtered_industry$Industry)) %&gt;%<br>  rename(Industry = Var1, Job_Count = Freq) %&gt;%<br>  arrange(desc(Job_Count)) %&gt;%<br>  head(20)  <br><br>max_job_count_industry &lt;- industry_counts %&gt;%<br>  filter(Job_Count == max(Job_Count)) %&gt;%<br>  pull(Industry)<br><br>ggplot(industry_counts, aes(x = reorder(Industry, Job_Count), y = Job_Count, fill = Industry == max_job_count_industry)) +<br>  geom_bar(stat = &quot;identity&quot;, color = &quot;black&quot;) +<br>  scale_fill_manual(values = c(&quot;TRUE&quot; = &quot;red&quot;, &quot;FALSE&quot; = &quot;mistyrose&quot;)) +  <br>  labs(title = &quot;Top 20 Industries with Most Job Listings&quot;,<br>       x = &quot;Industry&quot;,<br>       y = &quot;Number of Job Listings&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1), legend.position = &quot;none&quot;) + <br>  coord_flip()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*CbxSfb6x-kKabnPn.png" /></figure><pre>data_analyst_jobs_filtered_company &lt;- data_analyst_jobs %&gt;%<br>  filter(!is.na(Company.Name))<br><br><br>company_counts &lt;- data.frame(table(data_analyst_jobs_filtered_company$Company.Name)) %&gt;%<br>  rename(Company = Var1, Job_Count = Freq) %&gt;%<br>  arrange(desc(Job_Count)) %&gt;%<br>  head(35)  <br><br><br>max_job_count_company &lt;- company_counts %&gt;%<br>  filter(Job_Count == max(Job_Count)) %&gt;%<br>  pull(Company)<br><br><br>ggplot(company_counts, aes(x = reorder(Company, Job_Count), y = Job_Count, fill = Company == max_job_count_company)) +<br>  geom_bar(stat = &quot;identity&quot;, color = &quot;black&quot;) +<br>  scale_fill_manual(values = c(&quot;TRUE&quot; = &quot;red&quot;, &quot;FALSE&quot; = &quot;mistyrose&quot;)) +  <br>  labs(title = &quot;Top 10 Companies with Most Job Listings&quot;,<br>       x = &quot;Company Name&quot;,<br>       y = &quot;Number of Job Listings&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1), legend.position = &quot;none&quot;) +  <br>  coord_flip()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*3K6do5y-aVCCaLYk.png" /></figure><pre>data_filtered &lt;- data_analyst_jobs %&gt;%<br>  filter(!is.na(Rating) &amp; !is.na(Founded))<br><br><br>correlation &lt;- cor(data_filtered$Founded, data_filtered$Rating, method = &quot;pearson&quot;)<br><br><br>print(paste(&quot;Correlation between Founded Year and Rating:&quot;, round(correlation, 3)))<br><br><br>ggplot(data_filtered, aes(x = Founded, y = Rating)) +<br>  geom_point(color = &quot;blue&quot;, alpha = 0.6) +  <br>  geom_smooth(method = &quot;lm&quot;, color = &quot;red&quot;, se = FALSE) + <br>  labs(title = &quot;Correlation Between Founded Year and Rating&quot;,<br>       subtitle = paste(&quot;Pearson Correlation:&quot;, round(correlation, 3)),<br>       x = &quot;Founded Year&quot;,<br>       y = &quot;Rating&quot;) +<br>  theme_minimal()</pre><pre>[1] &quot;Correlation between Founded Year and Rating: 0.176&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*GBceVCrk15N22r9s.png" /></figure><pre>data_filtered &lt;- data_analyst_jobs %&gt;%<br>  filter(!is.na(Rating) &amp; !is.na(Founded))<br><br><br>min_year &lt;- min(data_filtered$Founded, na.rm = TRUE)  <br>max_year &lt;- max(data_filtered$Founded, na.rm = TRUE)  <br><br><br>breaks &lt;- seq(floor(min_year / 20) * 20, ceiling(max_year / 20) * 20, by = 20)<br>labels &lt;- paste(breaks[-length(breaks)], &quot;-&quot;, breaks[-1], sep = &quot;&quot;)<br><br><br>data_filtered$Founded_Group &lt;- cut(data_filtered$Founded, <br>                                   breaks = breaks, <br>                                   labels = labels, <br>                                   include.lowest = TRUE,<br>                                   right = FALSE)<br><br><br>grouped_data &lt;- data_filtered %&gt;%<br>  group_by(Founded_Group) %&gt;%<br>  summarise(Average_Rating = mean(Rating, na.rm = TRUE)) %&gt;%<br>  arrange(Founded_Group)<br><br><br>max_rating_group &lt;- grouped_data %&gt;%<br>  filter(Average_Rating == max(Average_Rating)) %&gt;%<br>  pull(Founded_Group)<br><br><br>ggplot(grouped_data, aes(x = Founded_Group, y = Average_Rating, fill = Founded_Group == max_rating_group)) +<br>  geom_bar(stat = &quot;identity&quot;, color = &quot;black&quot;) +<br>  scale_fill_manual(values = c(&quot;TRUE&quot; = &quot;red&quot;, &quot;FALSE&quot; = &quot;mistyrose&quot;)) +  <br>  labs(title = &quot;Average Rating by Founded Year Groups&quot;,<br>       x = &quot;Founded Year Range&quot;,<br>       y = &quot;Average Rating&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1), legend.position = &quot;none&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*-GI67eKuUid5hBKd.png" /></figure><pre>industry_max_salary &lt;- data_analyst_jobs %&gt;%<br>  filter(!is.na(Minimum_Salary) &amp; !is.na(Industry)) %&gt;%<br>  group_by(Industry) %&gt;%<br>  summarise(Max_Minimum_Salary = max(Minimum_Salary)) %&gt;%<br>  arrange(desc(Max_Minimum_Salary))<br><br><br>top_10_industries &lt;- head(industry_max_salary, 10)<br><br><br>top_10_industries_data &lt;- data_analyst_jobs %&gt;%<br>  filter(Industry %in% top_10_industries$Industry) %&gt;%<br>  filter(Minimum_Salary %in% top_10_industries$Max_Minimum_Salary)<br><br><br>ggplot(top_10_industries, aes(x = reorder(Industry, Max_Minimum_Salary), y = Max_Minimum_Salary, fill = Industry)) +<br>  geom_bar(stat = &quot;identity&quot;, color = &quot;black&quot;) +<br>  scale_fill_manual(values = rep(&quot;red&quot;, 10)) +  <br>  labs(title = &quot;Top 10 Industries with Highest Minimum Salaries&quot;,<br>       x = &quot;Industry&quot;,<br>       y = &quot;Maximum Minimum Salary ($)&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1)) +<br>  guides(fill = &quot;none&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*atMEc_OYDyqiPED7.png" /></figure><pre>industry_max_salary &lt;- data_analyst_jobs %&gt;%<br>  filter(!is.na(Maximum_Salary) &amp; !is.na(Industry)) %&gt;%<br>  group_by(Industry) %&gt;%<br>  summarise(Max_Maximum_Salary = max(Maximum_Salary)) %&gt;%<br>  arrange(desc(Max_Maximum_Salary))<br><br><br>top_10_industries &lt;- head(industry_max_salary, 10)<br><br><br>top_10_industries_data &lt;- data_analyst_jobs %&gt;%<br>  filter(Industry %in% top_10_industries$Industry) %&gt;%<br>  filter(Maximum_Salary %in% top_10_industries$Max_Maximum_Salary)<br><br><br>ggplot(top_10_industries, aes(x = reorder(Industry, Max_Maximum_Salary), y = Max_Maximum_Salary, fill = Industry)) +<br>  geom_bar(stat = &quot;identity&quot;, color = &quot;black&quot;) +<br>  scale_fill_manual(values = rep(&quot;red&quot;, 10)) +  <br>  labs(title = &quot;Top 10 Industries with Highest Maximum Salaries&quot;,<br>       x = &quot;Industry&quot;,<br>       y = &quot;Maximum Maximum Salary ($)&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1)) +<br>  guides(fill = &quot;none&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*Yj64P-WOZdZrR613.png" /></figure><pre>data_filtered &lt;- data_analyst_jobs %&gt;%<br>  filter(Size != &quot;Unknown&quot; &amp; !is.na(Size))<br><br>grouped_salary &lt;- data_filtered %&gt;%<br>  group_by(Size) %&gt;%<br>  summarise(Avg_Min_Salary = mean(Minimum_Salary, na.rm = TRUE),<br>            Avg_Max_Salary = mean(Maximum_Salary, na.rm = TRUE)) %&gt;%<br>  filter(!is.na(Avg_Min_Salary) &amp; !is.na(Avg_Max_Salary))  <br><br><br>max_min_salary &lt;- max(grouped_salary$Avg_Min_Salary, na.rm = TRUE)<br>max_max_salary &lt;- max(grouped_salary$Avg_Max_Salary, na.rm = TRUE)<br><br><br>p1 &lt;- ggplot(grouped_salary, aes(x = Size, y = Avg_Min_Salary, fill = Avg_Min_Salary == max_min_salary)) +<br>  geom_bar(stat = &quot;identity&quot;, color = &quot;black&quot;) +<br>  scale_fill_manual(values = c(&quot;TRUE&quot; = &quot;red&quot;, &quot;FALSE&quot; = &quot;mistyrose&quot;)) +<br>  labs(title = &quot;Average Minimum Salary by Company Size&quot;,<br>       x = &quot;Company Size&quot;,<br>       y = &quot;Average Minimum Salary&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1, size = 10), <br>        legend.position = &quot;none&quot;,<br>        plot.title = element_text(hjust = 0.5, size = 12), <br>        axis.title.x = element_text(size = 13), <br>        axis.title.y = element_text(size = 13)) +<br>  theme(plot.margin = margin(10, 10, 10, 30)) <br><br><br>p2 &lt;- ggplot(grouped_salary, aes(x = Size, y = Avg_Max_Salary, fill = Avg_Max_Salary == max_max_salary)) +<br>  geom_bar(stat = &quot;identity&quot;, color = &quot;black&quot;) +<br>  scale_fill_manual(values = c(&quot;TRUE&quot; = &quot;red&quot;, &quot;FALSE&quot; = &quot;mistyrose&quot;)) +<br>  labs(title = &quot;Average Maximum Salary by Company Size&quot;,<br>       x = &quot;Company Size&quot;,<br>       y = &quot;Average Maximum Salary&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1, size = 10), <br>        legend.position = &quot;none&quot;,<br>        plot.title = element_text(hjust = 0.5, size = 12), <br>        axis.title.x = element_text(size = 13), <br>        axis.title.y = element_text(size = 13)) +<br>  theme(plot.margin = margin(10, 10, 10, 30)) <br><br><br>library(gridExtra)<br>grid.arrange(p1, p2, ncol = 2)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*a7LoSLTmcNtVR-f6.png" /></figure><pre>library(ggcorrplot)<br>library(ggplot2)<br>library(dplyr)<br><br><br>numeric_columns &lt;- data_analyst_jobs %&gt;%<br>  select_if(is.numeric) %&gt;%<br>  na.omit() <br><br><br>correlation_matrix &lt;- cor(numeric_columns)<br><br>ggcorrplot(correlation_matrix,<br>           method = &quot;square&quot;,  <br>           type = &quot;lower&quot;,      <br>           lab = TRUE,          <br>           title = &quot;Correlation Matrix of Data Analyst Job Dataset&quot;,<br>           colors = c(&quot;mistyrose&quot;, &quot;white&quot;, &quot;red&quot;))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*OM0q63A76YRFVL7L.png" /></figure><h3>5.ACT</h3><p>This analysis has been conducted to comprehensively evaluate job postings for data analysts and identify market trends. Based on the results of 22 different analyses, key findings and recommendations are presented below.</p><h3>Key Findings</h3><h4>Salary Distribution and Trends</h4><ul><li>The most frequent maximum salary range is between 70,000and80,000.</li><li>The most frequent minimum salary range is between 40,000and50,000.</li><li>When analyzing the distribution of job postings by salary range, it has been observed that the number of postings offering higher salaries decreases.</li></ul><h4>Company Ratings and Evaluations</h4><ul><li>The majority of employers have been rated between 3.0 and 4.0.</li><li>A weak positive correlation has been found between company rating and salary, meaning that companies with higher ratings tend to offer slightly higher average salaries, but this relationship is not strong.</li></ul><h4>Top Locations Offering the Highest Salaries</h4><p>The top three locations with the highest maximum salaries:</p><ul><li>Cupertino, CA</li><li>Fremont, CA</li><li>Los Gatos, CA</li></ul><p>The top three locations with the highest minimum salaries:</p><ul><li>Anaheim, CA</li><li>Arcadia, CA</li><li>Brea, CA</li></ul><h4>Job Post Distribution and Company Size</h4><ul><li>“Staffigo Technical Services, LLC” stands out as one of the top companies posting the most job openings.</li><li>The majority of job postings come from large companies with 1,000+ employees.</li><li>Small-scale companies have a very limited number of job postings.</li></ul><h4>Industry Trends</h4><p>The industries posting the highest number of job openings:</p><ul><li>IT Services</li><li>Staffing &amp; Outsourcing</li><li>Healthcare Services &amp; Hospitals</li></ul><p>The industries offering the highest salaries:</p><ul><li>Enterprise Software &amp; Network Solutions</li><li>IT Services</li><li>Consulting</li></ul><h3>Recommendations and Strategies</h3><p>For <strong>Job-Seeking Data Analysts</strong>: Candidates seeking higher salaries should particularly focus on the IT services, software, and consulting industries.</p><p>Applying to large-scale companies should be prioritized, as most job postings come from firms with 1,000+ employees.</p><p>Cities like Cupertino, Fremont, and Los Gatos offer better salary opportunities.</p><p>For <strong>Employers</strong>: Offering salaries above market averages can help attract talented data analysts.</p><p>Increasing employee satisfaction and company ratings will influence skilled candidates’ preferences.</p><p>Competitive salary policies should be established based on company size.</p><h3>6.SHARE</h3><p>This report provides critical insights for data analysts, recruiters, and company executives. To increase engagement and sharing, the following steps are recommended:</p><h4>Sharing Strategies</h4><p>Share the findings of this analysis on LinkedIn and professional networks to reach relevant professionals in the industry. • Provide this data to internal HR departments and recruitment managers to help create more attractive salary and job conditions for data analysts. • Collaborate with universities and career centers to offer guidance to newly graduated data analysts.</p><h4>Future Steps</h4><p>Continuously monitor annual changes in job posting trends and analyze the most in-demand skills.</p><p>Expand the analysis with more data to provide tailored insights for different skill levels and experience ranges.</p><p>Evaluate additional factors such as working conditions, hybrid/remote work rates, and benefits to create a more comprehensive employment report.</p><h4><strong>Conclusion</strong></h4><p>This analysis provides comprehensive insights to help data analysts make informed career decisions in the job market. By examining industry trends, salary expectations, top hiring industries and companies, the best locations, and company evaluations, this study aims to assist both employers and job seekers in developing better strategies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3462b77d2db2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Bellabeat Marketing Analysis Case Study ]]></title>
            <link>https://medium.com/@kbrkssa/bellabeat-marketing-analysis-case-study-62ccbf0faa39?source=rss-6c057671845b------2</link>
            <guid isPermaLink="false">https://medium.com/p/62ccbf0faa39</guid>
            <dc:creator><![CDATA[Kübra Kıssa]]></dc:creator>
            <pubDate>Sat, 08 Feb 2025 14:24:25 GMT</pubDate>
            <atom:updated>2025-02-08T14:24:25.757Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In this project, I aim to analyze Fitbit data to uncover insights that could help Bellabeat optimize their marketing strategy. Bellabeat, a high-tech company specializing in health-focused smart products for women, could leverage user data to better understand trends in fitness, wellness, and lifestyle. By analyzing fitness data, we can explore potential correlations between user activity, sleep, calories burned, and overall well-being.</p><p>This analysis will help inform recommendations to improve Bellabeat’s product offerings and marketing campaigns, providing targeted solutions that resonate with their user base.</p><p>The datasets used in this project are from the Fitbit fitness tracker and contain information about users’ daily activities, calories burned, sleep patterns, and more. By analyzing these datasets, we can uncover actionable insights to guide marketing strategies aimed at increasing product engagement and customer satisfaction.</p><h4><strong>Characters</strong></h4><p><strong>Urška Sršen:</strong> Bellabeat’s cofounder and Chief Creative Officer</p><p><strong>Sando Mur:</strong> Mathematician and Bellabeat’s cofounder; key member of the Bellabeat executive team</p><p><strong>Bellabeat marketing analytics team</strong>: A team of data analysts responsible for collecting, analyzing, and repoing data that helps guide Bellabeat’s marketing strategy. You joined this team six months ago and have been busy learning about Bellabeat’’s mission and business goals — as well as how you, as a junior data analyst, can help Bellabeat achieve them.</p><h4><strong>Products</strong></h4><p><strong>Bellabeat app:</strong> The Bellabeat app provides users with health data related to their activity, sleep, stress, menstrual cycle, and mindfulness habits. This data can help users better understand their current habits and make healthy decisions. The Bellabeat app connects to their line of smart wellness products.</p><p><strong>Leaf:</strong> Bellabeat’s classic wellness tracker can be worn as a bracelet, necklace, or clip. The Leaf tracker connects to the Bellabeat app to track activity, sleep, and stress.</p><p><strong>Time:</strong> This wellness watch combines the timeless look of a classic timepiece with smart technology to track user activity, sleep, and stress. The Time watch connects to the Bellabeat app to provide you with insights into your daily wellness.</p><p><strong>Spring:</strong> This is a water bottle that tracks daily water intake using smart technology to ensure that you are appropriately hydrated throughout the day. The Spring bottle connects to the Bellabeat app to track your hydration levels.</p><p><strong>Bellabeat membership:</strong> Bellabeat also offers a subscription-based membership program for users. Membership gives users 24/7 access to fully personalized guidance on nutrition, activity, sleep, health and beauty, and mindfulness based on their lifestyle and goals</p><h3>About the company</h3><p>Urška Sršen and Sando Mur founded Bellabeat, a high-tech company that manufactures health-focused smart products. Sršen used her background as an artist to develop beautifully designed technology that informs and inspires women around the world. Collecting data on activity, sleep, stress, and reproductive health has allowed Bellabeat to empower women with knowledge about their own health and habits. Since it was founded in 2013, Bellabeat has grown rapidly and quickly positioned itself as a tech-driven wellness company for women.</p><p>By 2016, Bellabeat had opened offices around the world and launched multiple products. Bellabeat products became available through a growing number of online retailers in addition to their own e-commerce channel on <a href="https://bellabeat.com/">their website</a>. The company has invested in traditional advertising media, such as radio, out-of-home billboards, print, and television, but focuses on digital marketing extensively. Bellabeat invests year-round in Google Search, maintaining active Facebook and Instagram pages, and consistently engages consumers on Twitter. Additionally, Bellabeat runs video ads on Youtube and display ads on the Google Display Network to support campaigns around key marketing dates.</p><p>Sršen knows that an analysis of Bellabeat’s available consumer data would reveal more oppotunities for growth. She has asked the marketing analytics team to focus on a Bellabeat product and analyze smart device usage data in order to gain insight into how people are already using their smart devices. Then, using this information, she would like high-level recommendations for how these trends can inform Bellabeat marketing strategy.</p><h3>🔍 ASK</h3><p>Bellabeat is a company that creates smart products for women, primarily focusing on fitness, health, and wellness. With access to Fitbit data, Bellabeat has the opportunity to explore key insights about its users’ daily activities, sleep patterns, calories burned, and more. The goal is to utilize this data to inform marketing strategies, optimize product offerings, and help Bellabeat understand how users interact with their products.</p><p>The key questions that we aim to answer through this analysis include:</p><ol><li>What are some trends in smart device usage?</li><li>How could these trends apply to Bellabeat customers?</li><li>How could these trends help influence Bellabeat marketing strategy?</li></ol><p>By answering these questions, we will generate actionable insights that can guide Bellabeat’s marketing strategies and product development.</p><h3>🧹 PREPARE</h3><p>Before we dive into the analysis, it’s essential to prepare the data for exploration. This includes importing necessary libraries, loading the data files, checking for missing values, understanding the structure of the data, and performing any required data cleaning.</p><h3>ROCCC</h3><ul><li><strong>Reliability</strong>: The dataset contains data from 30 individuals, with no information about their gender. (Low)</li><li><strong>Originality</strong>: Data was collected using Amazon Mechanical Turk, a third-party platform. (Low)</li><li><strong>Comprehensive</strong>: The data seems comprehensive, including steps, calories, sleep durations, etc. However, while some of the data is represented as columns in the files, the amount of collected data is insufficient. (Medium)</li><li><strong>Current</strong>: The data is from May 2016, meaning it is not up-to-date and user habits may have changed over time. (Low)</li><li><strong>Cited</strong>: The source is unknown. (Low)</li></ul><p>In this steps, I have imported essential libraries to facilitate data analysis and visualization. These libraries, such as tidyverse, lubridate, dplyr, and others, provide a robust toolkit for data manipulation, cleaning, and creating insightful visualizations.</p><pre>library(tidyverse)<br>library(lubridate)<br>library(dplyr)<br>library(ggplot2)<br>library(tidyr)<br>library(here)<br>library(skimr)<br>library(janitor)</pre><ul><li>tidyverse, dplyr, and ggplot2 for data manipulation and visualization.</li><li>lubridate for working with date and time.</li><li>tidyr for tidying up the data.</li><li>here for easier file path management.</li><li>skimr for summarizing the datasets.</li><li>janitor for cleaning the data.</li></ul><pre>list.files(&quot;/kaggle/input/&quot;)</pre><p>&#39;bellabeat&#39;</p><pre>list.files(&quot;/kaggle/input/bellabeat&quot;)</pre><p><em>‘dailyactivity.csv’, ‘dailycalories.csv’, ‘dailyintensities.csv’, ‘dailysteps.csv’, ‘hourlycalories.csv’, ‘hourlyintensities.csv’, ‘hourlysteps.csv’, ‘sleepday.csv’</em></p><p>After confirming the general files, the files specific to the Bellabeat data folder are listed.</p><p>The relevant datasets are loaded into R for further exploration and analysis.</p><pre>dailyactivity &lt;- read.csv(&quot;/kaggle/input/bellabeat/dailyactivity.csv&quot;)<br>dailycalories &lt;- read.csv(&quot;/kaggle/input/bellabeat/dailycalories.csv&quot;)<br>dailysteps &lt;- read.csv(&quot;/kaggle/input/bellabeat/dailysteps.csv&quot;)<br>dailyintensities &lt;- read.csv(&quot;/kaggle/input/bellabeat/dailyintensities.csv&quot;)<br>hourlycalories &lt;- read.csv(&quot;/kaggle/input/bellabeat/hourlycalories.csv&quot;)<br>hourlyintensities &lt;- read.csv(&quot;/kaggle/input/bellabeat/hourlyintensities.csv&quot;)<br>hourlysteps &lt;- read.csv(&quot;/kaggle/input/bellabeat/hourlysteps.csv&quot;)<br>sleepday &lt;- read.csv(&quot;/kaggle/input/bellabeat/sleepday.csv&quot;)</pre><p>These datasets are now available for analysis and are explored further in the next steps.</p><p>To get an initial understanding of the datasets, I used the <strong>head()</strong> function to view the first few rows of each dataset. This allows me to examine the structure and contents of the data before performing further analysis.</p><pre>head(dailyactivity)</pre><pre>head(dailycalories)</pre><pre>head(dailysteps)</pre><pre>head(dailyintensities)</pre><pre>head(hourlycalories)</pre><pre>head(hourlyintensities)</pre><pre>head((hourlysteps)</pre><pre>head(sleepday)</pre><p>To gain a deeper understanding of the structure of each dataset, I used the <strong>str()</strong> function. This function provides an overview of the data types, column names, and the first few entries for each variable, which is essential for understanding how the data is organized.</p><pre>str(dailyactivity)</pre><pre>str(dailycalories)</pre><pre>str(dailyintensities)</pre><pre>str(dailysteps)</pre><pre>str(hourlycalories)</pre><pre>str(hourlyintensities)</pre><pre>str(hourlysteps)</pre><pre>str(sleepday)</pre><p>To identify if there are any missing values <strong>(NA)</strong> in the datasets, I used the <strong>sum(is.na())</strong> function. This function counts the number of NA values in each dataset. Below is the code I used to check for missing values:</p><pre>sum(is.na(dailyactivity))<br>sum(is.na(dailycalories))<br>sum(is.na(dailyintensities))<br>sum(is.na(dailysteps))<br>sum(is.na(hourlycalories))<br>sum(is.na(hourlyintensities))<br>sum(is.na(hourlysteps))<br>sum(is.na(sleepday))</pre><p>As a result, it was confirmed that there are no missing values in any of the datasets.</p><p>Next, I checked for any duplicate rows in the datasets using the <strong>sum(duplicated())</strong> function. This function counts the number of duplicated rows in each dataset. Below is the code I used to check for duplicates:</p><pre>sum(duplicated(dailyactivity))<br>sum(duplicated(dailycalories))<br>sum(duplicated(dailysteps))<br>sum(duplicated(dailyintensities))<br>sum(duplicated(hourlycalories))<br>sum(duplicated(hourlysteps))<br>sum(duplicated(hourlyintensities))<br>sum(duplicated(sleepday))</pre><p>After running the code, I found that only the sleepday dataset had <strong>3 duplicated</strong> records. It is important to handle duplicates before moving forward with the analysis.</p><p>After identifying the duplicate rows in the sleepday dataset, I proceeded to <strong>remove</strong> them using the following code:</p><pre>sleepday &lt;- sleepday[!duplicated(sleepday), ]<br>head(sleepday)</pre><p>After removing the duplicates from the <strong>sleepday</strong> dataset, I rechecked for any remaining duplicates using the following code:</p><pre>sum(duplicated(sleepday))</pre><p>To assess the uniqueness of the <strong>Id</strong> values across the datasets, I used the <strong>n_unique()</strong> function to count the number of unique <strong>Ids</strong> in each dataset. Here are the results:</p><pre>n_unique(dailyactivity$Id)<br>n_unique(dailycalories$Id)<br>n_unique(dailysteps$Id)<br>n_unique(dailyintensities$Id)<br>n_unique(hourlycalories$Id)<br>n_unique(hourlysteps$Id)<br>n_unique(hourlyintensities$Id)<br>n_unique(sleepday$Id)</pre><p>To ensure consistency in the datasets, I applied the <strong>trimws()</strong> function to remove any leading or trailing whitespace characters from all character columns.</p><pre>dailyactivity[] &lt;- lapply(dailyactivity, function(x) if(is.character(x)) trimws(x) else x)<br>head(dailyactivity)</pre><pre>dailycalories[] &lt;- lapply(dailycalories, function(x) if(is.character(x)) trimws(x) else x)<br>head(dailycalories)</pre><pre>dailyintensities[] &lt;- lapply(dailyintensities, function(x) if(is.character(x)) trimws(x) else x)<br>head(dailyintensities)</pre><pre>dailysteps[] &lt;- lapply(dailysteps, function(x) if(is.character(x)) trimws(x) else x)<br>head(dailysteps)</pre><pre>hourlycalories[] &lt;- lapply(hourlycalories, function(x) if(is.character(x)) trimws(x) else x)<br>head(hourlycalories)</pre><pre>hourlyintensities[] &lt;- lapply(hourlyintensities, function(x) if(is.character(x)) trimws(x) else x)<br>head(hourlyintensities)</pre><pre>hourlysteps[] &lt;- lapply(hourlysteps, function(x) if(is.character(x)) trimws(x) else x)<br>head(hourlysteps)</pre><pre>sleepday[] &lt;- lapply(sleepday, function(x) if(is.character(x)) trimws(x) else x)<br>head(sleepday)</pre><p>To ensure that the <strong>Date</strong> column in the dailyactivity, dailycalories, dailyintensities, dailysteps, hourlycalories, hourlyintensities, hourlysteps, sleepdaydataset is recognized as a proper date-time format, I convert it to the <strong>POSIXct</strong> format. This transformation allows for better handling of date-based operations and ensures consistency in time zone settings.</p><pre>dailyactivity$Date &lt;- as.POSIXct(dailyactivity$Date, format=&quot;%m/%d/%Y&quot;, tz=Sys.timezone())</pre><pre>head(dailyactivity)</pre><pre>dailycalories$Date &lt;- as.POSIXct(dailycalories$Date, format=&quot;%m/%d/%Y&quot;, tz=Sys.timezone())</pre><pre>head(dailycalories)</pre><pre>dailyintensities$Date &lt;- as.POSIXct(dailyintensities$Date, format=&quot;%m/%d/%Y&quot;, tz=Sys.timezone())</pre><pre>head(dailyintensities)</pre><pre>dailysteps$Date &lt;- as.POSIXct(dailysteps$Date, format=&quot;%m/%d/%Y&quot;, tz=Sys.timezone())</pre><pre>head(dailysteps)</pre><pre>hourlycalories$Date &lt;- as.POSIXct(hourlycalories$Date, format=&quot;%m/%d/%Y&quot;, tz=Sys.timezone())</pre><pre>head(hourlycalories)</pre><pre>hourlyintensities$Date &lt;- as.POSIXct(hourlyintensities$Date, format=&quot;%m/%d/%Y&quot;, tz=Sys.timezone())</pre><pre>head(hourlyintensities)</pre><pre>hourlysteps$Date &lt;- as.POSIXct(hourlysteps$Date, format=&quot;%m/%d/%Y&quot;, tz=Sys.timezone())</pre><pre>head(hourlysteps)</pre><pre>sleepday$Date &lt;- as.POSIXct(sleepday$Date, format=&quot;%m/%d/%Y&quot;, tz=Sys.timezone())</pre><pre>head(sleepday)</pre><h3>⚙️ PROCESS</h3><p>For the “Bellabeat” project, the <strong>Process</strong> stage is where I focus on preparing and transforming the raw data to ensure it’s in a suitable format for analysis. This stage involves tasks like cleaning the data, dealing with missing values, converting formats, and creating new variables when needed. Since my goal is to explore connections between different factors, such as activity levels, sleep patterns, and user behavior, it’s important to ensure that the data is as reliable and consistent as possible before I start any deep analysis. In this stage, I also make sure the data is well-organized and ready to be explored through visualizations.</p><p>In the hourlycalories, hourlyintensities, and hourlysteps datasets, the Hour column represents the hours of the day. However, to ensure clarity and consistency in a 24-hour format, I replaced any instance where Hour is <strong>0</strong> with <strong>24</strong>. This adjustment makes time-based trends easier to interpret and analyze.</p><pre>library(dplyr)<br><br><br>hourlycalories &lt;- hourlycalories %&gt;%<br>  mutate(Hour = ifelse(Hour == 0, 24, Hour))<br><br><br>head(hourlycalories)</pre><pre>library(dplyr)<br><br><br>hourlyintensities &lt;- hourlyintensities %&gt;%<br>  mutate(Hour = ifelse(Hour == 0, 24, Hour))<br><br><br>head(hourlyintensities)</pre><pre>library(dplyr)<br><br><br>hourlysteps &lt;- hourlysteps %&gt;%<br>  mutate(Hour = ifelse(Hour == 0, 24, Hour))<br><br><br>head(hourlysteps)</pre><p>To gain an initial understanding of the datasets, I used the <strong>summary()</strong> function for each table. This provides key statistical insights, including <strong>minimum</strong>, <strong>maximum</strong>, <strong>mean</strong>, and quartiles for numerical variables. These summary statistics help identify potential outliers, data distribution patterns, and any inconsistencies that may need further investigation.</p><pre>summary(dailyactivity)</pre><pre>Id                 Date                     TotalSteps   <br> Min.   :1.504e+09   Min.   :16-04-12 00:00:00   Min.   :    0  <br> 1st Qu.:2.320e+09   1st Qu.:16-04-19 00:00:00   1st Qu.: 3790  <br> Median :4.445e+09   Median :16-04-26 00:00:00   Median : 7406  <br> Mean   :4.855e+09   Mean   :16-04-26 06:53:37   Mean   : 7638  <br> 3rd Qu.:6.962e+09   3rd Qu.:16-05-04 00:00:00   3rd Qu.:10727  <br> Max.   :8.878e+09   Max.   :16-05-12 00:00:00   Max.   :36019  <br> TotalDistance    TrackerDistance  LoggedActivitiesDistance VeryActiveDistance<br> Min.   : 0.000   Min.   : 0.000   Min.   :0.0000           Min.   : 0.000    <br> 1st Qu.: 2.620   1st Qu.: 2.620   1st Qu.:0.0000           1st Qu.: 0.000    <br> Median : 5.245   Median : 5.245   Median :0.0000           Median : 0.210    <br> Mean   : 5.490   Mean   : 5.475   Mean   :0.1064           Mean   : 1.503    <br> 3rd Qu.: 7.713   3rd Qu.: 7.710   3rd Qu.:0.0000           3rd Qu.: 2.053    <br> Max.   :28.030   Max.   :28.030   Max.   :5.0000           Max.   :21.920    <br> ModeratelyActiveDistance LightActiveDistance SedentaryActiveDistance<br> Min.   :0.0000           Min.   : 0.000      Min.   :0.000000       <br> 1st Qu.:0.0000           1st Qu.: 1.945      1st Qu.:0.000000       <br> Median :0.2400           Median : 3.365      Median :0.000000       <br> Mean   :0.5675           Mean   : 3.341      Mean   :0.001606       <br> 3rd Qu.:0.8000           3rd Qu.: 4.782      3rd Qu.:0.000000       <br> Max.   :6.4800           Max.   :10.710      Max.   :0.110000       <br> VeryActiveMinutes FairlyActiveMinutes LightlyActiveMinutes SedentaryMinutes<br> Min.   :  0.00    Min.   :  0.00      Min.   :  0.0        Min.   :   0.0  <br> 1st Qu.:  0.00    1st Qu.:  0.00      1st Qu.:127.0        1st Qu.: 729.8  <br> Median :  4.00    Median :  6.00      Median :199.0        Median :1057.5  <br> Mean   : 21.16    Mean   : 13.56      Mean   :192.8        Mean   : 991.2  <br> 3rd Qu.: 32.00    3rd Qu.: 19.00      3rd Qu.:264.0        3rd Qu.:1229.5  <br> Max.   :210.00    Max.   :143.00      Max.   :518.0        Max.   :1440.0  <br>    Calories   <br> Min.   :   0  <br> 1st Qu.:1828  <br> Median :2134  <br> Mean   :2304  <br> 3rd Qu.:2793  <br> Max.   :4900</pre><p><strong>Average Steps</strong>: 7638</p><p><strong>Average Calories</strong>: 2304</p><p><strong>Average Distance</strong>: 5.49</p><pre>summary(dailycalories)</pre><pre>Id                 Date                      Calories   <br> Min.   :1.504e+09   Min.   :16-04-12 00:00:00   Min.   :   0  <br> 1st Qu.:2.320e+09   1st Qu.:16-04-19 00:00:00   1st Qu.:1828  <br> Median :4.445e+09   Median :16-04-26 00:00:00   Median :2134  <br> Mean   :4.855e+09   Mean   :16-04-26 06:53:37   Mean   :2304  <br> 3rd Qu.:6.962e+09   3rd Qu.:16-05-04 00:00:00   3rd Qu.:2793  <br> Max.   :8.878e+09   Max.   :16-05-12 00:00:00   Max.   :4900</pre><pre>summary(dailyintensities)</pre><pre>Id                 Date                   SedentaryMinutes<br> Min.   :1.504e+09   Min.   :16-04-12 00:00:00   Min.   :   0.0  <br> 1st Qu.:2.320e+09   1st Qu.:16-04-19 00:00:00   1st Qu.: 729.8  <br> Median :4.445e+09   Median :16-04-26 00:00:00   Median :1057.5  <br> Mean   :4.855e+09   Mean   :16-04-26 06:53:37   Mean   : 991.2  <br> 3rd Qu.:6.962e+09   3rd Qu.:16-05-04 00:00:00   3rd Qu.:1229.5  <br> Max.   :8.878e+09   Max.   :16-05-12 00:00:00   Max.   :1440.0  <br> LightlyActiveMinutes FairlyActiveMinutes VeryActiveMinutes<br> Min.   :  0.0        Min.   :  0.00      Min.   :  0.00   <br> 1st Qu.:127.0        1st Qu.:  0.00      1st Qu.:  0.00   <br> Median :199.0        Median :  6.00      Median :  4.00   <br> Mean   :192.8        Mean   : 13.56      Mean   : 21.16   <br> 3rd Qu.:264.0        3rd Qu.: 19.00      3rd Qu.: 32.00   <br> Max.   :518.0        Max.   :143.00      Max.   :210.00   <br> SedentaryActiveDistance LightActiveDistance ModeratelyActiveDistance<br> Min.   :0.000000        Min.   : 0.000      Min.   :0.0000          <br> 1st Qu.:0.000000        1st Qu.: 1.945      1st Qu.:0.0000          <br> Median :0.000000        Median : 3.365      Median :0.2400          <br> Mean   :0.001606        Mean   : 3.341      Mean   :0.5675          <br> 3rd Qu.:0.000000        3rd Qu.: 4.782      3rd Qu.:0.8000          <br> Max.   :0.110000        Max.   :10.710      Max.   :6.4800          <br> VeryActiveDistance<br> Min.   : 0.000    <br> 1st Qu.: 0.000    <br> Median : 0.210    <br> Mean   : 1.503    <br> 3rd Qu.: 2.053    <br> Max.   :21.920</pre><pre>summary(dailysteps)</pre><pre>Id                 Date                     StepTotal    <br> Min.   :1.504e+09   Min.   :16-04-12 00:00:00   Min.   :    0  <br> 1st Qu.:2.320e+09   1st Qu.:16-04-19 00:00:00   1st Qu.: 3790  <br> Median :4.445e+09   Median :16-04-26 00:00:00   Median : 7406  <br> Mean   :4.855e+09   Mean   :16-04-26 06:53:37   Mean   : 7638  <br> 3rd Qu.:6.962e+09   3rd Qu.:16-05-04 00:00:00   3rd Qu.:10727  <br> Max.   :8.878e+09   Max.   :16-05-12 00:00:00   Max.   :36019</pre><pre>summary(hourlycalories)</pre><pre>Id                 Date                           Calories     <br> Min.   :1.504e+09   Min.   :16-04-12 00:00:00.0000   Min.   : 42.00  <br> 1st Qu.:2.320e+09   1st Qu.:16-04-19 00:00:00.0000   1st Qu.: 63.00  <br> Median :4.445e+09   Median :16-04-26 00:00:00.0000   Median : 83.00  <br> Mean   :4.848e+09   Mean   :16-04-26 00:21:45.8000   Mean   : 97.39  <br> 3rd Qu.:6.962e+09   3rd Qu.:16-05-03 00:00:00.0000   3rd Qu.:108.00  <br> Max.   :8.878e+09   Max.   :16-05-12 00:00:00.0000   Max.   :948.00  <br>      Hour      <br> Min.   : 1.00  <br> 1st Qu.: 6.00  <br> Median :12.00  <br> Mean   :12.43  <br> 3rd Qu.:18.00  <br> Max.   :24.00</pre><p><strong>Average Hourly Calories</strong>: 12.43</p><pre>summary(hourlyintensities)</pre><pre>Id                 Date                        TotalIntensity  <br> Min.   :1.504e+09   Min.   :16-04-12 00:00:00.0000   Min.   :  0.00  <br> 1st Qu.:2.320e+09   1st Qu.:16-04-19 00:00:00.0000   1st Qu.:  0.00  <br> Median :4.445e+09   Median :16-04-26 00:00:00.0000   Median :  3.00  <br> Mean   :4.848e+09   Mean   :16-04-26 00:21:45.8000   Mean   : 12.04  <br> 3rd Qu.:6.962e+09   3rd Qu.:16-05-03 00:00:00.0000   3rd Qu.: 16.00  <br> Max.   :8.878e+09   Max.   :16-05-12 00:00:00.0000   Max.   :180.00  <br> AverageIntensity      Hour      <br> Min.   :0.0000   Min.   : 1.00  <br> 1st Qu.:0.0000   1st Qu.: 6.00  <br> Median :0.0500   Median :12.00  <br> Mean   :0.2006   Mean   :12.43  <br> 3rd Qu.:0.2667   3rd Qu.:18.00  <br> Max.   :3.0000   Max.   :24.00</pre><pre>summary(hourlysteps)</pre><pre>Id                 Date                          StepTotal      <br> Min.   :1.504e+09   Min.   :16-04-12 00:00:00.0000   Min.   :    0.0  <br> 1st Qu.:2.320e+09   1st Qu.:16-04-19 00:00:00.0000   1st Qu.:    0.0  <br> Median :4.445e+09   Median :16-04-26 00:00:00.0000   Median :   40.0  <br> Mean   :4.848e+09   Mean   :16-04-26 00:21:45.8000   Mean   :  320.2  <br> 3rd Qu.:6.962e+09   3rd Qu.:16-05-03 00:00:00.0000   3rd Qu.:  357.0  <br> Max.   :8.878e+09   Max.   :16-05-12 00:00:00.0000   Max.   :10554.0  <br>      Hour      <br> Min.   : 1.00  <br> 1st Qu.: 6.00  <br> Median :12.00  <br> Mean   :12.43  <br> 3rd Qu.:18.00  <br> Max.   :24.00</pre><pre>summary(sleepday)</pre><pre>Id                 Date                        TotalSleepRecords<br> Min.   :1.504e+09   Min.   :16-04-12 00:00:00.0000   Min.   :1.00     <br> 1st Qu.:3.977e+09   1st Qu.:16-04-19 00:00:00.0000   1st Qu.:1.00     <br> Median :4.703e+09   Median :16-04-27 00:00:00.0000   Median :1.00     <br> Mean   :4.995e+09   Mean   :16-04-26 11:38:55.5999   Mean   :1.12     <br> 3rd Qu.:6.962e+09   3rd Qu.:16-05-04 00:00:00.0000   3rd Qu.:1.00     <br> Max.   :8.792e+09   Max.   :16-05-12 00:00:00.0000   Max.   :3.00     <br> TotalMinutesAsleep TotalTimeInBed <br> Min.   : 58.0      Min.   : 61.0  <br> 1st Qu.:361.0      1st Qu.:403.8  <br> Median :432.5      Median :463.0  <br> Mean   :419.2      Mean   :458.5  <br> 3rd Qu.:490.0      3rd Qu.:526.0  <br> Max.   :796.0      Max.   :961.0</pre><p><strong>Average Total Sleep Time</strong>: 7 hours (419.2 minutes)</p><p><strong>Average Time in Bed</strong>: 7 hours 39 minutes (458.5 minutes)</p><h3>📊 ANALYSIS&amp;SHARE</h3><p>In this phase of the Bellabeat project, I aim to analyze the data to uncover patterns and insights about users&#39; <strong>daily activities</strong>, <strong>sleep</strong>, and <strong>calorie</strong> consumption. By examining different variables like the total steps, activity intensity, calories burned, and sleep duration, I want to identify potential correlations between users&#39; physical activities and their sleep quality. Additionally, understanding how different activity levels (such as very active, fairly active, or sedentary) impact the amount of sleep or calories burned can provide valuable insights into how individuals can improve their well-being. This analysis will help me to make informed recommendations based on the available data, with a focus on improving user habits and achieving a balanced lifestyle.</p><h3>Merging sleepday and dailyactivity</h3><p>To analyze the relationship between sleep patterns and daily activity, I merged the sleepday and dailyactivity datasets using the common columns Id and Date.</p><pre>sleep_activity &lt;- merge(sleepday, dailyactivity, by=c(&#39;Id&#39;, &#39;Date&#39;))<br>head(sleep_activity)</pre><p>This scatter plot visualizes the relationship between the total number of steps taken (TotalSteps) and the total minutes of sleep (TotalMinutesAsleep). Each point represents an individual observation, while the smooth trend line helps identify any patterns or correlations between physical activity and sleep duration.</p><pre>cor(sleep_activity$TotalSteps, sleep_activity$TotalMinutesAsleep)</pre><p>-0.190343916667632</p><pre>ggplot(data=sleep_activity, aes(x=TotalSteps, y=TotalMinutesAsleep)) + <br>  geom_point() + geom_smooth() + labs(title=&quot;Total Steps vs. TotalMinutesAsleep&quot;)</pre><pre>`geom_smooth()` using method = &#39;loess&#39; and formula = &#39;y ~ x&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*RUz9nxmOhmdppVH_.png" /></figure><h3>Total Steps vs. Total Minutes Asleep</h3><p>This scatter plot visualizes the relationship between <strong>Total Steps</strong> and <strong>Total Minutes Asleep</strong>, with a LOESS trend line added to identify potential patterns.</p><h4>Observations:</h4><p><strong>Distribution:</strong></p><p>Data points are widely spread, indicating no strong direct correlation between step count and sleep duration.</p><p>Individuals with high step counts tend to have sleep durations concentrated between <strong>300–500 minutes</strong>.</p><p><strong>Trend Line (LOESS):</strong></p><p>The blue trend line suggests a slight decline in sleep duration as step count increases, followed by a small rise. However, this pattern appears weak.</p><p><strong>Weak Correlation:</strong></p><p>The scattered distribution suggests no clear linear relationship between total steps and sleep duration.</p><h4>Conclusion:</h4><p>There is no strong relationship between total steps and total sleep duration. While the trend line provides some insight, the overall pattern remains weak. Further analysis, such as calculating correlation coefficients or considering additional variables, could provide deeper insights.</p><h3>Merging dailysteps and dailycalories</h3><p>To analyze the relationship between step patterns and daily calories, I merged the dailysteps and dailycalories datasets using the common columns Id and Date.</p><pre>d_steps_calories &lt;- merge(dailysteps, dailycalories, by=c(&#39;Id&#39;, &#39;Date&#39;))<br>head(d_steps_calories)</pre><pre>cor(d_steps_calories$StepTotal, d_steps_calories$Calories)</pre><p>0.591568086245336</p><p>A moderate positive correlation <strong>(r = 0.59)</strong> was observed between daily step count and calories burned, indicating that steps are an important factor in calorie expenditure. However, since the relationship is not perfect, individual differences and other variables (such as activity type and intensity) should also be considered.</p><p>This code generates a scatter plot to visualize the relationship between <strong>StepTotal</strong> (total steps taken) and <strong>Calories</strong>(calories burned). The plot includes a smooth line to show potential trends or patterns in the data. This is done to explore how dailysteps, measured in steps, might correlate with calorie expenditure.</p><pre>ggplot(data=d_steps_calories, aes(x=StepTotal, y=Calories)) + <br>  geom_point() + geom_smooth() + labs(title=&quot;StepTotal vs. Calories&quot;)</pre><pre>`geom_smooth()` using method = &#39;loess&#39; and formula = &#39;y ~ x&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*_tqVCR-8pQ6hpBvF.png" /></figure><h3>Total Steps vs. Calories</h3><h4>Observations:</h4><p><strong>Positive Relationship</strong>:</p><p>The scatter plot shows that as the total steps increase, the calories burned generally increase as well.</p><p>This indicates a direct impact of total step count (physical activity) on calories burned.</p><p><strong>Trend Line (LOESS)</strong>:</p><p>The blue trend line demonstrates that calorie burn is lower with fewer steps, but increases as steps rise.</p><p>However, after reaching 20,000 steps, the trend line flattens, suggesting that calories burned may plateau or not increase further at higher step counts.</p><p><strong>Data Distribution</strong>:</p><p>There is a high density of data between 10,000 and 20,000 steps, where more calories are being burned.</p><p>At lower step levels (0–5,000), calorie burn is noticeably lower.</p><h3>Merging dailyintensities and dailycalories</h3><p>In this step, I merged the dailyintensities and dailycalories datasets using the common columns Idand Date. This allows us to combine information on daily physical activity intensity levels and the associated calories burned for each individual on a specific date.</p><p>This merged dataset will help analyze the relationship between activity intensity and calorie expenditure, offering insights into how different intensity levels of physical activity impact overall calorie burn.</p><pre>d_intensities_calories &lt;- merge(dailyintensities, dailycalories, by=c(&#39;Id&#39;, &#39;Date&#39;))<br>head(d_intensities_calories)</pre><pre>cor(d_intensities_calories$VeryActiveMinutes, d_intensities_calories$Calories)</pre><p>0.615838268270338</p><p>A moderate-strong positive correlation <strong>(r = 0.62)</strong> was found between very active minutes and calories burned, indicating that higher-intensity exercises play a significant role in calorie expenditure. However, since the relationship is not entirely strong, individual factors such as body weight, metabolism rate, and exercise duration should also be considered.</p><h3>Visualizing the Relationship Between Activity Intensity and Calories</h3><p>The following plots visualize the relationship between different activity intensities (Very Active Minutes and Sedentary Minutes) and the total calories burned.</p><p><strong>Very Active Minutes vs. Calories</strong>: This plot shows the relationship between the minutes spent in very active physical activity and the calories burned.</p><pre>ggplot(data=d_intensities_calories, aes(x=VeryActiveMinutes, y=Calories)) + <br>  geom_point() + geom_smooth() + labs(title=&quot;VeryActiveMinutes vs. Calories&quot;)</pre><pre>`geom_smooth()` using method = &#39;loess&#39; and formula = &#39;y ~ x&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*v1jKHuNOhWxicLym.png" /></figure><h3>Very Active Minutes vs. Calories</h3><p>This plot shows the relationship between the minutes spent in very active physical activity (Very Active Minutes) and the total calories burned, with a LOESS curve added.</p><p><strong>Observations:</strong></p><p><strong>Positive Relationship:</strong></p><p>The curve shows a steady increase in calories burned as Very Active Minutes increase.</p><p>Vigorous physical activities result in a significant increase in calorie burn.</p><p><strong>Trend Line (LOESS):</strong></p><p>The blue trend line indicates a slower increase in calorie burn between 0–50 minutes, but a faster increase after 50 minutes.</p><p>At around 150 minutes, the curve flattens, suggesting the rate of calorie burn may start to plateau.</p><p><strong>Data Distribution:</strong></p><p>Data points are concentrated between 0–100 minutes, indicating most users engage in very intense activities within this time frame.</p><p>Few users exceed 150 minutes of very intense activity.</p><p><strong>General Conclusion:</strong></p><p>There is a strong positive relationship between very intense physical activities and calories burned. Longer durations of intense activity correlate with higher calorie burn.</p><p>The trend suggests a linear increase in calorie burn initially, with a slower rate of increase as activity duration extends.</p><p>A more detailed analysis, such as calculating the correlation coefficient or applying a regression model, could offer further insights, particularly for fitness programs.</p><p><strong>Sedentary Minutes vs. Calories</strong>: This plot illustrates how the amount of time spent being sedentary correlates with the total calorie expenditure.</p><p>Both plots include a smoothing line to show potential trends in the data, helping to better understand how varying levels of activity affect calorie burn.</p><pre>cor(d_intensities_calories$SedentaryMinutes, d_intensities_calories$Calories)</pre><p>-0.106973047680188</p><p>A weak negative correlation <strong>(r = -0.11)</strong> was observed between sedentary minutes and calories burned, indicating that sedentary time does not have a significant impact on calorie expenditure. The low correlation value suggests that calorie burning is more strongly associated with active time and physical activity levels.</p><pre>ggplot(data=d_intensities_calories, aes(x=SedentaryMinutes, y=Calories)) + <br>  geom_point() + geom_smooth() + labs(title=&quot;SedentaryMinutes vs. Calories&quot;)</pre><pre>`geom_smooth()` using method = &#39;loess&#39; and formula = &#39;y ~ x&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*uuJkxhI7mV46ZD26.png" /></figure><h3>Sedentary Minutes vs. Calories</h3><p>This plot shows the relationship between sedentary minutes (Sedentary Minutes) and total calories burned, with a LOESS curve added.</p><p><strong>Observations:</strong></p><p><strong>Initial Trend:</strong></p><p>Initially, as sedentary minutes increase, there is a trend showing that calories burned also increase.</p><p>This could indicate that during low levels of sedentary time, calorie burn may be low, reflecting basic metabolic functions.</p><p><strong>Declining Trend:</strong></p><p>As sedentary minutes approach 500, the increase in calories burned slows down, and a decline is observed.</p><p>This suggests that prolonged inactivity (such as sitting) may reduce calorie expenditure.</p><p><strong>Data Distribution:</strong></p><p>Data points are concentrated between 500–1000 sedentary minutes, indicating most participants remain sedentary for this range, and their calorie burn remains relatively steady.</p><p><strong>Plateaus and Decline:</strong></p><p>After about 1000 sedentary minutes, calories burned further decline, suggesting that a sedentary lifestyle may limit calorie burn.</p><p><strong>General Conclusion:</strong></p><p>There appears to be an inverse relationship between sedentary minutes and calories burned. While an initial increase in calorie burn is observed, prolonged inactivity negatively impacts it.</p><p>This plot emphasizes the importance of increasing physical activity to counteract the negative effects of a sedentary lifestyle.</p><p>For a more detailed analysis, the impact of sedentary behavior on health and contributions of other activities could be evaluated.</p><h3>Merging sleepday and dailycalories</h3><p>To analyze the relationship between sleep patterns and calories burned, I merged the sleepday dataset with the dailycalories dataset using the common columns Id and Date. This step allows for a comprehensive comparison between sleep duration and calorie expenditure for each individual on a given day.</p><pre>d_sleep_calories &lt;- merge(sleepday, dailycalories, by=c(&#39;Id&#39;, &#39;Date&#39;))<br>head(d_sleep_calories)</pre><pre>cor(d_sleep_calories$TotalMinutesAsleep, d_sleep_calories$Calories)</pre><p>-0.0316989918202915</p><p>A very weak negative correlation <strong>(r = -0.03)</strong> was observed between total sleep time and calories burned, indicating that there is no significant relationship between these two variables. The low correlation value suggests that sleep duration does not have a notable impact on calorie expenditure, and these two factors appear to be independent. Calorie burning may be more influenced by other factors such as physical activity and metabolism rate.</p><p>This plot visualizes the relationship between total sleep duration (TotalMinutesAsleep) and calories burned (Calories). By creating a scatter plot with a LOESS smoothing line, we can examine whether there is any trend or correlation between the amount of sleep an individual gets and the calories they burn on a given day.</p><pre>ggplot(data=d_sleep_calories, aes(x=TotalMinutesAsleep, y=Calories)) + <br>  geom_point() + geom_smooth() + labs(title=&quot;TotalMinutesAsleep vs. Calories&quot;)</pre><pre>`geom_smooth()` using method = &#39;loess&#39; and formula = &#39;y ~ x&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*fQidcSAwbvrs4pwG.png" /></figure><h3>TotalMinutesAsleep vs.Calories</h3><p>This plot illustrates the relationship between total minutes asleep (TotalMinutesAsleep) and calories burned (Calories). The scatter plot with a LOESS trend line provides insight into how sleep duration might relate to calorie expenditure.</p><p><strong>Observations:</strong></p><p><strong>Distribution:</strong></p><p>The graph shows a scattered distribution, indicating a weak relationship between sleep duration and calories burned.</p><p>Most individuals tend to sleep between 200 to 600 minutes, with calorie burn ranging from 2000 to 4000.</p><p><strong>Trend Line (LOESS):</strong></p><p>The blue trend line suggests a slight relationship between sleep duration and calorie burn for shorter sleep durations (200–400 minutes). However, after 400 minutes, this relationship weakens and calorie burn remains constant or slightly decreases.</p><p>After 600 minutes of sleep, there is a slight downward trend in calories burned.</p><p><strong>Data Distribution:</strong></p><p>A higher concentration of data points is observed between 400–600 minutes of sleep, indicating that many individuals fall within this sleep range, with similar calorie burn during this time.</p><h3>Conclusion:</h3><p>There is a weak relationship between sleep duration and calories burned. Longer sleep durations do not significantly affect calorie burn, with a potential slight decrease after 600 minutes of sleep.</p><p>This suggests that changes in basal metabolic rate during sleep have limited impact on calorie expenditure, and other factors likely play a more significant role.</p><p>Further analysis could explore how sleep quality or other lifestyle variables influence this.</p><p>This plot shows the relationship between total minutes asleep (TotalMinutesAsleep) and total time spent in bed (TotalTimeInBed). By plotting the data as a scatter plot, we aim to observe whether individuals tend to sleep for a significant portion of the time they spend in bed or if there are discrepancies between time spent in bed and actual sleep duration.</p><pre>ggplot(data=sleepday, aes(x=TotalMinutesAsleep, y=TotalTimeInBed)) + <br>  geom_point()+ labs(title=&quot;Total Minutes Asleep vs. Total Time in Bed&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*BOmKUHvHrau-9SRn.png" /></figure><pre>cor(d_sleep_calories$TotalMinutesAsleep, d_sleep_calories$TotalTimeInBed)</pre><p>0.930422385392275</p><p>A very strong positive correlation <strong>(r = 0.93)</strong> was observed between total sleep time and total time in bed, indicating that these two variables move very closely together. It can be said that a large portion of the time spent in bed is converted into sleep, and there is a strong linear relationship between sleep time and time spent in bed. This relationship may serve as an important indicator of the accuracy of sleep data.</p><h3>TotalMinutesAsleep vs.TotalTimeInBed</h3><p>This scatter plot illustrates the relationship between total minutes asleep (TotalMinutesAsleep) and total time spent in bed (TotalTimeInBed).</p><p><strong>Observations:</strong></p><p><strong>Positive Linear Relationship:</strong></p><p>The graph shows a strong positive linear relationship, meaning that as the time spent in bed increases, the sleep duration also generally increases.</p><p>However, it is evident that not all time spent in bed is spent sleeping. Some data points indicate that sleep duration is notably less than the time spent in bed.</p><p><strong>Data Distribution:</strong></p><p>Most data points suggest that the sleep duration is close to the total time spent in bed, indicating that many individuals use most of their time in bed for sleeping.</p><p>Some individuals, however, appear to spend a significant portion of their time in bed not sleeping.</p><p><strong>Sleep Efficiency:</strong></p><p>The graph provides insights into sleep efficiency. The ratio of sleep duration to time in bed can be considered an indicator of sleep efficiency. Some data points represent low sleep efficiency (when sleep duration is much less than time spent in bed).</p><h3>Conclusion:</h3><p>This graph shows that while time spent in bed generally increases sleep duration, it does not always correlate with efficient sleep. Further analysis on sleep efficiency could explore factors influencing sleep quality, such as stress, environment, and other variables.</p><p>This code creates a bar chart to visualize the <strong>average total intensity</strong> for <strong>each hour</strong> of the day, helping to identify patterns in activity levels throughout the day.</p><pre>library(tidyverse)<br>int_graph &lt;- hourlyintensities %&gt;%<br>  group_by(Hour) %&gt;% <br>  summarise(mean_total_int = mean(TotalIntensity, na.rm = TRUE)) <br>  ggplot(data=int_graph, aes(x=factor(Hour), y=mean_total_int)) +<br>  geom_col(fill=&#39;red&#39;) + <br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 90, vjust = 0.5)) + <br>  labs(title=&quot;Average Total Intensity vs. Time&quot;,<br>       x=&quot;Hour&quot;,<br>       y=&quot;Mean Total Intensity&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*QYNQkfbKb6x9eL-V.png" /></figure><h3>Activity Intensity Throughout the Day</h3><p>This chart shows the relationship between Average Total Intensity and Time of Day as a bar graph.</p><p><strong>Observations:</strong></p><p><strong>Intensity Change Throughout the Day:</strong></p><p>Intensity starts to rise in the morning and peaks between 3 PM and 6 PM.</p><p>Intensity decreases in the evening, reaching its lowest levels during the night.</p><p><strong>Peak Intensity:</strong> The highest average intensity is observed in the afternoon, particularly between 3:00 PM and 6:00 PM, which corresponds to active hours.</p><p><strong>Low Intensity: </strong>Early morning hours (1:00 AM — 6:00 AM) and late night hours (after 10:00 PM) show very low intensity, likely due to sleep or rest periods.</p><p><strong>General Comment:</strong></p><p>This chart illustrates how physical activity intensity varies throughout the day, with a rise in intensity starting from the morning, peaking in the afternoon, and decreasing towards the evening.</p><p>It suggests that most physical activities are concentrated in the afternoon, with low activity levels during early morning and late night hours.</p><p>Such an analysis could be useful for planning physical activity programs or understanding daily energy expenditure.</p><pre>head(hourlysteps)</pre><pre>hourlysteps %&gt;%<br>  group_by(Hour) %&gt;% <br>  summarise(average_steps = mean(StepTotal, na.rm = TRUE)) %&gt;% <br>  ggplot(aes(x=Hour, y=average_steps, fill=average_steps)) +<br>  geom_col() +  <br>  scale_fill_gradient(low=&quot;red&quot;, high=&quot;yellow&quot;) + <br>  scale_x_continuous(breaks = seq(1, 24, by = 1)) +<br>  labs(title=&quot;Hourly Steps Over Time&quot;, <br>       x=&quot;Hour&quot;, <br>       y=&quot;Average Steps&quot;) +  <br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle=90, vjust=0.5))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*wioCYAKExJkxzBxz.png" /></figure><h3>Hourly Step Count Throughout the Day</h3><p>This chart shows the relationship between Hourly Average Steps and Time of Day. The bars represent the average number of steps per hour, with color intensity highlighting higher values.</p><p><strong>Observations:</strong></p><p><strong>Most Active Hours:</strong></p><p>The highest average step count is observed between 5:00 PM and 6:00 PM, likely due to people being more active during work hours or evening activities.</p><p>The time period from 12:00 PM to 6:00 PM generally shows high step counts.</p><p><strong>Low Activity Hours:</strong></p><p>Night hours (1:00 AM — 6:00 AM) show very low average steps, indicating sleep time.</p><p>Early morning hours (7:00 AM — 9:00 AM) show a slight increase in steps, likely due to morning routines such as commuting to work or school.</p><p><strong>Visual Color Scale:</strong></p><p>The bars range from red to yellow. Red represents lower step counts, while yellow represents higher step counts.</p><p>The color gradient makes the activity intensity throughout the day visually clearer.</p><p><strong>General Comment:</strong></p><p>The chart shows that people are generally most active in the afternoon and early evening.</p><p>Morning and night hours are characterized by low activity.</p><p>Such an analysis can be useful for identifying more efficient time periods for physical activity goals or for planning health and fitness programs.</p><p>This code adds a new variable, MinutesAwake, to the sleepday dataset. It is calculated by subtracting the TotalMinutesAsleep from the TotalTimeInBed. As a result, MinutesAwake represents the difference between the total time spent in bed and the time spent asleep, showing how much time a person spends awake while in bed.</p><pre>sleepday &lt;- sleepday %&gt;%<br>  mutate(MinutesAwake = TotalTimeInBed - TotalMinutesAsleep)</pre><pre>head(sleepday)</pre><h3>Exploring the Relationship Between Daily Steps Levels and MinutesAwake</h3><p>The goal of this analysis is to explore the potential relationship between the time it takes for individuals to fall asleep and their daily activity levels, specifically the number of steps they take throughout the day. The hypothesis is that increased physical activity, as indicated by a higher step count, leads to greater fatigue, which in turn causes individuals to fall asleep more quickly. As a result, I expect to see shorter “Minutes Awake” for individuals who have taken more steps. This analysis will examine whether there is any real connection between daily activity levels and sleep onset time, providing insights into how physical exertion may influence sleep patterns.</p><h3>Merging sleepday and dailysteps</h3><p>This code merges the sleepday and dailysteps datasets by matching the &#39;Id&#39; and &#39;Date&#39; columns. The resulting dataset, sleep_steps, combines the sleep data with the daily step count for each individual on each specific date. This allows for an analysis of the potential relationship between sleep patterns and daily physical activity levels.</p><pre>sleep_steps &lt;- merge(sleepday, dailysteps, by=c(&#39;Id&#39;, &#39;Date&#39;))<br>head(sleep_steps)</pre><p>This code generates a scatter plot with a smoothing curve to visualize the relationship between the total number of steps (StepTotal) and the minutes spent awake (MinutesAwake). By examining this plot, we can explore whether a higher step count is associated with shorter times awake, potentially revealing a connection between physical activity levels and sleep onset or quality.</p><pre>ggplot(data=sleep_steps, aes(x=StepTotal, y=MinutesAwake)) + <br>  geom_point() + geom_smooth() + labs(title=&quot;StepTotal vs. MinutesAwake&quot;)</pre><pre>`geom_smooth()` using method = &#39;loess&#39; and formula = &#39;y ~ x&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*RoAnbZxxHNJS5iu9.png" /></figure><pre>cor(sleep_steps$StepTotal, sleep_steps$MinutesAwake)</pre><p>0.0298540169404362</p><p>A very weak positive correlation <strong>(r = 0.03)</strong> was observed between step count and minutes awake, indicating that there is no strong relationship between these two variables. It can be said that an increase in step count does not have a significant effect on the amount of time spent awake. This low correlation value suggests that the duration of wakefulness might be more influenced by other factors, such as sleep patterns and sleep quality.</p><h3>StelTotal vs.MinutesAwake</h3><p>This graph examines the relationship between Total Step Count (StepTotal) and Minutes Awake (MinutesAwake). It includes the distribution of data points along with a LOESS trend line.</p><p><strong>Observations:</strong></p><p><strong>General Distribution</strong>:</p><p>Most points are concentrated in the low minutes awake (0–100 minutes) and low to moderate step counts (0–10,000 steps).</p><p>Some data points show higher step counts (15,000–20,000 steps), but the minutes awake remain low in these cases.</p><p><strong>Trend Line (LOESS)</strong>:</p><p>The blue trend line suggests that as step count increases, there is no significant increase in minutes awake, with a slight decreasing trend.</p><p>This could indicate that individuals with higher step counts tend to stay awake less, or that the variables are not directly related.</p><p><strong>Outliers</strong>:</p><p>There are a few data points where minutes awake exceed 200, but these are quite sparse on the graph.</p><p><strong>General Conclusion</strong>:</p><p>No direct relationship is observed between total step count and minutes awake.</p><p>The LOESS curve suggests that increasing step count may have a weak or negative impact on awake time.</p><p>This code calculates the average number of steps taken on each day of the week and visualizes the results using a bar plot. The data is first processed by adding a “Weekday” column to the dailysteps dataset, which represents the day of the week corresponding to each date. Then, the average steps for each day are computed and stored in the avg_steps_by_day dataframe. Finally, a bar plot is created to display the average steps per weekday, with colors indicating the step count intensity, ranging from blue (low) to green (high).</p><pre>library(ggplot2)<br>library(dplyr)<br>library(lubridate)<br><br><br>dailysteps &lt;- dailysteps %&gt;%<br>  mutate(Weekday = weekdays(Date))  <br><br><br>avg_steps_by_day &lt;- dailysteps %&gt;%<br>  group_by(Weekday) %&gt;%<br>  summarise(AverageSteps = mean(StepTotal, na.rm = TRUE))<br><br><br>avg_steps_by_day$Weekday &lt;- factor(avg_steps_by_day$Weekday, <br>                                   levels = c(&quot;Monday&quot;, &quot;Tuesday&quot;, &quot;Wednesday&quot;, &quot;Thursday&quot;, <br>                                              &quot;Friday&quot;, &quot;Saturday&quot;, &quot;Sunday&quot;))<br><br>ggplot(avg_steps_by_day, aes(x = Weekday, y = AverageSteps, fill = AverageSteps)) +<br>  geom_col() +<br>  scale_fill_gradient(low = &quot;blue&quot;, high = &quot;green&quot;) + <br>  labs(title = &quot;Average Steps by Day of the Week&quot;, <br>       x = &quot;Day&quot;, <br>       y = &quot;Average Steps&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*taasfvPdibTP_DKp.png" /></figure><h3>Weekly Step Count Analysis</h3><p><strong>Observations:</strong></p><p><strong>Highest Step Count</strong>: Saturdays have the highest average step count (represented by the greenest bar in the graph).</p><p><strong>Lowest Step Count</strong>: Sundays represent the lowest average step count compared to other days (blue bar).</p><p><strong>Weekday Consistency</strong>: Step counts from Monday to Friday are relatively close to each other and moderate.</p><p><strong>Weekend Difference</strong>: Compared to the high activity on Saturday, Sunday shows a noticeable drop.</p><p><strong>General Insight:</strong></p><p>The distribution of steps across the days of the week shows a clear weekend difference. People are more active on Saturdays, while Sunday sees a significant decrease in step count.</p><p>Weekdays maintain a consistent step count without large fluctuations.</p><p>These data suggest focusing on increasing activity on Sundays and balancing weekend activity levels.</p><p>The purpose of this code is to create a pie chart that visualizes the distribution of time spent in different activity intensities, such as <strong>Sedentary</strong>, <strong>Lightly Active, Fairly Active</strong>, and <strong>Very Active</strong>. It first calculates the total minutes spent in each of these categories, then reshapes the data into a long format for easier plotting. Using ggplot, a pie chart is created to show the proportion of time spent in each activity intensity, with different colors representing each category. This provides a clear visual representation of how time is allocated across various activity levels.</p><pre>library(ggplot2)<br>library(dplyr)<br><br><br>intensity_distribution &lt;- dailyintensities %&gt;%<br>  summarise(<br>    Sedentary = sum(SedentaryMinutes, na.rm = TRUE),<br>    LightlyActive = sum(LightlyActiveMinutes, na.rm = TRUE),<br>    FairlyActive = sum(FairlyActiveMinutes, na.rm = TRUE),<br>    VeryActive = sum(VeryActiveMinutes, na.rm = TRUE)<br>  ) %&gt;%<br>  pivot_longer(cols = everything(), names_to = &quot;ActivityType&quot;, values_to = &quot;Minutes&quot;)<br><br><br>ggplot(intensity_distribution, aes(x=&quot;&quot;, y=Minutes, fill=ActivityType)) +<br>  geom_bar(stat=&quot;identity&quot;, width=1) +<br>  coord_polar(theta=&quot;y&quot;) + <br>  labs(title=&quot;Distribution of Activity Intensities&quot;, fill=&quot;Activity Type&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_blank(), axis.ticks = element_blank(), panel.grid = element_blank()) +<br>  scale_fill_manual(values=c(&quot;purple&quot;, &quot;hotpink&quot;, &quot;turquoise&quot;, &quot;forestgreen&quot;))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*z4KmRBqcmONXgeIl.png" /></figure><h3>Activity Intensity Distribution</h3><p>This pie chart illustrates the distribution of activity intensities with the title “Distribution of Activity Intensities.” It shows the duration of four different activity types:</p><p><strong>VeryActive</strong>: Represented by the smallest slice, indicating a very short duration. It is shown in green.</p><p><strong>FairlyActive</strong>: The second smallest slice, shown in purple.</p><p><strong>LightlyActive</strong>: A wider slice, representing a moderate portion of activity time. It is shown in pink.</p><p><strong>Sedentary</strong>: The largest slice, representing the majority of the time spent being inactive. It is shown in turquoise.</p><p>The chart clearly shows that most activities are sedentary. Other categories, especially “VeryActive” and “FairlyActive,” occupy much smaller portions.</p><p>Overall, this chart highlights an imbalance in activity levels, with individuals spending most of their time inactive. Such an analysis can be useful for setting goals to increase physical activity.</p><p>This code aims to analyze and visualize the average total minutes spent sleeping for each day of the week. First, it extracts the weekday from the Date column in the sleepday dataset. Then, it calculates the average minutes of sleep per day by grouping the data by Weekday and summarizing the total minutes asleep for each day. The resulting data is arranged to reflect the days of the week in the correct order. Finally, a bar chart is created using ggplot2 to display the average sleep time for each weekday, with each bar representing a day and its corresponding average sleep time. The chart provides insights into sleep patterns across different days of the week.</p><pre>library(dplyr)<br>library(lubridate)<br>library(ggplot2)<br><br><br>sleepday &lt;- sleepday %&gt;%<br>  mutate(Weekday = weekdays(Date)) <br><br><br>sleepy_summary &lt;- sleepday %&gt;%<br>  group_by(Weekday) %&gt;%<br>  summarise(average_minutes_asleep = mean(TotalMinutesAsleep, na.rm = TRUE)) %&gt;%<br>  arrange(factor(Weekday, levels = c(&quot;Monday&quot;, &quot;Tuesday&quot;, &quot;Wednesday&quot;, &quot;Thursday&quot;, &quot;Friday&quot;, &quot;Saturday&quot;, &quot;Sunday&quot;)))  <br><br><br>ggplot(sleepy_summary, aes(x = Weekday, y = average_minutes_asleep, fill = Weekday)) +<br>  geom_bar(stat = &quot;identity&quot;) +<br>  labs(title = &quot;Average Total Minutes Asleep by Day of the Week&quot;, x = &quot;Day of the Week&quot;, y = &quot;Average Total Minutes Asleep&quot;) +<br>  theme_minimal() +<br>  theme(axis.text.x = element_text(angle = 45, hjust = 1))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*LigOIUu_3u4ViUos.png" /></figure><h3>Sleep Duration by Day of the Week</h3><p>This chart shows the average sleep duration (in minutes) by day of the week. Sleep duration is represented on the y-axis, with the days of the week on the x-axis. The bars, colored differently, highlight the variations in sleep duration between the days.</p><p><strong>Observations:</strong></p><p><strong>Weekday vs. Weekend Differences:</strong></p><p><strong>Saturday and Sunday</strong>: Sleep duration appears slightly higher compared to other days, suggesting that people tend to sleep more on weekends.</p><p><strong>Weekdays (Monday to Friday)</strong>: Sleep duration is generally consistent and regular, which may indicate that work or school routines stabilize sleep patterns.</p><p><strong>Longest Sleep Duration:</strong></p><p><strong>Sunday</strong> seems to have the longest average sleep duration, which could indicate people are catching up on rest at the end of the week.</p><p><strong>Shortest Sleep Duration:</strong></p><p>Some weekdays (like Tuesday or Wednesday) may have slightly shorter sleep durations compared to others.</p><p><strong>General Analysis:</strong></p><p><strong>Weekend Sleep</strong>: Weekends stand out with longer sleep times, possibly as a way to recover from the week or relax.</p><p><strong>Sleep Pattern</strong>: Weekday sleep patterns are more consistent, though some days may show reduced sleep due to stress or busyness.</p><h3>Step Total Categories Distribution</h3><p>This chart shows the <strong>distribution of step totals across various categories</strong>. The step totals are divided into ranges: <strong>0–1k</strong>, <strong>1k-5k</strong>, <strong>5k-7k</strong>, <strong>7k-10k</strong>, <strong>10k-15k</strong>, <strong>15k-20k</strong>, <strong>20k-30k</strong>, and <strong>30k+</strong>. On the y-axis, the <strong>frequency</strong> of each step category is represented, while the x-axis shows the <strong>count of each category</strong>. This visualization helps users understand the general distribution of their step totals and identifies which step ranges have higher or lower activity levels. Such analysis can be useful in evaluating daily activity patterns and observing behaviors within specific step ranges.</p><pre>dailysteps$StepCategory &lt;- cut(dailysteps$StepTotal,<br>                                breaks = c(0, 1000, 5000, 7000, 10000, 15000, 20000, 30000, Inf),<br>                                labels = c(&quot;0-1k&quot;, &quot;1k-5k&quot;, &quot;5k-7k&quot;, &quot;7k-10k&quot;, &quot;10k-15k&quot;, &quot;15k-20k&quot;, &quot;20k-30k&quot;, &quot;30k+&quot;),<br>                                right = FALSE)<br>step_counts &lt;- table(dailysteps$StepCategory)<br><br>barplot(step_counts, horiz = TRUE, las = 1,<br>        col = &quot;skyblue&quot;, xlab = &quot;Frequency&quot;, ylab = &quot;Step Total Categories&quot;,<br>        main = &quot;Step Total Categories Distribution&quot;,<br>        cex.names= 0.7,<br>        space =0.5)<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*TzZqFbCoyAXRQDJK.png" /></figure><p>The given average step count of 7,638 and the step range distribution suggest that users generally exhibit a medium level of physical activity, but with diversity in their activity levels. The average value of 7,638 points to a frequent occurrence of step counts in the 7–10k and 10–15k ranges. This implies that most users care about their health but may struggle to maintain consistent levels of activity in their daily routines.</p><p>The step count being at this level opens up opportunities to target more users. Specifically, those in the 0–1k and 1–5k step ranges may need encouragement to increase their activity. This group likely represents individuals with a sedentary lifestyle who might require motivation and support to engage in more physical activity.</p><p>On the other hand, users in the 15k+ and 20–30k step ranges, who show high levels of physical activity, are likely more energetic and goal-oriented. However, these high-level users are relatively few, which means the majority still fall into the lower activity ranges. This indicates that there is a significant opportunity to encourage the larger portion of the user base to become more active, potentially through personalized incentives or challenges.</p><p>The data shows that the majority of Bellabeat users maintain an active lifestyle, but there are still significant opportunities to drive more physical activity among users. By leveraging health-focused campaigns and personalized goals, Bellabeat can motivate users to increase their daily steps and further promote a healthy lifestyle.</p><h3>🤔ACT</h3><h3>Conclusion:</h3><p>The analysis presents interesting findings about the relationship between daily physical activity levels and sleep duration. Overall, it was observed that increasing step count boosts calorie expenditure, but there was no direct relationship between physical activity and sleep duration. Additionally, there is a strong link between intense physical activities and calorie burn, while a sedentary lifestyle (prolonged inactivity) negatively affects calorie expenditure. On the other hand, there is a strong relationship between sleep duration and total time spent in bed, with more time converted to sleep, though sleep efficiency may vary according to individual factors. 😴</p><h3>Key Insight:</h3><p>Physical activity is a significant factor in increasing calorie expenditure, but it was found that daily step count and sleep duration are not directly related. Lack of sleep or reduced sleep may be influenced not only by a lack of physical activity but also by lifestyle and environmental factors. This suggests that there is a complex relationship between sleep and activity levels, with each factor requiring separate optimization. 🔄</p><h3>Recommendation:</h3><p><strong>Encouraging Regular Body Weight Tracking</strong>:<br>One of the key limitations in the current dataset is the insufficient input of users’ body weight. To analyze the relationship between physical activity, step count, sleep duration, and weight gain or loss, it’s crucial to have consistent body weight data. By encouraging users to track and enter their body weight at regular intervals, Bellabeat could gain valuable insights into how users’ physical activities influence their weight management. This would allow Bellabeat to provide more personalized and actionable recommendations to users. A system incentive or reminder could be implemented to encourage users to log their weight consistently. 💪</p><p><strong>Setting Goals for Active Days</strong>:<br>Bellabeat users should be encouraged to set goals for increasing their step count. Data obtained from Fitbit devices indicates that more physical activity is needed to boost daily step count. Users should aim to walk more and track their activity in an increasing manner each day. Establishing a clear target for steps could help users stay motivated and improve their overall fitness. 🚶‍♀️</p><p><strong>Optimizing Sleep Duration and Quality</strong>:<br>Bellabeat and Fitbit users can be aided in making informed decisions by using data from their devices to optimize their sleep patterns. However, the analysis shows that physical activity does not have a direct effect on sleep duration and quality. Therefore, rather than focusing on increasing exercise for better sleep, users should prioritize improving their sleep hygiene. For example, developing a consistent bedtime routine and sticking to a specific sleep schedule can be recommended to help users improve sleep quality. 😴</p><p><strong>Balancing Physical Activity and Sleep</strong>:<br>It is important to maintain a balance between physical activity and sleep. Excessive physical activity can negatively affect sleep quality. Fitbit and Bellabeat users should monitor both factors and optimize their exercise and sleep routines according to their personal needs. Finding the right balance could improve overall well-being and lead to better results. ⚖️</p><p><strong>Personalized Recommendations Based on Goals</strong>:<br>Bellabeat and Fitbit can provide users with personalized recommendations by tracking their activity and sleep patterns. For instance, users with low sleep duration could receive suggestions on creating an optimal sleep environment and improving sleep conditions. These tailored recommendations will increase the devices’ effectiveness, leading to improved user experience and better outcomes. ✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62ccbf0faa39" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cyclistic Bike-Share Analysis Project]]></title>
            <link>https://medium.com/@kbrkssa/cyclistic-bike-share-analysis-project-8ac8db484dd5?source=rss-6c057671845b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ac8db484dd5</guid>
            <dc:creator><![CDATA[Kübra Kıssa]]></dc:creator>
            <pubDate>Tue, 28 Jan 2025 16:52:04 GMT</pubDate>
            <atom:updated>2025-01-28T16:54:29.582Z</atom:updated>
            <content:encoded><![CDATA[<h3>🚴 Cyclistic Bike-Share Analysis Project 🚴</h3><h3>Introduction</h3><p>Welcome to the Cyclistic Bike-Share Analysis case study! In this project, we’ll be diving deep into the data of Cyclistic, a bike-share program based in Chicago, and performing a thorough analysis to help the company grow and optimize its marketing strategy. 🚲📊</p><p>In 2023, Cyclistic is working towards a goal of maximizing annual memberships, as the company believes this will be key to its future success. With more than 5,800 bikes and 600 docking stations across Chicago, the company has a robust network. But how can we convert casual riders into annual members? 🤔</p><p>As part of the marketing analytics team, I will be investigating the differences between casual riders and annual members in terms of bike usage, and using this data to inform strategies to boost membership. But first, let’s understand the context of this project and the key steps we’ll follow: Ask, Prepare, Process, Analyze, Share, and Act. 💡</p><p><strong>Scenario 🎯</strong></p><p>I work as a junior data analyst on the Cyclistic marketing analytics team. Our goal is to help Lily Moreno, the Marketing Director, understand how casual riders and annual members use Cyclistic bikes differently. 💼</p><p>Cyclistic’s current marketing strategy has focused on general awareness, but now, the team believes the future success of the company depends on converting casual riders into annual members. Casual riders are already familiar with the service but are not yet subscribed to the annual membership. 📅</p><p>The big question is: How can we analyze historical bike trip data to uncover trends that will help us design effective marketing strategies to convert casual riders into annual members? 🤷</p><p>To do so, we’ll analyze how casual riders and annual members behave differently — what factors influence their decision to become a member, and what marketing strategies can make the difference.</p><h3>Characters &amp; Teams 👥</h3><p>Cyclistic: A bike-share program operating in Chicago, offering more than 5,800 bikes and 600 stations. Cyclistic stands out by providing not only traditional bikes but also reclining bikes, hand tricycles, and cargo bikes, making the program inclusive for riders with disabilities. 🚲💪 Around 8% of users opt for these assistive options. While many riders use the bikes for leisure, 30% use them for commuting purposes. 🌆</p><p>Lily Moreno: The Marketing Director who is responsible for campaigns and initiatives that promote the bike-share program. Her vision is to convert casual riders into annual members to drive the company’s growth. 🌟</p><p>Cyclistic Marketing Analytics Team: A team of data analysts tasked with collecting, analyzing, and reporting data to guide Cyclistic’s marketing strategy. I joined this team six months ago and am eager to contribute to Cyclistic’s mission and business goals. 📊💻</p><p>Cyclistic Executive Team: The executive team is known for their detail-oriented approach and will decide whether to approve the proposed marketing strategies. They expect clear insights backed by data and professional visualizations. 🧑💼</p><h3>About the Company 🏙️</h3><p>Founded in 2016, Cyclistic launched its successful bike-share program, which has since grown to a fleet of 5,824 bikes and 692 stations across Chicago. The bikes are geotracked and can be unlocked at one station and returned to any other within the system. 🚲🔑</p><p>Cyclistic has primarily relied on flexible pricing to attract users: one-time ride passes, full-day passes, and annual memberships. Those who purchase one-time or full-day passes are referred to as casual riders, while those who purchase annual memberships are Cyclistic members. 🔄</p><p>Cyclistic’s finance team has determined that annual members are much more profitable than casual riders. While flexible pricing has helped attract a larger customer base, the company believes that increasing the number of annual members will be crucial for long-term growth. 📈</p><p>Rather than targeting completely new customers, the company sees an opportunity to convert casual riders into annual members. Casual riders are already familiar with the service, so focusing on converting them to members could drive substantial growth. 🎯</p><p>The primary goal of this project is to design marketing strategies aimed at converting casual riders into annual members. To do this, we need to better understand how casual riders and annual members differ, why casual riders might be interested in buying a membership, and how digital media can impact marketing tactics. 📱</p><p>In the following sections, we’ll analyze historical bike trip data to identify trends that will help inform these strategies. 🚴♂️📊</p><p>Now that we’ve set the stage for our analysis, let’s dive into the first step of the data analysis process: Ask — formulating the right questions that will guide our exploration of the data. 🔍</p><h3>📝 1. ASK: Business Task and Key Questions 🎯</h3><p>As part of the Cyclistic marketing analysis, my main task is to answer a crucial question: How do annual members and casual riders use Cyclistic bikes differently? 🚴♂️🚴♀️ This will help inform the company’s marketing strategies aimed at converting casual riders into annual members.</p><p>To guide this project, I’ll focus on three key questions that will drive the overall analysis:</p><h3>1. How do annual members and casual riders use Cyclistic bikes differently?</h3><p>This question is the primary focus of this analysis. It will help identify patterns in behavior between these two groups. 🧐</p><h3><strong>2. Why would casual riders buy Cyclistic annual memberships?</strong></h3><p>Understanding the motivations behind casual riders’ decisions to upgrade will be essential in crafting targeted marketing strategies. 💡</p><h3>3. How can Cyclistic use digital media to influence casual riders to become members?</h3><p>Digital media campaigns can be an effective tool in converting casual riders into annual members. This question will focus on the role of digital marketing strategies. 📱</p><p>For this case study, I will be answering the first question: How do annual members and casual riders use Cyclistic bikes differently?</p><h3>This analysis will require:</h3><ul><li>A clear definition of the business task (what we are trying to solve),</li><li>A description of data sources and how they were acquired (e.g., which datasets I used and from where),</li><li>Documentation of any data cleaning or manipulation steps that I took to prepare the data for analysis,</li><li>A summary of the analysis (key findings and insights),</li><li>Supporting visualizations to illustrate the findings,</li><li>Top recommendations based on the data to help guide future marketing strategies. 📊🔍</li></ul><h3>Tools &amp; Technologies 🛠️</h3><p>To answer the key questions in this case study, I will use the following tools and technologies to process, analyze, and visualize the data:</p><ul><li>SQL: I will query the dataset using SQL to manipulate, filter, and aggregate the data. This will help identify trends and patterns related to bike usage across casual riders and annual members.</li><li>Google BigQuery: I will leverage Google BigQuery’s SQL interface to run the queries. BigQuery’s ability to handle large datasets will allow for efficient data processing and quicker insights.</li><li>Data Visualization Tools:Tableau: To create interactive and insightful visualizations that make the data easy to interpret and present. Tableau will be instrumental in understanding key patterns in bike usage, such as peak times and member behavior.Looker Studio: I will use Looker Studio to create dynamic dashboards and reports that provide real-time insights for decision-making. These reports will help stakeholders understand trends and findings effectively. 📊</li></ul><p>These tools will help in cleaning, preparing, and analyzing the data, providing a solid foundation for the recommendations we aim to make.</p><h3>🛠️ 2. PREPARE</h3><p>To start, the data for this analysis was obtained from Cyclistic’s historical trip data, covering the past 12 months. These datasets were made available through <a href="https://divvy-tripdata.s3.amazonaws.com/index.html">this link</a>. Each dataset contains ride data for one month, and these files were downloaded and stored locally for processing.</p><p>The main columns in the datasets are as follows:</p><ul><li>ride_id: Unique identifier for each ride</li><li>rideable_type: Type of bike used (e.g., classic bike, electric bike) 🚴</li><li>started_at: Start time of the ride 🕓</li><li>ended_at: End time of the ride 🕔</li><li>start_station_name: Station where the ride started 📍</li><li>start_station_id: Unique identifier for the start station 🏙️</li><li>end_station_name: Station where the ride ended 📍</li><li>end_station_id: Unique identifier for the end station 🏙️</li><li>member_casual: Indicates whether the rider is a member or a casual rider 💳</li></ul><p>These columns are crucial for comparing the behaviors of annual members and casual riders.</p><h3>Addressing Data Issues:</h3><p>Before performing any analysis, I will clean and filter the data to ensure that it is accurate and usable. Specifically, I will:</p><ul><li>Remove invalid records (e.g., negative ride durations, missing timestamps) ❌</li><li>Ensure consistency by verifying the format and completeness of the data 🧹</li></ul><h3>Verifying Data Integrity:</h3><p>To ensure the integrity of the data, I will:</p><ul><li>Check the date ranges to confirm the data spans the entire year of 2023 📅</li><li>Verify that ride durations and distances are logical (no negative values or unrealistic extremes) 🔍</li><li>Remove any duplicate ride IDs that may distort the analysis 🔄</li></ul><h3>Bias and Credibility:</h3><p>While the dataset is generally reliable, there are potential biases to consider:</p><ul><li>Sampling bias could arise if certain stations or areas have more frequent trips than others. 🚏</li><li>Usage bias could be introduced if specific times of day or days of the week are overrepresented in the dataset. 🕰️</li></ul><p>Despite these possible biases, the data is still robust enough to provide useful insights into the behavior of casual riders vs. annual members. 🔎</p><h3>Data Privacy and Security:</h3><p>As previously mentioned, the data is anonymized and does not contain any personally identifiable information (PII). Therefore, I will be able to analyze usage patterns without violating any privacy or security standards 🔐.</p><h3>Key Steps for Preparing the Data:</h3><ol><li>Downloading and Storing Data: I have downloaded 12 months of trip data from the Cyclistic dataset. Each month’s data is stored as a separate CSV file, which will be combined into a single dataset for analysis 📥. You can access the dataset through the following link: <a href="https://divvy-tripdata.s3.amazonaws.com/index.html">Cyclistic Trip Data</a>.</li><li>Organizing the Data: The data is organized in monthly CSV files, which will be merged to create a unified dataset that includes all 12 months of trips. 📊</li><li>Filtering and Sorting: I will filter the data to include only 2023 trips and will handle missing or inconsistent data by removing faulty records 🚫.</li><li>Verifying Data Integrity: I will cross-check the data for consistency, ensuring that ride durations and distances are reasonable and that no duplicate entries exist 🔄.</li></ol><h3>How This Helps Answer the Business Question:</h3><p>By cleaning and organizing the data, I will have a reliable dataset that I can use to identify how casual riders and annual members use the bikes differently. 📊 This will allow us to explore trends in ride duration, ride frequency, and time of day, which are critical to understanding their behavior and informing marketing strategies. 🎯</p><p>With the data now prepared, we can proceed to the next step: Process, where we will begin analyzing the dataset to uncover these trends 🔍.</p><h3>SQL Code: Creating the Table</h3><p>The first step is to create a table to store the Cyclistic bike-share trip data. This table will contain important details about each ride, such as the ride ID, type of bike used, timestamps, station information, and membership type.</p><p>Here is the SQL code used to create the table:</p><p>Creating the table to store Cyclistic bike-share trip data</p><pre>CREATE TABLE  `cylistic-446819.ayearbike.combine` ( ride_id STRING, <br>     rideable_type STRING,<br>     started_at TIMESTAMP,<br>     ended_at TIMESTAMP,<br>     start_station_name STRING,<br>     start_station_id STRING,<br>     end_station_name STRING,<br>     end_station_id STRING,<br>     start_lat FLOAT64,<br>     start_lng FLOAT64,<br>     end_lat FLOAT64,<br>     end_lng FLOAT64,<br>     member_casual STRING);</pre><h3>SQL Query: Inserting Monthly Data into the combine Table</h3><p>This query inserts all monthly trip data for 2023 into the ‘combine’ table. Each SELECT statement pulls data for a specific month, and UNION ALL combines them into a single dataset. UNION ALL includes all records, including duplicates, ensuring that all trips are recorded.</p><pre>INSERT INTO `cylistic-446819.ayearbike.combine` (ride_id, rideable_type, started_at, ended_at, start_station_name, <br>start_station_id, end_station_name, end_station_id, start_lat, <br>start_lng, end_lat, end_lng, member_casual)<br>SELECT<br>ride_id, rideable_type, started_at, ended_at, start_station_name, <br>start_station_id, end_station_name, end_station_id, start_lat,<br>start_lng, end_lat, end_lng, member_casual<br>FROM `cylistic-446819.ayearbike.202301`<br>UNION ALL<br><br>SELECT<br>ride_id, rideable_type, started_at, ended_at, start_station_name, <br>start_station_id, end_station_name, end_station_id, <br>start_lat, start_lng, end_lat, end_lng, member_casual<br>FROM `cylistic-446819.ayearbike.202302`<br>UNION ALL<br><br>SELECT <br>ride_id, rideable_type, started_at, ended_at, start_station_name, <br>start_station_id, end_station_name, end_station_id, <br>start_lat, start_lng, end_lat, end_lng, member_casual<br>FROM `cylistic-446819.ayearbike.202303`<br>UNION ALL<br><br>SELECT <br>ride_id, rideable_type, started_at, ended_at, start_station_name, <br>start_station_id, end_station_name, end_station_id, <br>start_lat, start_lng, end_lat, end_lng, member_casual<br>FROM `cylistic-446819.ayearbike.202304`<br>UNION ALL<br><br>SELECT <br>ride_id, rideable_type, started_at, ended_at, start_station_name, <br>start_station_id, end_station_name, end_station_id, <br>start_lat, start_lng, end_lat, end_lng, member_casual<br>FROM `cylistic-446819.ayearbike.202305`<br>UNION ALL<br><br>SELECT <br>ride_id, rideable_type, started_at, ended_at, <br>start_station_name, start_station_id, end_station_name, end_station_id, <br>start_lat, start_lng, end_lat, end_lng, member_casual<br>FROM `cylistic-446819.ayearbike.202306`<br>UNION ALL<br><br>SELECT <br>ride_id, rideable_type, started_at, ended_at, <br>start_station_name, start_station_id, end_station_name, end_station_id, <br>start_lat, start_lng, end_lat, end_lng, member_casual<br>FROM `cylistic-446819.ayearbike.202307`<br>UNION ALL<br><br>SELECT<br>ride_id, rideable_type, started_at, ended_at, start_station_name, <br>start_station_id, end_station_name, end_station_id, <br>start_lat, start_lng, end_lat, end_lng, member_casual<br>FROM `cylistic-446819.ayearbike.202308`<br>UNION ALL<br><br>SELECT<br>ride_id, rideable_type, started_at, ended_at, start_station_name, <br>start_station_id, end_station_name, end_station_id, <br>start_lat, start_lng, end_lat, end_lng, member_casual<br>FROM `cylistic-446819.ayearbike.202309`<br>UNION ALL<br><br>SELECT<br>ride_id, rideable_type, started_at, ended_at, start_station_name, <br>start_station_id, end_station_name, end_station_id, <br>start_lat, start_lng, end_lat, end_lng, member_casual<br>FROM `cylistic-446819.ayearbike.202310`<br>UNION ALL<br><br>SELECT<br>ride_id, rideable_type, started_at, ended_at, <br>start_station_name, start_station_id, end_station_name, end_station_id, <br>start_lat, start_lng, end_lat, end_lng, member_casual<br>FROM `cylistic-446819.ayearbike.202311`<br>UNION ALL<br><br>SELECT <br>ride_id, rideable_type, started_at, ended_at, <br>start_station_name, start_station_id, end_station_name, end_station_id, <br>start_lat, start_lng, end_lat, end_lng, member_casual<br>FROM `cylistic-446819.ayearbike.202312`</pre><h3>Data Overview</h3><p>After executing the SQL query to combine the 12 months of data, I observed that the total number of rows in the combine table is 5,719,600. After the table was created and data was inserted into the combine table from the monthly files, I performed a preview of the data. Upon inspection, I noticed that there are several NULL values present in the table. However, we will address and investigate this in the next step of the analysis.</p><pre>SELECT *<br>FROM `cylistic-446819.ayearbike.combined`<br>WHERE EXTRACT(YEAR FROM started_at) = 2022<br>OR EXTRACT(YEAR FROM ended_at) = 2024;</pre><p>The query revealed that there were 45 records in total with timestamps from either 2022 or 2024.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_MOP8ywdCDCviegr" /></figure><p>Upon further investigation, I found that these records were rides that occurred during the night of December 31, 2023, transitioning into January 1, 2024. These entries correspond to trips that span across the boundary between 2023 and 2024.</p><p>Since these 45 records are from the boundary between the two years and do not significantly impact the overall trends for 2023, I decided not to make any changes. These records were retained in the dataset as they accurately reflect the transition period between 2023 and 2024.</p><p>Using this query, I checked for duplicate values based on the ride_id.</p><pre>SELECT <br>  ride_id, COUNT(*) AS duplicate_count<br>FROM `cylistic-446819.ayearbike.combine`<br>GROUP BY ride_id<br>HAVING duplicate_count &gt; 1;</pre><p>In total, I found 57 rows duplicated ride_id values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wl0DUVXaue3UG1st" /></figure><p>To further investigate the details of these duplicates, I used the following query:</p><pre>SELECT *<br>FROM `cylistic-446819.ayearbike.combined`<br>WHERE ride_id IN (<br>    SELECT ride_id<br>    FROM `cylistic-446819.ayearbike.combined`<br>    GROUP BY ride_id<br>    HAVING COUNT(*) &gt; 1<br>)<br>ORDER BY ride_id;</pre><p>With this query, I observed that although the ride_id values are the same, there are different user entries. For this reason, I decided not to make any changes to the duplicate values. ❌🔧</p><h3>General Dataset Overview and Preparation for Analysis 🔍📊</h3><p>The queries below were used to get an overview of the dataset and prepare for my analysis. By retrieving distinct values, I aim to understand the distribution of different categories and identify any potential issues with the data, such as errors or inefficiencies. This will serve as a good starting point for further exploration.</p><ul><li>The first query retrieves distinct values of rideable_type and member_casual, helping to understand the different types of bikes and the distinction between casual riders and annual members.</li><li>The second query retrieves distinct values from the start_station_name column, which helps identify all unique starting stations for the bike rides.</li><li>The third query retrieves distinct values from the end_station_name column, allowing us to identify all unique ending stations for the bike rides.</li></ul><p>By analyzing these unique values, we can gain insights into the overall distribution and quality of the dataset. 🔎💡</p><pre>SELECT <br>DISTINCT rideable_type, member_casual<br>FROM `cylistic-446819.ayearbike.combined`;<br><br>SELECT<br>DISTINCT start_station_name<br>FROM `cylistic-446819.ayearbike.combined`;<br><br>SELECT <br>DISTINCT end_station_name<br>FROM `cylistic-446819.ayearbike.combined`;</pre><p>After reviewing the dataset, I did not observe any significant errors or anomalies. I believe we are now ready to proceed to the next stages of analysis. The dataset is queryable, reliable, and suitable for in-depth analysis. 📊🔍 ✅</p><h3>⚙️3. PROCESS</h3><h3>Data Cleaning and Transformation Process</h3><h3>Guiding Questions &amp; Answers (SQL Focused)</h3><h3>What tools are you choosing and why? 🛠️</h3><p>For this case study, I’m using SQL as my primary tool for data processing and analysis. Specifically, I’m leveraging BigQuery for querying and transforming the dataset. SQL is the best choice because:</p><ul><li>It allows for efficient querying and aggregation of large datasets directly within the database.</li><li>It’s ideal for handling data-related tasks such as null value checks, duplicate handling, and data transformation like calculating durations, day of week, distance and more.</li><li>SQL helps in ensuring the cleanliness and integrity of the dataset, providing a structured way to filter out inconsistencies or incorrect data.</li></ul><h3>Have you ensured your data’s integrity? ✅</h3><p>Yes, I have ensured the integrity of the data by taking the following steps:</p><p>Null Value Handling:</p><ul><li>I started by checking the dataset for any NULL values and identified the columns with missing data.</li><li>A plan was created to handle these missing values, either by removing the records or replacing them, based on the specific needs of the analysis.</li><li>This query counts the number of null (missing) values in each column of the cylistic-446819.ayearbike.combine table.</li><li>It provides the total count of null values for each column, helping to identify which columns have missing data.</li></ul><pre>SELECT <br>     COUNTIF(ride_id IS NULL) AS null_ride_id,<br>     COUNTIF(rideable_type IS NULL) AS null_rideable_type,<br>     COUNTIF(started_at IS NULL) AS null_started_at,<br>     COUNTIF(ended_at IS NULL) AS null_ended_at,<br>     COUNTIF(start_station_name IS NULL) AS null_start_station_name,<br>     COUNTIF(start_station_id IS NULL) AS null_start_station_id,<br>     COUNTIF(end_station_name IS NULL) AS null_end_station_name,<br>     COUNTIF(end_station_id IS NULL) AS null_end_station_id,<br>     COUNTIF(start_lat IS NULL) AS null_start_lat,<br>     COUNTIF(start_lng IS NULL) AS null_start_lng,<br>     COUNTIF(end_lat IS NULL)AS null_end_lat,<br>     COUNTIF(end_lng IS NULL)AS null_end_lng,<br>     COUNTIF(member_casual IS NULL)AS null_member_casual<br>     FROM `cylistic-446819.ayearbike.combine`</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nsE61rPRMO4xz5bQ" /></figure><p>I observed the presence of null values in the dataset. 🚨 Specifically, there are thousands of null values in the following columns:</p><ul><li>start_station_name 📍</li><li>start_station_id 🏙️</li><li>end_station_name 📍</li><li>end_station_id 🏙️</li><li>end_lat 🌍</li><li>end_lng 🌍</li></ul><p>In contrast, only 14 rows contain null values in the other columns. 🤔</p><p>The number of null values is quite high, and I believe removing these rows would negatively impact my analysis. 😕 There are 1,387,898 rows with null values, which account for 24.26% of the total dataset. 📊</p><p>To avoid introducing errors into the analysis, I decided to explore different ways to handle the null values rather than simply removing them. 🔄</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1BiHY9yd8JYnddFz" /></figure><p>However, I have chosen to delete the 14 rows where all columns are null, as these rows don’t provide any useful information. 🚮</p><pre>DELETE FROM `cylistic-446819.ayearbike.combine`<br> WHERE <br>  ride_id IS NULL AND<br>  rideable_type IS NULL AND<br>  started_at IS NULL AND<br>  ended_at IS NULL AND<br>  start_station_name IS NULL AND<br>  start_station_id IS NULL AND<br>  end_station_name IS NULL AND<br>  end_station_id IS NULL AND<br>  start_lat IS NULL AND<br>  start_lng IS NULL AND<br>  end_lat IS NULL AND<br>  end_lng IS NULL AND<br>  member_casual IS NULL;</pre><p>In order to avoid issues during the visualization and analysis process, I decided to replace the thousands of null values in the start_station_name, start_station_id, end_station_id, and end_station_name columns with ‘Unknown’.🚲💡</p><p>This approach allows me to represent the missing data instead of completely ignoring it, ensuring that the integrity of the data remains intact while enabling accurate analysis. 🔍✅</p><p>However, before proceeding with this step, I wanted to check if the dataset already contains any existing ‘Unknown’ values. To do this, I ran a query, and the result showed that there are no ‘Unknown’ values in the dataset. 📊❌</p><pre>SELECT *<br>FROM `cylistic-446819.ayearbike.combined`<br>WHERE <br> start_station_id IN (&#39;0&#39;, &#39;Not Available&#39;, &#39;Unknown&#39;) OR<br> end_station_id IN (&#39;0&#39;, &#39;Not Available&#39;, &#39;Unknown&#39;) OR<br> start_station_name IN (&#39;0&#39;, &#39;Not Available&#39;, &#39;Unknown&#39;) OR<br> end_station_name IN (&#39;0&#39;, &#39;Not Available&#39;, &#39;Unknown&#39;) OR<br> ride_id IN (&#39;0&#39;, &#39;Not Available&#39;, &#39;Unknown&#39;) OR<br> rideable_type IN (&#39;0&#39;, &#39;Not Available&#39;, &#39;Unknown&#39;) OR<br> member_casual IN (&#39;0&#39;, &#39;Not Available&#39;, &#39;Unknown&#39;);</pre><p>As a result, there are no factors that would prevent me from replacing the null values with ‘Unknown’, nor anything that could lead to incorrect analysis. This ensures that my approach won’t interfere with the accuracy of the analysis or introduce biases. 👍🔧</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_MQxc73MCLWIRZl_" /></figure><p>With the query below, I replaced the null values with ‘Unknown’. 🔄❓</p><pre>UPDATE `cylistic-446819.ayearbike.combined`<br>SET<br> start_station_id = COALESCE(start_station_id, &#39;Not Available&#39;)<br>WHERE <br> start_station_id IS NULL;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XTg-pTXvtX1G5a8Q" /></figure><pre>UPDATE `cylistic-446819.ayearbike.combined`<br>SET<br> start_station_name = COALESCE(start_station_name, &#39;Not Available&#39;)<br>WHERE <br> start_station_name IS NULL;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y3F_ihMxB52maIAI" /></figure><pre>UPDATE `cylistic-446819.ayearbike.combined`<br>SET<br> end_station_id = COALESCE(end_station_id, &#39;Not Available&#39;)<br>WHERE <br> end_station_id IS NULL;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NfdDhtzXC819yRV_" /></figure><pre>UPDATE `cylistic-446819.ayearbike.combined`<br>SET<br> end_station_name = COALESCE(end_station_name, &#39;Not Available&#39;)<br>WHERE <br> end_station_name IS NULL;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eVFRbEWyenRdp15a" /></figure><p>Date Range Validation: I validated that the start time (started_at) is not later than the end time (ended_at). I identified records with inconsistent timestamps where the start time was after the end time and removed these erroneous entries.</p><p>For data validation, I examined the started_at and ended_at values. ⏱️ I queried the dataset for records where the started_at value was later than the ended_at value.</p><pre>SELECT *<br>    FROM `cylistic-446819.ayearbike.combined`<br>    WHERE started_at &gt; ended_at;</pre><p>After running the query, I found that 268 rows had an issue where the started_at time was later than the ended_at time. 🕒 Upon further inspection of these records, I noticed that the ride durations were either recorded in seconds or days, which seemed incorrect. 🚨 Since I considered these records to be erroneous, I decided to remove them from the table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*14uJenYdO4MImDDp" /></figure><p>🧹 I used the following query to perform this operation:</p><pre>DELETE FROM `cylistic-446819.ayearbike.combined`<br>     WHERE started_at &gt; ended_at;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4Y_LgdVAuTq3nGi-" /></figure><p>Data Formatting: I applied a trim operation across the entire dataset to remove any extra spaces or inconsistencies in text fields, ensuring consistency across all columns.</p><pre>UPDATE `cylistic-446819.ayearbike.combine`<br>     SET<br>     ride_id=TRIM(ride_id),<br>     rideable_type=TRIM(rideable_type),<br>     start_station_name=TRIM(start_station_name),<br>     start_station_id=TRIM(start_station_id),<br>     end_station_name=TRIM(end_station_name),<br>     end_station_id=TRIM(end_station_id),<br>     member_casual=TRIM(member_casual)<br>     WHERE <br>     TRUE;</pre><p>With these steps, I ensured that the data was consistent, accurate, and ready for analysis. 🛡️</p><p>Duration Calculation: I calculated the ride duration by subtracting the started_at timestamp from the ended_at timestamp. This calculated duration (in minutes) was then added as a new column in the dataset.</p><p>Adding a new column duration_min to the table to store the trip duration in minutes</p><pre>ALTER TABLE `cylistic-446819.ayearbike.combined`<br>    ADD COLUMN duration_min NUMERIC;</pre><p>Updating the duration_min column by calculating the difference between ended_at and started_at time stamps. The duration is calculated in minutes using the TIMESTAMP_DIFF function.</p><pre>UPDATE `cylistic-446819.ayearbike.combined`<br>    SET <br>     duration_min = TIMESTAMP_DIFF(ended_at,started_at, MINUTE)<br>    WHERE TRUE;</pre><p>5,719,318 rows have been updated</p><p>Date and Time Features: I added several new features to the dataset:</p><p>day_of_week: Using the WEEKDAY() function, I calculated which day of the week each ride started (Sunday = 1, Saturday = 7).</p><p>Adding a new column weekday_name to store the day of the week (e.g., Monday, Tuesday, etc.)</p><pre>ALTER TABLE `cylistic-446819.ayearbike.combined`<br>    ADD COLUMN weekday_name STRING;</pre><p>Updating the weekday_name column by extracting the weekday name from the started_at timestamp The FORMAT_DATE(‘%A’, DATE(started_at)) function formats the started_at timestamp into the full weekday name (e.g., ‘Monday’)</p><pre>UPDATE `cylistic-446819.ayearbike.combined`<br>    SET <br>     weekday_name = FORMAT_DATE(&#39;%A&#39;, DATE(started_at))<br>    WHERE TRUE;</pre><p>month: I extracted the month from the started_at timestamp.</p><p>Adding a new column month_name to store the full name of the month (e.g., January, February, etc.)</p><pre>ALTER TABLE `cylistic-446819.ayearbike.combined`<br>    ADD COLUMN month_name STRING;</pre><p>Updating the month_name column by extracting the month name from the started_at timestamp The FORMAT_DATE(‘%B’, DATE(started_at)) function formats the started_at timestamp into the full month name (e.g., ‘January’, ‘February’, etc.)</p><pre>UPDATE `cylistic-446819.ayearbike.combined`<br>    SET <br>     month_name = FORMAT_DATE(&#39;%B&#39;, DATE(started_at))<br>    WHERE TRUE;</pre><p>hour: I extracted the hour of the day from the started_at timestamp. Adding a new column hour to store the hour part of the started_at timestamp</p><pre>ALTER TABLE `cylistic-446819.ayearbike.combined`<br>    ADD COLUMN hour INT64;</pre><p>Updating the hour column by extracting the hour from the started_at timestamp The EXTRACT(HOUR FROM started_at) function extracts the hour (0–23) from the started_at timestamp</p><pre>UPDATE `cylistic-446819.ayearbike.combined`<br>    SET <br>     hour = EXTRACT(HOUR FROM started_at)<br>    WHERE TRUE;</pre><p>Duration Filters: Upon reviewing the ride durations in the dataset, I noticed some data that I believe might be incorrect. Specifically, there are rides that last for 0–1 minutes, 4–5 hours, and even more than 24 hours. I believe that rides lasting less than 2 minutes or longer than 3 hours may be due to system errors or exceptional cases. 🚨</p><p>It seems unreasonable for a user to take a ride lasting less than 2 minutes. Similarly, a ride lasting more than 3 hours might indicate a system error or, if the data is correct, could be an extremely rare case.</p><pre>SELECT <br>   ride_id,<br>   TIMESTAMP_DIFF(ended_at, started_at, SECOND) / 60 AS ride_lenght_min<br>  FROM `cylistic-446819.ayearbike.combined`<br>  WHERE <br>   TIMESTAMP_DIFF(ended_at, started_at, SECOND) &lt; 120 <br>   OR TIMESTAMP_DIFF(ended_at, started_at, SECOND) &gt; 10800</pre><p>The number of records with such abnormal ride durations is 276,955 rows, which represents 4.84% of the total dataset. 🧑💻</p><p>Given that 4.84% data loss seems to be within a reasonable range and won’t affect the overall distribution of the analysis, I decided to remove these records. ✅</p><pre>DELETE FROM `cylistic-446819.ayearbike.combined`<br> WHERE <br>  TIMESTAMP_DIFF(ended_at, started_at, SECOND) &lt; 120   -- Ride duration less than 2 minutes<br>  OR TIMESTAMP_DIFF(ended_at, started_at, SECOND) &gt; 10800;  -- Ride duration greater than 3 hours</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jBY8WQmJrj49BCz_" /></figure><p>276,955 rows were removed from the dataset. 🗑️</p><p>Z-Score Check: I also checked for outliers using the Z-Score method. This helped me identify any extreme values in the dataset and decide if they should be excluded. Records with Z-scores greater than 3 or less than -3 were flagged for further review to ensure that the extreme values were valid.</p><pre>WITH z_scores AS (<br> SELECT <br>  ride_id,<br>  TIMESTAMP_DIFF(ended_at, started_at, SECOND) / 60 AS ride_length_min, <br>  AVG(TIMESTAMP_DIFF(ended_at, started_at, SECOND) / 60) OVER() AS avg_duration_min,  <br>  STDDEV(TIMESTAMP_DIFF(ended_at, started_at, SECOND) / 60) OVER() AS stddev_duration_min <br>FROM `cylistic-446819.ayearbike.combined`<br>)<br>SELECT <br> ride_id,<br> ride_length_min,<br> (ride_length_min - avg_duration_min) / stddev_duration_min AS z_score  <br>FROM z_scores<br>WHERE <br> ABS((ride_length_min - avg_duration_min) / stddev_duration_min) &gt;= 3;</pre><p>A total of 111,059 data points were flagged as outliers based on the Z-Score analysis. However, upon further inspection of the data, I observed that rides with durations of 60 minutes and 179 minutes were also flagged as outliers.</p><p>Although these values were identified as outliers according to the Z-Score criteria, I consider them to be reasonable and typical ride durations. Therefore, I decided not to make any changes to these records, as they appear to be valid and within normal usage. ✅</p><p>Station Validation: I verified the station names and checked whether any test stations were included.</p><pre>SELECT <br> start_station_name,<br> end_station_name<br>FROM `cylistic-446819.ayearbike.combined`<br>WHERE start_station_name LIKE &#39;%test%&#39; <br> OR end_station_name LIKE &#39;%test%&#39;<br>ORDER BY start_station_name, end_station_name;</pre><p>No ‘test’ station data is found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2KiT4gdRXleopy0O" /></figure><p>I queried the unique start_station_name 🚉 and end_station_name 🚉 values to check for any potential errors or inconsistencies in the station names 🔍✨.</p><pre>SELECT DISTINCT start_station_name<br>FROM `cylistic-446819.ayearbike.combine`<br>WHERE start_station_name IS NOT NULL<br>ORDER BY start_station_name;</pre><p>I didn’t observe any start_station_name 🚉 that seemed erroneous or stood out as incorrect ❌👀.</p><pre>SELECT DISTINCT end_station_name<br>FROM `cylistic-446819.ayearbike.combine`<br>WHERE end_station_name IS NOT NULL<br>ORDER BY end_station_name;</pre><p>I didn’t observe any end_station_name 🚉 that seemed erroneous or stood out as incorrect ❌👀.</p><p>Distance Calculation: I calculated the distance (in miles) for each trip using geographic coordinates (start_lat, start_lng, end_lat, end_lng). This calculated distance was then added as a new column in the dataset.</p><pre>ALTER TABLE `cylistic-446819.ayearbike.combine`<br>ADD COLUMN distance_miles FLOAT64; <br><br>UPDATE `cylistic-446819.ayearbike.combine`<br>UPDATE `cylistic-446819.ayearbike.combine`<br>SET distance_miles = (6371 * ACOS(<br>                    GREATEST(<br>                      -1.0, <br>                      LEAST(<br>                        1.0, <br>                        COS(start_lat * 3.141592653589793 / 180) * COS(end_lat * 3.141592653589793 / 180) * COS((end_lng - start_lng) * 3.141592653589793 / 180) + <br>                        SIN(start_lat * 3.141592653589793 / 180) * SIN(end_lat * 3.141592653589793 / 180)<br>                      )<br>                    )<br>                  )) * 0.621371<br>WHERE start_lat IS NOT NULL<br>AND start_lng IS NOT NULL<br>AND end_lat IS NOT NULL<br>AND end_lng IS NOT NULL;<br></pre><p>Zero Distance Rides: I identified rides with zero miles 🚲 and reviewed these records, excluding the unknownvalues.</p><pre>SELECT<br>  member_casual,  <br>  COUNT(*) AS total_rides,  <br>  started_at,  <br>  ended_at,    <br>  distance_miles,  <br>  start_station_name,  <br>  end_station_name     <br>FROM <br>  `cylistic-446819.ayearbike.combine`<br>WHERE <br>  distance_miles = 0  <br>  AND start_station_name != &#39;Unknown&#39;  <br>  AND end_station_name != &#39;Unknown&#39;    <br>GROUP BY <br>  member_casual, started_at, ended_at, distance_miles, start_station_name, end_station_name  <br>ORDER BY<br>  member_casual, started_at;</pre><p>After considering the started_at and ended_at times, I found no issues with these rides. It seems that the users of these rides simply started and ended their trips at the same station. Therefore, I decided not to make any changes to the records with zero-mile distances. ✨</p><p>I ran a query to check for any negative miles 🚫 in the dataset. no records with negative distance values were found. This suggests that all recorded trip distances are valid and there are no issues with incorrectly recorded negative mileage.</p><pre>SELECT<br>  member_casual,  <br>  COUNT(*) AS total_rides,  <br>  started_at,  <br>  ended_at,    <br>  distance_miles,  <br>  start_station_name,  <br>  end_station_name     <br>FROM <br>  `cylistic-446819.ayearbike.combine`<br>WHERE <br>  distance_miles &lt; 0  <br>  AND start_station_name != &#39;Unknown&#39;  <br>  AND end_station_name != &#39;Unknown&#39;    <br>GROUP BY <br>  member_casual, started_at, ended_at, distance_miles, start_station_name, end_station_name  <br>ORDER BY<br> member_casual, started_at;</pre><p>No records with negative distance values were found. This suggests that all recorded trip distances are valid and there are no issues with incorrectly recorded negative mileage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r2m9KpklanIuH0Qz" /></figure><p>These cleaning steps ensured the dataset was free from inconsistencies, extreme outliers, and irrelevant records, making it ready for detailed analysis. 🧼 With these steps, I ensured that the data was consistent, accurate, and ready for analysis. 🛡️</p><h3>How can you verify that your data is clean and ready to analyze? 🔍</h3><p>To verify the cleanliness of the data, I performed several checks:</p><ul><li>Null Value Check: I ran queries to confirm that NULL values were handled properly across all columns, and ensured that no essential column was left incomplete.</li><li>Data Range and Consistency: I validated that all start and end times were logically correct and that there were no entries where start time &gt; end time.</li><li>Outlier Detection: I checked for duration extremes (less than 2 minutes and greater than 180 minutes), ensuring that these rides were either cleaned or reviewed for correctness.</li><li>Station Consistency: I checked the station names to ensure they were consistent and verified the presence of any test stations.</li><li>Distance Calculation: I verified the distance values to ensure that all calculated distances made sense (no negative or zero distances).</li></ul><p>These validation steps gave me confidence that the dataset is clean, consistent, and ready for in-depth analysis. 🔎</p><h3>Conclusion</h3><p>By following the steps outlined above, I’ve effectively cleaned and transformed the dataset, ensuring its integrity and readiness for analysis. With the data now well-structured and validated, I am prepared to move on to the Analyze phase. 📊🔍</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4TMdedDbDADMuk2f" /></figure><h3>4. ANALYSIS 🔍📊</h3><p>Now that the data has been cleaned and prepared, it’s time to dive into the analysis! 🏊 I used SQL, Tableau, and Looker Studio to explore various trends and relationships in the dataset. Below are the key analyses and insights I focused on:</p><h3>Rideable Types Analysis 🚲🔎</h3><p>I analyzed the rideable type distribution across the dataset, exploring the frequency of different ride types and how each type varies based on membership (Member vs. Casual).</p><pre>SELECT<br> rideable_type,<br> member_casual,  -- User type (either &#39;member&#39; or &#39;casual&#39;)<br> COUNT(*) AS num_rides,<br> ROUND(COUNT(*) * 100.0 / (SELECT COUNT(*) FROM `cylistic-446819.ayearbike.combined` WHERE member_casual = member_casual), 2) AS    ride_percentage <br>FROM `cylistic-446819.ayearbike.combined`<br>GROUP BY rideable_type, member_casual<br>ORDER BY rideable_type, member_casual;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qi2RgZnWqQoNH_te" /></figure><p>The usage rate of electric bikes is 50.93%, classic bikes make up 47.73%, and docked bikes account for 1.33%. 🚲🔋</p><p>The analysis of rideable_type for member users shows that classic bikes are the most frequently used (%50.35), followed by electric bikes (49.65%). 🚴🔋</p><pre>SELECT<br>  rideable_type, <br>  COUNT(*) AS num_rides,  <br>  ROUND(COUNT(*) * 100.0 / (SELECT COUNT(*) FROM `cylistic-446819.ayearbike.combined` WHERE member_casual = &#39;member&#39;), 2) AS ride_percentage  <br>FROM `cylistic-446819.ayearbike.combined`<br>WHERE member_casual = &#39;member&#39;  <br>GROUP BY rideable_type  <br>ORDER BY ride_percentage DESC;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iD81uamdtHWt_a3H" /></figure><p>The analysis of rideable_type for casual users shows that electric bikes are the most frequently used (53.2%), followed by classic bikes (43.09%) and docked bikes (3.71%). 🚴🔋</p><pre>SELECT<br>  rideable_type, <br>  COUNT(*) AS num_rides, <br>  ROUND(COUNT(*) * 100.0 / (SELECT COUNT(*) FROM `cylistic-446819.ayearbike.combined` WHERE member_casual = &#39;casual&#39;), 2) AS ride_percentage <br>FROM `cylistic-446819.ayearbike.combined`<br>WHERE member_casual = &#39;casual&#39; <br>GROUP BY rideable_type <br>ORDER BY ride_percentage DESC;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wRsoY9b0mYyoyRNb" /></figure><p>I also examined the monthly distribution of rideable types to better understand seasonal trends and how user preferences shift throughout the year. 📅</p><pre>SELECT<br>  month_name,<br>  rideable_type,<br>  COUNT(*) AS num_rides<br>FROM `cylistic-446819.ayearbike.combined`<br>GROUP BY month_name, rideable_type<br>ORDER BY month_name, rideable_type;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*95bED2iDPlyVwFIm" /></figure><p>After reviewing the last four query outputs and their respective charts, I made the following observations:</p><ul><li>For member users, classic bikes are slightly more popular, with a close distribution between electric bikesand classic bikes (50.65% vs. 49.35%). This indicates that member users tend to use both bike types almost equally. 🚴🔋</li><li>For casual users, electric bikes dominate, which reflects a clear preference towards more modern bike types among occasional riders. ⚡🚲</li><li>Notably, member users do not appear to use docked bikes at all, as the usage rate for this bike type is negligible. 🚫🚲</li></ul><p>When examining seasonal usage patterns, we observe the following:</p><ul><li>In spring and summer, both member and casual users show similar patterns, with an increase in usage for both electric and classic bikes. 🌷☀️</li><li>However, during the winter months, bike usage significantly drops, indicating a clear seasonal trend in cycling preferences. ❄️🚲</li><li>The docked bikes show a completely different trend: from January to August, there’s a slow and steady increase in usage each month. Yet, in August, usage drops to zero, suggesting a system anomaly, data issues, or a shift in user preferences. 📉</li><li>Furthermore, docked bikes have a very low usage rate compared to the other bike types, accounting for only 1.33% of total rides. 📉</li></ul><p>The complete cessation of docked bike usage after August could be due to missing data, system errors, or changes in user preferences.</p><h3>Daily Ride Distribution by Member and Casual Riders 🌞🌙</h3><p>I analyzed the daily distribution of rides, comparing Member and Casual rider activity patterns, to identify peak ride times and usage trends.</p><pre>SELECT<br>  weekday_name, <br>  member_casual,  <br>  COUNT(*) AS total_rides  <br>FROM<br>  `cylistic-446819.ayearbike.combine`<br>GROUP BY<br>  weekday_name, member_casual  <br>ORDER BY<br> CASE<br>  WHEN weekday_name = &#39;Sunday&#39; THEN 1<br>  WHEN weekday_name = &#39;Monday&#39; THEN 2<br>  WHEN weekday_name = &#39;Tuesday&#39; THEN 3<br>  WHEN weekday_name = &#39;Wednesday&#39; THEN 4<br>  WHEN weekday_name = &#39;Thursday&#39; THEN 5<br>  WHEN weekday_name = &#39;Friday&#39; THEN 6<br>  WHEN weekday_name = &#39;Saturday&#39; THEN 7<br>END,<br>member_casual;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qOPxIe509Zt2Jg6K" /></figure><p>Member users tend to ride their bikes more evenly throughout the week, with a noticeable peak during weekdays. This suggests that member riders, who are likely to be regular users (e.g., commuting to work or running errands), incorporate biking into their daily routine, making it a part of their weekly schedule. 🚴🏙️ On the other hand, casual users show a clear preference for weekend rides, with a significant surge in bike usage on Saturdays and Sundays. This indicates that casual riders may view biking as a leisure activity or weekend hobby, rather than part of their everyday routine. 🌞🚴</p><h3>Monthly Ride Distribution by Member and Casual Riders 📈</h3><p>I tracked the total rides per month, giving insight into usage patterns over the course of the year and highlighting any trends or anomalies in ride frequency.</p><pre>SELECT month_name,<br>  member_casual,<br>  COUNT(*) as total_rides<br>FROM `cylistic-446819.ayearbike.combine`<br>GROUP BY <br>  member_casual, month_name<br>ORDER BY<br>  CASE<br>   WHEN month_name=&#39;January&#39; THEN 1<br>   WHEN month_name=&#39;February&#39; THEN 2<br>   WHEN month_name=&#39;March&#39; THEN 3<br>   WHEN month_name=&#39;April&#39; THEN 4<br>   WHEN month_name=&#39;May&#39; THEN 5<br>   WHEN month_name=&#39;June&#39; THEN 6<br>   WHEN month_name=&#39;July&#39; THEN 7<br>   WHEN month_name=&#39;August&#39; THEN 8<br>   WHEN month_name=&#39;September&#39; THEN 9<br>   WHEN month_name=&#39;October&#39; THEN 10<br>   WHEN month_name=&#39;November&#39; THEN 11<br>   WHEN month_name=&#39;December&#39; THEN 12<br>  END,<br>  member_casual;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*j3Krak_40_b7EiUt" /></figure><p>For both member and casual users, bike usage tends to increase during the spring and summer months. 🚴 However, there are some differences between the two groups:</p><p>The highest usage month for members is August, indicating a peak in cycling activity during the late summer. For casual users, the most active month is July, suggesting that they prefer cycling during the early summer months.</p><p>These trends provide insights into seasonal patterns, helping to understand when bike usage is at its highest for each user group.</p><h3>Hourly Ride Distribution by Member and Casual Riders 🕒</h3><p>I explored the hourly distribution of rides, revealing peak times throughout the day. This helped identify which hours had the highest volume of rides and when usage dropped.</p><pre>SELECT<br>  hour,<br>  member_casual,<br>  COUNT (*) as total_ride<br>FROM `cylistic-446819.ayearbike.combine`<br>GROUP BY member_casual, hour<br>ORDER BY hour, member_casual;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LIhElZeM6OaJihas" /></figure><p>Member users show high bike usage during the morning hours (6:00 AM — 9:00 AM) and evening hours (3:00 PM — 6:00 PM). I believe this is due to daily routines, such as commuting to work or school, which contribute to increased usage during these times.</p><p>On the other hand, casual users display more flexible usage throughout the day. There is a noticeable rise in activity between morning hours and 12:00 PM — 5:00 PM, with bike usage dropping in the evening, particularly after 6:00 PM. This suggests that casual users tend to cycle more during their free time, and as evening activities decrease, the overall usage drops.</p><h3>Weekend vs. Weekday Ride Distribution by Member and Casual Riders 🌄🌆</h3><p>I compared ride data from weekends and weekdays to see if there are significant differences in user behavior based on the day of the week.</p><pre>SELECT <br>  CASE <br>    WHEN EXTRACT(DAYOFWEEK FROM started_at) IN (1, 7) THEN &#39;Weekend&#39; <br>    ELSE &#39;Weekday&#39;  <br>  END AS day_type,  <br>  member_casual,  <br>  COUNT(*) AS total_rides  <br>FROM <br>  `cylistic-446819.ayearbike.combine`<br>GROUP BY <br>  day_type, member_casual  <br>ORDER BY <br>  day_type, member_casual;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/0*cmuEMOR3Ih9bwMnL" /></figure><p>The decrease in bike usage among member users on weekends is quite significant compared to weekdays, showing a 68.2% drop in weekend usage. This suggests that members are more likely to integrate bike rides into their weekday routines, especially related to work or school.</p><p>On the other hand, the decrease in weekend usage for casual users is much lower, at 43.3%. Casual riders generally use bikes more flexibly, which is likely related to tourism or social activities. Therefore, their bike usage habits do not show a sharp decline, even on weekends.</p><h3>Seasonal Ride Distribution by Member and Casual Riders 🌞❄️</h3><p>I analyzed the seasonal usage patterns of member and casual riders, looking at the usage intensity across the summer, fall, spring, and winter months. Both groups show a similar pattern in their seasonal ride usage.</p><pre>SELECT<br>  member_casual,<br>  CASE<br>    WHEN EXTRACT(MONTH FROM started_at) IN (12, 1, 2) THEN &#39;Winter&#39;<br>    WHEN EXTRACT(MONTH FROM started_at) IN (3, 4, 5) THEN &#39;Spring&#39;<br>    WHEN EXTRACT(MONTH FROM started_at) IN (6, 7, 8) THEN &#39;Summer&#39;<br>    WHEN EXTRACT(MONTH FROM started_at) IN (9, 10, 11) THEN &#39;Fall&#39;<br>  END AS season,<br>  COUNT(*) AS total_rides<br>FROM<br>  `cylistic-446819.ayearbike.combine_with_distance`<br>WHERE<br>  started_at IS NOT NULL<br>GROUP BY<br>  member_casual, season<br>ORDER BY<br>  member_casual, season;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1el3xx1sqhKL5qBI" /></figure><p>During the summer and spring months, both member and casual riders exhibit higher usage rates, likely due to favorable weather conditions that encourage outdoor activities. As the fall and winter months approach, there is a notable decline in bike usage for both groups, which could be attributed to colder weather and fewer outdoor activities.</p><p>This similarity in seasonal trends suggests that external factors such as weather conditions have a significant influence on the bike usage patterns for both members and casual riders. However, the magnitude of the usage drop may vary slightly based on individual needs and lifestyle differences.</p><h3>Average Ride Duration: Member vs Casual Riders ⏱️</h3><p>I calculated the average ride duration for both Member and Casual riders. This analysis helped me understand typical ride lengths and any significant differences between the two groups.</p><pre>SELECT member_casual,<br>AVG(duration_min) AS average_ride_lenght<br>FROM `cylistic-446819.ayearbike.combine`<br>GROUP BY member_casual<br>ORDER BY member_casual DESC;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/0*VnmhGf8F0H9VYf16" /></figure><p>The average ride duration for member users is 11.62 minutes, while for casual users, it’s significantly higher at 18.83 minutes.</p><p>This suggests that members tend to use bikes primarily for shorter commutes, possibly for daily transportation needs, such as getting to work or school. On the other hand, casual riders seem to use bikes for longer rides, likely for leisure activities, exploration, or recreation, which aligns with the longer ride durations.</p><p>This difference in ride duration might reflect distinct usage patterns based on the user types. Members likely prioritize convenience and practicality, while casual riders might have more flexible schedules, allowing for longer and more exploratory rides. This insight can inform future recommendations for bike-sharing services, targeting shorter, daily commutes for members and longer, more leisurely rides for casual users.</p><h3>Most Frequent Start and End Stations 🚉🚏</h3><p>I examined the most frequent start and end stations to identify popular routes and stations that are frequently used by riders.</p><pre>SELECT <br>  start_station_name,  <br>  end_station_name,    <br>  COUNT(*) AS total_rides  <br>FROM <br>  `cylistic-446819.ayearbike.combine`<br>WHERE <br>  start_station_name != &#39;Unknown&#39; <br>  AND end_station_name != &#39;Unknown&#39;<br>GROUP BY <br>  start_station_name, end_station_name  <br>ORDER BY <br>  total_rides DESC  <br>LIMIT 10;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0XeERleT8pGO7hMJ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Gc_kMtZy8qx6CqbY" /></figure><pre>SELECT <br>  member_casual,  <br>  start_station_name, <br>  start_lat,  <br>  start_lng   <br>FROM<br>  `cylistic-446819.ayearbike.combine`<br>WHERE<br>  start_station_name != &#39;Unknown&#39;  <br>GROUP BY<br> member_casual, start_station_name, start_lat, start_lng  <br>ORDER BY<br> member_casual, start_station_name;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jZmmCAi8VBsVaFOK" /></figure><pre>SELECT <br>  member_casual,  <br>  end_station_name,  <br>  end_lat,  <br>  end_lng   <br>FROM<br>  `cylistic-446819.ayearbike.combine`<br>WHERE<br>  end_station_name != &#39;Unknown&#39;  <br>GROUP BY<br>  member_casual, end_station_name, end_lat, end_lng  <br>  member_casual, end_station_name;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vyrWPl9Z3I7frFKT" /></figure><h3>Member vs. Casual Rider Activity on the Map 🗺️</h3><p>Using geospatial data, I explored Member and Casual rider activity on the map, identifying areas with the highest concentration of rides and determining regional trends.</p><ul><li>The top-left image shows the starting points for member users.</li><li>The top-right image shows the starting points for casual users.</li><li>The bottom-left image shows the ending points for member users.</li><li>The bottom-right image shows the ending points for casual users.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*DdmmsBD4Uyb88eMg" /></figure><h3>Duration Analysis by Membership Type ⏳</h3><p>I compared ride durations for Member and Casual riders, helping to determine if there were any significant differences in average ride time between the two groups.</p><pre>SELECT <br>  member_casual,  -- User type: &#39;member&#39; or &#39;casual&#39;<br>  CASE <br>    WHEN duration_min &gt;= 0 AND duration_min &lt; 5 THEN &#39;0-5 min&#39;<br>    WHEN duration_min &gt;= 5 AND duration_min &lt; 10 THEN &#39;5-10 min&#39;<br>    WHEN duration_min &gt;= 10 AND duration_min &lt; 20 THEN &#39;10-20 min&#39;<br>    WHEN duration_min &gt;= 20 AND duration_min &lt; 30 THEN &#39;20-30 min&#39;<br>    WHEN duration_min &gt;= 30 AND duration_min &lt; 40 THEN &#39;30-40 min&#39;<br>    WHEN duration_min &gt;= 40 AND duration_min &lt; 50 THEN &#39;40-50 min&#39;<br>    WHEN duration_min &gt;= 50 AND duration_min &lt; 60 THEN &#39;50-60 min&#39;<br>    WHEN duration_min &gt;= 60 THEN &#39;60+ min&#39;<br>    ELSE &#39;Unknown&#39;  <br>  END AS duration_category,  <br>  COUNT(*) AS total_rides  <br>FROM<br>  `cylistic-446819.ayearbike.combine`<br>WHERE<br>  member_casual IN (&#39;member&#39;, &#39;casual&#39;)  <br>  AND duration_min IS NOT NULL  <br>GROUP BY <br>  member_casual, duration_category  <br>ORDER BY <br>  member_casual, duration_category;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y5NTORlYA_jhLt1O" /></figure><p>Upon analyzing the ride durations for both Member and Casual riders, it is clear that there are notable differences in how each group utilizes the bike-sharing service.</p><p>For Member riders, the most common ride durations are within the 5–10 minutes and 10–20 minutes ranges, with a decrease in usage as the duration increases. The pattern suggests that Members likely use the service for short, routine trips, such as commuting or running errands, which aligns with their frequent, practical usage. 🚴🚴</p><p>On the other hand, Casual riders tend to have a more varied ride duration. Their most frequent ride durations are 10–20 minutes and 5–10 minutes, with a significant decrease in usage after that. This suggests that Casual riders are more likely to use the bikes for recreational purposes or longer trips, where they can afford more flexibility in their ride times. 🌳🚴</p><p>Overall, the data reveals that Member riders generally prefer shorter trips, while Casual riders have a broader range of ride durations, likely due to their more flexible and leisurely use of the bike-sharing service. 🚴</p><h3>Ride Distances by Membership Type (in Miles) 🌍</h3><p>In this section, we analyze the ride distances by Member and Casual riders to understand if there are significant differences in the distances covered by each group.</p><pre>SELECT <br>  member_casual,  <br>CASE <br>    WHEN distance_miles &lt; 1 THEN &#39;&lt;1 Mile&#39;<br>    WHEN distance_miles &gt;= 1 AND distance_miles &lt; 2 THEN &#39;1-2 Miles&#39;<br>    WHEN distance_miles &gt;= 2 AND distance_miles &lt; 3 THEN &#39;2-3 Miles&#39;<br>    WHEN distance_miles &gt;= 3 AND distance_miles &lt; 4 THEN &#39;3-4 Miles&#39;<br>    WHEN distance_miles &gt;= 5 AND distance_miles &lt; 10 THEN &#39;5-10 Miles&#39;<br>    ELSE &#39;10+ Miles&#39;<br>  END AS distance_category,  <br>  SUM(distance_miles) AS total_distance_miles,  <br>  COUNT(*) AS total_rides  <br>FROM (<br>  SELECT <br>    member_casual,  <br>    (6371 * ACOS(<br>    GREATEST(<br>      -1.0, <br>      LEAST(<br>        1.0, <br>        COS(start_lat * 3.141592653589793 / 180) * COS(end_lat * 3.141592653589793 / 180) * COS((end_lng - start_lng) * 3.141592653589793 / 180) + <br>        SIN(start_lat * 3.141592653589793 / 180) * SIN(end_lat * 3.141592653589793 / 180)<br>      )<br>    )<br>)) * 0.621371 AS distance_miles  <br>  FROM <br>    `cylistic-446819.ayearbike.combine`<br>  WHERE<br>    start_station_name != &#39;Unknown&#39; <br>    AND end_station_name != &#39;Unknown&#39;<br>) AS distance_data<br>GROUP BY <br>  member_casual, distance_category  <br>ORDER BY <br>  member_casual, distance_category;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bVHNU1YYTYhvQpTr" /></figure><p>Member users, with their total number being nearly twice as large as Casual users, stand out significantly in short distances (&lt;1 mile) and medium distances (1–2 miles). This heavy usage by Member users indicates that they generally use the service to meet their daily commuting needs, while Casual users show lower usage in these distance ranges. 🚶</p><p>However, as the distances increase (5–10 miles and 10+ miles), the number of rides for both groups sharply declines, and the difference between the two groups nearly closes. This suggests that, for longer distances, Casual users use the service proportionally more and are likely using it for leisure, touristic trips, or special purpose rides. 🌳</p><p>Members focus on shorter distances, using the service primarily for regular, daily commuting, whereas Casual users use the service more for longer trips, often for recreation or tourism. 🌞</p><p>The overall trend in the table shows that the service is more attractive for both groups in short and medium distances, while usage is limited for longer distances. 🚴</p><h3>0 Miles Rides Comparison 🚫🚲</h3><p>I analyzed 0 miles rides for both Member and Casual users. I compared these rides to identify any patterns or discrepancies between the two groups.</p><pre>SELECT<br>  member_casual,  <br>  COUNT(*) AS total_rides,  <br>  started_at,  <br>  ended_at,    <br>  distance_miles,  <br>  start_station_name,  <br>  end_station_name     <br>FROM <br> `cylistic-446819.ayearbike.combine`<br>WHERE <br>  distance_miles = 0  <br>  AND start_station_name != &#39;Unknown&#39;  <br>  AND end_station_name != &#39;Unknown&#39;    <br>GROUP BY <br>  member_casual, started_at, ended_at, distance_miles, start_station_name, end_station_name  <br>ORDER BY<br>  member_casual, started_at;<br><br><br>SELECT<br>  member_casual,<br>  COUNT(*) AS total_rides<br>FROM <br>  `cylistic-446819.ayearbike.combine`<br>WHERE <br>  distance_miles = 0<br>  AND start_station_name != &#39;Unknown&#39;<br>  AND end_station_name != &#39;Unknown&#39;<br>GROUP BY <br>  member_casual<br>ORDER BY<br>  member_casual;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/0*l5ljkV6WER3Wrc4i" /></figure><p>When examining the graph of 0 miles rides for both member and casual users, we observe the following:</p><ul><li>Casual users tend to return the bike to the same station where they rented it. This suggests that these rides are usually short distances. It’s likely that casual users are using the bikes for social activities or recreational purposes rather than commuting or reaching a specific destination. 🎉🚴♀️</li><li>On the other hand, member users show relatively lower occurrences of 0 miles rides. This indicates that they are more likely to use the bike for commuting or other practical needs. Members seem to use bikes for point-to-point transportation, rather than short, recreational rides. 🏙️🚲</li></ul><p>This pattern suggests different riding behaviors between casual and member users. 🚴</p><h3>🚀 5. ACT</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*eARO4espGewZbvUv" /></figure><h3>Recommended Actions 🚀</h3><h3>1. Station-Specific Targeted Marketing Campaigns:</h3><ul><li>Target Stations Near Tourist Spots and Recreational Areas: Casual riders tend to use bikes near tourist attractions, parks, and recreational hubs. Cyclistic should focus marketing efforts around these high-traffic stations to increase casual rider engagement. Special events, booth setups, and on-site promotions could increase exposure and entice casual riders to consider membership. 🌍</li><li>Localized Promotions: Place localized ads or promotional materials at top-performing stations to raise awareness and attract casual riders who may not have yet considered purchasing an annual membership. 📍</li></ul><h3>2. Weekday Usage Incentives for Casual Riders:</h3><ul><li>Encourage Weekday Usage with Discounts: Casual riders primarily use bikes during weekends and midday hours. Cyclistic can shift this behavior by offering discounted rates or special promotions for weekday usage, particularly during commuting hours (morning and evening). This will not only increase bike usage on weekdays but also create a habit that can lead to long-term membership conversion. 💸</li><li>Loyalty Rewards for Weekday Riders: Introduce a reward system that gives casual riders incentives, such as discounted rides or extra minutes, if they ride bikes on weekdays. For example, a “Buy 2 Get 1 Free” weekday deal can appeal to riders, encouraging them to use the bikes more frequently during the week. 🎁</li></ul><h3>3. Seasonal Promotions to Capitalize on Increased Demand:</h3><ul><li>Spring and Summer Membership Discounts: Since bike usage peaks during the spring and summer months, Cyclistic should offer seasonal discounts or memberships that align with this time frame. Special offers such as summer ride packs or discounted yearly memberships can be highly effective in converting casual riders during peak months. 🌞</li><li>Seasonal Ride Campaigns: During peak seasons, offer extended hours or special routes for riders to enhance their experience. For example, running summer promotions for longer rides can help increase average ride times and convert casual users to full-time members by showcasing the benefits of owning an annual membership.</li></ul><h3>📝 6. SHARE</h3><h3>Final Thoughts and Next Steps 💡</h3><h3>Key Takeaways:</h3><ul><li>Seasonality &amp; Usage Patterns: The analysis has shown that both member and casual riders are highly influenced by the weather and seasonal conditions, with a peak in usage during spring and summer months. During these periods, Cyclistic should leverage seasonal marketing campaigns to maximize conversion. 🌷</li><li>Member vs. Casual Rider Behavior: Casual riders primarily use bikes for leisure or recreational activities, typically on weekends, and prefer electric bikes. On the other hand, members use bikes for more practical purposes like commuting, with a tendency to prefer classic bikes. By understanding these usage patterns, Cyclistic can tailor its marketing strategies and optimize customer targeting. 🏙️</li><li>Geographical Insights: Locations near tourist attractions, parks, and commuting hubs are key focal points for Cyclistic’s advertising campaigns. By using location-based marketing, Cyclistic can target high-traffic areas and convert casual riders into members by highlighting the convenience and benefits of annual memberships. 📍</li></ul><h3>Next Steps for Cyclistic:</h3><ol><li>Launch Seasonal Campaigns: Start by rolling out seasonal promotions for spring and summer, offering special deals for longer rides and weekday incentives to encourage more frequent use. 🌞</li><li>Implement Weekday Usage Programs: Design weekday promotions to attract casual riders during traditionally slower times, helping to balance bike usage throughout the week. 📅</li><li>Utilize Geospatial Data for Targeting: Use map analysis to design localized marketing strategies. Focus on high-traffic stations near tourist spots and recreational parks to increase engagement. 🗺️</li><li>Monitor Usage Trends: Continuously track rideable type preferences and peak times to ensure the strategies align with real-time trends. Adapting marketing efforts based on these shifts will ensure continued success. 📊</li></ol><h3>Final Thought:</h3><p>By aligning Cyclistic’s marketing efforts with these insights, we can boost membership conversion, increase user engagement, and improve overall bike-sharing experiences. Focusing on targeted promotions based on usage patterns, time of year, and user preferences will drive long-term success for both casual and member riders. 💪</p><p>Through the combination of data-driven marketing strategies and seasonal adjustments, Cyclistic will be in a strong position to enhance its service offering and appeal to a wider audience. 🚴</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ac8db484dd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>