<?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 Monish K M on Medium]]></title>
        <description><![CDATA[Stories by Monish K M on Medium]]></description>
        <link>https://medium.com/@monishkmgowda01?source=rss-fbc3a4768536------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*o5R8cjoxn20d2IVkYRLpKg.jpeg</url>
            <title>Stories by Monish K M on Medium</title>
            <link>https://medium.com/@monishkmgowda01?source=rss-fbc3a4768536------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 09:01:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@monishkmgowda01/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[When “Angel” Becomes “Angle”: The Pitfalls and Power of Entity Resolution]]></title>
            <link>https://medium.com/@monishkmgowda01/when-angel-becomes-angle-the-pitfalls-and-power-of-entity-resolution-f7167374baa5?source=rss-fbc3a4768536------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7167374baa5</guid>
            <dc:creator><![CDATA[Monish K M]]></dc:creator>
            <pubDate>Wed, 07 May 2025 02:32:06 GMT</pubDate>
            <atom:updated>2025-05-07T02:32:06.893Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>What happens when “Lisa Angel” gets matched to “Lisa Angle”? To a human, they’re clearly different. But to a fuzzy matching algorithm? They might be the same person. Welcome to the fascinating world of Entity Resolution (ER), where the line between logic and illusion gets blurry.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BxWvpfpnXsBA5_6jE4KMCQ.png" /></figure><h4>1. What Is Entity Resolution?</h4><p><strong>Entity Resolution (ER)</strong> — also called <strong>record linkage</strong>, <strong>deduplication</strong>, or <strong>entity matching</strong> — is the process of identifying records that refer to the <strong>same real-world entity</strong> across different datasets.</p><p>It’s what allows Amazon to know you’re the same person on their retail site, Kindle, and Audible accounts — even if you sign up with different emails or misspell your name.</p><h4>2. Why It’s Harder Than It Looks</h4><p>Let’s say you’re building a customer data platform and encounter this:</p><p>Table A: Ecommerce</p><pre>| Customer ID | Name       | Email            | Phone       |<br>|-------------|------------|------------------|-------------|<br>| C001        | Lisa Angel | lisa.a@gmail.com | 09171234567 |</pre><p>Table B: Subscription</p><pre>| Customer ID | Name        | Email               | Phone          |<br>|-------------|-------------|---------------------|----------------|<br>| C455        | Lisa Angle  | lisa.angle@gmail.com| +91-9171234567 |</pre><p>To a fuzzy matching algorithm, “Angel” and “Angle” are just one swapped character apart. But semantically — <strong>they’re not the same person</strong>.</p><h4>3. Matching Methods</h4><p><strong><em>A. Deterministic Matching (Exact)</em></strong></p><pre>df1.join(df2, df1.email == df2.email, &quot;inner&quot;) #email or phone number or address</pre><p>Fast, simple, but brittle — any typos or format differences and it fails.</p><p><strong><em>B. Fuzzy Matching </em></strong>using string similarity:</p><pre>from fuzzywuzzy import fuzz<br>fuzz.ratio(&quot;Lisa Angel&quot;, &quot;Lisa Angle&quot;)  # Returns: 91</pre><p>91% match! But here’s the kicker — <strong>“Lisa Angel” ≠ “Lisa Angle”</strong></p><p>This is a <strong>false positive</strong>, where fuzzy matching looks right but <em>feels wrong</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*4wKIZ1Ps6697TrsmILDjwg.png" /><figcaption>Image generated by ChatGPT (OpenAI)</figcaption></figure><p><strong><em>C. Hybrid Approach- Deterministic + Fuzzy </em></strong>to reduce false positives, we can combine both:</p><pre>from pyspark.sql.functions import udf<br>from pyspark.sql.types import BooleanType<br>from fuzzywuzzy import fuzz<br><br>@udf(BooleanType())<br>def is_similar(name1, name2):<br>    return fuzz.token_sort_ratio(name1, name2) &gt; 90<br><br>df_filtered = df.withColumn(&quot;is_similar&quot;, is_similar(&quot;name_a&quot;, &quot;name_b&quot;))\<br>                .filter(&quot;is_similar == true&quot;)</pre><p>Even better: add <strong>thresholds + conditions</strong>:</p><ul><li>Same phone number <strong>AND</strong> similar name</li><li>Same address <strong>AND</strong> similar email</li></ul><p>This hybrid logic prevents matching “Lisa Angel” to “Lisa Angle” <strong>just</strong> because of a high fuzzy score.</p><h4>4. Final Output: The Unified View</h4><p>Your ideal ER output might look like as shown below.</p><pre>| Unified ID | Source      | Name       | Email                     | Match Type |<br>|------------|-------------|------------|---------------------------|------------|<br>| U001       | Telecom     | Lisa Angel | lisa.a@gmail.com          | exact      |<br>| U001       | Power Util. | Lisa Angle | lisa.angle@gmail.com      | fuzzy      |</pre><h4>5. Best Practices in Entity Resolution</h4><ul><li><strong>Standardize data first</strong>: lowercase, trim spaces, format phone numbers.</li><li><strong>Combine rules and scores</strong>: avoid relying on fuzzy logic alone.</li><li><strong>Keep thresholds adjustable</strong>: tune based on your use case.</li><li><strong>Log match reasoning</strong>: store why two records were matched.</li><li><strong>Use machine learning</strong> for training match models on labeled data (e.g., Dedupe, DeepMatcher, or custom XGBoost models).</li></ul><blockquote><strong>When To Be Cautious</strong></blockquote><pre>| Word A | Word B | Score | Meaning           |<br>| ------ | ------ | ----- | ----------------- |<br>| angel  | angle  | 91    | Different names   |<br>| united | untied | 86    | Opposite concepts |<br>| secure | rescue | 80    | Very different    |<br>| form   | from   | 95    | Common typo trap  |</pre><p>Here are <strong>high-fuzzy-score pairs</strong> that are <strong>not the same. </strong>Don’t fall into the <strong>“91% = same”</strong> trap.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7167374baa5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unleashing the Power of LLMs in Data Analysis: A New Era of Insights]]></title>
            <link>https://medium.com/@monishkmgowda01/unleashing-the-power-of-llms-in-data-analysis-a-new-era-of-insights-4c62913d4468?source=rss-fbc3a4768536------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c62913d4468</guid>
            <dc:creator><![CDATA[Monish K M]]></dc:creator>
            <pubDate>Mon, 08 Jul 2024 05:18:17 GMT</pubDate>
            <atom:updated>2024-07-08T05:18:17.445Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HsPSpgPX0D4G4MK_rCl0Yg.jpeg" /><figcaption>A high-quality digital art view of a robot in the center, demonstrating the power of large language models in data analysis (author created, with ChatGPT-4o).</figcaption></figure><p>In today’s data-driven world, the need for advanced analytics techniques is growing. As data sets continue to expand, organizations seek innovative ways to extract valuable insights from their vast information. Enter Large Language Models (LLMs) — a revolutionary technology poised to transform data analysis. This article explores the basics of LLMs, their role in data analysis, and the promising future they hold.</p><h3><strong>Understanding Large Language Models</strong></h3><p>An LLM is an artificial intelligence model trained on vast amounts of text data. These models can generate human-like text and understand the context and meaning of words and sentences. LLMs can predict the next word in a sentence, understand grammar and syntax, and even generate coherent paragraphs of text.</p><p>LLMs are transforming various fields like natural language processing, machine learning, and artificial intelligence. Built on deep learning architectures, they are often pre-trained on extensive datasets to enhance their language understanding capabilities. LLMs like GPT-3 (Generative Pre-trained Transformer 3) have gained significant attention for their ability to perform a wide range of language-related tasks with remarkable accuracy.</p><h3><strong>LLMs in Data Analysis</strong></h3><p>LLMs have the power to transform data analysis. By leveraging their language understanding capabilities, LLMs can process vast amounts of unstructured data, such as text documents, social media posts, and customer reviews. This opens new possibilities for analyzing and understanding natural language data.</p><p>LLMs can be used in sentiment analysis, topic modeling, text summarization, and even language translation tasks. Their ability to comprehend and generate human-like text enables businesses to automate various processes that involve analyzing and generating textual data. This leads to improved efficiency, accuracy, and scalability in data analysis workflows.</p><h4>Transforming Data Analysis with LLMs</h4><p>LLMs bring a new level of sophistication to data analysis. Traditional methods often rely on rule-based algorithms that require explicit instructions. LLMs, however, can learn patterns and relationships within the data on their own. This means analysts can focus on asking the right questions and let the LLM handle the heavy lifting of understanding the context and extracting meaningful insights.</p><h4>Benefits of Using LLMs in Data Analysis</h4><ol><li><strong>Unstructured data</strong>: LLMs excel at processing <strong>unstructured data</strong>, providing deeper insights into <strong>customer sentiment</strong>, emerging trends, and critical information.</li><li><strong>Complex language tasks</strong>: LLMs can handle tasks like <strong>text classification</strong> and <strong>sentiment analysis</strong> with high accuracy, leveraging their advanced <strong>language understanding</strong> capabilities.</li><li><strong>Text generation</strong>: LLMs can produce <strong>human-like text</strong>, benefiting tasks such as <strong>content creation</strong>, <strong>chatbots</strong>, and <strong>automated customer service</strong>, thereby enhancing operational efficiency and customer interactions.</li><li><strong>Customization</strong>: LLMs can be <strong>fine-tuned</strong> for specific <strong>industries</strong> or use cases, allowing organizations to leverage domain expertise and tailor models to their <strong>unique needs</strong>. This ensures highly relevant insights for <strong>informed decision-making</strong> and strategic planning.</li></ol><h3><strong>Challenges and Solutions in Implementing LLMs for Data Analysis</strong></h3><h4>Bias and Ethical Considerations</h4><p>LLMs are trained on large datasets that may contain biases, leading to skewed or discriminatory results. This can impact areas like customer segmentation or hiring practices. Ensuring data used to train LLMs is unbiased and representative is crucial.</p><p><strong>Solution:</strong> Regularly audit models to identify and correct biases. Human oversight and robust testing can help ensure LLM tools deliver objective results.</p><h4>Data Privacy Concerns</h4><p>Integrating LLMs into business analytics raises data privacy concerns, as they require access to large amounts of data. Protecting the privacy and security of this data is essential.</p><p><strong>Solution:</strong> Implement strong encryption, access controls, and data anonymization to prevent unauthorized access. Ensure data collection and use comply with privacy regulations to build trust with stakeholders.</p><h4>Resource Intensiveness</h4><p>LLMs require significant computational power and memory, posing a challenge for businesses with limited resources.</p><p><strong>Solution:</strong> Use cloud computing or pre-trained models to reduce the computational burden. Partnering with specialized vendors can also help.</p><h3>Wrapping Up</h3><p>Integrating LLMs into data analytics has created powerful workflows and made accessing complex insights easier. The rapid evolution of LLMs continues to drive innovation in this field. Consequently, businesses are seeking compatible solutions to leverage advanced AI models in their analytics processes.</p><blockquote><a href="https://github.com/MonishKMGowda/Power-of-LLMs-in-Data-Analysis/blob/main/Power_of_LLMs_in_Data_Analysis.ipynb"><strong>Example : Performing Simple EDA using LLM</strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*C6MoAkfBXws6d_nmmGbxxA.png" /><figcaption>Simplifying EDA with LLMs</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c62913d4468" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>