<?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 Muhammad Ariel Rizky on Medium]]></title>
        <description><![CDATA[Stories by Muhammad Ariel Rizky on Medium]]></description>
        <link>https://medium.com/@muhammadarielrizkyy?source=rss-42c161e028e5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*st7F5ilDs52owaYfMyVg1g.jpeg</url>
            <title>Stories by Muhammad Ariel Rizky on Medium</title>
            <link>https://medium.com/@muhammadarielrizkyy?source=rss-42c161e028e5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 12:53:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muhammadarielrizkyy/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[Mapping the World’s Seismic Zones with DBSCAN]]></title>
            <link>https://medium.com/@muhammadarielrizkyy/mapping-the-worlds-seismic-zones-with-dbscan-68e4ac003105?source=rss-42c161e028e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/68e4ac003105</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[earthquake]]></category>
            <dc:creator><![CDATA[Muhammad Ariel Rizky]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 19:43:38 GMT</pubDate>
            <atom:updated>2026-11-28T19:43:38.690Z</atom:updated>
            <content:encoded><![CDATA[<p>Clustering 16,417 global M5+ earthquakes from 2016 to 2025 with haversine distance, without choosing the number of zones in advance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ki_SbZazK6QVnfXYXC4hhQ.png" /><figcaption>Seismic zones detected by DBSCAN (eps = 100 km, min_samples = 5). Each color is one zone, red crosses are noise, and point size follows magnitude.</figcaption></figure><h3>Business Problem</h3><p>Earthquakes are not scattered randomly across the planet. They cluster along plate boundaries such as subduction zones, collision belts, and mid-ocean ridges. The usual way to describe these zones is by hand, using geological knowledge and fault maps.</p><p>The question here is simpler: <strong>if we only look at where earthquakes happen, can an algorithm find these zones by itself?</strong></p><p>The tricky part is that nobody knows in advance how many zones there are. K-Means would force us to pick a number first, and it assumes round clusters, which is a poor fit for long, thin zones like the Andes or the Japan–Kuril arc. That is why I used <strong>DBSCAN</strong>, a density-based algorithm that finds clusters of arbitrary shape and marks isolated points as noise.</p><h3>Business Objective</h3><p>Build a data-driven map of global seismic zones that:</p><ul><li>finds zones without specifying their number,</li><li>separates isolated events (noise) from dense seismic zones,</li><li>gives every earthquake a zone label that can be used for later analysis.</li></ul><h3>Business Metrics</h3><p>There is no ground truth here, so accuracy doesn’t apply. Instead I judged the result with three practical metrics:</p><ul><li><strong>Number of clusters:</strong> how many zones were found.</li><li><strong>Noise percentage:</strong> how many events were left unassigned.</li><li><strong>Largest cluster share:</strong> the percentage of all events in the biggest zone. If one cluster swallows most of the data, the zones aren’t useful.</li></ul><p>On top of that, I checked whether the result looks geologically plausible on a map.</p><h3>Dataset</h3><p>The data comes from the <strong>USGS ComCat</strong> catalog (FDSN Event Web Service).</p><ul><li><strong>Period:</strong> 13 June 2016 to 8 October 2025</li><li><strong>Minimum magnitude:</strong> 5.0</li><li><strong>Raw rows:</strong> 16,475</li><li><strong>Final rows:</strong> 16,417</li></ul><p>The columns that matter for this analysis:</p><ul><li><strong>latitude:</strong> event latitude in degrees</li><li><strong>longitude:</strong> event longitude in degrees</li><li><strong>depth:</strong> hypocenter depth in km</li><li><strong>mag:</strong> event magnitude</li></ul><p>Before analysis I ran two checks. First, the number of unique event IDs in the time range (16,475) matches the official USGS count exactly, so nothing was lost during download. Second, I removed <strong>58 events that were not earthquakes</strong> (volcanic eruptions, nuclear explosions, and landslides). After that, no duplicates, no missing values, and no out-of-range values remained.</p><h3>Exploratory Data Analysis</h3><h4>1. Distribution of each variable</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_NnvVwpAIJyRe59G85FcyQ.png" /><figcaption>Distribution of latitude, longitude, depth, and magnitude. Red dashed line is the mean, green is the median.</figcaption></figure><p>A few things stand out:</p><ul><li><strong>Depth</strong> is heavily skewed. The median is only 10.44 km while the mean is 52.21 km, so most earthquakes are shallow. There is also a small group of deep-focus events around 500–650 km.</li><li><strong>Magnitude</strong> is skewed to the right (median 5.20, mean 5.33). This is expected, since there are far more small events than large ones.</li><li><strong>Longitude</strong> has a tall spike around −180°, with about 2,000 events. That is the area near the International Date Line, which will matter when we pick a distance metric.</li></ul><h4>2. Earthquakes per year</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0pLoRU_ohs5AAFgEHSD2TA.png" /><figcaption>Number of M5+ earthquakes per year. Grey bars are partial years (2016 starts in June, 2025 ends in October).</figcaption></figure><p>For full years the count stays roughly between 1,450 and 1,800 per year, with 2021 as the highest at around 2,200. Partial years are shown in grey so they aren’t misread as a drop or rise.</p><h4>3. Correlation between variables</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dtd4BJtDsb7sjY8l8oVD0A.png" /><figcaption>Correlation heatmap of latitude, longitude, depth, and magnitude.</figcaption></figure><p>All correlations are weak. The highest is latitude–longitude at 0.25, followed by depth–magnitude at 0.11. The latitude–longitude correlation isn’t meaningful physically, since it only reflects where the plate boundaries happen to run on the map. The main takeaway is that <strong>no single variable explains the others</strong>, so the location itself carries the structure we want to find.</p><h4>4. Frequency–magnitude relationship</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oWy5j3o8uFHhlnt8crdg2g.png" /><figcaption>Cumulative frequency vs magnitude on a log scale. The rough b-value is about 1.05.</figcaption></figure><p>The cumulative count falls almost linearly on the log scale, which is the <strong>Gutenberg–Richter law</strong>. The rough b-value of about 1.05 is close to the typical global value of around 1, which is a good sign that the catalog is complete for M5+. The drop at the far right is just the small-number effect for the very largest events. This b-value is a rough estimate from the plot, not a proper maximum-likelihood fit.</p><h3>Modeling</h3><h4>1. Choosing the features</h4><p>I used <strong>latitude and longitude only</strong>. Depth and magnitude are left out on purpose, because the goal is geographic zones, not event strength or depth structure.</p><h4>2. Using haversine distance</h4><p>Latitude and longitude are angles on a sphere, so plain Euclidean distance is wrong, especially near the poles and across the date line. Remember the spike at −180° in the longitude histogram: with Euclidean distance, an event at 179° and one at −179° would look very far apart, even though they are no more than about 220 km apart.</p><p>So I used <strong>haversine distance</strong> on coordinates converted to radians, with the ball_tree algorithm. The eps value then has to be expressed in radians, which is the distance in km divided by Earth&#39;s radius.</p><pre>import numpy as np<br>from sklearn.cluster import DBSCAN</pre><pre>EARTH_RADIUS_KM = 6371.0088</pre><pre>coords = np.radians(df[[&quot;latitude&quot;, &quot;longitude&quot;]].values)</pre><pre>db = DBSCAN(<br>    eps=100 / EARTH_RADIUS_KM,<br>    min_samples=5,<br>    metric=&quot;haversine&quot;,<br>    algorithm=&quot;ball_tree&quot;,<br>)<br>df[&quot;cluster&quot;] = db.fit_predict(coords)</pre><h4>3. Estimating eps with a k-distance plot</h4><p>DBSCAN depends heavily on eps. To get a starting point I plotted the distance from each point to its 5th nearest neighbor, sorted from smallest to largest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fx7xkgIpRrvV3QWKS8uuZw.png" /><figcaption>k-distance plot (k = 5, haversine). Dotted lines mark the candidate eps values of 50, 75, 100, 150, and 300 km.</figcaption></figure><p>The curve is flat and low for most points, then bends upward sharply somewhere around 100–150 km. That bend is the “elbow”, and it suggests where points stop being part of a dense region. So the candidate range is roughly 50 to 150 km.</p><h4>4. Testing several eps values</h4><p>An elbow is only a hint, so I ran DBSCAN with five values of eps and compared the results:</p><ul><li><strong>eps = 50 km:</strong> 416 clusters, 19.25% noise, largest cluster 6.6% of all points</li><li><strong>eps = 75 km:</strong> 342 clusters, 10.96% noise, largest cluster 12.4%</li><li><strong>eps = 100 km:</strong> 255 clusters, 7.13% noise, largest cluster 15.5%</li><li><strong>eps = 150 km:</strong> 159 clusters, 3.72% noise, largest cluster 33.3%</li><li><strong>eps = 300 km:</strong> 34 clusters, 1.31% noise, largest cluster 66.4%</li></ul><p>The pattern is clear. As eps grows, noise shrinks, but neighboring zones start to merge. At 300 km, a single cluster contains two thirds of all earthquakes, which is not a “zone” anymore.</p><h4>5. Selection rule</h4><p>To avoid picking eps by gut feeling, I set an explicit rule: <strong>choose the largest eps where the largest cluster is at most 25% of all points and noise is at most 20%.</strong></p><ul><li>50, 75, and 100 km pass.</li><li>150 and 300 km fail, because the largest cluster becomes too dominant.</li></ul><p>The largest passing value is <strong>eps = 100 km</strong>, so that is the one I used. It also lines up with the elbow on the k-distance plot.</p><h3>Results</h3><p>With eps = 100 km and min_samples = 5, DBSCAN found:</p><ul><li><strong>255 seismic zones</strong></li><li><strong>1,170 noise events</strong> (7.13%)</li><li>A largest zone with <strong>2,549 events</strong> (15.53%)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ki_SbZazK6QVnfXYXC4hhQ.png" /><figcaption>Final clustering result on a world map. Red crosses are noise.</figcaption></figure><p>The zones follow the known tectonic picture: the Pacific Ring of Fire, the Alpine–Himalayan belt, and the mid-ocean ridges (the thin chains running through the Atlantic and Indian Oceans). Long, curved zones like the Andes and the Japan–Kuril arc are captured as single connected clusters, which is exactly what K-Means would struggle with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*krbwPtb1y9Hbe_OuKsCskQ.png" /><figcaption>The 40 largest zones by number of earthquakes (log scale). Noise is shown in red.</figcaption></figure><p>Zone sizes are very uneven. The 10 largest clusters hold about 70% of all earthquakes, The 10 largest clusters hold about 70% of all earthquakes, while the smallest zone shown on the chart has only 29 events. as the 4th largest “group” on this chart.</p><p>One more thing visible on the map: the noise is not spread evenly. It is densest across the Himalaya and Central Asia, where continental collision produces scattered, diffuse earthquakes rather than a tight line along one fault. DBSCAN treats these as low-density areas. So <strong>“noise” here does not mean “no seismic activity”</strong>. It means the events aren’t dense enough to form a zone at this eps.</p><h3>Limitations</h3><ul><li><strong>Zones can chain together.</strong> DBSCAN connects any points within eps of each other, so a continuous arc can become one very long cluster even if geologists would split it into several segments.</li><li><strong>The eps choice is a heuristic.</strong> The 25% and 20% thresholds in my rule are my own judgment, and different thresholds would give a different answer.</li><li><strong>Only M5+ events, only about 9 years.</strong> Smaller earthquakes and longer history would fill in many areas currently marked as noise.</li><li><strong>No external validation yet.</strong> I checked the result visually against known tectonic zones, but I did not compare it with an official active-fault database.</li></ul><h3>Conclusion</h3><p>DBSCAN with haversine distance recovered a plausible map of global seismic zones from nothing but latitude and longitude, without needing the number of zones in advance. With eps = 100 km it produced 255 zones, only 7.13% noise, and no single zone dominating the data. The main lesson for me was that the choice of eps matters more than anything else: the k-distance plot gave a starting range, but the sensitivity test and an explicit selection rule were what made the final choice defensible.</p><h3>Future Works</h3><ul><li>Estimate the b-value properly with the maximum likelihood method.</li><li>Include depth in the clustering, especially to separate shallow and deep events in subduction zones.</li><li>Compare the result with HDBSCAN, which handles varying density better.</li><li>Analyze how the activity of each zone changes over time.</li><li>Validate the zones against official active fault maps.</li></ul><h3>Repository Link</h3><p>The full notebook, results, and figures are on GitHub:</p><p><a href="https://github.com/ArielRizky9/earthquake-dbscan-clustering">GitHub - ArielRizky9/earthquake-dbscan-clustering</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68e4ac003105" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analyzing Delivery Delays and Customer Satisfaction on Olist Using Python and Tableau]]></title>
            <link>https://medium.com/@muhammadarielrizkyy/analyzing-delivery-delays-and-customer-satisfaction-on-olist-using-python-and-tableau-81d0508b31c7?source=rss-42c161e028e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/81d0508b31c7</guid>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Muhammad Ariel Rizky]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 10:16:42 GMT</pubDate>
            <atom:updated>2026-11-23T10:16:42.895Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BS9DDjiwaW73f7TIOWn1cQ.jpeg" /><figcaption><em>Photo by </em><a href="https://unsplash.com/@rosebox">RoseBox رز باکس</a><em> on Unsplash</em></figcaption></figure><h3>Business Problem</h3><p>Olist is an e-commerce marketplace in Brazil that connects many sellers with buyers. Every order can come from a different seller and shipping route, so the platform does not fully control delivery time. When an order arrives after the estimated date, customers often treat it as a failed promise, no matter how good the product is. Their reviews are public and affect the reputation of both the seller and the platform.</p><p>The data shows an interesting pattern. Only 6.77% of orders are late, but late orders get an average review score of 2.27, far below the 4.29 of on-time orders. Management needs to know how big this impact is and where to fix it first.</p><h3>Business Objective</h3><p>Measure how much late delivery lowers customer satisfaction, then find the regions, routes, product categories, and periods with the highest risk. With this, logistics improvements can be targeted instead of applied everywhere.</p><h3>Business Metrics</h3><p>To measure the success of this analysis, these metrics are used:</p><ul><li>Late order rate: orders delivered after the estimated date divided by all delivered orders.</li><li>Average review score (1 to 5).</li><li>Satisfied customers: share of orders with a review score of 4 or 5.</li><li>Effect size (rank-biserial): how large the score difference is between late and on-time orders.</li></ul><h3>Dataset</h3><p>The data is the Brazilian E-Commerce Public Dataset by Olist from Kaggle. It has 99,441 orders placed between September 2016 and August 2018, stored in 9 CSV files:</p><ul><li>orders: 99,441 rows</li><li>order_items: 112,650 rows</li><li>payments: 103,886 rows</li><li>reviews: 99,224 rows</li><li>customers: 99,441 rows</li><li>sellers: 3,095 rows</li><li>products: 32,951 rows</li><li>geolocation: 1,000,163 rows</li><li>category_translation: 71 rows</li></ul><blockquote><a href="https://www.kaggle.com/datasets/olistbr/brazilian-ecommerce"><em>https://www.kaggle.com/datasets/olistbr/brazilian-ecommerce</em></a></blockquote><p>The tables are connected through order_id, customer_id, product_id, and seller_id. After cleaning and merging, I built one fact table with one row per order. It contains 96,470 delivered orders from 93,350 unique customers, with total revenue of BRL 15,421,082.85.</p><h3>Data Preparation</h3><p>Before cleaning, I explored the raw data to find problems. Then these steps were applied:</p><ol><li>551 duplicate reviews were removed (the latest review of each order is kept).</li><li>610 products without a category were labeled unknown.</li><li>261,831 duplicate geolocation rows and 33 coordinates outside Brazil were removed.</li><li>2,971 orders that were not delivered or had no delivery date were excluded.</li><li>Delivery-time outliers were flagged, not removed.</li></ol><p>The code in this article is simplified for readability. The complete version is in the repository at the end.</p><pre># Keep the latest review for each order<br>reviews = reviews.sort_values(&#39;review_answer_timestamp&#39;)<br>reviews = reviews.drop_duplicates(&#39;order_id&#39;, keep=&#39;last&#39;)</pre><p>Then the delivery features were created. A positive delay means the order arrived after the estimated date.</p><pre># Delivery time and delay (positive = late)<br>d[&#39;delivery_days&#39;] = (d[&#39;order_delivered_customer_date&#39;] - d[&#39;order_purchase_timestamp&#39;]).dt.days<br>d[&#39;delay_days&#39;] = (d[&#39;order_delivered_customer_date&#39;] - d[&#39;order_estimated_delivery_date&#39;]).dt.days<br>d[&#39;is_late&#39;] = d[&#39;delay_days&#39;] &gt; 0</pre><p>The delay is also grouped into six categories, from very early to more than 14 days late.</p><pre>bins = [-float(&#39;inf&#39;), -8, 0, 3, 7, 14, float(&#39;inf&#39;)]<br>labels = [&#39;Early &gt;7 days&#39;, &#39;On time / early &lt;=7 days&#39;, &#39;Late 1-3 days&#39;,<br>          &#39;Late 4-7 days&#39;, &#39;Late 8-14 days&#39;, &#39;Late &gt;14 days&#39;]<br>d[&#39;delay_bucket&#39;] = pd.cut(d[&#39;delay_days&#39;], bins=bins, labels=labels)</pre><h3>Exploratory Data Analysis</h3><h3>1. Check for missing values</h3><pre>(data.isna().mean() * 100).sort_values(ascending=False)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yk1FkPm4bW1cnadbyaD1sg.png" /><figcaption>Missing Value</figcaption></figure><p>It can be seen that the largest missing values are in the review comment columns (88.3% for the title and 58.7% for the message). These columns are not used in this analysis. Meanwhile, about 3% of orders have no delivery date, mostly because they were not delivered.</p><h3>2. Check the delivery time distribution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-uIoAVcEoXgc2BFzG-GOPw.png" /><figcaption><em>delivery time distribution</em></figcaption></figure><p>It can be seen that delivery time is skewed to the right (skewness 3.83). A total of 4,899 orders are outliers by the IQR rule, starting from 29.2 days. These extremely late orders are exactly what this project studies, so they were flagged and kept.</p><h3>3. Compare delivery time with the estimate</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZwEo1WqFBWDzslB3mX_XuA.png" /><figcaption><em>delivery date compared with the estimated date</em></figcaption></figure><p>On average, Olist estimates 23.74 days, while the actual delivery takes 12.56 days. It can be seen that 93.2% of orders arrive before or on the estimated date, and the late orders sit in the right tail of the distribution.</p><h3>4. Compare review scores of late and on-time orders</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*auaZVk4CSa5fngIJVc09mQ.png" /><figcaption><em>review score distribution, late vs on-time</em></figcaption></figure><p>It can be seen that 54% of late orders get a score of 1, compared with only 7% of on-time orders. On the other side, 62% of on-time orders get a score of 5, but only 17% of late orders do. Review scores are J-shaped (skewness -1.36), so they are not normally distributed. Because of this, a non-parametric test is used.</p><h3>5. Check correlation</h3><pre>cols = [&#39;delivery_days&#39;, &#39;delay_days&#39;, &#39;estimated_days&#39;, &#39;freight_total&#39;,<br>        &#39;price_total&#39;, &#39;n_items&#39;, &#39;n_sellers&#39;, &#39;review_score&#39;]<br>corr = rv[cols].corr(method=&#39;spearman&#39;)<br>sns.heatmap(corr, annot=True, cmap=&#39;RdBu_r&#39;, vmin=-1, vmax=1)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b3Gl4fKP9K6ZXf6GJx5bNg.png" /><figcaption><em>Spearman correlation</em></figcaption></figure><p>It can be seen that delivery time has the strongest relationship with the review score (rho -0.235), followed by the difference to the estimate (-0.176). All correlations with the score are negative and weak: number of items (-0.107), number of sellers (-0.094), shipping cost (-0.088), estimated days (-0.056), and total price (-0.029). They are weak because only 6.77% of orders are late.</p><h3>Statistical Testing</h3><p>The null hypothesis (H0) says the review score distributions of late and on-time orders are the same. The alternative (H1) says late orders have lower scores. Because the scores are not normally distributed, the one-sided Mann-Whitney U test is used, and the effect size is measured with the rank-biserial correlation.</p><pre>from scipy.stats import mannwhitneyu</pre><pre>late = rv.loc[rv[&#39;is_late&#39;], &#39;review_score&#39;]<br>on_time = rv.loc[~rv[&#39;is_late&#39;], &#39;review_score&#39;]</pre><pre>u, p = mannwhitneyu(late, on_time, alternative=&#39;less&#39;)<br>rank_biserial = 1 - (2 * u) / (len(late) * len(on_time))</pre><p>The result: U = 103,305,546, the p-value is close to 0, and the rank-biserial effect size is 0.638.</p><p>It can be seen that the difference is statistically significant. With around 96 thousand orders, even a small difference can be significant, so the effect size matters too. A rank-biserial of 0.638 is large. Late orders have an average score of 2.27 (26.7% satisfied customers), while on-time orders have 4.29 (82.7% satisfied customers).</p><h3>Review score by delay length</h3><ul><li>More than 7 days earlier than the estimate: 4.317</li><li>On time or up to 7 days earlier: 4.189</li><li>1 to 3 days late: 3.291</li><li>4 to 7 days late: 2.103</li><li>8 to 14 days late: 1.671</li><li>More than 14 days late: 1.724</li></ul><p>It can be seen that the gap between very early and on-time orders is only about 0.13 points. But once an order passes the estimated date, the score drops sharply, and it falls below 2.2 after more than 3 days of delay.</p><h3>Where, When, and What</h3><p><strong>Where.</strong></p><ul><li>Using only states with at least 500 orders (17 states), the highest late rates are in MA (17.43%), CE (13.76%), BA (12.16%), RJ (12.11%), and PA (11.21%).</li><li>SP contributes 41.98% of all orders but only 4.49% of them are late. Delivery in SP takes 8.76 days on average, compared with 19.3 to 23.8 days in MA, CE, BA, and PA.</li><li>Cross-state deliveries take 15.15 days and 8.05% are late. Same-state deliveries take 7.95 days and 4.50% are late.</li><li>Orders with more than one seller have an average score of 2.861 (1,261 orders), compared with 4.173 for single-seller orders (94,563 orders).</li></ul><p><strong>When.</strong> Orders grew from 750 in January 2017 to 7,288 in November 2017. The late rate jumped to 12.40% in November 2017, 14.13% in February 2018, and 18.96% in March 2018 (average delivery time 16.30 days, score 3.813). After that it fell to 1.17% in June 2018.</p><p><strong>What.</strong> Office Furniture has the lowest score (3.656) and the longest delivery time (20.72 days). Among categories with more than 1,000 orders, Office Furniture (8.12%) and Baby (8.09%) have the highest late rate. Bed Bath Table is in the top three by revenue, but its score is only 4.003.</p><h3>Dashboard</h3><p>To make these findings usable for management, I built an interactive dashboard in Tableau Public from the cleaned fact table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tCPu987ag1Qn4yepSKeeHA.png" /><figcaption><em>Tableau dashboard</em></figcaption></figure><p>The dashboard contains:</p><ul><li>Four KPIs: total orders (96,470), total revenue, review score (4.16), and late rate (6.8%)</li><li>Review score by delay group</li><li>A map of late rate by state</li><li>Monthly trend of orders and late rate</li><li>Top 10 categories by revenue</li><li>Comparison of same-state and cross-state routes</li></ul><p>Users can filter by product category and customer state. The colors have a fixed meaning: coral is late, cyan is on time and order volume, green is revenue, and yellow is the review score. To avoid misleading results, the map shows only states with at least 500 orders, and the trend covers January 2017 to August 2018.</p><p>You can open the interactive version here: <a href="https://public.tableau.com/views/OlistDeliveryCustomerSatisfaction_17953610979450/DashboardOlist">https://public.tableau.com:9443/views/OlistDeliveryCustomerSatisfaction_17953610979450/DashboardOlist?:language=en-US&amp;:sid=&amp;:redirect=auth&amp;:display_count=n&amp;:origin=viz_share_link</a></p><h3>Conclusion</h3><ol><li>Late delivery is rare (6.77%) but strongly lowers satisfaction: the score is 2.27 compared with 4.29, with a rank-biserial effect size of 0.638.</li><li>The score drops sharply once an order passes the estimated date: 3.291 for 1 to 3 days late, and below 2.2 after more than 3 days.</li><li>Late deliveries are concentrated in MA, CE, BA, RJ, and PA, in cross-state routes, in multi-seller orders, in the Office Furniture category, and in November 2017 and February to March 2018.</li><li>The results show an association in historical data from 2016 to 2018, not proof of cause and effect.</li></ol><h3>Recommendations</h3><ul><li>Focus on preventing orders that are more than 3 days late, not on making on-time orders even faster.</li><li>Prioritize MA, CE, BA, RJ, and PA.</li><li>Pay attention to cross-state routes and multi-seller orders.</li><li>Prepare for seasonal peaks in November and in February to March.</li><li>Review the Office Furniture category.</li></ul><h3>Limitations</h3><ul><li>The analysis shows association, not causation. Other factors such as product quality are not measured.</li><li>SP contributes 41.98% of the orders and the top three states 66.55%, so national results lean toward those states.</li><li>Only the numeric review score is used. Review comments are not analyzed.</li><li>Only 3.0% of customers buy again, so the effect on long-term loyalty is not covered.</li></ul><h3>Future Works</h3><p>A classification model can be built to predict late deliveries before they happen, using the route, number of sellers, category, and estimated days. Sellers or states can also be clustered by their delay profile, and the estimated delivery date can be tested for being set more realistically in high-risk regions.</p><h3>Repository Link</h3><p>The notebook, analysis outputs, and dashboard screenshot are available here:</p><blockquote><a href="https://github.com/ArielRizky9/olist-delivery-satisfaction">https://github.com/ArielRizky9/olist-delivery-satisfaction</a></blockquote><p>Dataset source: Olist &amp; Sionek (2018). Brazilian E-Commerce Public Dataset by Olist. Kaggle.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81d0508b31c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>