{"id":2873,"date":"2019-09-16T17:47:50","date_gmt":"2019-09-16T17:47:50","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=2873"},"modified":"2024-03-27T10:04:34","modified_gmt":"2024-03-27T10:04:34","slug":"regression-analysis-tutorial-with-examples","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/","title":{"rendered":"Regression Analysis Tutorial with Examples"},"content":{"rendered":"<h1>Regression Analysis Tutorial with Examples<\/h1>\n<p>&nbsp;<\/p>\n<p><strong>Regression Analysis Tutorial<\/strong>, Are you the one who is looking forward to knowing the regression analysis tutorial with Examples? Or the one who is looking forward to knowing the classification of regression analysis in Machine Learning and need of requirement analysis or Are you dreaming to become to certified Pro Machine Learning Engineer or <a title=\"Data Scientist\" href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\" target=\"_blank\" rel=\"noopener noreferrer\">Data Scientist<\/a>, then stop just dreaming, get your <a title=\"Data Science certification course\" href=\"https:\/\/prwatech.in\/data-science-certification-course-in-bangalore\/\" target=\"_blank\" rel=\"noopener noreferrer\">Data Science certification course<\/a> with Machine Learning from India\u2019s Leading <a title=\"Data Science training institute\" href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\" target=\"_blank\" rel=\"noopener noreferrer\">Data Science training institute<\/a>.<\/p>\n<p>Regression Analysis explains the relation between independent and dependent variables mathematically. When you specify values for independent variables, then Regression allows predicting mean values of dependent variables. In this blog, we will learn regression analysis definition, classification of regression analysis with examples, and need of regression analysis, introduction to linear regression analysis, types of linear regression analysis.<\/p>\n<p>Do you want to know the classification of regression analysis in machine learning, So follow the below-mentioned Decision Regression analysis Tutorial with examples from <a title=\"Prwatech\" href=\"https:\/\/prwatech.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Prwatech<\/a> and take advanced <a title=\"Data Science training\" href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\" target=\"_blank\" rel=\"noopener noreferrer\">Data Science training<\/a> with Machine Learning like a pro from today itself under 10+ Years of hands-on experienced Professionals.<\/p>\n<h2>Regression Analysis Definition:<\/h2>\n<p>Regression means building a functional relationship or model between (dependant and independent) variables. In datasets of several fields usually, some circumstances of interest having a number of observations are taken into account. Following the assumption that at least one of the features depends on the others, a relationship among them can be established.<\/p>\n<h3>Need for Requirement Analysis<\/h3>\n<p>Regression is helpful in relating particular variables. For example, one may use it to identify if and to what extent the weight and gender impact salaries.<\/p>\n<p>Regression is also helpful when you need to predict a response using a new set of predictors. For example, you could try to predict water consumption of a household for the next week given the outdoor temperature, time of day, and the number of members in that household. It is a widely used statistical technique for the economy, weather forecast, banking sectors, and so on.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4741\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/reg1.png\" alt=\"Regression Analysis Tutorial with Examples\" width=\"850\" height=\"550\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/reg1.png 651w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/reg1-300x194.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<h3>What we see in Regression Analysis<\/h3>\n<p>Is there any relationship between the variables of the dataset?<\/p>\n<p>How strong the relevance is?<\/p>\n<p>Whether the variables are linearly or nonlinearly related?<\/p>\n<p>How accurately can we estimate the relationship between variables?<\/p>\n<p>How better will be the model for prediction purpose?<\/p>\n<h3>Classification of Regression Analysis<\/h3>\n<p>Based on the analysis regression technique can be classified as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4742\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/reg2.png\" alt=\"Classification of Regression Analysis\" width=\"850\" height=\"666\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/reg2.png 537w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/reg2-300x235.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>The most used type is linear regression which is next categorized as simple linear regression and multi-linear regression.<\/p>\n<p><strong>Simple Linear Regression<\/strong>: Simple linear regression is an approach towards predicting a response using a single feature.<\/p>\n<p><strong>Multi Linear Regression<\/strong>: Multiple linear regressions are one of the most common forms of linear regression analysis. In a prediction analysis, multiple linear regression is used to explain the relationship between one continuous dependent variable and two or more independent variables.\u00a0 The independent variables can be continuous or categorical.<\/p>\n<p>Regression is an iterative process which can be elaborated as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4743\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/reg3.png\" alt=\"Regression Analysis Tutorial with Examples\" width=\"850\" height=\"1347\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/reg3.png 513w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/reg3-189x300.png 189w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<h2>Introduction to Linear Regression Analysis<\/h2>\n<p>Linear regression is a category of regression where one variable changes linearly according to another variable. It may be a positive linear regression or negative linear regression. It simply states the equation:<\/p>\n<p style=\"text-align: center;\"><strong>y= mx+c<em>\u00a0<\/em><\/strong><\/p>\n<p>Where y= Dependent Variable, x = Independent variable<\/p>\n<p>m= Slope or the coefficient, c= Intercept<\/p>\n<p>It indicates a single independent and single dependent variable.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4750\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/lr1.png\" alt=\"introduction to linear regression analysis\" width=\"850\" height=\"429\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/lr1.png 994w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/lr1-300x152.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/lr1-768x388.png 768w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>Means dependent variable changes according to the independent variable with coefficient \u2018m\u2019 and constant \u2018c\u2019. Here \u2018m\u2019 may be positive or negative, and accordingly, we get either positive or negative linear regression. In the linear regression analysis, we try to find the best-fit line such that the difference between actual and predicted value can be minimum.<\/p>\n<h2>Types of Linear Regression Analysis<\/h2>\n<p>Linear regression has two types. Simple linear regression and Multiple linear regression depending on the number of independent variables. Let\u2019s see more about these types.<\/p>\n<h3>Simple Linear Regression with Example<\/h3>\n<p>In simple linear regression only one independent and one dependent variable preset.<\/p>\n<p><strong>Example: <\/strong>The following table shows prices according to the area. The cost increases as the area (square feet) increase. It is an example of positive linear regression.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"187\"><strong>Area (In Square Fits)<\/strong><\/td>\n<td width=\"180\"><strong>Price(in Rs)<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"187\">2550<\/td>\n<td width=\"180\">5000000<\/td>\n<\/tr>\n<tr>\n<td width=\"187\">3200<\/td>\n<td width=\"180\">5500000<\/td>\n<\/tr>\n<tr>\n<td width=\"187\">3500<\/td>\n<td width=\"180\">6600000<\/td>\n<\/tr>\n<tr>\n<td width=\"187\">3800<\/td>\n<td width=\"180\">6800000<\/td>\n<\/tr>\n<tr>\n<td width=\"187\">4000<\/td>\n<td width=\"180\">7500000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Herewith reference to table we have to achieve the maximum accuracy on predicting the price based on area.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4751\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/lr2.png\" alt=\"simple linear regression with example\" width=\"850\" height=\"476\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/lr2.png 427w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/lr2-300x168.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p><strong>The following steps should be followed:<\/strong><\/p>\n<h3>Import libraries<\/h3>\n<p>&nbsp;<\/p>\n<h3>Read the file. Assign one variable to store it:<\/h3>\n<p>df=pd.read_excel(&#8220;Your file_path&#8221;)<\/p>\n<p>df<\/p>\n<h3>Assign variable names for the independent and dependent fields. Generally, we assign \u2018x\u2019 to independent variables and \u2018y\u2019 to the dependent variable. Here Area is \u2018x\u2019 and the price changes accordingly so it\u2019s \u2018y\u2019<\/h3>\n<p>Y=df.drop([\u2018Area (In Square Fits)\u2019],axis=1)<\/p>\n<p>X=df.drop([\u2018Price(in Rs)\u2019],axis=1)<\/p>\n<h3>Import sklearn for linear regression and mean squared error.<\/h3>\n<p>from sklearn.linear_model import LinearRegression<\/p>\n<p>from sklearn.metrics importmean_squared_error<\/p>\n<h3>Implement the regression function on the given dataset<\/h3>\n<p>reg=LinearRegression() reg=reg.fit(X,Y)<\/p>\n<h3>Predict output for independent variable X.<\/h3>\n<p>Y_pred=reg.predict(X)<\/p>\n<p><strong><em>\u00a0<\/em><\/strong><\/p>\n<h3>Check accuracy as<\/h3>\n<p>acc_score=reg.score(X,Y) print(acc_score)<\/p>\n<h3>Now if we have to predict the price for area 4500 then we have to put the area in the prediction model as input:<\/h3>\n<p>reg.predict([[4500]])<\/p>\n<p>While calculating the score we consider the R<sup>2<\/sup> value as the coefficient of determination, which is a measure of variability in output variable (Y) defined by input variable (X). This value is between 0 and 1.Value 0 indicates a poor fit, value near to 1 indicates a good fit.<\/p>\n<h3>To see the graphical form of actual and predicted values we can write code as:<\/h3>\n<p>plt.scatter(X, Y, color = &#8216;red&#8217;) plt.<\/p>\n<p>plot(X,Y_pred,&#8217;bo&#8217;,X,Y_pred,&#8217;k&#8217;)<\/p>\n<p>plt.title(&#8216;Area Vs. Price (Training set)&#8217;)<\/p>\n<p>plt.xlabel(&#8216;Area in sq. feets&#8217;)<\/p>\n<p>plt.ylabel(&#8216;Price&#8217;)<\/p>\n<p>plt.show()<\/p>\n<h3><strong>Result:<\/strong><\/h3>\n<p>The graph shows the line of best fit with predicted values and actual values of \u2018y\u2019 i.e. price.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4752\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/lr3.png\" alt=\"Multiple linear regression with example\" width=\"850\" height=\"562\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/lr3.png 853w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/lr3-300x198.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/lr3-768x508.png 768w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<h3>Multiple Linear Regression with Example:<\/h3>\n<p style=\"text-align: center;\"><strong>\u00a0<\/strong>y= m<sub>1<\/sub>x<sub>1+<\/sub>m<sub>2<\/sub>x<sub>2<\/sub>+&#8230;&#8230;&#8230;&#8230;&#8230;. +m<sub>n<\/sub>x<sub>n<\/sub>+c<\/p>\n<p>Where y= Dependent Variable,x<sub>1,<\/sub>x<sub>2,<\/sub>&#8230;.. x<sub>n<\/sub>= Independent variable<\/p>\n<p>m<sub>1,<\/sub>m<sub>2,<\/sub>&#8230; <sub>,<\/sub>m<sub>n<\/sub> = coefficients, c =Intercept<\/p>\n<p>It indicates single dependent and multiple or more than one dependent variable. In simple linear regression only one independent and one dependent variable preset.<\/p>\n<p><strong>Example: The following<\/strong>\u00a0table shows price depending on different factors like area, number of bedrooms, age of the flat, which are independent variables for the price? To build the model based on multiple linear regressions we have to follow the steps as:<\/p>\n<p><strong>The following steps should be followed:<\/strong><\/p>\n<h3>Import\u00a0 Python libraries<\/h3>\n<p>&nbsp;<\/p>\n<h3>Read the file. Assign one variable to store it:<\/h3>\n<p>df=pd.read_excel(&#8220;Your file_path&#8221;)<\/p>\n<p>df<\/p>\n<p><strong><em>\u00a0<\/em><\/strong><\/p>\n<h3>Assign variable names for the independent and dependent fields. Generally, we assign \u2018x\u2019 to independent variables and \u2018y\u2019 to the dependent variable. Here Area is \u2018x\u2019 and the price changes accordingly so it\u2019s \u2018y\u2019.<\/h3>\n<p>X=df.drop([\u2018Price(in Rs)\u2019],axis=1) Y=df[\u2018Area (In Square Fits)\u2019]<\/p>\n<p><strong><em>\u00a0<\/em><\/strong><\/p>\n<h3>Import sklearn for linear regression and mean squared error.<\/h3>\n<p>from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error<\/p>\n<h3>Implement the regression function on the given dataset<\/h3>\n<p>Reg = LinearRegression()<\/p>\n<p>reg=reg.fit(X,Y)<\/p>\n<h4><\/h4>\n<h3>Predict output for independent variable X.<\/h3>\n<p>Y_pred=reg.predict(X)<\/p>\n<h3>Check accuracy as<\/h3>\n<p>acc_score=reg.score(X,Y) print(acc_score)<\/p>\n<h3>Now if we have to predict the price for area 5000, bedroom -2 then we have to put the area in the prediction model as input:<\/h3>\n<p>reg.predict([[5000,2,2]])<\/p>\n<p>We hope you understand the regression analysis tutorial with examples concepts. Get success in your career as a Data Scientist\/ Machine Learning Engineer by being a part of the <a title=\"Prwatech\" href=\"https:\/\/prwatech.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Prwatech<\/a>, India&#8217;s leading <a title=\"Data Science training institute in Bangalore\" href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\" target=\"_blank\" rel=\"noopener noreferrer\">Data Science training institute in Bangalore<\/a>.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/EGbyBqFlTcQ\" width=\"850\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Regression Analysis Tutorial with Examples &nbsp; Regression Analysis Tutorial, Are you the one who is looking forward to knowing the regression analysis tutorial with Examples? Or the one who is looking forward to knowing the classification of regression analysis in Machine Learning and need of requirement analysis or Are you dreaming to become to certified [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2985,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,1696],"tags":[414,415,413,416],"class_list":["post-2873","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-machine-learning","category-machine-learning-modules","tag-classification-of-regression-analysis","tag-introduction-to-linear-regression-analysis","tag-regression-analysis-tutorial-with-examples","tag-types-of-linear-regression-analysis"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linear Regression for Beginners: A Step-by-Step Guide - Prwatech<\/title>\n<meta name=\"description\" content=\"Explore Regression Analysis Tutorial with examples and learn its need,classification,introduction to linear regression analysis,\" \/>\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=\"Linear Regression for Beginners: A Step-by-Step Guide - Prwatech\" \/>\n<meta property=\"og:description\" content=\"Explore Regression Analysis Tutorial with examples and learn its need,classification,introduction to linear regression analysis,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/\" \/>\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-09-16T17:47:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-27T10:04:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/Regression.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/\",\"url\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/\",\"name\":\"Linear Regression for Beginners: A Step-by-Step Guide - Prwatech\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/Regression.jpg\",\"datePublished\":\"2019-09-16T17:47:50+00:00\",\"dateModified\":\"2024-03-27T10:04:34+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Explore Regression Analysis Tutorial with examples and learn its need,classification,introduction to linear regression analysis,\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/Regression.jpg\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/Regression.jpg\",\"width\":1024,\"height\":768,\"caption\":\"What Is Regression\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Regression Analysis Tutorial with Examples\"}]},{\"@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":"Linear Regression for Beginners: A Step-by-Step Guide - Prwatech","description":"Explore Regression Analysis Tutorial with examples and learn its need,classification,introduction to linear regression analysis,","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":"Linear Regression for Beginners: A Step-by-Step Guide - Prwatech","og_description":"Explore Regression Analysis Tutorial with examples and learn its need,classification,introduction to linear regression analysis,","og_url":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2019-09-16T17:47:50+00:00","article_modified_time":"2024-03-27T10:04:34+00:00","og_image":[{"width":1024,"height":768,"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/Regression.jpg","type":"image\/jpeg"}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/","url":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/","name":"Linear Regression for Beginners: A Step-by-Step Guide - Prwatech","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/Regression.jpg","datePublished":"2019-09-16T17:47:50+00:00","dateModified":"2024-03-27T10:04:34+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Explore Regression Analysis Tutorial with examples and learn its need,classification,introduction to linear regression analysis,","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/Regression.jpg","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/09\/Regression.jpg","width":1024,"height":768,"caption":"What Is Regression"},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/machine-learning\/machine-learning-modules\/regression-analysis-tutorial-with-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Regression Analysis Tutorial with Examples"}]},{"@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\/2873","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=2873"}],"version-history":[{"count":29,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2873\/revisions"}],"predecessor-version":[{"id":11138,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2873\/revisions\/11138"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media\/2985"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=2873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=2873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=2873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}