<?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 manoj adhikari on Medium]]></title>
        <description><![CDATA[Stories by manoj adhikari on Medium]]></description>
        <link>https://medium.com/@manojadhikari?source=rss-4fc95e544ab1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Bx2TUZXMI6Hfv4AaSHqCHA.png</url>
            <title>Stories by manoj adhikari on Medium</title>
            <link>https://medium.com/@manojadhikari?source=rss-4fc95e544ab1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 09:36:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manojadhikari/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[Understanding Degree of Freedom in Standard Deviation !  Why Do We Divide by n — 1 Instead of n?]]></title>
            <link>https://manojadhikari.medium.com/understanding-degree-of-freedom-in-standard-deviation-why-do-we-divide-by-n-1-instead-of-n-04ce75ffe61b?source=rss-4fc95e544ab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/04ce75ffe61b</guid>
            <category><![CDATA[standard-deviation]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[manoj adhikari]]></dc:creator>
            <pubDate>Wed, 28 May 2025 02:19:51 GMT</pubDate>
            <atom:updated>2025-05-28T02:19:51.859Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding Degree of Freedom in Standard Deviation ! Why Do We Divide by n — 1 Instead of n?</h3><p>If you’ve ever looked at the formula for standard deviation, you might have noticed this version:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*WWBsfwb4ME6PqW9UYtLr4g.png" /><figcaption>Standard Deviation Formula</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*5zf2eqgINWe_0wNJhdcNmA.png" /><figcaption>Symbolic notation</figcaption></figure><p>When calculating the <strong>variance</strong> or <strong>standard deviation</strong> of a <strong>sample</strong> (not a whole population), we divide by <strong>n — 1</strong> instead of <strong>n</strong>. This adjustment is related to something called <strong>degrees of freedom. </strong>This might seem like a small detail, but it actually helps improve the accuracy of our estimate.</p><h3>The Reason Behind It</h3><ul><li>When you take a <strong>sample</strong> from a larger population, you usually want to <strong>estimate</strong> the population’s true variance.</li><li>If you divide by <strong>n</strong> (the number of data points), your result will tend to <strong>underestimate</strong> the true population variance — this is called a <strong>biased estimate</strong>.</li><li>“An <strong>underestimate of the true variability</strong>” means that the calculated value is <strong>smaller than the actual amount of variation</strong> that exists in the entire population</li><li>To correct this, we divide by <strong>n — 1</strong>. This makes the estimate <strong>unbiased</strong>, meaning it’s more accurate on average.</li></ul><h3>What Are Degrees of Freedom?</h3><ul><li><strong>Degrees of freedom</strong> refer to the number of values in your sample that are free to vary <strong>after</strong> you’ve calculated the sample mean.</li><li>Once you compute the sample mean, one of the data points becomes <strong>constrained</strong> (you can’t freely choose it anymore if the mean is fixed).</li><li>That’s why you only have <strong>n — 1</strong> values that are free to vary — hence, <strong>n — 1 degrees of freedom</strong>.</li></ul><h3>Is It Always Important?</h3><ul><li>In practice, if <strong>n is large</strong>, the difference between dividing by <strong>n</strong> or <strong>n — 1</strong> is very small.</li><li>But for <strong>small samples</strong>, using <strong>n — 1</strong> is important for accurate results.</li><li>While many data scientists don’t always need to worry about degrees of freedom, it’s critical in statistical testing, model fitting, and small-sample inference.</li></ul><h3>Example:</h3><p>Let’s say you have a sample of 3 exam scores:<br> <strong>80, 85, 90</strong></p><p><strong>Step 1: Calculate the sample mean</strong><br> Mean = (80 + 85 + 90) / 3 = <strong>85</strong></p><p><strong>Step 2: Calculate the squared differences from the mean</strong></p><ul><li>(80–85)² = 25</li><li>(85–85)² = 0</li><li>(90–85)² = 25</li></ul><p><strong>Step 3: Add them up</strong><br> Total = 25 + 0 + 25 = <strong>50</strong></p><p><strong>Step 4: Divide by n — 1 (3–1 = 2)</strong><br> Variance = 50 / 2 = <strong>25</strong><br> Standard Deviation = √25 = <strong>5</strong></p><p>👉 If we had divided by <strong>n = 3</strong> instead of <strong>n — 1 = 2</strong>, the variance would be 50 / 3 ≈ <strong>16.67</strong>, and the standard deviation would be about <strong>4.08</strong> — an underestimate of the true variability.</p><p>That’s why we use <strong>n — 1</strong>: it gives a better reflection of the true spread in the larger population.</p><h3>Summary</h3><ul><li>Use <strong>n — 1</strong> when working with <strong>samples</strong> to get an <strong>unbiased estimate</strong> of the population variance.</li><li>The adjustment is due to <strong>degrees of freedom</strong>, which accounts for the loss of one “free” data point after calculating the sample mean.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=04ce75ffe61b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Search Service Deletion Error Resolution Guide]]></title>
            <link>https://manojadhikari.medium.com/azure-search-service-deletion-error-resolution-guide-1f3c1d97d4c6?source=rss-4fc95e544ab1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f3c1d97d4c6</guid>
            <dc:creator><![CDATA[manoj adhikari]]></dc:creator>
            <pubDate>Wed, 06 Nov 2024 23:55:04 GMT</pubDate>
            <atom:updated>2024-11-06T23:55:04.253Z</atom:updated>
            <content:encoded><![CDATA[<pre>Unable to delete Search Service: &#39;{service-name}&#39;<br>LockedSPLResourceFound: Unable to verify management locks on Resource<br>If you still want to delete the search service, manually delete the SPL resource first and try again.</pre><h3>Resolution Steps Using Azure Portal</h3><h3>1. Access Private Endpoint Connections</h3><ul><li>Log in to Azure Portal (portal.azure.com)</li><li>Navigate to your Search Service</li><li>Search for “AI Search” or “Search services” in the top search bar</li><li>Select your search service</li></ul><h3>2. Delete Private Endpoint</h3><ul><li>In the left menu, click “Networking”</li><li>Select “Private endpoint connections”</li><li>Select the listed private endpoint(s)</li><li>Click “Delete” at the top</li><li>Confirm the deletion</li></ul><h3>3. Delete Search Service</h3><ul><li>Return to the Search Service overview page</li><li>Click “Delete” at the top</li><li>Confirm the deletion</li></ul><h3>Additional Troubleshooting</h3><p>If deletion still fails, check for management locks:</p><ol><li>Go to Search Service overview page</li><li>Find “Locks” in the left menu</li><li>Remove any existing locks</li><li>Retry the deletion process</li></ol><h3>Alternative: Using Azure CLI</h3><p>If you have Azure CLI access:</p><pre># List private endpoints<br>az network private-endpoint-connection list --resource-group &lt;resource-group&gt; --name &lt;search-service-name&gt; --type Microsoft.CognitiveServices/accounts<br><br># Delete private endpoint<br>az network private-endpoint delete --resource-group &lt;private-endpoint-resource-group&gt; --name &lt;private-endpoint-name&gt;<br><br># Delete search service<br>az search service delete --name &lt;search-service-name&gt; --resource-group &lt;resource-group&gt;<br></pre><h3>Common Issues</h3><ul><li>Insufficient permissions</li><li>Multiple private endpoints</li><li>Management locks at different scopes (resource/resource group/subscription)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f3c1d97d4c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>