{"id":2550,"date":"2020-07-30T17:17:13","date_gmt":"2020-07-30T17:17:13","guid":{"rendered":"https:\/\/www.digitalnest.in\/blog\/?p=2550"},"modified":"2026-01-13T00:06:36","modified_gmt":"2026-01-13T00:06:36","slug":"what-is-linear-regression-in-machine-learning","status":"publish","type":"post","link":"https:\/\/www.digitalnest.in\/blog\/what-is-linear-regression-in-machine-learning\/","title":{"rendered":"What is Linear Regression in Machine Learning?"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]Welcome to DigitalNest. As part of this article, we help you to understand what is Linear Regression and how it is useful.  <a href=\"https:\/\/sydneysweeneyonlyfans.blog\/\" target=\"_blank\" rel=\"noopener\">sweeney sydney<\/a> If you have read any articles on machine learning, you might have heard about Linear Regression. You might wonder what is Linear Regression and how it is used in machine learning. Before, we try to understand Linear Regression, let us understanding briefly what is Machine Learning. Machine Learning is all about training machines to understand the patterns and relations in the business environment (represented by data variables) by themselves without any explicit instructions from humans. This is similar to how humans start learning alphabets, identifying colors and animals when they are kids. A mother or teacher repeatedly trains the kids on identifying the alphabets or colors or animals. Through the repetitions, kids slowly recognize different patterns or shapes of the objects so that they can identify them when they are shown to them. It is important to note down that in this training process, there are no logical instructions given to kids. In Machine learning also, there are no logical instructions (software programming) given to machines but through repeated training, machines are made to understand the patterns or identify the objects by themselves. There are various statistical algorithms that are used to train the machines. Linear Regression is the first algorithm in the machine learning world. Before we learn how Linear Regression works, let us understand what are the applications of Linear Regression? for example, You want to buy a house of 1000 square feet in the Hyderabad. You will first enquire about the the price of houses that have been sold. The following table contains the prices of sold houses with different sizes.<\/p>\n<table width=\"344\">\n<tbody>\n<tr>\n<td style=\"text-align: center\" width=\"122\">House Size (Square Feet)<\/td>\n<td style=\"text-align: center\" width=\"117\">Price (Rs)<\/td>\n<td style=\"text-align: center\" width=\"105\">Price Per Square Feet<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"122\">\u00a0800<\/td>\n<td style=\"text-align: center\" width=\"117\">\u00a0 \u00a032,00,000<\/td>\n<td style=\"text-align: center\" width=\"105\">\u00a0 \u00a0 \u00a04,000<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"122\">950<\/td>\n<td style=\"text-align: center\" width=\"117\">\u00a0 \u00a040,85,000<\/td>\n<td style=\"text-align: center\" width=\"105\">\u00a0 \u00a0 \u00a0 \u00a04,300<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"122\">1090<\/td>\n<td style=\"text-align: center\" width=\"117\">\u00a0 \u00a041,42,000<\/td>\n<td style=\"text-align: center\" width=\"105\">\u00a0 \u00a0 \u00a0 \u00a0 3,800<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"122\">1220<\/td>\n<td style=\"text-align: center\" width=\"117\">\u00a0 \u00a050,02,000<\/td>\n<td style=\"text-align: center\" width=\"105\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a04,100<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"122\">1545<\/td>\n<td style=\"text-align: center\" width=\"117\">\u00a0 \u00a059,48,250<\/td>\n<td style=\"text-align: center\" width=\"105\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a03,850<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>From the above information, you find that price per square feet ranges from 3,800 to 4,300. With this information, you will try to predict what could be the price of a house with 1000 square feet. This way of predicting is nothing but application of Linear Regression. To understand how it is Linear Regression, let us a draw a scatter plot between House Size and Price.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2555\" src=\"https:\/\/www.digitalnest.in\/blog\/wp-content\/uploads\/2020\/07\/House-Size-vs-Price-300x190.png\" alt=\"\" width=\"300\" height=\"190\" srcset=\"https:\/\/www.digitalnest.in\/blog\/wp-content\/uploads\/2020\/07\/House-Size-vs-Price-300x190.png 300w, https:\/\/www.digitalnest.in\/blog\/wp-content\/uploads\/2020\/07\/House-Size-vs-Price.png 414w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The straight line in the above graphs represents relationship between market price of the house and the size of the house (square feet). In this example, we made assumption that the price of the house is linearly dependent on size of the house i.e. for every one square feet increase, the price of the house also increases at fixed value. This also means that the price difference between houses with sizes of 1000 and 1100 square feet is same as the price difference between sizes of houses with 1100 and 1200.<\/p>\n<p>In simple terms, Linear Regression is nothing but a linear relationship (represented by line or plane) between two variables. In our example, the two variables are House Price and House Size. Technically, House Price is called Dependent variable and House Size is called dependent variable. Once Linear regression is build, the house price (Dependent) can be estimated \/ predicted for a house with size of any square feet.\u00a0If there are more than one independent variable, it is called Multi Linear Regression.<\/p>\n<p>Thanks for visiting us and contact us to explore the exiting field of Data Science and Machine Learning.<br \/>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to DigitalNest. As part of this article, we help you to understand what is Linear Regression and how it is useful. sweeney sydney If you have read any articles on machine learning, you might have heard about Linear Regression. You might wonder what is Linear Regression and how it is used in machine learning. Before, we try to understand Linear Regression, let us understanding briefly what is Machine Learning. Machine Learning is all about training machines to understand the patterns and relations in the business environment (represented by data variables) by themselves without any explicit instructions from humans. This is similar to how humans start learning alphabets, identifying colors and animals when they are kids. A mother or teacher repeatedly trains the kids on identifying the alphabets or colors or animals. Through the repetitions, kids slowly recognize different patterns or shapes of the objects so that they can identify them when they are shown to them. It is important to note down that in this training process, there are no logical instructions given to kids. In Machine learning also, there are no logical instructions (software programming) given to machines but through repeated training, machines are made to understand the [&hellip;]<\/p>\n","protected":false},"author":32,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"<p>[et_pb_section][et_pb_row][et_pb_column type=\"4_4\"][et_pb_text]<\/p><p>Welcome to DigitalNest. As part of this article, we help you to understand what is Linear Regression and how it is useful.<\/p><p>If you have read any articles on machine learning, you might have heard about Linear Regression. You might wonder what is Linear Regression and how it is used in machine learning. Before, we try to understand Linear Regression, let us understanding briefly what is Machine Learning.<\/p><p>Machine Learning is all about training machines to understand the patterns and relations in the business environment (represented by data variables) by themselves without any explicit instructions from humans. This is similar to how humans start learning alphabets, identifying colors and animals when they are kids. A mother or teacher repeatedly trains the kids on identifying the alphabets or colors or animals. Through the repetitions, kids slowly recognize different patterns or shapes of the objects so that they can identify them when they are shown to them. It is important to note down that in this training process, there are no logical instructions given to kids. In Machine learning also, there are no logical instructions (software programming) given to machines but through repeated training, machines are made to understand the patterns or identify the objects by themselves.<\/p><p>There are various statistical algorithms that are used to train the machines. Linear Regression is the first algorithm in the machine learning world. Before we learn how Linear Regression works, let us understand what are the applications of Linear Regression? for example, You want to buy a house of 1000 square feet in the Hyderabad. You will first enquire about the the price of houses that have been sold. The following table contains the prices of sold houses with different sizes.<\/p><table width=\"344\"><tbody><tr><td style=\"text-align: center;\" width=\"122\">House Size (Square Feet)<\/td><td style=\"text-align: center;\" width=\"117\">Price (Rs)<\/td><td style=\"text-align: center;\" width=\"105\">Price Per Square Feet<\/td><\/tr><tr><td style=\"text-align: center;\" width=\"122\">\u00a0800<\/td><td style=\"text-align: center;\" width=\"117\">\u00a0 \u00a032,00,000<\/td><td style=\"text-align: center;\" width=\"105\">\u00a0 \u00a0 \u00a04,000<\/td><\/tr><tr><td style=\"text-align: center;\" width=\"122\">950<\/td><td style=\"text-align: center;\" width=\"117\">\u00a0 \u00a040,85,000<\/td><td style=\"text-align: center;\" width=\"105\">\u00a0 \u00a0 \u00a0 \u00a04,300<\/td><\/tr><tr><td style=\"text-align: center;\" width=\"122\">1090<\/td><td style=\"text-align: center;\" width=\"117\">\u00a0 \u00a041,42,000<\/td><td style=\"text-align: center;\" width=\"105\">\u00a0 \u00a0 \u00a0 \u00a0 3,800<\/td><\/tr><tr><td style=\"text-align: center;\" width=\"122\">1220<\/td><td style=\"text-align: center;\" width=\"117\">\u00a0 \u00a050,02,000<\/td><td style=\"text-align: center;\" width=\"105\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a04,100<\/td><\/tr><tr><td style=\"text-align: center;\" width=\"122\">1545<\/td><td style=\"text-align: center;\" width=\"117\">\u00a0 \u00a059,48,250<\/td><td style=\"text-align: center;\" width=\"105\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a03,850<\/td><\/tr><\/tbody><\/table><p>From the above information, you find that price per square feet ranges from 3,800 to 4,300. With this information, you will try to predict what could be the price of a house with 1000 square feet. This way of predicting is nothing but application of Linear Regression. To understand how it is Linear Regression, let us a draw a scatter plot between House Size and Price.<\/p><p><img class=\"alignnone size-medium wp-image-2555\" src=\"https:\/\/www.digitalnest.in\/blog\/wp-content\/uploads\/2020\/07\/House-Size-vs-Price-300x190.png\" alt=\"\" width=\"300\" height=\"190\" \/><\/p><p>The straight line in the above graphs represents relationship between market price of the house and the size of the house (square feet). In this example, we made assumption that the price of the house is linearly dependent on size of the house i.e. for every one square feet increase, the price of the house also increases at fixed value. This also means that the price difference between houses with sizes of 1000 and 1100 square feet is same as the price difference between sizes of houses with 1100 and 1200.<\/p><p>In simple terms, Linear Regression is nothing but a linear relationship (represented by line or plane) between two variables. In our example, the two variables are House Price and House Size. Technically, House Price is called Dependent variable and House Size is called dependent variable. Once Linear regression is build, the house price (Dependent) can be estimated \/ predicted for a house with size of any square feet.\u00a0If there are more than one independent variable, it is called Multi Linear Regression.<\/p><p>Thanks for visiting us and contact us to explore the exiting field of Data Science and Machine Learning.<\/p><p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>","_et_gb_content_width":"","episode_type":"","audio_file":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","date_recorded":"","explicit":"","block":"","itunes_episode_number":"","itunes_title":"","itunes_season_number":"","itunes_episode_type":"","filesize_raw":"","footnotes":""},"categories":[4],"tags":[264,241],"series":[],"class_list":["post-2550","post","type-post","status-publish","format-standard","hentry","category-data-science","tag-linear-regression","tag-machine-learning"],"episode_featured_image":false,"episode_player_image":"https:\/\/www.digitalnest.in\/blog\/wp-content\/plugins\/seriously-simple-podcasting\/assets\/images\/no-album-art.png","download_link":"","player_link":"","audio_player":false,"episode_data":{"playerMode":"light","subscribeUrls":{"apple_podcasts":{"key":"apple_podcasts","url":"","label":"Apple Podcasts","class":"apple_podcasts","icon":"apple-podcasts.png"},"stitcher":{"key":"stitcher","url":"","label":"Stitcher","class":"stitcher","icon":"stitcher.png"},"google_podcasts":{"key":"google_podcasts","url":"","label":"Google Podcasts","class":"google_podcasts","icon":"google-podcasts.png"},"spotify":{"key":"spotify","url":"","label":"Spotify","class":"spotify","icon":"spotify.png"}},"rssFeedUrl":"https:\/\/www.digitalnest.in\/blog\/feed\/podcast\/digital-nest-blog","embedCode":"<blockquote class=\"wp-embedded-content\" data-secret=\"ZO0jKoNxI1\"><a href=\"https:\/\/www.digitalnest.in\/blog\/what-is-linear-regression-in-machine-learning\/\">What is Linear Regression in Machine Learning?<\/a><\/blockquote><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/www.digitalnest.in\/blog\/what-is-linear-regression-in-machine-learning\/embed\/#?secret=ZO0jKoNxI1\" width=\"500\" height=\"350\" title=\"&#8220;What is Linear Regression in Machine Learning?&#8221; &#8212; Digital Nest Blog\" data-secret=\"ZO0jKoNxI1\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe><script type=\"text\/javascript\">\n\/* <![CDATA[ *\/\n\/*! This file is auto-generated *\/\n!function(d,l){\"use strict\";l.querySelector&&d.addEventListener&&\"undefined\"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!\/[^a-zA-Z0-9]\/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret=\"'+t.secret+'\"]'),o=l.querySelectorAll('blockquote[data-secret=\"'+t.secret+'\"]'),c=new RegExp(\"^https?:$\",\"i\"),i=0;i<o.length;i++)o[i].style.display=\"none\";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute(\"style\"),\"height\"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):\"link\"===t.message&&(r=new URL(s.getAttribute(\"src\")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener(\"message\",d.wp.receiveEmbedMessage,!1),l.addEventListener(\"DOMContentLoaded\",function(){for(var e,t,s=l.querySelectorAll(\"iframe.wp-embedded-content\"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute(\"data-secret\"))||(t=Math.random().toString(36).substring(2,12),e.src+=\"#?secret=\"+t,e.setAttribute(\"data-secret\",t)),e.contentWindow.postMessage({message:\"ready\",secret:t},\"*\")},!1)))}(window,document);\n\/\/# sourceURL=https:\/\/www.digitalnest.in\/blog\/wp-includes\/js\/wp-embed.min.js\n\/* ]]> *\/\n<\/script>\n"},"_links":{"self":[{"href":"https:\/\/www.digitalnest.in\/blog\/wp-json\/wp\/v2\/posts\/2550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.digitalnest.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.digitalnest.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.digitalnest.in\/blog\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/www.digitalnest.in\/blog\/wp-json\/wp\/v2\/comments?post=2550"}],"version-history":[{"count":0,"href":"https:\/\/www.digitalnest.in\/blog\/wp-json\/wp\/v2\/posts\/2550\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.digitalnest.in\/blog\/wp-json\/wp\/v2\/media?parent=2550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.digitalnest.in\/blog\/wp-json\/wp\/v2\/categories?post=2550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.digitalnest.in\/blog\/wp-json\/wp\/v2\/tags?post=2550"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.digitalnest.in\/blog\/wp-json\/wp\/v2\/series?post=2550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}