{"id":2684,"date":"2019-07-20T13:48:01","date_gmt":"2019-07-20T13:48:01","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=2684"},"modified":"2024-03-27T12:19:35","modified_gmt":"2024-03-27T12:19:35","slug":"mean-squared-error-of-regression-line-tutorial","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/","title":{"rendered":"Mean squared error of regression line"},"content":{"rendered":"<h1>Mean Squared Error of Regression Line Tutorial<\/h1>\n<p>&nbsp;<\/p>\n<p><strong>Mean squared error of regression line tutorial<\/strong>, Are you the one who is looking for the best platform which provides information about mean squared error in <a href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\">data science<\/a>? then welcome to the land of Squared error of regression line tutorial. Before proceeding, we recommend you to go through our previous blog in this series on the need for type 1 and type 2 errors in data science. In this tutorial, one can explore about regression line, mean squared error definition, how to calculate mean squared error with examples.<\/p>\n<p>Are you the one who is looking for the best platform to learn Data science tutorials? Or Are you the one who is dreaming to become an expert data scientist? Then stop dreaming yourself, start taking <a href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\">Data Science training<\/a> from <a href=\"http:\/\/prwatech.com\/\">Prwatech<\/a>, who can help you to guide and offer excellent training with highly skilled expert trainers with the 100% placement. Follow the below mentioned <strong>Squared error of regression line<\/strong> in data science and enhance your skills to become pro <a href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\">Data Scientist.<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>What is Regression Line?<\/h2>\n<p>Regression is a statistical measurement used in finance, investing attempts to identify the strength of the relationship between a dependent variable (usually denoted by Y) and a series of other changing variables (known as independent variables).<\/p>\n<p>Regression helps investors and financial managers to value assets and understand the relationships between variables, such as commodity prices and the stocks of businesses dealing in those commodities.<\/p>\n<p>There are two basic types of regressions:<\/p>\n<p>\u25baLinear Regression.<\/p>\n<p>\u25baMultiple Linear Regression.<\/p>\n<p>&nbsp;<\/p>\n<p>Also, there are some non-linear regression methods for more complicated data and analysis.<\/p>\n<p>Linear regression uses an independent variable to predict the outcome of the dependent variable Y, while multiple regression uses two or more independent variables to predict the outcome.<\/p>\n<p>&nbsp;<\/p>\n<h3>Why we use Regression?<\/h3>\n<p>Regression can help financer\u2019s and investment professionals as well as professionals in other businesses.<\/p>\n<p>Regression can also help to predict sales for an organization based on weather, previous sales, GDP growth or other types of conditions. The capital asset pricing model often uses a regression model in finance for pricing assets and discovering the costs of capital.<\/p>\n<p>Regression takes a group of some random variables, thought to be predicting Y, and tries to determine a mathematical relationship between them. This relationship is in the form of a straight line (linear regression) that best approximates all the individual data points.<\/p>\n<p>In multiple regression, the separate variables are differentiated by using numbers with subscripts.<\/p>\n<p>&nbsp;<\/p>\n<h3>How to calculate Regression?<\/h3>\n<p>The general form of each type of regression is:<\/p>\n<p>Linear regression: Y = a + bX + u<\/p>\n<p>Multiple regression: Y = a + b<sub>1<\/sub>X<sub>1<\/sub> + b<sub>2<\/sub>X<sub>2<\/sub> + b<sub>3<\/sub>X<sub>4<\/sub> + &#8230; + b<sub>t<\/sub>X<sub>t<\/sub> + u<\/p>\n<p>\u25baWhere:<\/p>\n<p>Y = the variable that you are trying to predict (dependent variable).<\/p>\n<p>X = the variable that you are using to predict Y (independent variable).<\/p>\n<p>a = the intercept.<\/p>\n<p>b = the slope.<\/p>\n<p>u = the regression residual.<\/p>\n<p>&nbsp;<\/p>\n<h3>Mean Squared Error of Regression<\/h3>\n<h3><\/h3>\n<p>The mean squared error shows you how close a regression line is to a set of points. It does this by taking distances from the points to the regression line (these distances are actually the \u201cerrors\u201d) and squaring them. The squaring is necessary in order to remove any negative signs. It also gives more weight to larger differences. It\u2019s known as the mean squared error as you\u2019re finding the average of a set of errors.<\/p>\n<p>&nbsp;<\/p>\n<h4>Examples of Mean squared error<\/h4>\n<p>Find the Mean Squared Error?<\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"104\"><strong>Height<\/strong><\/td>\n<td width=\"104\"><strong>43<\/strong><\/td>\n<td width=\"104\"><strong>44<\/strong><\/td>\n<td width=\"104\"><strong>45<\/strong><\/td>\n<td width=\"104\"><strong>46<\/strong><\/td>\n<td width=\"104\"><strong>47<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"104\"><strong>Weight<\/strong><\/td>\n<td width=\"104\"><strong>41<\/strong><\/td>\n<td width=\"104\"><strong>45<\/strong><\/td>\n<td width=\"104\"><strong>49<\/strong><\/td>\n<td width=\"104\"><strong>47<\/strong><\/td>\n<td width=\"104\"><strong>44<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>Step 1<\/strong>: Find the regression line.<\/p>\n<p>&nbsp;<\/p>\n<p>y= 9.2 + 0.8x.<\/p>\n<p><strong>Step 2<\/strong>: Find the new Y\u2019 values:<br \/>\n9.2 + 0.8(43) = 43.6<br \/>\n#9.2 + 0.8(44) = 44.4<br \/>\n9.2 + 0.8(45) = 45.2<br \/>\n#9.2 + 0.8(46) = 46<br \/>\n9.2 + 0.8(47) = 46.8<\/p>\n<p><strong>Step 3<\/strong>: Find the error (Y \u2013 Y\u2019):<br \/>\n41 \u2013 43.6 = -2.6<br \/>\n45 \u2013 44.4 = 0.6<br \/>\n49 \u2013 45.2 = 3.8<br \/>\n47 \u2013 46 = 1<br \/>\n44 \u2013 46.8 = -2.8<\/p>\n<p><strong>Step 4<\/strong>: Square the Errors:<br \/>\n-2.6<sup>2<\/sup> = 6.76<br \/>\n0.6<sup>2<\/sup> = 0.36<br \/>\n3.8<sup>2<\/sup> = 14.44<br \/>\n1<sup>2<\/sup> = 1<br \/>\n-2.8<sup>2<\/sup> = 7.84<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2686\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/reg.jpg\" alt=\"mean square error example\" width=\"850\" height=\"279\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/reg.jpg 744w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/reg-300x98.jpg 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step 5<\/strong>: Add all of the squared errors up: 6.76 + 0.36 + 14.44 + 1 + 7.84 = 30.4.<\/p>\n<p><strong>Step 6<\/strong>: Find the mean squared error:<br \/>\n30.4 \/ 5 = 6.08.<\/p>\n<p>&nbsp;<\/p>\n<p>Planning towards becoming a skilled expert in Data Science? If so, be a part of the <a href=\"http:\/\/prwatech.com\/\">Prwatech<\/a> learning program of <a href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\">Data Science Training in Bangalore<\/a>.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/yyHNh_6luPc\" width=\"650\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mean Squared Error of Regression Line Tutorial &nbsp; Mean squared error of regression line tutorial, Are you the one who is looking for the best platform which provides information about mean squared error in data science? then welcome to the land of Squared error of regression line tutorial. Before proceeding, we recommend you to go [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,1704],"tags":[250,340,249],"class_list":["post-2684","post","type-post","status-publish","format-standard","hentry","category-data-science","category-data-science-modules","tag-mean-squared-error-of-regression","tag-mean-squared-error-of-regression-line-tutorial","tag-squared-error-of-regression-line"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Mean Squared error of regression line tutorial | Prwatech<\/title>\n<meta name=\"description\" content=\"Mean squared error of regression line tutorial dives for mean squared error regression definition &amp; how to calculate with examples in data science.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mean Squared error of regression line tutorial | Prwatech\" \/>\n<meta property=\"og:description\" content=\"Mean squared error of regression line tutorial dives for mean squared error regression definition &amp; how to calculate with examples in data science.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-20T13:48:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-27T12:19:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/reg.jpg\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/\",\"url\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/\",\"name\":\"Mean Squared error of regression line tutorial | Prwatech\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/reg.jpg\",\"datePublished\":\"2019-07-20T13:48:01+00:00\",\"dateModified\":\"2024-03-27T12:19:35+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Mean squared error of regression line tutorial dives for mean squared error regression definition & how to calculate with examples in data science.\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/reg.jpg\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/reg.jpg\",\"width\":744,\"height\":244},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mean squared error of regression line\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mean Squared error of regression line tutorial | Prwatech","description":"Mean squared error of regression line tutorial dives for mean squared error regression definition & how to calculate with examples in data science.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Mean Squared error of regression line tutorial | Prwatech","og_description":"Mean squared error of regression line tutorial dives for mean squared error regression definition & how to calculate with examples in data science.","og_url":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2019-07-20T13:48:01+00:00","article_modified_time":"2024-03-27T12:19:35+00:00","og_image":[{"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/reg.jpg","type":"","width":"","height":""}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/","url":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/","name":"Mean Squared error of regression line tutorial | Prwatech","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/reg.jpg","datePublished":"2019-07-20T13:48:01+00:00","dateModified":"2024-03-27T12:19:35+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Mean squared error of regression line tutorial dives for mean squared error regression definition & how to calculate with examples in data science.","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/reg.jpg","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/reg.jpg","width":744,"height":244},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/mean-squared-error-of-regression-line-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Mean squared error of regression line"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=2684"}],"version-history":[{"count":10,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2684\/revisions"}],"predecessor-version":[{"id":11166,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2684\/revisions\/11166"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=2684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=2684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=2684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}