{"id":818,"date":"2019-01-05T12:11:07","date_gmt":"2019-01-05T06:41:07","guid":{"rendered":"http:\/\/blog.tenthplanet.in\/?p=818"},"modified":"2026-07-06T12:16:01","modified_gmt":"2026-07-06T06:46:01","slug":"linear-regression","status":"publish","type":"post","link":"https:\/\/tenthplanet.in\/blogs\/linear-regression\/","title":{"rendered":"Effective Forecasting using Linear Regression"},"content":{"rendered":"<h3>I. Overview of Linear Regression<\/h3>\n<p>Linear Regression is an analytical technique used to model the relationship between several input variables and a continuous outcome variable. A key assumption is that the relationship between an input variable and the outcome variable is linear.<\/p>\n<p>Linear Regression relationship can be expressed as shown in the below provided equation;<\/p>\n<h4>Where:<\/h4>\n<p><strong>Y<\/strong> \u2013 Outcome Variable (Dependent Variable)<\/p>\n<p><strong>Xi<\/strong> \u2013 Input Variable (Independent Variable)<\/p>\n<p><strong>\u03b2o<\/strong> \u2013 Is the value of Y when Xi equals zero<\/p>\n<p><strong>\u03b21<\/strong> \u2013 Is the change in Y based on a unit change in Xi<\/p>\n<p><strong>\u03b5<\/strong> \u2013 Is the random error term<\/p>\n<p>Suppose, if a linear regression model is built to estimate a person\u2019s annual income as a function of tow variables, i.e., age and education, both of which is expressed in years. In this case, income is the outcome variable and the input variables are age and education. So, in this example, the model would be expressed as shown in the equation provided below;<\/p>\n<p style=\"text-align: center\"><strong>Income (Y) = \u00dfo + \u00df1Age + \u00df2Education + e<\/strong><\/p>\n<h3>II. Example Use Cases<\/h3>\n<p>Linear Regression is often used in business, government, and other scenarios. Some common practical applications of linear regression in the real world include the following:<\/p>\n<ul>\n<li><strong>Real Estate<\/strong> \u2013 A simple linear regression analysis can be used to model residential home prices as a function of the home\u2019s living area. Such a model helps set or evaluate the list price of a home on the market. The model could be further improved by including other input variables such as number of bathrooms, number of bedrooms, lot size, school district rankings, crime statistics, and property taxes.<\/li>\n<li><strong>Demand Forecasting<\/strong> \u2013 Businesses and Governments can use linear regression models to predict demand for goods and services. For example, restaurant chains can appropriately prepare for the predicted type and quantity of food that customers will consume based upon the weather, the day of the week, whether an item is offered as a special, the time of the day, and the reservation volume. Similar models can be built to predict retail sales, emergency room visits, and ambulance dispatches.<\/li>\n<li><strong>Medical<\/strong> \u2013 A linear regression model can be used to analyze the effect of a proposed radiation treatment on reducing tumour sizes. Input variables might include duration of a single radiation treatment, frequency of radiation treatment, and patient attributes such as age or weight.<\/li>\n<\/ul>\n<h3>III. Conclusion<\/h3>\n<p>Linear regression is one of the most popular techniques used in statistics. To successfully predict a outcome, it needs a linear relationship between the dependent and independent variables, also, the error term needs to be normally distributed.<\/p>\n<p>Regression models are used mostly in physical and social science applications where there may be considerable variation in a particular outcome based on a given set of input values.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linear Regression is an analytical technique used to model the relationship between several input variables and a continuous outcome variable.<\/p>\n","protected":false},"author":23,"featured_media":1118,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[424],"tags":[480,468,486,474,483],"class_list":["post-818","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pentaho","tag-data-analytics","tag-data-science","tag-linear-regression","tag-machine-learning","tag-r"],"acf":[],"_links":{"self":[{"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/posts\/818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/comments?post=818"}],"version-history":[{"count":3,"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/posts\/818\/revisions"}],"predecessor-version":[{"id":11739,"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/posts\/818\/revisions\/11739"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/media\/1118"}],"wp:attachment":[{"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/media?parent=818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/categories?post=818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/tags?post=818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}