<?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 Simone Coslovich on Medium]]></title>
        <description><![CDATA[Stories by Simone Coslovich on Medium]]></description>
        <link>https://medium.com/@s.coslovich?source=rss-58ab5307e0f0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qJFbxGX7C0PGU4J-FCFlLg.png</url>
            <title>Stories by Simone Coslovich on Medium</title>
            <link>https://medium.com/@s.coslovich?source=rss-58ab5307e0f0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 06:16:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@s.coslovich/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[Bias-Variance Tradeoff in Machine Learning for beginners]]></title>
            <link>https://medium.com/logistic-obsession/bias-variance-tradeoff-in-machine-learning-for-beginners-a759283c0e53?source=rss-58ab5307e0f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a759283c0e53</guid>
            <category><![CDATA[overfitting]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[underfitting]]></category>
            <category><![CDATA[variance]]></category>
            <category><![CDATA[bias]]></category>
            <dc:creator><![CDATA[Simone Coslovich]]></dc:creator>
            <pubDate>Mon, 12 Nov 2018 17:03:04 GMT</pubDate>
            <atom:updated>2018-11-12T17:34:57.027Z</atom:updated>
            <content:encoded><![CDATA[<h4>Elements to optimize Supervised Machine Learning models</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*adHjRaPxv5SrSp0f.jpg" /></figure><h3>Introduction</h3><p>Every time you will be trying to create a Supervised Machine Learning model (<a href="https://towardsdatascience.com/supervised-vs-unsupervised-learning-14f68e32ea8d">here</a> the different types of machine learning models), you must reckon with the bias-variance tradeoff. No matter how much data do you have or how well you clean and preprocess them, this type of tradeoff will always be there.<br>So let’s start with the explanation of Bias and Variance to understand better how these two are correlated. First of all, both Bias and Variance are errors in the learning algorithm that can cause erroneous assumptions.</p><p><em>This article doesn’t want to be too technical, but it must give a high-level view of what are variance, bias and their coexistence in each model of Supervised Machine Learning. At the bottom of the page will be linked some in-depth articles that will help in the detailed understanding of the topic.</em></p><h3>Bias</h3><p>The Bias is an error in your model that can cause it to over-generalize the relations between the features. It can be understood as how the predictions of the model are far from the real values.<br>Whit a low Bias, the predictions of new data are near the real values; but with a high Bias, the predictions are far from real values and this is caused by the underfitting of data (underfitting means when the model is too simple to predict the target).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*PvCNmRkDoT9YomfupeuzZQ.jpeg" /></figure><p>In the figure above, you can see an example of high Bias in a classification model that doesn’t generalize well on the data. The blue points in the blue area are correct predictions and the same for the red points in the red area. In this example, there are a lot of incorrect predictions (blue points in the red area and vice-versa) because the algorithm is too basic for this dataset and this problem.</p><h3>Variance</h3><p>The Variance is an error in your model from sensitivity to noise in the data. A high value of this error can cause overfitting, that means when the predictor model fits perfectly on the training examples but does poorly on the new data; instead, when the value of this error is low, the predictor model fits correctly both on training examples and new data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*QDIVYjnC7nYWFdBzU1si3A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*VX8XvyPjPIsgLLZSU81P1Q.jpeg" /></figure><p>In this two figures, you can see an example of a model with high Variance on training examples and new data. In the image on the left the model fits perfectly almost every data, but in the image on the right, the model classifies correctly only a small amount of the data.<br>This often happens when the model is too complex and trivially fits the training examples (too many parameters), or when there is not enough data to accurately estimate the parameters.</p><h3>Bias-Variance Tradeoff</h3><p>The fundamental purpose of machine learning is fitting your data well, but also fitting the data as simply as possible; this can be achieved when the algorithm has low Bias and low Variance, but here is where the Bias-Variance tradeoff comes into play.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/0*MfZs6GyaNeIV_KAM.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/0*vuIrBhNri-Wz_HMy" /></figure><p>In the image above you can see that the model complexity drives the increasing/decreasing of the errors:</p><ul><li>When you reduce the Model complexity, the Bias increases and the Variance decreases.</li><li>When you increase the Model complexity, the Bias decreases and the Variance increases.</li></ul><p>Your final task is to choose and play with a model that balance this two errors to achieve the best results on the predictions of unseen data.</p><h3>Other Resources</h3><p>These other resources are useful to dig deeper on this topic:</p><ul><li><a href="https://machinelearningmastery.com/gentle-introduction-to-the-bias-variance-trade-off-in-machine-learning/">Gentle Introduction to the Bias-Variance Trade-Off in Machine Learning</a> by Jason Brownlee, <a href="https://machinelearningmastery.com/">Machine Learning Mastery</a></li><li><a href="https://en.wikipedia.org/wiki/Bias%E2%80%93variance_tradeoff">Bias–variance tradeoff</a> on Wikipedia</li><li><a href="http://scott.fortmann-roe.com/docs/BiasVariance.html">Understanding the Bias-Variance Tradeoff</a> by Scott Fortmann-Roe</li><li><a href="https://www.kdnuggets.com/2016/08/bias-variance-tradeoff-overview.html">Understanding the Bias-Variance Tradeoff: An Overview</a> by Matthew Mayo, <a href="https://www.kdnuggets.com/">KDnuggets</a></li></ul><p><strong>Where to find me </strong><a href="https://www.linkedin.com/in/simonecoslovich/">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a759283c0e53" width="1" height="1" alt=""><hr><p><a href="https://medium.com/logistic-obsession/bias-variance-tradeoff-in-machine-learning-for-beginners-a759283c0e53">Bias-Variance Tradeoff in Machine Learning for beginners</a> was originally published in <a href="https://medium.com/logistic-obsession">Logistic Obsession</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>