<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Data-Analytics on Samarthya</title><link>https://samarthya.me/tags/data-analytics/</link><description>Recent content in Data-Analytics on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Mon, 26 Oct 2026 18:50:00 -0400</lastBuildDate><atom:link href="https://samarthya.me/tags/data-analytics/index.xml" rel="self" type="application/rss+xml"/><item><title>AI on this blog: a reading map</title><link>https://samarthya.me/posts/ai-reading-map/</link><pubDate>Mon, 26 Oct 2026 18:50:00 -0400</pubDate><guid>https://samarthya.me/posts/ai-reading-map/</guid><description>&lt;div class="lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl"&gt;&#10; I&amp;rsquo;ve written about AI and data on and off since 2023, one post at a time. Read in this order, they tell&#10;one story: from how machines learn, to how language models work, to building with them, to letting them act.&#10;&lt;/div&gt;&#10;&#10;&#10;&lt;h2 class="relative group"&gt;1. How machines learn&#10; &lt;div id="1-how-machines-learn" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#1-how-machines-learn" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Post&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;In one line&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/the-core-divide/" &gt;The Core Divide&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Supervised vs unsupervised learning&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/k-nearest-neighbors/" &gt;K-Nearest Neighbors&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Classify by the company you keep&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/mastering-tf-idf-a-gamified-journey/" &gt;Mastering TF-IDF&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Turning text into numbers that mean something&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/data-mining-essentials/" &gt;Data Mining Essentials&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Distances, clusters and the core vocabulary&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/matrix-multiplication-to-gpus/" &gt;Matrix Multiplication to GPUs&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Why AI runs on graphics cards&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&#10;&lt;h2 class="relative group"&gt;2. How language models work&#10; &lt;div id="2-how-language-models-work" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#2-how-language-models-work" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Post&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;In one line&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/genai/" &gt;GenAI&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;What generative AI is, and its building blocks (2023)&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/language-model/" &gt;Language Model&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Transformers and the attention breakthrough&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/two-students-two-talents-the-story-of-how-ai-learns-language/" &gt;Two Students, Two Talents&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Auto-regressive (GPT) vs auto-encoding (BERT) models&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/the-evolution-of-language-models/" &gt;The Evolution of Language Models&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;From 2017&amp;rsquo;s transformer to today&amp;rsquo;s families&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/the-probability-engine/" &gt;The Probability Engine&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The maths of choosing the next token&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/ai-in-practice-3-tokens-and-tokenomics/" &gt;Tokens and tokenomics&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;What a token is, context windows, and the bill&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&#10;&lt;h2 class="relative group"&gt;3. Building with models&#10; &lt;div id="3-building-with-models" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#3-building-with-models" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Post&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;In one line&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/ollama-revolutionizing-language-models/" &gt;Ollama&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Running language models on your own machine&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/building-a-minimal-langchain-ollama-demo/" &gt;A minimal LangChain + Ollama demo&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Prompt, model and chain, end to end&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/building-a-practical-retrieval-augmented-personal-assistant-rag/" &gt;A practical RAG assistant&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Answering from your own documents&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/from-speech-to-text-a-python-deep-dive/" &gt;From speech to text&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Speech recognition in Python&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/ai-in-practice-1-choosing-a-framework/" &gt;Choosing the right framework&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The AI stack, layer by layer&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/ai-in-practice-2-vertex-ai-pipelines/" &gt;ML pipelines on Vertex AI&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Train, evaluate and deploy, repeatably&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&#10;&lt;h2 class="relative group"&gt;4. Letting models act&#10; &lt;div id="4-letting-models-act" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#4-letting-models-act" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Post&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;In one line&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/ai-in-practice-4-tools-and-agents/" &gt;From RAG to tools and agents&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Function calling and the agent loop&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/ai-in-practice-5-mcp/" &gt;MCP, the Model Context Protocol&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;One standard plug for tools and data&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://samarthya.me/posts/the-ghost-board/" &gt;The Ghost Board&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;A story about agents nobody was watching&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&#10;&lt;h2 class="relative group"&gt;The data shelf&#10; &lt;div id="the-data-shelf" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#the-data-shelf" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;Analytics and big-data posts that sit underneath much of the above:&lt;/p&gt;</description></item><item><title>Data Mining Essentials</title><link>https://samarthya.me/posts/data-mining-essentials/</link><pubDate>Sat, 08 Nov 2025 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/data-mining-essentials/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt=""&#10; width="600"&#10; height="600"&#10; src="https://samarthya.me/posts/data-mining-essentials/manhattan_distance.png"&#10; srcset="https://samarthya.me/posts/data-mining-essentials/manhattan_distance.png 800w, https://samarthya.me/posts/data-mining-essentials/manhattan_distance.png 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/data-mining-essentials/manhattan_distance.png"&gt;&lt;/figure&gt;&#10;&lt;p&gt;Whether you’re preparing for a quiz or just brushing up on fundamentals, this guide distills the key concepts from Data Mining into bite-sized, memorable chunks. Let’s dive in!&lt;/p&gt;</description></item><item><title>Linear Programming (LP)</title><link>https://samarthya.me/posts/linear-programming-lp/</link><pubDate>Fri, 14 Feb 2025 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/linear-programming-lp/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt=""&#10; width="2048"&#10; height="2048"&#10; src="https://samarthya.me/posts/linear-programming-lp/lp2_hu_be09dcd9a7deda9c.jpg"&#10; srcset="https://samarthya.me/posts/linear-programming-lp/lp2_hu_be09dcd9a7deda9c.jpg 800w, https://samarthya.me/posts/linear-programming-lp/lp2_hu_9bdd31d17e7b456e.jpg 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/linear-programming-lp/lp2.jpg"&gt;&lt;/figure&gt;&#10;&#10;&lt;h2 class="relative group"&gt;&lt;strong&gt;What is Linear Programming?&lt;/strong&gt;&#10; &lt;div id="what-is-linear-programming" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-is-linear-programming" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;Linear programming is a mathematical technique used to find the best possible outcome (maximum profit or minimum cost) in a situation where the relationships between the factors involved are linear. It’s like finding the sweet spot where you get the most out of what you have, given certain limitations.&lt;/p&gt;</description></item><item><title>Monte Carlo Optimisation</title><link>https://samarthya.me/posts/monte-carlo-optimisation/</link><pubDate>Fri, 14 Feb 2025 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/monte-carlo-optimisation/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt=""&#10; width="600"&#10; height="600"&#10; src="https://samarthya.me/posts/monte-carlo-optimisation/montecarlo.png"&#10; srcset="https://samarthya.me/posts/monte-carlo-optimisation/montecarlo.png 800w, https://samarthya.me/posts/monte-carlo-optimisation/montecarlo.png 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/monte-carlo-optimisation/montecarlo.png"&gt;&lt;/figure&gt;&#10;&lt;p&gt;Imagine you’re trying to find the best solution to a problem, but the problem is really complex and has a lot of randomness involved. Maybe you’re trying to design a new drug, or optimize a financial portfolio, or figure out the best route for a delivery truck.&lt;/p&gt;</description></item><item><title>Business Analytics: The bigger picture</title><link>https://samarthya.me/posts/business-analytics-the-bigger-picture/</link><pubDate>Fri, 07 Feb 2025 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/business-analytics-the-bigger-picture/</guid><description>&lt;p&gt;Imagine you’re a business owner trying to figure out why your sales are down. You could &lt;code&gt;guess&lt;/code&gt;, or you could use &lt;strong&gt;business analytics&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;In simple terms, business analytics is like a detective for your business. It uses data to uncover clues and insights that help you make better decisions. Instead of relying on gut feelings, you use facts and figures to understand what’s happening and what you can do about it.&lt;/p&gt;</description></item><item><title>Comparison of Competing Forecasting Models</title><link>https://samarthya.me/posts/comparison-of-competing-forecasting-models/</link><pubDate>Fri, 07 Feb 2025 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/comparison-of-competing-forecasting-models/</guid><description>&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Performance Measure&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Description&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Interpretation&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Advantages&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Disadvantages&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Mean Absolute Error (MAE)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Average absolute difference between forecast and actual values.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Lower MAE indicates better accuracy.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Easy to understand and interpret. Robust to outliers.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Doesn’t penalize large errors more than small ones.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Mean Squared Error (MSE)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Average squared difference between forecast and actual values.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Lower MSE indicates better accuracy.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Penalizes larger errors more heavily. Mathematically convenient.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Sensitive to outliers. Units are squared.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Root Mean Squared Error (RMSE)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Square root of MSE.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Lower RMSE indicates better accuracy.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Same units as the original data. Penalizes larger errors more heavily.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Sensitive to outliers.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Mean Absolute Percentage Error (MAPE)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Average absolute percentage difference between forecast and actual values.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Lower MAPE indicates better accuracy.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Easy to understand and interpret. Scale-independent.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Undefined if actual values are zero. Can be biased if actual values are close to zero.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Symmetric Mean Absolute Percentage Error (sMAPE)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;A variation of MAPE that handles zero or near-zero actual values better.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Lower sMAPE indicates better accuracy.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Handles zero or near-zero actual values better than MAPE. Scale-independent.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Can still be biased if forecasts are consistently over or under the actual values.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Mean Error (ME) or Bias&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Average difference between forecast and actual values.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Closer to zero indicates less bias. Positive ME suggests over-forecasting. Negative ME suggests under-forecasting.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Detects systematic over or under-forecasting.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Doesn’t measure the magnitude of errors, only the direction.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Theil’s U&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Compares the forecasting accuracy of the model to a naive forecast (e.g., assuming no change).&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;U &amp;lt; 1 indicates better performance than the naive forecast. U = 1 means equal performance. U &amp;gt; 1 means worse performance.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Useful for assessing the value added by the model compared to a simple benchmark.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Can be sensitive to outliers.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;&lt;strong&gt;Imagine you’re predicting how many ice cream cones you’ll sell each day.&lt;/strong&gt; You have a model that makes these predictions, and you want to see how good it is. These measures help you do that.&lt;/p&gt;</description></item><item><title>Forecasting Methods</title><link>https://samarthya.me/posts/forecasting-methods/</link><pubDate>Fri, 07 Feb 2025 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/forecasting-methods/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt=""&#10; width="2048"&#10; height="2048"&#10; src="https://samarthya.me/posts/forecasting-methods/forecasting1_hu_b9373a45f2aec400.jpg"&#10; srcset="https://samarthya.me/posts/forecasting-methods/forecasting1_hu_b9373a45f2aec400.jpg 800w, https://samarthya.me/posts/forecasting-methods/forecasting1_hu_89058d09e8591967.jpg 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/forecasting-methods/forecasting1.jpg"&gt;&lt;/figure&gt;&#10;&lt;p&gt;Forecasting methods are the techniques used to predict future outcomes based on past data and trends. They’re like having a crystal ball, but instead of magic, they use data and statistics!&lt;/p&gt;</description></item><item><title>Model and Selection</title><link>https://samarthya.me/posts/model-and-selection/</link><pubDate>Fri, 07 Feb 2025 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/model-and-selection/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt=""&#10; width="2048"&#10; height="2048"&#10; src="https://samarthya.me/posts/model-and-selection/model1_hu_a66fcff9a6d0a4ec.jpg"&#10; srcset="https://samarthya.me/posts/model-and-selection/model1_hu_a66fcff9a6d0a4ec.jpg 800w, https://samarthya.me/posts/model-and-selection/model1_hu_532d03cceb4bf506.jpg 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/model-and-selection/model1.jpg"&gt;&lt;/figure&gt;&#10;&#10;&lt;h3 class="relative group"&gt;&lt;strong&gt;What is a Model?&lt;/strong&gt;&#10; &lt;div id="what-is-a-model" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-is-a-model" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h3&gt;&#10;&lt;p&gt;In the context of forecasting and business analytics, a model is a simplified representation of a real-world situation or process. It’s like a blueprint or a miniature version that helps us understand, analyze, and make predictions about something complex.&lt;/p&gt;</description></item><item><title>Business Analytics: Simplified</title><link>https://samarthya.me/posts/business-analytics-simplified/</link><pubDate>Mon, 03 Feb 2025 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/business-analytics-simplified/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt=""&#10; width="2048"&#10; height="2048"&#10; src="https://samarthya.me/posts/business-analytics-simplified/ba2_hu_618457de1598d8dc.jpg"&#10; srcset="https://samarthya.me/posts/business-analytics-simplified/ba2_hu_618457de1598d8dc.jpg 800w, https://samarthya.me/posts/business-analytics-simplified/ba2_hu_99fa047ab350e182.jpg 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/business-analytics-simplified/ba2.jpg"&gt;&lt;/figure&gt;&#10;&lt;p&gt;Business Analytics (BA) is like a &lt;strong&gt;GPS for businesses&lt;/strong&gt;—it uses data to guide decisions, solve problems, and predict future outcomes. It turns raw numbers into actionable insights, helping companies answer questions like:&lt;/p&gt;</description></item><item><title>Correlation and Covariance</title><link>https://samarthya.me/posts/correlation-and-covariance/</link><pubDate>Sun, 02 Feb 2025 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/correlation-and-covariance/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt=""&#10; width="2048"&#10; height="2048"&#10; src="https://samarthya.me/posts/correlation-and-covariance/covariance_hu_a5b382149cada2c1.jpg"&#10; srcset="https://samarthya.me/posts/correlation-and-covariance/covariance_hu_a5b382149cada2c1.jpg 800w, https://samarthya.me/posts/correlation-and-covariance/covariance_hu_7f16f0039c30a56.jpg 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/correlation-and-covariance/covariance.jpg"&gt;&lt;/figure&gt;&#10;&#10;&lt;h2 class="relative group"&gt;Introduction&#10; &lt;div id="introduction" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#introduction" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;strong&gt;Correlation&lt;/strong&gt; and covariance are statistical measures that help us understand the relationship between two numerical variables.&lt;/p&gt;</description></item><item><title>RFM Analysis: A Comprehensive Guide to Customer Segmentation</title><link>https://samarthya.me/posts/rfm-analysis-a-comprehensive-guide-to-customer-segmentation/</link><pubDate>Fri, 24 Jan 2025 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/rfm-analysis-a-comprehensive-guide-to-customer-segmentation/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt=""&#10; width="2048"&#10; height="2048"&#10; src="https://samarthya.me/posts/rfm-analysis-a-comprehensive-guide-to-customer-segmentation/bin-3_hu_c3fbcd829c37df36.jpg"&#10; srcset="https://samarthya.me/posts/rfm-analysis-a-comprehensive-guide-to-customer-segmentation/bin-3_hu_c3fbcd829c37df36.jpg 800w, https://samarthya.me/posts/rfm-analysis-a-comprehensive-guide-to-customer-segmentation/bin-3_hu_1abb0a6ffe2fd67f.jpg 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/rfm-analysis-a-comprehensive-guide-to-customer-segmentation/bin-3.jpg"&gt;&lt;/figure&gt;&#10;&#10;&lt;h2 class="relative group"&gt;What is RFM Analysis?&#10; &lt;div id="what-is-rfm-analysis" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-is-rfm-analysis" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;RFM (Recency, Frequency, Monetary) Analysis is a customer segmentation technique that uses three key metrics:&lt;/p&gt;</description></item><item><title>GenAI</title><link>https://samarthya.me/posts/genai/</link><pubDate>Tue, 03 Oct 2023 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/genai/</guid><description>&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt=""&#10; width="300"&#10; height="300"&#10; src="https://samarthya.me/posts/genai/screenshot-2023-10-03-at-9.54.03-am.png"&#10; srcset="https://samarthya.me/posts/genai/screenshot-2023-10-03-at-9.54.03-am.png 800w, https://samarthya.me/posts/genai/screenshot-2023-10-03-at-9.54.03-am.png 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://samarthya.me/posts/genai/screenshot-2023-10-03-at-9.54.03-am.png"&gt;&lt;figcaption&gt;(thumbnail only — original image lost)&lt;/figcaption&gt;&lt;/figure&gt;&#10;&lt;p&gt;Artificial Intelligence (AI) has revolutionized many aspects of our lives, from virtual assistants like Siri and Alexa to self-driving cars and personalized content recommendations. One of the exciting and rapidly evolving &lt;code&gt;subfields&lt;/code&gt; of AI is Generative AI, often referred to as GenAI. In this beginner-friendly blog post, I’ll explore the basics of Generative AI, its applications, and how it’s changing the way we interact with technology.&lt;/p&gt;</description></item></channel></rss>