<?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 Vishnu Tanpure on Medium]]></title>
        <description><![CDATA[Stories by Vishnu Tanpure on Medium]]></description>
        <link>https://medium.com/@vishnutanpure?source=rss-c23d60e99769------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xOODn-HE4NDYIKmfvR27mQ.jpeg</url>
            <title>Stories by Vishnu Tanpure on Medium</title>
            <link>https://medium.com/@vishnutanpure?source=rss-c23d60e99769------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 13:24:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vishnutanpure/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[Why Divide by n-1 in Sample Standard Deviation?]]></title>
            <link>https://medium.com/@vishnutanpure/why-divide-by-n-1-in-sample-standard-deviation-93f620bf7357?source=rss-c23d60e99769------2</link>
            <guid isPermaLink="false">https://medium.com/p/93f620bf7357</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[bessels-correction]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[standard-deviation]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Vishnu Tanpure]]></dc:creator>
            <pubDate>Tue, 02 Jan 2024 14:25:49 GMT</pubDate>
            <atom:updated>2024-01-02T14:47:42.495Z</atom:updated>
            <content:encoded><![CDATA[<p>When delving into the realm of statistics, we encounter two crucial measures of dispersion: the population standard deviation (<strong><em>σ</em></strong>) and its counterpart for samples, denoted as <strong>s</strong>. While their formulas may appear similar at first glance, a subtle yet significant difference lies in the denominator, where the population standard deviation divides by <strong><em>N</em></strong>, the sample standard deviation opts for <strong><em>n-1</em></strong>. But why this distinction?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BKAtmR602Qe0AyYTBNn45w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wRO9WTp2N-54y0AsG9xfbA.png" /></figure><p><strong>Why Divide by <em>n</em>−1 for Sample Standard Deviation?</strong></p><p>The decision to divide by <strong><em>n−1</em></strong> instead of <strong><em>n</em></strong> when calculating sample standard deviation (<strong>s</strong>) is rooted in the concept of degrees of freedom. This concept becomes apparent through an illustrative example:</p><p>Consider a population of numbers ranging from 0 to 100. The <strong>population mean (<em>μ</em>),</strong> and <strong>standard deviation (<em>σ</em>)</strong> are determined to be <strong>50</strong> and <strong>29.154</strong>, respectively.</p><p><strong>Population Mean (<em>μ) = 50</em></strong></p><p><strong>Population Standard Deviation (<em>σ</em>) = 29.154</strong></p><p>Now, let’s select a sample of size 10 from a given population.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LoSarXGm8DWC9PoO8cMObQ.png" /></figure><p>In this example, you’ll observe that the standard deviation​ of a sample(<strong>s1</strong>) differs from the standard deviation of the population(<strong><em>σ</em></strong><em>)</em>. This dissimilarity arises because <strong>s1</strong>​ is based on the squared deviations from the mean of a sample rather than the mean of the population (<strong><em>μ</em></strong><em>)</em>. It’s crucial to note that our ultimate goal is to obtain a good approximation of the standard deviation of the population, and not that of the sample.</p><p>To enhance this approximation, we measure the squared deviations from the mean of the population (<strong><em>μ</em></strong>), yielding a slightly adjusted sample standard deviation (<strong>s2</strong>​) that provides a better approximation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5QRKuJ-BA9y00qesxihxBg.png" /></figure><p>Hence, in order to get a better approximation of <strong><em>σ</em></strong>, we need to have information about the population mean (<strong><em>μ</em></strong>) along with a sample data set. Here we have degree of freedom <strong><em>n</em></strong>, i.e. unbiasedly <strong><em>n</em></strong> data points can be</p><p>chosen.</p><p><em>But most of the time we do not know </em><strong><em>μ</em></strong><em>, so we try to choose a sample such that the mean of a sample is close to the mean of the population (</em><strong><em>μ</em></strong><em>), and here we lose </em><strong><em>1</em></strong><em> degree of freedom in choosing a random sample of size </em><strong><em>n</em></strong><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yiGtmyWr44uZS34WWeCBAg.png" /></figure><p>Hence, while finding sample standard deviation(<strong>s</strong>), we divide by <strong><em>n−1</em></strong>. Finally, when we divide by <strong><em>n − 1</em></strong> we get.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*A-GhI1SRVqP-BF-japdzwQ.png" /></figure><p>If we repeat the above experiment a large number of times with an arbitrary sample size, the average value of the sample standard deviation (<strong>s</strong>), as the number of experiments increases, gets closer to the standard deviation of the population (<strong><em>σ</em></strong><em>)</em> than<strong> s1.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PgimgHjQTUO2ssNVoXnKXg.png" /></figure><p>In essence, dividing by <strong><em>(n-1)</em></strong> in the sample standard deviation formula is a methodological tweak to account for the limited information provided by a sample, making it a more robust and reliable estimator of the population standard deviation.</p><p>Visit the link for the simulator: <a href="https://colab.research.google.com/drive/1an6zRpRVk4lbXHthCoSeCRkukecbod3z?usp=sharing">https://colab.research.google.com/drive/1an6zRpRVk4lbXHthCoSeCRkukecbod3z?usp=sharing</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93f620bf7357" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>