<?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 Sabarinathan J on Medium]]></title>
        <description><![CDATA[Stories by Sabarinathan J on Medium]]></description>
        <link>https://medium.com/@sabarisury?source=rss-5ec6ac983c29------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*USqt32UK9EqD5EpXNz5beQ.jpeg</url>
            <title>Stories by Sabarinathan J on Medium</title>
            <link>https://medium.com/@sabarisury?source=rss-5ec6ac983c29------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:19:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sabarisury/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[An Introduction to Machine Learning: Moving Beyond Explicit Rules]]></title>
            <link>https://medium.com/@sabarisury/an-introduction-to-machine-learning-moving-beyond-explicit-rules-eed3f666d9d1?source=rss-5ec6ac983c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/eed3f666d9d1</guid>
            <dc:creator><![CDATA[Sabarinathan J]]></dc:creator>
            <pubDate>Fri, 05 Dec 2025 06:06:12 GMT</pubDate>
            <atom:updated>2025-12-05T06:14:27.920Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>A beginner’s guide based on foundational notes, exploring what machine learning is and how it’s categorized by supervision</blockquote><p>Machine Learning (ML) is a crucial subset of Artificial Intelligence (AI). At its simplest, it is the process of building a system that can learn patterns directly from data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7JsPEgZq-GYMRBEDUlWfOQ.jpeg" /></figure><blockquote>Unlike traditional software, where every action is explicitly programmed, a machine learning system uses these learned patterns to make predictions or decisions without being specifically told how to handle every scenario.</blockquote><p>The ultimate goal of training a system is to minimize error. If a system is trained efficiently to achieve minimal error, it can accurately predict results from new data it hasn’t seen before.</p><h4><strong>The Shift: Traditional vs. Machine Learning</strong></h4><p>To understand the significance of ML, it helps to compare it with traditional, rule-based programming.</p><p><strong>Traditional Rule-Based Systems</strong><br>These systems operate on explicit rules and logic defined precisely by humans.<br>They require manual updates whenever conditions or requirements change in the future.<br>As more rules are added to handle edge cases, the system inevitably becomes more complicated and difficult to manage.</p><p><strong>Machine Learning Systems</strong><br>Instead of relying on human-authored rules, the system learns the “rules” itself by processing vast amounts of data.</p><h3><strong>Types of Machine Learning</strong></h3><p>Machine learning can be categorized in several ways depending on the lens through which you view the system:</p><blockquote>1. <strong>Supervision</strong>: How the system is trained.<br>2. <strong>Learning style</strong>: How the system updates itself over time.<br>3. <strong>Decision Strategy</strong>: How the system makes its final decisions.</blockquote><p>The most common way to classify ML is by the level of <strong>supervision</strong> during training. Here are the four main types based on these criteria:</p><p><strong>1. Supervised Learning</strong><br>In supervised learning, the system learns from data that already has the “answers.”</p><p>The model is fed both <strong><em>Input + Output</em></strong>. It learns by analyzing the relationship between the raw data (input) and the known correct labels (output). The goal is to build a model that will produce accurate outputs when given new, unseen inputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QHlR0e1UDvqH1A4Hgzt_9g.jpeg" /><figcaption>Think of it like the robotic arm shown here. It doesn’t have to guess what an apple looks like from scratch; it has a reference guide (the label). It compares the fruit in its hand to the &#39;Apple&#39; bin and the &#39;Orange&#39; bin, placing it where it fits best based on the answers it was already given</figcaption></figure><p><strong>2. Unsupervised Learning</strong><br>Unsupervised learning involves training a system using data <strong><em>without answers</em></strong>.</p><p>The model receives only Input data (no labels). Because there are no predefined correct outputs, the model’s goal is to discover hidden structures, discover underlying patterns, or group similar data points within the dataset on its own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*frE8blxF3LvYLGKMxUlpcQ.jpeg" /><figcaption>This process is depicted in the image above as floating geometric shapes. There are no bins or labels telling the system &#39;this is a cube.&#39; Instead, the system observes the chaos and naturally pulls the cubes toward other cubes and spheres toward other spheres, discovering the hidden structure on its own</figcaption></figure><p><strong>3. Semi-supervised Learning</strong><br>As the name implies, this type sits between supervised and unsupervised learning.</p><p>In this approach, the training dataset contains some labeled data (data with output answers), but the vast majority of it is unlabeled. The resulting output is a mix of labeled and non-labeled information. This is highly practical in the real world, where acquiring labeled data is often expensive or time-consuming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q5QWsMEgja1enRl0IQOUYw.jpeg" /><figcaption>Visualizing this concept, imagine a massive library of blank books. It would take forever to write titles on all of them. However, if you have just a few books with glowing, clear titles (labeled data), you can use the light from those few to illuminate and infer the contents of the thousands of blank books surrounding them</figcaption></figure><p><strong>4. Reinforcement Learning</strong><br>Reinforcement learning operates differently than the previous three types; there is no traditional concept of “<strong><em>output data</em></strong>.”</p><p>It is based on an agent taking <strong><em>a set of actions within an environment</em></strong>. It is essentially a reward/penalty feedback system used to help the agent “learn best”:<br>* If an action leads to a positive outcome, the agent receives a **<strong>reward</strong>**.</p><p>* If an action leads to a negative outcome, the agent is **<strong>penalized</strong>**.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wvodFAU6dtq2ggxy0GEUAA.jpeg" /><figcaption>This is best represented by the &#39;robot mouse&#39; scenario. The mouse isn’t told the map of the maze. Instead, it learns that turning left leads to cheese (a positive reward) and turning right leads to a shock (a negative penalty). Over time, it memorizes the path that results in the most cheese and the least pain.</figcaption></figure><p>Through trial and error, the system learns which actions maximize its reward over time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eed3f666d9d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Statistics for Absolute Beginners: Theory + Real-Life Examples + Graphs]]></title>
            <link>https://medium.com/@sabarisury/statistics-for-absolute-beginners-theory-real-life-examples-graphs-726574b64709?source=rss-5ec6ac983c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/726574b64709</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Sabarinathan J]]></dc:creator>
            <pubDate>Sun, 24 Aug 2025 03:16:32 GMT</pubDate>
            <atom:updated>2025-08-24T03:16:32.911Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. What is Statistics? 🎯</h3><p><strong>Definition:</strong> Statistics is the science of <strong>collecting, analyzing, and interpreting data</strong>.</p><p>Statistics is like a toolkit for making sense of data. It’s about collecting, analyzing, and interpreting numbers to spot patterns or make decisions.</p><p>Here are two main branches:</p><ul><li><strong>Descriptive Statistics</strong>: This summarizes what your data looks like. Think of it as describing a photo — you calculate averages, create charts, and show trends without guessing beyond the data.</li><li><strong>Inferential Statistics</strong>: This uses a small sample to make predictions about a bigger group (population). It’s like using a taste test to guess if the whole batch is good.</li></ul><p><strong>Example with Cookies: </strong>Imagine you own a cookie shop.</p><p>Descriptive stats might tell you the average baking time for 100 cookies you baked today is 10 minutes.</p><p>Inferential stats could use that to predict the average for all cookies you’ll ever bake.</p><h3>2. Descriptive vs. Inferential Statistics: Digging Deeper</h3><ul><li><strong>Descriptive</strong>: Focuses on the “what” — mean (average), median (middle value), mode (most common), and visuals like histograms.</li><li><strong>Inferential</strong>: Focuses on the “what if” — using samples to estimate population means, with tools like confidence intervals.</li></ul><p>Inferential often involves “mean predictions” (estimating averages) or “generalizations” (broad conclusions from limited data).</p><p><strong>Cookie Example</strong>:</p><p>Descriptive: The average sales per day last week was 100 cookies. Inferential: Based on that, we predict next month’s average will be around 100, with 95% confidence between 90 and 110.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dI-5MSeBYy3OnrDcjI7s9g.png" /><figcaption>Descriptive Statistics</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*saHimM2E6mCQFCL0HFgj1g.png" /><figcaption>Inferential Statistics</figcaption></figure><h3>The Central Limit Theorem (CLT):</h3><h3>Why Averages Behave Nicely</h3><p>The CLT is a superstar in statistics. It says that if you take many random samples from any population and calculate their averages, those averages will form a <strong>normal distribution</strong> (bell curve) as the sample size grows (usually 30+ items per sample). This works even if the original data isn’t bell-shaped!</p><p><strong><em>Why? Averages “smooth out” extremes — highs and lows cancel each other.</em></strong></p><p><strong>Cookie Example</strong>: Population: All cookies, baking times skewed (most around 10 minutes, some longer). Take 100 samples of 50 cookies each. The averages (e.g., 9.9, 10.1) form a bell curve centered at 10 minutes.</p><h3>Key Points:</h3><ul><li><strong>Random Samples</strong>: The samples must be randomly selected and independent.</li><li><strong>Sample Size</strong>: The larger the sample size (typically n ≥ 30 is a rough guideline), the closer the distribution of the sample means gets to a normal distribution.</li><li><strong>Mean and Variance</strong>: The mean of the sample means will be approximately equal to the population mean, and the variance of the sample means will be the population variance divided by the sample size.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x2sLfsqTpkcZF5vziMGZ4A.png" /></figure><h3>Example in Simple Terms:</h3><p>Imagine you’re measuring the heights of people in a city. The population’s height distribution might be skewed or irregular. If you take multiple random samples (e.g., groups of 50 people) and calculate the average height for each sample, those averages will form a bell-shaped (normal) distribution when plotted, especially as the sample size increases. This allows you to make predictions about the population’s average height with tools like confidence intervals.</p><h3>Why It Matters:</h3><p>The CLT is crucial because it justifies using normal distribution-based methods (like z-tests or t-tests) in inferential statistics to make predictions or generalizations about a population, even when the population data isn’t normally distributed. It’s widely used in polling, quality control, scientific research, and more.</p><p>In short, the CLT tells us that averages from random samples tend to behave predictably (like a normal distribution), making statistical analysis reliable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=726574b64709" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Statistics Fundamentals: Mean, Median, Standard Deviation, and Variance]]></title>
            <link>https://medium.com/@sabarisury/understanding-statistics-fundamentals-mean-median-standard-deviation-and-variance-51e396ce8720?source=rss-5ec6ac983c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/51e396ce8720</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Sabarinathan J]]></dc:creator>
            <pubDate>Wed, 13 Aug 2025 03:48:46 GMT</pubDate>
            <atom:updated>2025-08-13T03:48:46.589Z</atom:updated>
            <content:encoded><![CDATA[<p>A complete guide to central tendency and variability measures with practical examples for machine learning</p><h3>Introduction</h3><p>If you’re learning machine learning and statistics, you’ve probably encountered terms like mean, median, standard deviation, and variance. You might wonder: “Why do we need to square the differences? And why does the sum of differences always equal zero?” This comprehensive article will answer these fundamental questions with clear explanations, visual examples, and practical applications.</p><h3>Understanding Central Tendency: Mean vs Median</h3><p>Before diving into variance and standard deviation, let’s understand the basics of central tendency.</p><h3>What is the Mean?</h3><p>The <strong>mean</strong> (arithmetic average) is the sum of all values divided by the number of values.</p><p><strong>Formula:</strong> Mean = (x₁ + x₂ + x₃ + … + xₙ) ÷ n</p><p><strong>Example:</strong></p><pre>Test scores: [85, 90, 78, 92, 88]<br>Mean = (85 + 90 + 78 + 92 + 88) ÷ 5 = 433 ÷ 5 = 86.6</pre><h3>What is the Median?</h3><p>The <strong>median</strong> is the middle value when data is arranged in ascending order.</p><p><strong>For odd number of values:</strong></p><pre>Heights: [160, 165, 170, 175, 180]<br>Median = 170 (middle value)</pre><p><strong>For even number of values:</strong></p><pre>Ages: [20, 25, 30, 35]<br>Median = (25 + 30) ÷ 2 = 27.5</pre><h3>Mean vs Median: When to Use Which?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_9-9a-ofSG2KSzHb93wGQ.png" /></figure><p><strong>Example of Outlier Impact:</strong></p><pre>Salaries: [$30k, $32k, $35k, $38k, $1M]<br>Mean = $227k (misleading - affected by the $1M outlier)<br>Median = $35k (more representative of typical salary)</pre><h3>Visual Comparison</h3><pre>Data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 100]</pre><pre><strong>Normal</strong> <strong>visualization</strong>:<br>1  2  3  4  5  6  7  8  9                    100<br>         ↑                                    ↑<br>      <strong>Median</strong> = 5.5                    Mean pulls toward outlier<br>                                      <strong>Mean</strong> = 14.5</pre><h3>What Are Standard Deviation and Variance?</h3><p>Both variance and standard deviation measure <strong>how spread out</strong> your data points are from the average (mean). Think of them as answering: “Are my data points clustered tightly around the average, or scattered all over the place?”</p><h3>Visual Representation</h3><pre>Low Variance Dataset (tightly clustered):<br>    Data: [169, 170, 171, 170, 170]<br>    <br>    169  170  170  170  171<br>     •    •    •    •    •<br>     |-------- Mean = 170 --------|<br>    <br>    Most points are very close to the mean!</pre><pre>High Variance Dataset (widely spread):<br>    Data: [160, 165, 170, 175, 180]<br>    <br>    160      165      170      175      180<br>     •        •        •        •        •<br>     |------------- Mean = 170 -------------|<br>    <br>    Points are spread far from the mean!</pre><h3>A Simple Example</h3><p>Let’s say you’re measuring the heights of students in two classes:</p><p><strong>Class A:</strong> 170cm, 171cm, 169cm, 170cm, 170cm<br> <strong>Class B:</strong> 160cm, 180cm, 165cm, 175cm, 170cm</p><pre>Class A Visualization:<br>169  170  170  170  171<br> -    •    •    •    •     ← Tightly clustered<br>     Mean = 170cm</pre><pre>Class B Visualization:<br>160      165  170  175      180<br> -        •    •    •        •     ← Widely spread<br>          Mean = 170cm</pre><p>Both classes have the same average height (170cm), but Class A has students with very similar heights, while Class B has more variation.</p><h3>Understanding Variance</h3><p>Variance measures the average of squared differences from the mean:</p><ol><li><strong>Find the mean:</strong> 170cm for both classes</li><li><strong>Calculate differences:</strong> Class A: (0, 1, -1, 0, 0), Class B: (-10, 10, -5, 5, 0)</li><li><strong>Square the differences:</strong> Class A: (0, 1, 1, 0, 0), Class B: (100, 100, 25, 25, 0)</li><li><strong>Take the average:</strong> Class A variance = 0.4, Class B variance = 50</li></ol><h3>Understanding Standard Deviation</h3><p>Standard deviation is simply the <strong>square root of variance</strong>:</p><ul><li>Class A: √0.4 = 0.63cm</li><li>Class B: √50 = 7.07cm</li></ul><h3>Why Use Standard Deviation Instead of Variance?</h3><p><strong>Units matter!</strong> Variance gives you “squared units” (cm² in our example), which is hard to interpret. Standard deviation gives you the same units as your original data (cm), making it much more intuitive.</p><h3>The Big Question: Why Do We Square the Differences?</h3><p>This is where most students get confused. Let’s explore this step by step.</p><h3>The Problem: What Happens Without Squaring?</h3><p>Let’s try calculating the average difference WITHOUT squaring first:</p><p><strong>Dataset:</strong> [160, 165, 170, 175, 180] with mean = 170</p><pre><strong>Visual representation of differences:</strong></pre><pre>160     165     170     175     180<br> -       •       •       •       •<br> |       |       |       |       |<br>-10     -5       0      +5      +10    ← Differences from mean<br> |       |       |       |       |<br> └───────┴───────┼───────┴───────┘<br>                 Mean = 170<br>        <br>Negative differences ←  → Positive differences<br>     (-10) + (-5)    =  -15<br>                (+5) + (+10)  = +15<br>                <br>Total: -15 + 15 = 0The Core Problem: It Always Equals Zero!</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yFPKZi30vTZFVCbOyQQKrQ.png" /></figure><p>Here’s the crucial insight: <strong>The sum of differences from the mean ALWAYS equals zero, and this is NOT a coincidence!</strong></p><h4>The Balance Point Analogy</h4><p>Think of the mean as the balance point (fulcrum) of a seesaw:</p><pre>Seesaw Balance Demonstration<br>         <br>    -10kg    -5kg         +5kg    +10kg<br>      •       •      |      •       •<br>      |       |      |      |       |<br>    160     165    [170]   175     180<br>                    ↑<br>                 Fulcrum<br>                (Mean = 170)<br>                <br>Left side total: -15kg<br>Right side total: +15kg<br>Net balance: -15 + 15 = 0</pre><p>By definition, the mean is chosen so that:</p><ul><li>Total weight on the left side = Total weight on the right side</li><li>Therefore: left side — right side = 0</li></ul><p><strong>This is guaranteed by the mathematical definition of what “average” means!</strong></p><h3>The Solution: Why Squaring Works</h3><p>Now let’s try WITH squaring:</p><pre><strong>Visual representation of squaring:</strong></pre><pre>Original differences:  -10   -5    0   +5   +10<br>                        ↓    ↓    ↓    ↓    ↓<br>After squaring:        100   25    0   25   100</pre><pre>Notice: All values become POSITIVE!<br>        Larger differences get MORE weight!<br>        <br>        2² = 4    vs    10² = 100<br>        ↑                ↑<br>   Small difference   Large difference gets<br>   gets small weight  25× more weight!</pre><h3>Three Key Reasons We Square</h3><h3>1. Eliminate Negative Numbers</h3><p>Differences from the mean can be positive or negative. Without squaring, they sum to zero and give us no information about spread.</p><pre>Without squaring: (-10) + (-5) + 0 + 5 + 10 = 0 ❌<br>With squaring: 100 + 25 + 0 + 25 + 100 = 250 ✅</pre><h3>2. Give More Weight to Larger Differences</h3><p>Squaring makes bigger deviations count more than smaller ones, which is mathematically desirable.</p><pre>Small difference: 2² = 4<br>Large difference: 10² = 100<br>The large difference gets 25× more weight (not just 5×)</pre><h3>3. Mathematical Properties</h3><p>Squaring creates useful mathematical properties:</p><ul><li>Makes calculus work smoothly (derivatives exist everywhere)</li><li>Creates the normal distribution’s bell curve</li><li>Enables powerful statistical tests</li><li>Works well in optimization algorithms</li></ul><h3>Practical Applications in Machine Learning</h3><h3>1. Feature Scaling</h3><p>If one feature has std=1000 and another has std=0.01, you’ll want to normalize them so they’re on similar scales.</p><pre>Before scaling:<br>Feature A: [1000, 2000, 3000] (std ≈ 816)<br>Feature B: [0.01, 0.02, 0.03] (std ≈ 0.008)</pre><pre>After standardization:<br>Feature A: [-1, 0, 1]<br>Feature B: [-1, 0, 1]<br>Both now have std = 1</pre><h3>2. Outlier Detection</h3><p>Points more than 2–3 standard deviations from the mean are often outliers.</p><pre>Normal Distribution Rule (68-95-99.7 Rule):<br>                    <br>    |----68%----|         Normal data<br>    |------95%------|     Unusual data  <br>    |--------99.7%--------|  Very rare/outliers</pre><pre>-3σ  -2σ  -1σ   μ   +1σ  +2σ  +3σ</pre><h3>3. Model Evaluation</h3><p>Lower standard deviation in your results means more consistent performance.</p><pre>Model A results: [85%, 87%, 86%, 85%, 87%] → std = 1.0%<br>Model B results: [82%, 90%, 78%, 95%, 75%] → std = 7.4%</pre><pre>Model A is more consistent (lower variance in performance)</pre><h3>4. Data Quality Checks</h3><p>Unexpected changes in standard deviation can indicate data issues.</p><pre>Week 1 data: std = 2.5 (normal)<br>Week 2 data: std = 15.3 (investigate!)<br>Week 3 data: std = 2.7 (back to normal)</pre><h3>Distribution Visualizations</h3><h3>Normal Distribution with Different Standard Deviations</h3><pre><strong>Standard Deviation Comparison:</strong></pre><pre>     Low σ (σ = 1)          High σ (σ = 3)<br>         /|\                    /|\<br>        / | \                  /   \<br>       /  |  \                /     \<br>      /   |   \              /       \<br>     /    |    \            /         \<br>────┴─────┼─────┴────  ────┴───────────┴────<br>         μ=0                   μ=0</pre><pre>Narrow bell curve         Wide bell curve<br>(low variance)           (high variance)</pre><h3>Real-World Example: Student Heights</h3><pre>Class A (Low Variance):<br>Height (cm): 168 169 170 171 172<br>Frequency:    ●   ●●  ●●●  ●●   ●</pre><pre>         ●●●<br>         ●●●<br>    ●    ●●●    ●<br>    ●●   ●●●   ●●<br>────┴─────┴─────┴────<br>   168   170   172</pre><pre>Class B (High Variance):<br>Height (cm): 160 165 170 175 180<br>Frequency:    ●   ●   ●   ●   ●</pre><pre>    ●           ●           ●<br>    ●     ●     ●     ●     ●<br>────┴─────┴─────┴─────┴─────┴────<br>   160   165   170   175   180</pre><h3>Quick Mental Check and Summary</h3><h3>Quick Reference Guide</h3><p><strong>Standard Deviation Interpretation:</strong></p><ul><li><strong>Low std/variance</strong>: Data points are similar, predictable</li><li><strong>High std/variance</strong>: Data points are scattered, more uncertainty</li></ul><p><strong>When to Use Mean vs Median:</strong></p><ul><li><strong>Mean</strong>: Normal data, no outliers, need mathematical properties</li><li><strong>Median</strong>: Skewed data, outliers present, need robust measure</li></ul><p><strong>Why We Square:</strong></p><ol><li><strong>Eliminates negatives</strong> (prevents cancellation)</li><li><strong>Weights larger differences more</strong> (penalizes outliers)</li><li><strong>Better mathematical properties</strong> (calculus, optimization)</li></ol><h3>Key Formulas</h3><pre>Mean = Σx / n</pre><pre>Median = middle value (or average of two middle values)</pre><pre>Variance (σ²) = Σ(xi - μ)² / n</pre><pre>Standard Deviation (σ) = √Variance</pre><h3>The Big Picture</h3><p>Think of standard deviation as your <strong>“typical distance from average”</strong> — it’s the most practical measure for understanding your data’s spread. In machine learning, understanding the spread of your data is crucial for:</p><ul><li><strong>Feature engineering</strong>: Scaling features appropriately</li><li><strong>Model selection</strong>: Choosing algorithms that handle variance well</li><li><strong>Performance evaluation</strong>: Understanding prediction consistency</li><li><strong>Data validation</strong>: Detecting anomalies and data quality issues</li></ul><p><strong>Remember</strong>: Standard deviation gives you the same units as your original data, making it much more interpretable than variance. Whether you’re analyzing stock prices, customer ages, or model accuracy scores, standard deviation tells you the story of how much your data varies from the norm.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51e396ce8720" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>