<?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 Old Noisy Speaker on Medium]]></title>
        <description><![CDATA[Stories by Old Noisy Speaker on Medium]]></description>
        <link>https://medium.com/@old.noisy.speaker?source=rss-8f0a26907bd9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L2N7qXfZaitP9WmiqyXrwA.png</url>
            <title>Stories by Old Noisy Speaker on Medium</title>
            <link>https://medium.com/@old.noisy.speaker?source=rss-8f0a26907bd9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 14:17:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@old.noisy.speaker/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[Spot Suspicious Logins: Build an Anomaly Detector with Python and Isolation Forest]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@old.noisy.speaker/spot-suspicious-logins-build-an-anomaly-detector-with-python-and-isolation-forest-0b3bdcacac99?source=rss-8f0a26907bd9------2"><img src="https://cdn-images-1.medium.com/max/998/1*SeabTVI03HsRvET2aSUUuA.png" width="998"></a></p><p class="medium-feed-snippet">Introduction</p><p class="medium-feed-link"><a href="https://medium.com/@old.noisy.speaker/spot-suspicious-logins-build-an-anomaly-detector-with-python-and-isolation-forest-0b3bdcacac99?source=rss-8f0a26907bd9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@old.noisy.speaker/spot-suspicious-logins-build-an-anomaly-detector-with-python-and-isolation-forest-0b3bdcacac99?source=rss-8f0a26907bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b3bdcacac99</guid>
            <category><![CDATA[fraud-detection]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[anomaly-detection]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Old Noisy Speaker]]></dc:creator>
            <pubDate>Sun, 31 Aug 2025 11:32:34 GMT</pubDate>
            <atom:updated>2025-08-31T11:32:34.083Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Spotting Unusual Chat Messages with Python and Isolation Forest]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@old.noisy.speaker/spotting-unusual-chat-messages-with-python-and-isolation-forest-585db4ce8d51?source=rss-8f0a26907bd9------2"><img src="https://cdn-images-1.medium.com/max/1536/0*kCR-swKVSdKNGp2Y" width="1536"></a></p><p class="medium-feed-snippet">What We&#x2019;re Building: A Suspicion Meter</p><p class="medium-feed-link"><a href="https://medium.com/@old.noisy.speaker/spotting-unusual-chat-messages-with-python-and-isolation-forest-585db4ce8d51?source=rss-8f0a26907bd9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@old.noisy.speaker/spotting-unusual-chat-messages-with-python-and-isolation-forest-585db4ce8d51?source=rss-8f0a26907bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/585db4ce8d51</guid>
            <category><![CDATA[isolation-forests]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[anomaly-detection]]></category>
            <dc:creator><![CDATA[Old Noisy Speaker]]></dc:creator>
            <pubDate>Sat, 23 Aug 2025 10:59:20 GMT</pubDate>
            <atom:updated>2025-08-23T10:59:20.669Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Stop Payment Fraud: A Hands-On Guide with Python,]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@old.noisy.speaker/stop-payment-fraud-a-hands-on-guide-with-python-2d0778e9913d?source=rss-8f0a26907bd9------2"><img src="https://cdn-images-1.medium.com/max/1344/1*zDqP2BpDLl9Pr_f0IS6Lsg.png" width="1344"></a></p><p class="medium-feed-snippet">Why Fraud Is Tricky</p><p class="medium-feed-link"><a href="https://medium.com/@old.noisy.speaker/stop-payment-fraud-a-hands-on-guide-with-python-2d0778e9913d?source=rss-8f0a26907bd9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@old.noisy.speaker/stop-payment-fraud-a-hands-on-guide-with-python-2d0778e9913d?source=rss-8f0a26907bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d0778e9913d</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[fraud-detection]]></category>
            <dc:creator><![CDATA[Old Noisy Speaker]]></dc:creator>
            <pubDate>Sun, 17 Aug 2025 12:09:50 GMT</pubDate>
            <atom:updated>2025-08-17T12:09:50.602Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to Forecast Customer Lifetime Value Using Regression and Python]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@old.noisy.speaker/how-to-forecast-customer-lifetime-value-using-regression-and-python-3167c46acdc6?source=rss-8f0a26907bd9------2"><img src="https://cdn-images-1.medium.com/max/1347/1*6wHi4xyM_0okC-g6Vpd3Ww.png" width="1347"></a></p><p class="medium-feed-snippet">Introduction</p><p class="medium-feed-link"><a href="https://medium.com/@old.noisy.speaker/how-to-forecast-customer-lifetime-value-using-regression-and-python-3167c46acdc6?source=rss-8f0a26907bd9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@old.noisy.speaker/how-to-forecast-customer-lifetime-value-using-regression-and-python-3167c46acdc6?source=rss-8f0a26907bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3167c46acdc6</guid>
            <category><![CDATA[customer-lifetime-value]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[regression]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Old Noisy Speaker]]></dc:creator>
            <pubDate>Sat, 09 Aug 2025 13:00:37 GMT</pubDate>
            <atom:updated>2025-08-09T13:00:37.073Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Boost Your Sales with Recommender Systems: A Hands-On Guide for Small Businesses Using Python]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@old.noisy.speaker/boost-your-sales-with-recommender-systems-a-hands-on-guide-for-small-businesses-using-python-5b63663b4f4c?source=rss-8f0a26907bd9------2"><img src="https://cdn-images-1.medium.com/max/1360/1*A1IPsUJLR3tlnqrKVslaFA.png" width="1360"></a></p><p class="medium-feed-snippet">Why Recommenders Matter for Small Businesses</p><p class="medium-feed-link"><a href="https://medium.com/@old.noisy.speaker/boost-your-sales-with-recommender-systems-a-hands-on-guide-for-small-businesses-using-python-5b63663b4f4c?source=rss-8f0a26907bd9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@old.noisy.speaker/boost-your-sales-with-recommender-systems-a-hands-on-guide-for-small-businesses-using-python-5b63663b4f4c?source=rss-8f0a26907bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b63663b4f4c</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[collaborative-filtering]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Old Noisy Speaker]]></dc:creator>
            <pubDate>Sat, 02 Aug 2025 09:33:54 GMT</pubDate>
            <atom:updated>2025-08-02T09:33:54.195Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to Group Customers by Behaviour: Build K‑Means Clustering in Python]]></title>
            <link>https://medium.com/@old.noisy.speaker/how-to-group-customers-by-behaviour-build-k-means-clustering-in-python-d5e28920c02e?source=rss-8f0a26907bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5e28920c02e</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[customer-segmentation]]></category>
            <category><![CDATA[k-means-clustering]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Old Noisy Speaker]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 16:51:23 GMT</pubDate>
            <atom:updated>2025-10-22T09:07:02.920Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*cojYoz1UJkyCgFKQCvjebA.png" /></figure><h3>From One‑Size‑Fits‑All to Tailored Strategies</h3><p>Some are loyal repeat buyers. Others only engage when there’s a discount. A few drop off after their first purchase, while others linger in your app for months before spending anything. So how do you know which customers belong in which group — and more importantly, how should you treat them differently?</p><p>This is where behavioral segmentation comes in.</p><p>Instead of treating your customer base as one uniform mass, behavioral segmentation helps you discover natural groupings — personas — based on how users act, engage, and spend. It’s a shift from guesswork to pattern recognition. And it lays the groundwork for smarter marketing, better product design, and more efficient retention efforts.</p><p>In this article, you’ll learn how to apply K-Means clustering — a simple but powerful unsupervised machine learning algorithm — to group your customers by actual behavior. You’ll simulate real-world features like recency, frequency, and spend, and then uncover the hidden personas within your customer base.</p><p>By the end, you won’t just know who’s likely to buy — you’ll understand what kind of buyer they are. If predicting conversions was about <em>who</em>, segmentation is about <em>why</em> — and <em>what you should do next</em>.</p><h3>What Is Customer Segmentation — And Why It Matters</h3><p>At its core, customer segmentation is the practice of dividing your user base into distinct groups based on shared characteristics. But not all segmentation strategies are created equal.</p><p>Traditional methods often rely on broad attributes like age, location, or gender. Some marketers go a step further with psychographic traits — such as values or lifestyle indicators. While these approaches can offer surface-level insights, they tend to assume more than they reveal. They don’t explain how a customer actually behaves when it matters most — at the point of engagement or purchase.</p><p>Behavioral segmentation takes a different route. Instead of guessing who your customers are based on static traits, it groups them based on what they actually do — how often they buy, how much they spend, what they browse, or whether they return after a promotion.</p><p>This shift from assumption to observation is critical.</p><p>Studies have shown that behavioral segmentation consistently outperforms demographic segmentation in predicting future customer actions. In practical terms, understanding that a customer always shops during sales is far more useful than knowing their age group. Behavior tells you what to expect. Demographics only suggest what might be.</p><p>More importantly, behavioral segmentation leads to measurable business value.</p><p>Segmenting users by their actions allows businesses to:</p><ul><li><strong>Increase Customer Lifetime Value (CLV):</strong> By identifying high-value segments — such as loyal repeat buyers or frequent browsers who convert after targeted nudges — you can prioritize retention and maximise the revenue potential of each customer.</li><li><strong>Boost Retention Rates:</strong> Segmenting churn-risk users enables preemptive outreach. Even small improvements in retention can lead to substantial increases in overall profitability.</li><li><strong>Improve Campaign ROI:</strong> Instead of broadcasting messages to everyone, marketers can target specific segments with tailored promotions — leading to higher conversion rates and lower acquisition costs.</li><li><strong>Allocate Resources Efficiently:</strong> Not all customers are equal in value. Segmentation enables you to match service levels, discounts, or outreach efforts with a segment’s revenue potential or strategic importance.</li></ul><p>Companies that build strategy around well-defined segments grow profits more than twice as fast as those that don’t. Yet most companies still rely on outdated segmentation models that fail to reflect how their customers actually behave.</p><h3>K‑Means Clustering: The Driver Behind Behavior‑Based Personas</h3><p>To group customers based on behaviour, we need a method that can identify patterns without predefined labels. That’s exactly what K‑Means clustering does — and it does so in a way that is simple, scalable, and surprisingly effective.</p><h4>What K‑Means Actually Does</h4><p>At a high level, K‑Means clustering works by finding groups (or “clusters”) of similar customers in your dataset. It does this by:</p><ol><li><strong>Choosing K cluster centres</strong> (called centroids) to begin with — often selected at random.</li><li><strong>Assigning each customer</strong> to the nearest centroid, based on their features (such as recency, frequency, or average spend).</li><li><strong>Recalculating the centroid</strong> of each cluster by averaging the values of all customers in that group.</li><li><strong>Repeating the process</strong> until the centroids stop moving significantly.</li></ol><p>The result is a segmentation of your customers where each group shares behavioural similarities, and each cluster is represented by a centroid that reflects the “average” profile of that group.</p><p>Unlike rule-based segmentation, K‑Means doesn’t need you to define the groups in advance. It learns them from the data itself — revealing structure you might not have expected.</p><h4>Why It’s Widely Used in Marketing</h4><p>K‑Means has become a go-to tool for customer segmentation across marketing, e-commerce, and product analytics because it balances practicality with interpretability:</p><ul><li><strong>Fast and Scalable:</strong> It performs efficiently even on datasets with thousands or millions of users, making it suitable for real-world applications.</li><li><strong>Easy to Understand:</strong> Each cluster is defined by a set of average behaviours, which can be translated into clear personas — like “frequent buyers,” “high spenders,” or “at-risk users.”</li><li><strong>Straightforward to Implement:</strong> Most data teams can apply K‑Means in Python or R with just a few lines of code using widely available libraries.</li></ul><p>These advantages make K‑Means especially attractive to marketing teams looking for insights that are both rigorous and actionable.</p><h4>Important Limitations to Consider</h4><p>Despite its strengths, K‑Means does have constraints that are important to understand before relying on it for strategic decisions.</p><ul><li><strong>Choosing the Right K:</strong> The number of clusters (K) must be specified manually, and poor choices can lead to meaningless results. Methods like the Elbow Method or silhouette score help guide this choice, but there’s no perfect rule.</li><li><strong>Sensitivity to Scale:</strong> Because K‑Means relies on distance calculations, features like “total spend” can dominate clustering unless the data is standardised. Preprocessing steps such as scaling with StandardScaler are essential.</li><li><strong>Random Initialisation:</strong> The algorithm can converge to different solutions depending on how the initial centroids are placed. Using techniques like K‑Means++ and running the algorithm multiple times with different seeds helps mitigate this risk.</li><li><strong>Assumes Uniform Shapes:</strong> K‑Means works best when clusters are roughly spherical and similar in size. It may struggle with irregular, elongated, or unevenly sized groups — especially when behaviour patterns vary widely across users.</li></ul><p>Understanding these limitations helps you use K‑Means more responsibly. It’s an excellent starting point for segmentation — but not a universal solution for every dataset or business case.</p><h3>Prepare the Data: Simulating User Behavior Features</h3><p>Before we can group customers by behavior, we need a dataset that reflects how users act — how often they buy, how much they spend, how recently they’ve engaged, and whether they respond to discounts. Since this is a tutorial, we’ll generate a synthetic dataset that mirrors these behaviors in a realistic way.</p><h3>Our Dataset Design</h3><p>We’ll simulate 1,000 users over a 180-day window. Each user will have the following features:</p><ul><li><strong>recency_days</strong>: Days since last purchase</li><li><strong>frequency_60d</strong>: Number of purchases in the last 60 days</li><li><strong>avg_order_value</strong>: Average spend per transaction</li><li><strong>login_count_30d</strong>: Number of login sessions in the last 30 days</li><li><strong>discount_purchases</strong>: Number of purchases made using a discount</li></ul><p>These features combine classic RFM metrics with engagement and price sensitivity signals.</p><h3>Simulate the Data in Python</h3><pre>import pandas as pd<br>import numpy as np<br>import random<br><br>np.random.seed(42)  # For reproducibility<br><br># Step 1: Define user base and date range<br>user_ids = [f&quot;user_{i}&quot; for i in range(1, 1001)]<br>start_date = pd.Timestamp(&quot;2024-01-01&quot;)<br>end_date = pd.Timestamp(&quot;2024-06-30&quot;)<br>days = pd.date_range(start=start_date, end=end_date, freq=&quot;D&quot;)<br><br># Step 2: Simulate purchase activity<br>purchase_records = []<br>for user in user_ids:<br>    num_purchases = np.random.poisson(lam=3)<br>    purchase_days = np.random.choice(days, size=num_purchases, replace=False)<br>    for day in purchase_days:<br>        amount = np.random.randint(30, 300)<br>        used_discount = np.random.rand() &lt; 0.4  # 40% of purchases use discount<br>        purchase_records.append([user, day, amount, used_discount])<br><br>purchase_df = pd.DataFrame(<br>    purchase_records, columns=[&quot;user_id&quot;, &quot;purchase_time&quot;, &quot;amount&quot;, &quot;used_discount&quot;]<br>)<br><br># Step 3: Simulate login activity<br>login_records = []<br>for user in user_ids:<br>    num_logins = np.random.randint(5, 50)<br>    login_days = np.random.choice(days, size=num_logins, replace=False)<br>    for day in login_days:<br>        login_records.append([user, day])<br><br>login_df = pd.DataFrame(login_records, columns=[&quot;user_id&quot;, &quot;login_time&quot;])<br><br># Step 4: Define cutoff for feature engineering<br>cutoff_date = pd.Timestamp(&quot;2024-06-23&quot;)<br>lookback_60d = cutoff_date - pd.Timedelta(days=60)<br>lookback_30d = cutoff_date - pd.Timedelta(days=30)<br><br># Step 5: Feature engineering<br>recent_purchases = purchase_df[purchase_df[&quot;purchase_time&quot;] &lt; cutoff_date]<br><br>recency = recent_purchases.groupby(&quot;user_id&quot;)[&quot;purchase_time&quot;].max().apply(<br>    lambda x: (cutoff_date - x).days<br>)<br><br>frequency = recent_purchases[<br>    recent_purchases[&quot;purchase_time&quot;] &gt;= lookback_60d<br>].groupby(&quot;user_id&quot;).size()<br><br>monetary = recent_purchases[<br>    recent_purchases[&quot;purchase_time&quot;] &gt;= lookback_60d<br>].groupby(&quot;user_id&quot;)[&quot;amount&quot;].mean()<br><br>discounts = recent_purchases[<br>    (recent_purchases[&quot;purchase_time&quot;] &gt;= lookback_60d)<br>    &amp; (recent_purchases[&quot;used_discount&quot;] == True)<br>].groupby(&quot;user_id&quot;).size()<br><br>recent_logins = login_df[<br>    (login_df[&quot;login_time&quot;] &gt;= lookback_30d) &amp; (login_df[&quot;login_time&quot;] &lt; cutoff_date)<br>]<br><br>logins = recent_logins.groupby(&quot;user_id&quot;).size()<br><br># Step 6: Combine into a single DataFrame<br>features = pd.DataFrame(index=user_ids)<br>features[&quot;recency_days&quot;] = recency<br>features[&quot;frequency_60d&quot;] = frequency<br>features[&quot;avg_order_value&quot;] = monetary<br>features[&quot;login_count_30d&quot;] = logins<br>features[&quot;discount_purchases&quot;] = discounts<br><br># Fill missing values with 0 (inactive users)<br>features = features.fillna(0).reset_index().rename(columns={&quot;index&quot;: &quot;user_id&quot;})<br><br>features.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*6YrZ0SJ8vr2tLJ34calzew.png" /></figure><p>This code will generate a dataframe of 1,000 users, each with five key behavioral features. Some users will appear highly engaged (frequent logins, frequent purchases, high spend), while others may look more dormant or discount-sensitive.</p><h3>Standardize Your Data and Explore Patterns</h3><p>Before we can apply K‑Means clustering, we need to ensure all features contribute equally to the distance calculations. Features like average order value and login count are measured on different scales, which can bias the algorithm. To fix this, we’ll use feature scaling.</p><h4>Why Scaling Is Necessary</h4><p>K‑Means uses Euclidean distance to assign users to clusters. If one feature has a much larger numeric range than others, it can dominate the distance metric — leading to distorted clusters.</p><p>To avoid this, we scale all features so that they have the same mean (0) and standard deviation (1). This process is called <strong>standardization</strong>, and it ensures that no single feature skews the results.</p><h4>Use StandardScaler to Scale the Features</h4><pre>from sklearn.preprocessing import StandardScaler<br><br># Drop user_id before scaling<br>X_raw = features.drop(columns=[&quot;user_id&quot;])<br><br># Initialize the scaler<br>scaler = StandardScaler()<br><br># Fit and transform the feature set<br>X_scaled = scaler.fit_transform(X_raw)</pre><p>This transformation converts the data to a form where each feature is centered and normalized. The result is a NumPy array, ready for clustering.</p><p>If you want to inspect the scaled values in a DataFrame format:</p><pre>X_scaled_df = pd.DataFrame(X_scaled, columns=X_raw.columns)<br>X_scaled_df.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*OHJZPRB39ybMfls7mssu7Q.png" /></figure><h4>Explore Patterns with Pairplots and Histograms</h4><p>Before clustering, it’s helpful to visualise the unscaled feature distributions. This helps reveal:</p><ul><li>Skewed distributions</li><li>Feature relationships</li><li>Potential natural separations</li></ul><h4>Plot Feature Histograms</h4><pre>import matplotlib.pyplot as plt<br><br>X_raw.hist(bins=30, figsize=(12, 8))<br>plt.suptitle(&quot;Feature Distributions Before Scaling&quot;)<br>plt.tight_layout()<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*HA8i3rJBZJrTeN53e8Xq5A.png" /></figure><p>Histograms let you see which features are skewed, which are bimodal, and which may need transformation.</p><h4>Create a Pairplot</h4><pre>import seaborn as sns<br><br>sns.pairplot(X_raw)<br>plt.suptitle(&quot;Pairplot of Customer Behavior Features&quot;, y=1.02)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*gP1-POnaArn0UykkM5iAeQ.png" /></figure><p>Pairplots visualize scatterplots for every pair of features, with histograms on the diagonal. They give you a feel for how features interact and whether natural clusters already exist.</p><h3>Choosing the Right Number of Clusters</h3><p>Selecting the right number of clusters (K) is a critical step in customer segmentation. Too few clusters may hide meaningful differences between user types. Too many clusters can result in overly granular or meaningless segments. To find a balance, we rely on two diagnostic tools: the <strong>Elbow Method</strong> and the <strong>Silhouette Score</strong>.</p><h4>The Elbow Method: When Adding More Clusters Stops Helping</h4><p>The Elbow Method helps identify the point where increasing the number of clusters no longer yields substantial improvement. It works by plotting the <strong>within-cluster sum of squares (WCSS)</strong> — also called <em>inertia</em> — for different K values.</p><p>As K increases, the total distance between points and their assigned centroids decreases. Initially, these reductions are significant. But eventually, the improvements taper off. The ideal K is where the curve visibly “bends” — like an elbow. This indicates that adding more clusters provides little additional value.</p><h4>Code Example: Plotting the Elbow Curve</h4><pre>from sklearn.cluster import KMeans<br>import matplotlib.pyplot as plt<br><br># Try different values of K<br>inertia_values = []<br>K_range = range(1, 11)<br><br>for k in K_range:<br>    kmeans = KMeans(n_clusters=k, random_state=42)<br>    kmeans.fit(X_scaled)<br>    inertia_values.append(kmeans.inertia_)<br><br># Plot the elbow curve<br>plt.figure(figsize=(8, 5))<br>plt.plot(K_range, inertia_values, marker=&#39;o&#39;)<br>plt.title(&quot;Elbow Method for Optimal K&quot;)<br>plt.xlabel(&quot;Number of Clusters (K)&quot;)<br>plt.ylabel(&quot;Inertia (WCSS)&quot;)<br>plt.xticks(K_range)<br>plt.grid(True)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*QbAruLGwsmkZ8e53mFrhKg.png" /></figure><p>Look for the point where the inertia curve flattens. That’s typically your optimal K.</p><h4>The Silhouette Score: How Cohesive and Separated the Clusters Are</h4><p>The Silhouette Score complements the Elbow Method by measuring how well each data point fits within its assigned cluster compared to other clusters. It ranges from –1 to +1:</p><ul><li>Values near +1 indicate well-separated, clearly defined clusters.</li><li>Values near 0 suggest overlapping or ambiguous clusters.</li><li>Values below 0 suggest misclassified data points.</li></ul><p>A higher average silhouette score means the clustering result is both tight (points are close to their own cluster center) and distinct (far from other clusters).</p><h4>Code Example: Evaluating Silhouette Scores</h4><pre>from sklearn.metrics import silhouette_score<br><br>silhouette_scores = []<br><br># Try K from 2 to 10 (silhouette is not defined for K=1)<br>for k in range(2, 11):<br>    kmeans = KMeans(n_clusters=k, random_state=42)<br>    labels = kmeans.fit_predict(X_scaled)<br>    score = silhouette_score(X_scaled, labels)<br>    silhouette_scores.append(score)<br><br># Plot the silhouette scores<br>plt.figure(figsize=(8, 5))<br>plt.plot(range(2, 11), silhouette_scores, marker=&#39;o&#39;, color=&#39;orange&#39;)<br>plt.title(&quot;Silhouette Score for Different K Values&quot;)<br>plt.xlabel(&quot;Number of Clusters (K)&quot;)<br>plt.ylabel(&quot;Silhouette Score&quot;)<br>plt.grid(True)<br>plt.show()</pre><p>You should select the K with the <strong>highest silhouette score</strong>, especially if it aligns with the elbow point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*aUoyKU1TYv1ry8qlmQl2cQ.png" /></figure><h4>Putting It All Together</h4><p>Use both methods in tandem:</p><ul><li>The <strong>Elbow Method</strong> narrows down the candidate values of K by identifying the point of diminishing returns.</li><li>The <strong>Silhouette Score</strong> validates which K value gives the most distinct, cohesive clusters.</li></ul><p>This two-step approach gives you a more reliable, data-informed decision when choosing the number of behavioral personas.</p><h3>Run K‑Means and Profile Each Segment</h3><p>Once the optimal number of clusters has been identified (in our case, <strong>K = 5</strong>), we can now train the K‑Means model, assign each user to a segment, and interpret each segment using simple descriptive statistics. This step brings the segmentation to life — turning rows of numbers into recognizable customer personas.</p><h4>Fit the K‑Means Model</h4><p>We apply the KMeans algorithm on the scaled feature set (X_scaled) to group users into 5 distinct clusters:</p><pre>from sklearn.cluster import KMeans<br><br># Train K-Means with K=5<br>kmeans = KMeans(n_clusters=5, random_state=42)<br>features[&quot;cluster&quot;] = kmeans.fit_predict(X_scaled)</pre><p>This assigns each user to one of the 5 clusters based on patterns in their behavior — such as how frequently they buy, how recently they’ve interacted, how much they spend, and how they use discounts.</p><h4>Understand the Behaviour of Each Segment</h4><p>To interpret these clusters in real-world terms, we calculate the <strong>mean of each original (unscaled) feature</strong> within each cluster:</p><pre># Profile clusters by their unscaled behavior<br>cluster_profile = features.groupby(&quot;cluster&quot;).mean(numeric_only=True).round(2)<br>print(cluster_profile)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*tAyIFwOXtYQTN7QSuIds2A.png" /></figure><p>This gives a table where each row is a cluster (0 through 4), and each column shows the average behavior of that segment — such as:</p><ul><li>recency_days: how many days since last activity</li><li>purchase_frequency: average number of purchases</li><li>avg_spend: typical spending per transaction</li><li>login_days_past_month: engagement level</li><li>discount_usage_pct: how discount-driven the group is</li></ul><p>These values help translate raw cluster IDs into meaningful customer types.</p><h4>Interpreting the Personas</h4><p>Using the average behavior of each cluster, we can now assign intuitive labels that describe the users in business terms. Below is a breakdown of the five segments derived from your K-Means model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*N3GgE5ulU8ImNE4paxkY_w.png" /></figure><h4>Summary of Segment Behaviours</h4><ul><li><strong>Cluster 0 — Dormant Users</strong>: These users haven’t purchased anything in the last 60 days and barely log in. They’re most likely churned or inactive users and represent low current value.</li><li><strong>Cluster 1 — High-Value Occasional Shoppers</strong>: This group doesn’t engage frequently but tends to spend a lot per transaction. They are likely browsing without many logins, possibly influenced by targeted campaigns or one-time needs.</li><li><strong>Cluster 2 — Engaged Value Seekers</strong>: These users behave similarly to Cluster 1 in terms of order value and frequency, but they’re more active on the platform. They represent a healthy middle ground of both spending and engagement.</li><li><strong>Cluster 3 — New or Low-Spend Testers</strong>: With low spend and few transactions but very recent activity, these users may be exploring the platform or have low intent. A potential upsell or onboarding segment.</li><li><strong>Cluster 4 — Discount-Driven Loyalists</strong>: These users buy frequently, spend well, and heavily use discounts. They are likely highly responsive to promotions and may form the core of your active user base.</li></ul><h3>Visualize Segments and Gain Intuition</h3><p>After clustering customers into meaningful segments, it’s crucial to make the results interpretable — not just for data teams, but also for marketers, product managers, and decision-makers. Visualising the clusters helps build confidence in the results and offers a clearer understanding of how different personas behave.</p><p>We’ll explore two powerful methods to visualise our segments:</p><ul><li>A <strong>2D scatter plot</strong> using <strong>Principal Component Analysis (PCA)</strong> for dimensionality reduction</li><li>A <strong>heatmap</strong> of cluster-wise average behaviours for quick pattern detection</li></ul><h4>Use PCA to Plot Clusters in 2D</h4><p>Customer data is multi-dimensional. For instance, we’re clustering based on recency, frequency, order value, login behaviour, and discount usage — all of which can’t be visualised at once.</p><p><strong>PCA</strong> reduces these features down to two dimensions while retaining the most important variation in the data. This allows us to plot and inspect whether the clusters are well-separated.</p><p><strong>PCA Visualisation</strong></p><pre>from sklearn.decomposition import PCA<br>import matplotlib.pyplot as plt<br><br># Reduce dimensions to 2 components for visualisation<br>pca = PCA(n_components=2)<br>components = pca.fit_transform(X_scaled)<br><br># Scatter plot of clusters in 2D PCA space<br>plt.figure(figsize=(8, 6))<br>scatter = plt.scatter(components[:, 0], components[:, 1],<br>                      c=features[&quot;cluster&quot;], cmap=&quot;tab10&quot;, alpha=0.6)<br>plt.xlabel(&quot;PCA Component 1&quot;)<br>plt.ylabel(&quot;PCA Component 2&quot;)<br>plt.title(&quot;Customer Segments Visualised in 2D with PCA&quot;)<br>plt.colorbar(scatter, label=&quot;Cluster&quot;)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*yzxu_lIzbK8lZY3gSS2w-w.png" /></figure><p>This plot gives us an intuitive visual of how distinct or overlapping the clusters are. If clusters are clearly separated in the plot, it confirms that the grouping has real behavioural meaning.</p><h4>Create a Cluster Heatmap to Compare Behaviour</h4><p>While PCA shows the <strong>structure</strong> of the clusters, a <strong>heatmap</strong> reveals their <strong>content</strong> — which features are high or low in each group.</p><p>We use the original (unscaled) features to calculate the average behaviour of each cluster, then visualise this with a heatmap.</p><h4>Code Example — Cluster Heatmap</h4><pre>import seaborn as sns<br><br># Get average feature values by cluster<br>cluster_profile = features.groupby(&quot;cluster&quot;).mean(numeric_only=True).round(2)<br><br># Create a heatmap<br>plt.figure(figsize=(10, 6))<br>sns.heatmap(cluster_profile, annot=True, cmap=&quot;YlGnBu&quot;, fmt=&quot;.2f&quot;)<br>plt.title(&quot;Average Behaviour by Customer Segment&quot;)<br>plt.xlabel(&quot;Feature&quot;)<br>plt.ylabel(&quot;Cluster&quot;)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*3xbtzPL_sk_unJwnayXmzQ.png" /></figure><p>The heatmap allows you to spot patterns instantly. For example, you may see that:</p><ul><li>Cluster 0 has high recency_days (inactive users)</li><li>Cluster 4 has high frequency_60d and discount_purchases (frequent deal-seekers)</li></ul><p>This kind of summary is especially useful when presenting to stakeholders who prefer a quick visual reference over raw numbers.</p><h3>Business Applications for Your Customer Segments</h3><p>Customer segmentation only becomes valuable when it informs real-world decisions. The insights gained from clustering — especially behaviour-based personas — enable more precise targeting, better product experiences, and improved return on investment across marketing and operations.</p><h4>Tailoring Marketing and Product Experiences to Each Cluster</h4><p>Each customer segment behaves differently — and treating them as such allows companies to personalise communication and experiences at scale.</p><ul><li><strong>Dormant Users (Cluster 0)</strong><br>These are likely lapsed or inactive users. Marketing can re-engage them with win-back offers, reminder emails, or time-limited incentives. A soft exit survey could also provide insight into churn reasons. Product teams may simplify interfaces or send nudges to resume activity.</li><li><strong>High-Value Occasional Shoppers (Cluster 1)</strong><br>These users spend significantly but do so infrequently. They are ideal targets for curated bundles, early product access, or loyalty upgrades. UX tweaks such as personalised landing pages or reminder nudges can improve conversion.</li><li><strong>Engaged Value Seekers (Cluster 2)</strong><br>This segment is active, moderately price-conscious, and has a strong average order value. Strategies include gamified loyalty programs, refer-a-friend incentives, or highlighting value-based product recommendations.</li><li><strong>New or Low-Spend Users (Cluster 3)</strong><br>These are often new sign-ups or passive users. A strong onboarding experience is key — walkthroughs, guides, or starter bundles can help. If they do not convert, consider exit or nurturing flows to recapture interest.</li><li><strong>Discount-Driven Loyalists (Cluster 4)</strong><br>These users buy frequently and often seek deals. They’re highly engaged but margin-sensitive. Deploying segmented promotions, dynamic pricing, or point-based loyalty programs can boost retention without harming profitability.</li></ul><p>By assigning a clear strategy to each persona, businesses can move beyond generic campaigns and make segmentation operational.</p><h4>Improving Campaign Efficiency and Resource Allocation</h4><p>Customer segmentation allows marketers to shift from mass messaging to focused targeting. Instead of spending equal budget across all users, they can concentrate efforts on the most valuable or at-risk cohorts.</p><p>For example:</p><ul><li>High-value customers might receive direct outreach, tailored bundles, or premium loyalty benefits.</li><li>Churn-risk segments can be targeted with exit prevention flows, personalised reminders, or feedback collection.</li></ul><p>This targeted approach maximises ROI and minimises waste. In real-world case studies, companies that applied segmentation saw improvements in campaign conversion rates, reduced churn, and increased customer lifetime value.</p><h4>Enabling Smarter Personalisation</h4><p>Modern marketing systems — such as CRMs, customer data platforms, and email automation tools — allow companies to automate personalisation based on segments.</p><p>For instance:</p><ul><li>Send behaviour-triggered messages unique to each cluster.</li><li>Product recommendation engines can adjust based on inferred persona.</li><li>Onboarding flows can dynamically adapt based on expected customer intent.</li></ul><p>Behavioural clusters are especially powerful here. Unlike static demographic traits, behavioural signals reflect real needs and engagement, allowing for more timely, relevant, and effective interactions.</p><h4>Strategic Takeaway</h4><p>Clustering is not just a data exercise. When used correctly, it becomes the foundation for:</p><ul><li>Lifecycle-based marketing campaigns</li><li>UX and product feature tailoring</li><li>Retention workflows</li><li>Strategic investment in high-value users</li></ul><p>By turning raw user data into human-readable segments — and then activating them through targeted strategies — companies can drive sustained growth and customer satisfaction.</p><h3>Bonus: Hierarchical Clustering Comparison</h3><p>While K‑Means is widely used for customer segmentation, it is not the only option. <strong>Hierarchical clustering</strong> offers an alternative approach — especially valuable for exploratory analysis or when the number of clusters is unknown.</p><h4>What Is Hierarchical Clustering?</h4><p>Hierarchical clustering builds a <strong>tree-like structure (called a dendrogram)</strong> to show how observations group together at various levels of similarity. It works in one of two ways:</p><ul><li><strong>Agglomerative (bottom-up)</strong>: Each customer starts as its own cluster. The algorithm then merges the two closest clusters repeatedly until all customers are grouped into one large cluster.</li><li><strong>Divisive (top-down)</strong>: Starts with one cluster containing all customers, then recursively splits it into smaller clusters.</li></ul><p>The dendrogram allows users to visually inspect where meaningful separations exist and decide how many clusters to “cut” the tree into.</p><h4>When Is It Useful?</h4><p>Hierarchical clustering may be more appropriate than K‑Means when:</p><ul><li><strong>You don’t know the optimal number of clusters upfront.</strong> The dendrogram helps reveal natural groupings without needing to pre-specify K.</li><li><strong>You want to visualise multi-level relationships.</strong> It’s ideal for understanding nested behaviours — such as identifying sub-groups within high-value customers.</li><li><strong>Your data set is small to medium in size.</strong> Hierarchical clustering is computationally expensive and does not scale well beyond a few thousand observations.</li></ul><h4>Drawback</h4><ul><li><strong>Not scalable for large datasets.</strong> Hierarchical clustering requires calculating all pairwise distances, which becomes inefficient for larger customer databases.</li><li><strong>Sensitive to noise and outliers.</strong> A single anomalous observation can distort the entire dendrogram.</li><li><strong>Lack of flexibility.</strong> Once a merge or split is made, it cannot be undone — unlike K‑Means which can reassign cluster membership during iterations.</li></ul><p>Overall, hierarchical clustering is most valuable in the <strong>exploratory stage</strong> of segmentation, where understanding structure matters more than speed or scalability.</p><h3>Clustering Limitations</h3><p>Clustering provides a descriptive lens for understanding customer behavior — but it is not without trade-offs. It’s important to understand its <strong>strengths and weaknesses</strong> to apply it effectively in a business context.</p><p><strong>1. Clustering Is Descriptive, Not Predictive</strong></p><p>K‑Means and similar methods group customers based on <strong>past behaviour</strong>, not future outcomes. While these groupings may inform marketing actions, they don’t predict future events like churn or conversion. Predictive models (e.g. classification or regression) are better suited for those tasks.</p><p><strong>2. Over-Generalisation of Personas</strong></p><p>There is a risk of oversimplifying when treating all users in a cluster as a single archetype. For example, not all users in a “Price-Sensitive Browser” cluster will behave identically. Rigidly applying one-size-fits-all strategies may lead to poor results or user disengagement.</p><p><strong>3. Data Quality and Feature Choice Shape the Result</strong></p><p>The features selected for clustering have a major impact on the outcome. Including irrelevant, noisy, or unbalanced features may lead to misleading clusters. Similarly, poorly scaled or unstandardised data can skew distances and lead to invalid groupings.</p><p><strong>4. Clusters May Reinforce Existing Bias</strong></p><p>Behavioral clustering reflects historical interactions. If the data carries bias (e.g. under-targeted groups, promotional exclusions), clustering may reinforce those patterns and deepen inequalities in customer treatment.</p><p><strong>5. Clusters May Drift Over Time</strong></p><p>Customer behavior evolves. A segmentation built today may become outdated within months. Businesses should:</p><ul><li>Periodically <strong>retrain and validate</strong> clusters.</li><li>Monitor cluster <strong>stability and consistency</strong> over time.</li><li>Integrate clustering with real-time systems for dynamic segmentation where applicable.</li></ul><p><strong>6. No Guarantee of Actionability</strong></p><p>Not all clusterings produce useful business insights. Even if the math is sound, the resulting groups may not align with marketing or product priorities. Clusters should be evaluated not just on statistical coherence, but on <strong>practical actionability</strong>.</p><h3>Conclusion</h3><p>Customer segmentation is no longer a luxury — it is a necessity for any business that wants to personalise at scale, optimise marketing efforts, and build lasting customer relationships. Above all, this guide aims to <strong>empower builders</strong> — not just analysts or data scientists. By combining a basic understanding of clustering with practical Python tools, you can start mapping your users into segments that make sense for your business or startup idea.</p><p>Whether you’re improving conversion, building a loyalty program, or launching a new product — behavioural segmentation can give you the edge to make smarter decisions with your data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5e28920c02e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Discover What Customers Buy Together: Market Basket Analysis with Python]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@old.noisy.speaker/discover-what-customers-buy-together-market-basket-analysis-with-python-e7be5b81e57d?source=rss-8f0a26907bd9------2"><img src="https://cdn-images-1.medium.com/max/928/1*6CRmXs--RMQclGffJsODjQ.png" width="928"></a></p><p class="medium-feed-snippet">From Guesswork to Smart Recommendations</p><p class="medium-feed-link"><a href="https://medium.com/@old.noisy.speaker/discover-what-customers-buy-together-market-basket-analysis-with-python-e7be5b81e57d?source=rss-8f0a26907bd9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@old.noisy.speaker/discover-what-customers-buy-together-market-basket-analysis-with-python-e7be5b81e57d?source=rss-8f0a26907bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7be5b81e57d</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-mining]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[association-rule]]></category>
            <category><![CDATA[market-basket-analysis]]></category>
            <dc:creator><![CDATA[Old Noisy Speaker]]></dc:creator>
            <pubDate>Sat, 19 Jul 2025 14:21:06 GMT</pubDate>
            <atom:updated>2025-07-19T14:21:06.922Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Who Will Buy Next? Predict Customer Behavior with XGBoost and Python]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@old.noisy.speaker/who-will-buy-next-predict-customer-behavior-with-xgboost-and-python-7ee3deab82f8?source=rss-8f0a26907bd9------2"><img src="https://cdn-images-1.medium.com/max/1020/1*9rzgj-0LkXYRppDW8m3P1g.png" width="1020"></a></p><p class="medium-feed-snippet">Introduction&#x200A;&#x2014;&#x200A;From Broad Forecasts to Personalized Predictions</p><p class="medium-feed-link"><a href="https://medium.com/@old.noisy.speaker/who-will-buy-next-predict-customer-behavior-with-xgboost-and-python-7ee3deab82f8?source=rss-8f0a26907bd9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@old.noisy.speaker/who-will-buy-next-predict-customer-behavior-with-xgboost-and-python-7ee3deab82f8?source=rss-8f0a26907bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ee3deab82f8</guid>
            <category><![CDATA[xgboost]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[predictions]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Old Noisy Speaker]]></dc:creator>
            <pubDate>Sat, 12 Jul 2025 12:22:56 GMT</pubDate>
            <atom:updated>2025-07-12T12:22:56.916Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Predicting Your Sales with Python: A Beginner’s Guide to Smarter Inventory Decisions]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@old.noisy.speaker/predicting-your-sales-with-python-a-beginners-guide-to-smarter-inventory-decisions-91b23ef29e09?source=rss-8f0a26907bd9------2"><img src="https://cdn-images-1.medium.com/max/1015/1*kvDoCaQL6feQ74M-Tqi57A.png" width="1015"></a></p><p class="medium-feed-snippet">Why Small Sellers Need Data-Driven Foresight</p><p class="medium-feed-link"><a href="https://medium.com/@old.noisy.speaker/predicting-your-sales-with-python-a-beginners-guide-to-smarter-inventory-decisions-91b23ef29e09?source=rss-8f0a26907bd9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@old.noisy.speaker/predicting-your-sales-with-python-a-beginners-guide-to-smarter-inventory-decisions-91b23ef29e09?source=rss-8f0a26907bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/91b23ef29e09</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[sales-forecasting]]></category>
            <category><![CDATA[time-series-forecasting]]></category>
            <dc:creator><![CDATA[Old Noisy Speaker]]></dc:creator>
            <pubDate>Mon, 07 Jul 2025 07:29:57 GMT</pubDate>
            <atom:updated>2025-07-07T07:29:57.712Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How Apps Like Waze Find the Fastest Route: A Beginner’s Guide to Graphs and Shortest Paths with…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@old.noisy.speaker/how-apps-like-waze-find-the-fastest-route-a-beginners-guide-to-graphs-and-shortest-paths-with-4eba00877789?source=rss-8f0a26907bd9------2"><img src="https://cdn-images-1.medium.com/max/1036/1*-aC_SqcNzIaoq45E9_P7CA.png" width="1036"></a></p><p class="medium-feed-snippet">Why Navigation Apps Use Math (and Why You Should Too)</p><p class="medium-feed-link"><a href="https://medium.com/@old.noisy.speaker/how-apps-like-waze-find-the-fastest-route-a-beginners-guide-to-graphs-and-shortest-paths-with-4eba00877789?source=rss-8f0a26907bd9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@old.noisy.speaker/how-apps-like-waze-find-the-fastest-route-a-beginners-guide-to-graphs-and-shortest-paths-with-4eba00877789?source=rss-8f0a26907bd9------2</link>
            <guid isPermaLink="false">https://medium.com/p/4eba00877789</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[networkx]]></category>
            <category><![CDATA[dijkstras-algorithm]]></category>
            <category><![CDATA[route-optimization]]></category>
            <category><![CDATA[graph-theory]]></category>
            <dc:creator><![CDATA[Old Noisy Speaker]]></dc:creator>
            <pubDate>Sun, 29 Jun 2025 08:05:29 GMT</pubDate>
            <atom:updated>2025-06-29T08:05:29.836Z</atom:updated>
        </item>
    </channel>
</rss>