Coefficient of determination: Difference between revisions

From CEOpedia | Management online
m (Infobox update)
m (Text cleaning)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{infobox4
|list1=
<ul>
<li>[[Central tendency]]</li>
<li>[[Probability density function]]</li>
<li>[[Residual standard deviation]]</li>
<li>[[Autocorrelation]]</li>
<li>[[Kurtosis]]</li>
<li>[[Harmonic mean]]</li>
<li>[[Precision and recall]]</li>
<li>[[Continuous distribution]]</li>
<li>[[Asymmetrical distribution]]</li>
</ul>
}}
The '''coefficient of determination''', sometimes referred to as R-squared, is a measure of how well a regression line fits a set of data. It is calculated by taking the square of the correlation coefficient between two variables. This value ranges from 0 to 1, with a higher coefficient of determination indicating a better fit.
The '''coefficient of determination''', sometimes referred to as R-squared, is a measure of how well a regression line fits a set of data. It is calculated by taking the square of the correlation coefficient between two variables. This value ranges from 0 to 1, with a higher coefficient of determination indicating a better fit.


Line 20: Line 4:


==Example of Coefficient of determination==
==Example of Coefficient of determination==
Let’s say we have the following data set:
Let’s say we have the following data set:
* x = [1, 2, 3, 4, 5]  
* x = [1, 2, 3, 4, 5]  
* y = [2, 4, 6, 8, 10]
* y = [2, 4, 6, 8, 10]
Line 36: Line 18:
Plugging these values into the formula gives us:  
Plugging these values into the formula gives us:  


<math>$r = \frac{70 - (15 * 30) / 5}{\sqrt{55 - (15^2) / 5}\sqrt{200 - (30^2) / 5}} = \frac{70 - 150 / 5}{\sqrt{55 - 225 / 5}\sqrt{200 - 900 / 5}} = \frac{70 - 30}{\sqrt{30}\sqrt{30}} = \frac{40}{30} = \frac{4}{3}</math>
<math>$r = \frac{70 - (15 * 30) / 5}{\sqrt{55 - (15^2) / 5}\sqrt{200 - (30^2) / 5}} = \frac{70-150 / 5}{\sqrt{55-225 / 5}\sqrt{200-900 / 5}} = \frac{70-30}{\sqrt{30}\sqrt{30}} = \frac{40}{30} = \frac{4}{3}</math>


The coefficient of determination $R^2$ is then calculated by taking the square of this value:
The coefficient of determination $R^2$ is then calculated by taking the square of this value:
Line 51: Line 33:
<math>R^2 = r^2</math>
<math>R^2 = r^2</math>


Where $r$ is the correlation coefficient. The correlation coefficient is a measure of the strength of the linear relationship between two variables and can range from -1 to +1. A correlation coefficient of 0 indicates no linear relationship between the two variables, while a correlation coefficient of 1 or -1 indicates a perfect linear relationship.  
Where $r$ is the correlation coefficient. The correlation coefficient is a measure of the strength of the linear relationship between two variables and can range from - 1 to +1. A correlation coefficient of 0 indicates no linear relationship between the two variables, while a correlation coefficient of 1 or - 1 indicates a perfect linear relationship.  


The coefficient of determination is then calculated by squaring the correlation coefficient. This value also ranges from 0 to 1, with 0 indicating no correlation and 1 indicating a perfect fit of the regression line to the data.
The coefficient of determination is then calculated by squaring the correlation coefficient. This value also ranges from 0 to 1, with 0 indicating no correlation and 1 indicating a perfect fit of the regression line to the data.
Line 96: Line 78:
In summary, the coefficient of determination is a measure of how well a regression line fits a set of data. It is calculated by taking the square of the correlation coefficient between two variables, and ranges from 0 to 1 with a higher coefficient of determination indicating a better fit. It can be used with other measures of fit such as the root mean squared error and mean absolute error, as well as to compare the fit of different regression models and techniques.
In summary, the coefficient of determination is a measure of how well a regression line fits a set of data. It is calculated by taking the square of the correlation coefficient between two variables, and ranges from 0 to 1 with a higher coefficient of determination indicating a better fit. It can be used with other measures of fit such as the root mean squared error and mean absolute error, as well as to compare the fit of different regression models and techniques.


==Suggested literature==
{{infobox5|list1={{i5link|a=[[Central tendency]]}} &mdash; {{i5link|a=[[Probability density function]]}} &mdash; {{i5link|a=[[Residual standard deviation]]}} &mdash; {{i5link|a=[[Autocorrelation]]}} &mdash; {{i5link|a=[[Kurtosis]]}} &mdash; {{i5link|a=[[Harmonic mean]]}} &mdash; {{i5link|a=[[Precision and recall]]}} &mdash; {{i5link|a=[[Continuous distribution]]}} &mdash; {{i5link|a=[[Asymmetrical distribution]]}} }}
 
==References==
* Nagelkerke, N. J. (1991). ''[https://www.cesarzamudio.com/uploads/1/7/9/1/17916581/nagelkerke_n.j.d._1991_-_a_note_on_a_general_definition_of_the_coefficient_of_determination.pdf A note on a general definition of the coefficient of determination]''. Biometrika, 78(3), 691-692.
* Nagelkerke, N. J. (1991). ''[https://www.cesarzamudio.com/uploads/1/7/9/1/17916581/nagelkerke_n.j.d._1991_-_a_note_on_a_general_definition_of_the_coefficient_of_determination.pdf A note on a general definition of the coefficient of determination]''. Biometrika, 78(3), 691-692.
* Ozer, D. J. (1985). ''[https://www.researchgate.net/profile/Daniel-Ozer/publication/232560693_Correlation_and_the_Coefficient_of_Determination/links/54d4df490cf25013d02a1244/Correlation-and-the-Coefficient-of-Determination.pdf Correlation and the coefficient of determination]''. Psychological bulletin, 97(2), 307.
* Ozer, D. J. (1985). ''[https://www.researchgate.net/profile/Daniel-Ozer/publication/232560693_Correlation_and_the_Coefficient_of_Determination/links/54d4df490cf25013d02a1244/Correlation-and-the-Coefficient-of-Determination.pdf Correlation and the coefficient of determination]''. Psychological bulletin, 97(2), 307.
* Barrett, J. P. (1974). ''[https://www.tandfonline.com/doi/pdf/10.1080/00031305.1974.10479056 The coefficient of determination—some limitations]''. The American Statistician, 28(1), 19-20.
* Barrett, J. P. (1974). ''[https://www.tandfonline.com/doi/pdf/10.1080/00031305.1974.10479056 The coefficient of determination—some limitations]''. The American Statistician, 28(1), 19-20.
[[Category:Statistics]]
[[Category:Statistics]]

Latest revision as of 18:24, 17 November 2023

The coefficient of determination, sometimes referred to as R-squared, is a measure of how well a regression line fits a set of data. It is calculated by taking the square of the correlation coefficient between two variables. This value ranges from 0 to 1, with a higher coefficient of determination indicating a better fit.

A coefficient of determination of 0 would indicate that the two variables have no correlation, while a coefficient of 1 would indicate that the two variables are perfectly correlated. In between these two extremes, the closer the number is to 1, the better the fit of the regression line to the data.

Example of Coefficient of determination

Let’s say we have the following data set:

  • x = [1, 2, 3, 4, 5]
  • y = [2, 4, 6, 8, 10]

By calculating the correlation coefficient $r$, we can determine the coefficient of determination $R^2$. The Pearson correlation coefficient $r$ can be calculated using the formula:

In this case,

, , , , </math>\sum{y^2} = 200</math>

Plugging these values into the formula gives us:

The coefficient of determination $R^2$ is then calculated by taking the square of this value:

This means that the regression line has a coefficient of determination of 0.89, which is close to 1, indicating that the data set has a strong correlation.

In conclusion, the coefficient of determination is a measure of how well a regression line fits a set of data. It is calculated by taking the square of the correlation coefficient between two variables and ranges from 0 to 1, with a higher coefficient of determination indicating a better fit. The formula for calculating the coefficient of determination is given by $R^2 = r^2$, where $r$ is the correlation coefficient. An example of how to calculate the coefficient of determination is given above.

Formula of Coefficient of determination

The formula for calculating the coefficient of determination is given by:

Where $r$ is the correlation coefficient. The correlation coefficient is a measure of the strength of the linear relationship between two variables and can range from - 1 to +1. A correlation coefficient of 0 indicates no linear relationship between the two variables, while a correlation coefficient of 1 or - 1 indicates a perfect linear relationship.

The coefficient of determination is then calculated by squaring the correlation coefficient. This value also ranges from 0 to 1, with 0 indicating no correlation and 1 indicating a perfect fit of the regression line to the data.

When to use Coefficient of determination

The coefficient of determination is especially useful when analyzing the relationships between variables. It is used to measure how well a regression line fits a set of data, allowing us to see how closely related two variables are. It can also be used to measure the accuracy of a predictive model. The higher the coefficient of determination, the better the model is at predicting outcomes.

Types of Coefficient of determination

The coefficient of determination can be broken down into two types: adjusted and unadjusted. Unadjusted R-squared is calculated by taking the square of the correlation coefficient between two variables, while adjusted R-squared takes into account the number of parameters in the model.

Unadjusted R-squared:

Adjusted R-squared:

Where n is the sample size and p is the number of parameters in the model.

The coefficient of determination is a useful tool for evaluating the goodness of fit of a regression line to a set of data. Unadjusted R-squared is calculated by taking the square of the correlation coefficient between two variables, while adjusted R-squared takes into account the number of parameters in the model. A higher coefficient of determination indicates a better fit of the regression line to the data, with a value of 1 indicating a perfect fit.

Advantages of Coefficient of determination

  • The coefficient of determination is an easy to understand measure of how well two variables are correlated.
  • It provides an easy way to compare the correlation of two different sets of data.
  • It can be used to measure the success of a regression line in fitting a set of data points.

Disadvantages of Coefficient of determination

  • It is only applicable to linear relationships, and so cannot be used to measure the strength of non-linear relationships.
  • It does not take into account any outliers, so the coefficient of determination may not accurately reflect the true correlation of two variables.
  • It does not provide any information on the direction of the relationship between two variables.

Limitations of Coefficient of determination

Despite the usefulness of the coefficient of determination in measuring the strength of the linear relationship between two variables, there are some limitations to be aware of.

  • The coefficient of determination only measures the strength of a linear relationship, and so is not suitable for measuring non-linear relationships.
  • The coefficient of determination cannot account for any outliers in the data.
  • The coefficient of determination does not measure the accuracy of the regression line, only the strength of the relationship between the two variables.

Other approaches related to Coefficient of determination

The coefficient of determination can be used with other measures of fit such as the root mean squared error (RMSE) or the mean absolute error (MAE). The coefficient of determination can also be used to compare the fit of different regression models to a given data set.

The coefficient of determination can also be used to compare different regression techniques, such as linear regression and polynomial regression. By comparing the coefficient of determination of two different regression techniques, one can determine which has the better fit to a given data set.

In summary, the coefficient of determination is a measure of how well a regression line fits a set of data. It is calculated by taking the square of the correlation coefficient between two variables, and ranges from 0 to 1 with a higher coefficient of determination indicating a better fit. It can be used with other measures of fit such as the root mean squared error and mean absolute error, as well as to compare the fit of different regression models and techniques.


Coefficient of determinationrecommended articles
Central tendencyProbability density functionResidual standard deviationAutocorrelationKurtosisHarmonic meanPrecision and recallContinuous distributionAsymmetrical distribution

References