{"id":16953,"date":"2020-07-22T17:12:45","date_gmt":"2020-07-22T11:42:45","guid":{"rendered":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/"},"modified":"2024-09-03T15:01:17","modified_gmt":"2024-09-03T09:31:17","slug":"r-square","status":"publish","type":"post","link":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/","title":{"rendered":"An Introduction to R - Square"},"content":{"rendered":"\n<p>Index<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong><a href=\"#WhatisR-square\">What is R-square<\/a><\/strong><\/li>\n\n\n\n<li><strong><a href=\"#RegressionModel\">Assessing Goodness-of-Fit in a Regression Model<\/a><\/strong><\/li>\n\n\n\n<li><strong><a href=\"#R-squaredandtheGoodness-of-Fit\">R-squared and the Goodness-of-Fit<\/a><\/strong><\/li>\n\n\n\n<li><strong><a href=\"#VisualRepresentationofR-squared\">Visual Representation of R-squared<\/a><\/strong><\/li>\n\n\n\n<li><a href=\"#R-squaredhasLimitations\"><strong>R-squared has Limitations<\/strong><\/a><\/li>\n\n\n\n<li><strong><a href=\"#LowR-squaredValuesAlwaysaProblem\">Are Low R-squared Values Always a Problem?<\/a><\/strong><\/li>\n\n\n\n<li><strong><a href=\"#HighRsquaredValuesAlwaysGreat\">Are High R-squared Values Always Great?<\/a><\/strong><\/li>\n\n\n\n<li><a href=\"#R-squaredIsNotAlwaysStraightforward\"><strong>R-squared Is Not Always Straightforward<\/strong><\/a><\/li>\n\n\n\n<li><a href=\"#InterpretAdjustedR-SquaredandPredictedR-SquaredinRegressionAnalysis\"><strong>How to Interpret Adjusted R-Squared and Predicted R-Squared in Regression Analysis?<\/strong><\/a><\/li>\n\n\n\n<li><strong><a href=\"#SomeProblemswithR-squared\">Some Problems with R-squared<\/a><\/strong><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-r-square\"><strong>What is R-square?<\/strong><\/h2>\n\n\n\n<p>R-square is a goodness-of-fit measure for linear&nbsp;regression models. This statistic indicates the percentage of the variance in the&nbsp;dependent variable&nbsp;that the&nbsp;independent variables explain collectively. R-squared&nbsp;measures the strength of the relationship between your model and the dependent variable on a convenient 0 \u2013 100% scale. <\/p>\n\n\n\n<p>After fitting a linear regression model, you need to determine how well the model fits the data. Does it do a good job of explaining changes in the dependent variable? There are several key goodness-of-fit statistics for regression analysis. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"assessing-goodness-of-fit-in-a-regression-model\"><strong>Assessing Goodness-of-Fit in a Regression Model<\/strong><\/h2>\n\n\n\n<p>Linear regression identifies the equation that produces the smallest difference between all of the observed values and their fitted values. To be precise, linear regression finds the smallest sum of squared residuals that is possible for the dataset. <\/p>\n\n\n<figure class=\"wp-block-image size-large zoomable\" data-full=\"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/Rsquare-1.png\"><img decoding=\"async\" width=\"335\" height=\"256\" src=\"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/Rsquare-1.png\" alt=\"\" class=\"wp-image-17134\" srcset=\"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/Rsquare-1.png 335w, https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/Rsquare-1-300x229.png 300w, https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/Rsquare-1-80x60.png 80w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/figure>\n\n\n\n<p>Statisticians say that a regression model fits the data well if the differences between the observations and the predicted values are small and biased.  Unbiased in this context means that the fitted values are not systematically too high or too low anywhere in the observation space. <\/p>\n\n\n\n<p>However, before assessing numeric measures of goodness-of-fit, like R-squared, we should evaluate the residual plots. Residual plots can expose a biased model far more effectively than the numeric output by displaying problematic patterns in the residuals. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"r-squared-and-the-goodness-of-fit\"><strong>R-squared and the Goodness-of-Fit<\/strong><\/h2>\n\n\n\n<p>R-squared evaluates the scatter of the data points around the fitted regression line. It is also called the coefficient of determination, or the coefficient of multiple determination for multiple regression. For the same data set, higher R-squared values represent smaller differences between the observed data and the fitted values. <\/p>\n\n\n\n<p>R-squared is the percentage of the dependent variable variation that a linear model explains. <\/p>\n\n\n<figure class=\"wp-block-image size-large zoomable\" data-full=\"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/rsquare-formula.png\"><img decoding=\"async\" width=\"297\" height=\"73\" src=\"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/rsquare-formula.png\" alt=\"\" class=\"wp-image-17139\"><\/figure>\n\n\n\n<p> R-squared is always between 0 and 100%: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>0% represents a model that does not explain any of the variations in the response variable around its mean. The mean of the dependent variable predicts the dependent variable as well as the regression model.<\/li>\n\n\n\n<li>100% represents a model that explains all of the variations in the response variable around its mean.<\/li>\n<\/ul>\n\n\n\n<p> Usually, the larger the R<sup>2<\/sup>, the better the regression model fits your observations. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"visual-representation-of-r-square\"><strong>Visual Representation of R-square<\/strong><\/h2>\n\n\n\n<p>To visually demonstrate how R-squared values represent the scatter around the regression line, we can plot the fitted values by observed values. <\/p>\n\n\n<figure class=\"wp-block-image size-large zoomable\" data-full=\"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/rsquare-plots.png\"><img decoding=\"async\" width=\"651\" height=\"224\" src=\"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/rsquare-plots.png\" alt=\"\" class=\"wp-image-17140\" srcset=\"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/rsquare-plots.png 651w, https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/rsquare-plots-300x103.png 300w\" sizes=\"(max-width: 651px) 100vw, 651px\" \/><\/figure>\n\n\n\n<p>The R-squared for the regression model on the left is 15%, and for the model on the right, it is 85%. When a regression model accounts for more of the variance, the data points are closer to the regression line. In practice, we will never see a regression model with an R<sup>2<\/sup>&nbsp;of 100%. In&nbsp;that case, the fitted values equal the data values and, consequently, all of the observations fall exactly on the regression line. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"r-square-has-limitations\"><strong>R-square has Limitations<\/strong><\/h2>\n\n\n\n<p>We cannot use R-squared to determine whether the coefficient estimates and predictions are biased, which is why you must assess the residual plots. <\/p>\n\n\n\n<p>R-squared does not indicate if a regression model provides an adequate fit to your data. A good model can have a low R<sup>2<\/sup>&nbsp;value. On the other hand, a biased model can have a high R<sup>2<\/sup>&nbsp;value! <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"are-low-r-squared-values-always-a-problem\"><strong>Are Low R-squared Values Always a Problem?<\/strong><\/h2>\n\n\n\n<p>No. Regression models with low R-squared values can be perfectly good models for several reasons. <\/p>\n\n\n\n<p> Some fields of study have an inherently greater amount of unexplainable variation. In these areas, your R<sup>2<\/sup>&nbsp;values are bound to be lower. For example, studies that try to explain human behavior generally have R<sup>2<\/sup>&nbsp;values of less than 50%. People are just harder to predict than things like physical processes. <\/p>\n\n\n\n<p> Fortunately, if you have a low R-squared value but the independent variables are statistically significant, you can still draw important conclusions about the relationships between the variables.  Statistically, significant coefficients continue to&nbsp;represent the mean change in the dependent variable given a one-unit shift in the independent variable. <\/p>\n\n\n\n<p> There is a scenario where small R-squared values can cause problems. If we need to generate predictions that are relatively precise (narrow prediction intervals),  a low R<sup>2<\/sup>&nbsp;can be a show stopper. <\/p>\n\n\n\n<p> How high does R-squared need to be for the model produce useful predictions? That depends on the precision that you require and the amount of variation present in your data. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"are-high-r-squared-values-always-great\"><strong>Are High R-squared Values Always Great?<\/strong><\/h2>\n\n\n\n<p> No! A regression model with high R-squared value can have a multitude of problems. We probably expect that a high R<sup>2<\/sup>&nbsp;indicates a good model but examine the graphs below. The fitted line plot models the association between electron mobility and density. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The data in the fitted line plot follow a very low noise relationship, and the R-squared is 98.5%, which seems fantastic. However, the regression line consistently under and over-predicts the data along the curve, which is bias. The Residuals versus Fits plot emphasizes this unwanted pattern. An unbiased model has residuals that are randomly scattered around zero. Non-random residual patterns indicate a bad fit despite a high R<sup>2<\/sup>. <\/p>\n\n\n\n<p>This type of specification bias occurs when our linear model is underspecified. In other words, it is missing significant independent variables, polynomial terms, and interaction terms. To produce random residuals, try adding terms to the model or fitting a nonlinear model. <\/p>\n\n\n\n<p>A variety of other circumstances can artificially inflate our R<sup>2<\/sup>.  These reasons include overfitting the model and data mining.  Either of these can produce a model that looks like it provides an excellent fit to the data but in reality, the results can be entirely deceptive. <\/p>\n\n\n\n<p>An overfit model is one where the model fits the random quirks of the sample.  Data mining can take advantage of chance correlations. In either case, we can obtain a model with a high R<sup>2<\/sup>&nbsp;even for entirely random data! <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"r-squared-is-not-always-straightforward\"><strong>R-squared Is Not Always Straightforward<\/strong>!<\/h2>\n\n\n\n<p>At first glance, R-squared seems like an easy to understand statistic that indicates how well a regression model fits a data set. However, it doesn\u2019t tell us the entire story. To get the full picture, we must consider R<sup>2<\/sup>&nbsp;values in combination with residual plots, other statistics, and in-depth knowledge of the subject area. <\/p>\n\n\n\n<p><strong>Model Evaluation Metrics for Machine Learning<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-interpret-adjusted-r-squared-and-predicted-r-squared-in-regression-analysis\"><strong>How to Interpret Adjusted R-Squared and Predicted R-Squared in Regression Analysis?<\/strong><\/h2>\n\n\n\n<p>R-square tends to reward you for including too many independent variables in a regression model,  and it doesn\u2019t provide any incentive to stop adding more. Adjusted R-squared and predicted R-squared use different approaches to help you fight that impulse to add too many. The protection that adjusted R-squared and predicted R-squared provide is critical because too many terms in a model can produce results that we can\u2019t trust. <\/p>\n\n\n\n<p>Multiple Linear Regression can incredibly tempt <a href=\"https:\/\/www.mygreatlearning.com\/blog\/what-is-statistical-analysis\/\">statistical analysis<\/a> that practically begs you to include additional independent variables in your model. Every time you add a variable, the R-squared increases, which tempts you to add more. Some of the independent variables\u00a0<em>will<\/em>\u00a0be statistically significant.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"some-problems-with-r-squared\"><strong>Some Problems with R-squared <\/strong><\/h2>\n\n\n\n<p>We cannot use R-squared to conclude whether your model is biased.  &nbsp;To check for this bias, we need to check our residual plots.  Unfortunately, there are yet more problems with R-squared that we need to address. <\/p>\n\n\n\n<p>Problem 1:  R-squared increases every time you add an independent variable to the model. The R-squared&nbsp;<em>never<\/em>&nbsp;decreases, not even when it\u2019s just a chance correlation between variables. A regression model that contains more independent variables than another model can look like it provides a better fit merely because it contains more variables.<\/p>\n\n\n\n<p>Problem 2:  When a model contains an excessive number of independent variables and polynomial terms, it becomes overly customized to fit the peculiarities and random noise in our sample rather than reflecting the entire population.   <\/p>\n\n\n\n<p>Fortunately for us, adjusted R-squared and predicted R-squared address both of these problems. <\/p>\n\n\n\n<p><strong><a href=\"https:\/\/www.mygreatlearning.com\/blog\/logistic-regression-with-examples-in-python-and-r\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Logistic Regression With Examples in Python and R (opens in a new tab)\">Logistic Regression With Examples in Python and R<\/a><\/strong><\/p>\n\n\n<figure class=\"wp-block-image size-large zoomable\" data-full=\"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/June-29-banner-for-GL-Academy-intro-to-R-2.png\"><a href=\"https:\/\/www.mygreatlearning.com\/academy\/learn-for-free\/courses\/introduction-to-r\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1000\" height=\"242\" src=\"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/June-29-banner-for-GL-Academy-intro-to-R-2.png\" alt=\"\" class=\"wp-image-17952\" srcset=\"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/June-29-banner-for-GL-Academy-intro-to-R-2.png 1000w, https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/June-29-banner-for-GL-Academy-intro-to-R-2-300x73.png 300w, https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/June-29-banner-for-GL-Academy-intro-to-R-2-768x186.png 768w, https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/June-29-banner-for-GL-Academy-intro-to-R-2-696x168.png 696w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Index What is R-square? R-square is a goodness-of-fit measure for linear&nbsp;regression models. This statistic indicates the percentage of the variance in the&nbsp;dependent variable&nbsp;that the&nbsp;independent variables explain collectively. R-squared&nbsp;measures the strength of the relationship between your model and the dependent variable on a convenient 0 \u2013 100% scale. After fitting a linear regression model, you need [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":17949,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[9],"tags":[],"content_type":[],"class_list":["post-16953","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-science"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Introduction to R-Sqaure in Linear Regression<\/title>\n<meta name=\"description\" content=\"R-square is a goodness-of-fit measure for linear regression models. This statistic indicates the percentage of the variance in the dependent variable.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mygreatlearning.com\/blog\/r-square\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"An Introduction to R - Square\" \/>\n<meta property=\"og:description\" content=\"R-square is a goodness-of-fit measure for linear regression models. This statistic indicates the percentage of the variance in the dependent variable.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mygreatlearning.com\/blog\/r-square\/\" \/>\n<meta property=\"og:site_name\" content=\"Great Learning Blog: Free Resources what Matters to shape your Career!\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/GreatLearningOfficial\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-22T11:42:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-03T09:31:17+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"668\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Great Learning Editorial Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/Great_Learning\" \/>\n<meta name=\"twitter:site\" content=\"@Great_Learning\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Great Learning Editorial Team\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/r-square\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/r-square\\\/\"},\"author\":{\"name\":\"Great Learning Editorial Team\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\"},\"headline\":\"An Introduction to R - Square\",\"datePublished\":\"2020-07-22T11:42:45+00:00\",\"dateModified\":\"2024-09-03T09:31:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/r-square\\\/\"},\"wordCount\":1352,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/r-square\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/shutterstock_1187255977.jpg\",\"articleSection\":[\"Data Science and Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/r-square\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/r-square\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/r-square\\\/\",\"name\":\"Introduction to R-Sqaure in Linear Regression\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/r-square\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/r-square\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/shutterstock_1187255977.jpg\",\"datePublished\":\"2020-07-22T11:42:45+00:00\",\"dateModified\":\"2024-09-03T09:31:17+00:00\",\"description\":\"R-square is a goodness-of-fit measure for linear regression models. This statistic indicates the percentage of the variance in the dependent variable.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/r-square\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/r-square\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/r-square\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/shutterstock_1187255977.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/shutterstock_1187255977.jpg\",\"width\":1000,\"height\":668},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/r-square\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Data Science and Analytics\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/data-science\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"An Introduction to R &#8211; Square\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"name\":\"Great Learning Blog\",\"description\":\"Learn, Upskill &amp; Career Development Guide and Resources\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"alternateName\":\"Great Learning\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\",\"name\":\"Great Learning\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"width\":900,\"height\":900,\"caption\":\"Great Learning\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/GreatLearningOfficial\\\/\",\"https:\\\/\\\/x.com\\\/Great_Learning\",\"https:\\\/\\\/www.instagram.com\\\/greatlearningofficial\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/in.pinterest.com\\\/greatlearning12\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/beaconelearning\\\/\"],\"description\":\"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.\",\"email\":\"info@mygreatlearning.com\",\"legalName\":\"Great Learning Education Services Pvt. Ltd\",\"foundingDate\":\"2013-11-29\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"1001\",\"maxValue\":\"5000\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\",\"name\":\"Great Learning Editorial Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"caption\":\"Great Learning Editorial Team\"},\"description\":\"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.\",\"sameAs\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/\",\"https:\\\/\\\/in.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/Great_Learning\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCObs0kLIrDjX2LLSybqNaEA\"],\"award\":[\"Best EdTech Company of the Year 2024\",\"Education Economictimes Outstanding Education\\\/Edtech Solution Provider of the Year 2024\",\"Leading E-learning Platform 2024\"],\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/author\\\/greatlearning\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Introduction to R-Sqaure in Linear Regression","description":"R-square is a goodness-of-fit measure for linear regression models. This statistic indicates the percentage of the variance in the dependent variable.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/","og_locale":"en_US","og_type":"article","og_title":"An Introduction to R - Square","og_description":"R-square is a goodness-of-fit measure for linear regression models. This statistic indicates the percentage of the variance in the dependent variable.","og_url":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/","og_site_name":"Great Learning Blog: Free Resources what Matters to shape your Career!","article_publisher":"https:\/\/www.facebook.com\/GreatLearningOfficial\/","article_published_time":"2020-07-22T11:42:45+00:00","article_modified_time":"2024-09-03T09:31:17+00:00","og_image":[{"width":1000,"height":668,"url":"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977.jpg","type":"image\/jpeg"}],"author":"Great Learning Editorial Team","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/Great_Learning","twitter_site":"@Great_Learning","twitter_misc":{"Written by":"Great Learning Editorial Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/#article","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/"},"author":{"name":"Great Learning Editorial Team","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad"},"headline":"An Introduction to R - Square","datePublished":"2020-07-22T11:42:45+00:00","dateModified":"2024-09-03T09:31:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/"},"wordCount":1352,"commentCount":0,"publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977.jpg","articleSection":["Data Science and Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.mygreatlearning.com\/blog\/r-square\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/","url":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/","name":"Introduction to R-Sqaure in Linear Regression","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/#primaryimage"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977.jpg","datePublished":"2020-07-22T11:42:45+00:00","dateModified":"2024-09-03T09:31:17+00:00","description":"R-square is a goodness-of-fit measure for linear regression models. This statistic indicates the percentage of the variance in the dependent variable.","breadcrumb":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mygreatlearning.com\/blog\/r-square\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/#primaryimage","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977.jpg","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977.jpg","width":1000,"height":668},{"@type":"BreadcrumbList","@id":"https:\/\/www.mygreatlearning.com\/blog\/r-square\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.mygreatlearning.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Data Science and Analytics","item":"https:\/\/www.mygreatlearning.com\/blog\/data-science\/"},{"@type":"ListItem","position":3,"name":"An Introduction to R &#8211; Square"}]},{"@type":"WebSite","@id":"https:\/\/www.mygreatlearning.com\/blog\/#website","url":"https:\/\/www.mygreatlearning.com\/blog\/","name":"Great Learning Blog","description":"Learn, Upskill &amp; Career Development Guide and Resources","publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"alternateName":"Great Learning","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mygreatlearning.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization","name":"Great Learning","url":"https:\/\/www.mygreatlearning.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","width":900,"height":900,"caption":"Great Learning"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/GreatLearningOfficial\/","https:\/\/x.com\/Great_Learning","https:\/\/www.instagram.com\/greatlearningofficial\/","https:\/\/www.linkedin.com\/school\/great-learning\/","https:\/\/in.pinterest.com\/greatlearning12\/","https:\/\/www.youtube.com\/user\/beaconelearning\/"],"description":"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.","email":"info@mygreatlearning.com","legalName":"Great Learning Education Services Pvt. Ltd","foundingDate":"2013-11-29","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"1001","maxValue":"5000"}},{"@type":"Person","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad","name":"Great Learning Editorial Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","caption":"Great Learning Editorial Team"},"description":"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.","sameAs":["https:\/\/www.mygreatlearning.com\/","https:\/\/in.linkedin.com\/school\/great-learning\/","https:\/\/x.com\/https:\/\/twitter.com\/Great_Learning","https:\/\/www.youtube.com\/channel\/UCObs0kLIrDjX2LLSybqNaEA"],"award":["Best EdTech Company of the Year 2024","Education Economictimes Outstanding Education\/Edtech Solution Provider of the Year 2024","Leading E-learning Platform 2024"],"url":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977.jpg",1000,668,false],"thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977-150x150.jpg",150,150,true],"medium":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977-300x200.jpg",300,200,true],"medium_large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977-768x513.jpg",768,513,true],"large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977.jpg",1000,668,false],"1536x1536":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977.jpg",1000,668,false],"2048x2048":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977.jpg",1000,668,false],"web-stories-poster-portrait":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977.jpg",640,428,false],"web-stories-publisher-logo":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977.jpg",96,64,false],"web-stories-thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/shutterstock_1187255977.jpg",150,100,false]},"uagb_author_info":{"display_name":"Great Learning Editorial Team","author_link":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"},"uagb_comment_info":0,"uagb_excerpt":"Index What is R-square? R-square is a goodness-of-fit measure for linear&nbsp;regression models. This statistic indicates the percentage of the variance in the&nbsp;dependent variable&nbsp;that the&nbsp;independent variables explain collectively. R-squared&nbsp;measures the strength of the relationship between your model and the dependent variable on a convenient 0 \u2013 100% scale. After fitting a linear regression model, you need&hellip;","_links":{"self":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/16953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/comments?post=16953"}],"version-history":[{"count":15,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/16953\/revisions"}],"predecessor-version":[{"id":105476,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/16953\/revisions\/105476"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media\/17949"}],"wp:attachment":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media?parent=16953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/categories?post=16953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/tags?post=16953"},{"taxonomy":"content_type","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/content_type?post=16953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}