<?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 Bhavanivangipurapu on Medium]]></title>
        <description><![CDATA[Stories by Bhavanivangipurapu on Medium]]></description>
        <link>https://medium.com/@bhavanivangipurapu1996?source=rss-41a0cc835a68------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0d3rUpUDB4W7-LLA</url>
            <title>Stories by Bhavanivangipurapu on Medium</title>
            <link>https://medium.com/@bhavanivangipurapu1996?source=rss-41a0cc835a68------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:03:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhavanivangipurapu1996/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[Linear Regression]]></title>
            <link>https://medium.com/@bhavanivangipurapu1996/linear-regression-af008be7f968?source=rss-41a0cc835a68------2</link>
            <guid isPermaLink="false">https://medium.com/p/af008be7f968</guid>
            <dc:creator><![CDATA[Bhavanivangipurapu]]></dc:creator>
            <pubDate>Sat, 06 Aug 2022 10:20:44 GMT</pubDate>
            <atom:updated>2022-08-06T10:20:44.044Z</atom:updated>
            <content:encoded><![CDATA[<p><em>In this article, I will explain to you the concept of linear regression. Let’s get started.</em></p><p><strong>History of linear regression</strong></p><p>S<em>ir Francis Galton and Karl Pearson disclosed that Galton’s research on the inherited properties of sweet peas resulted in the first idea of linear regression. With the creation of basic linear regression, Sir Francis Galton and Karl Pearson pioneered multiple linear regression.</em></p><p><strong>What exactly is linear regression?</strong></p><p><em>Linear regression is used to calculate the relationship between one independent (predictor) variable and one continuous dependent (outcome) variable. It should always be greater than or equal to one (≥1). Linear regression is called “simple linear regression” if there is only one independent variable. Simple linear regression always fits the straight line to the data point. Because fitting the straight line, makes us understand the relationship between the dependent variable (Y) and independent variable(X), with the slope being the regression coefficient (b1) and the y-axis intercept (b0). It is represented as </em>𝑦 = β0 +β1𝑥 + 𝜀 .</p><p>The linear regression technique seeks the optimum values for β0 and β1in order to get the best fit line. The best fit line is one with the least error, which means that the difference between predicted and actual values should be as little as possible. The difference between the observed value of the dependent variable (y) and the predicted value (predicted) is referred to as the residuals in regression.</p><p><strong>Linear regression assumptions</strong></p><p>linear regression has 5 assumptions and they are :</p><p><strong>Linear relationship</strong>: The independent and dependent variables should have a linear relationship.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Am1-edd-_Kh0CrF0.jpg" /><figcaption>To know the difference between linear and non-linear pattern</figcaption></figure><p><strong>Multivariate Normality</strong>: All variables in linear regression must be multivariate normal. A histogram or Q-Q-Plot can be used to determine if a variable is multivariate or not.</p><p><strong>Absence of multi-collinearity</strong>: The dataset should have little to no multi-collinearity in linear regression. When independent variables are significantly correlated with each other, multi-collinearity occurs. You can examine the correlation matrix to see if your dataset is strongly connected or not.</p><p><strong>Homoscedasticity</strong>: Homoscedasticity must be present in linear regression. Homoscedasticity denotes that the residuals are the same across the regression line. The scatter plot can be used to determine whether or not homoscedasticity exists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tLEMK_mA1FRC55rK.jpg" /><figcaption>Difference between Homoscedastic and Heteroscedastic</figcaption></figure><p><strong>Absence of Autocorrelation</strong>: The dataset should have little to no autocorrelation in linear regression which means that residuals are dependent on each other. The scatter plot can be used to determine whether or not autocorrelation exists.</p><p><strong>What is Multivariate linear regression?</strong></p><p>MLR is used to predict the result of an answer variable by using the exploratory variables. The basic formulae for MLR is:</p><p>𝑦 = β0 + β1x1 + ⋯ +β𝑚x𝑚 + 𝜀 . It can be written in matrix form which is represented as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*PNdKEhuQH7fAvYO4wBpA1A.png" /></figure><p><strong>Simple linear regression using python</strong></p><p>Let’s first comprehend and visualize the dataset before developing a linear regression model. Please download the dataset and Python code below and run them in the Jupyter notebook.</p><p><a href="https://www.kaggle.com/code/ethicsforall/notebook258cd50757/data?scriptVersionId=102653553">notebook258cd50757</a></p><pre>Please see the link below to learn more about the code and how it works.</pre><p><a href="https://www.kaggle.com/code/ethicsforall/notebook258cd50757/notebook?scriptVersionId=102653553">notebook258cd50757</a></p><p>About me :</p><p>Hello friends, My name is Bhavani, and I recently completed a postgraduate diploma in artificial intelligence and machine learning. I’d want to share what I’ve learned over the course to give you some insight into the subject. I’d appreciate your blessings and aid with my blogging.</p><p>This is a course designed to provide people with the education they need to be able to address and pursue concerns in this area. It helps you learn fast and become a machine learning engineer so that you can be one of the foremost experts and take your AI to the next level. My course helps people understand the basics of AI and its applications using hands-on projects taught by industry professionals.</p><p>My linkedln profile: <a href="http://www.linkedin.com/in/bhavani-vangipurapu-557085216">www.linkedin.com/in/bhavani-vangipurapu-557085216</a>. If you are looking for content services, do contact me through my linkedln profile.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af008be7f968" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>