Coefficient of determination r²
Understanding the Coefficient of Determination (r²)
The coefficient of determination, denoted as r² (pronounced "R-squared"), is a crucial statistic in regression analysis that quantifies the proportion of the variation in the dependent variable (y) that can be explained by the independent variable (x) in a linear regression model. It's a measure of how well the regression line fits the observed data points. Essentially, it tells us how much better the least-squares regression line predicts the response variable compared to simply using the mean of the response variable.
Interpretation of r²
- r² is always a value between 0 and 1, inclusive (0 ≤ r² ≤ 1).
- A value of r² close to 1 indicates that a large proportion of the variability in y is explained by the linear relationship with x. This suggests a strong linear fit and that the regression model is a good predictor.
- A value of r² close to 0 indicates that very little of the variability in y is explained by the linear relationship with x. This suggests a weak linear fit, and the regression model may not be a good predictor. In such cases, other factors not included in the model are likely influencing the dependent variable.
- It is important to remember that r² measures the strength of the linear relationship. A low r² does not necessarily mean there is no relationship, just that there might not be a strong linear relationship, or the relationship might be non-linear.
Relationship to the Correlation Coefficient (r)
The coefficient of determination, r², is simply the square of the correlation coefficient (r). While r measures the strength and direction of the linear relationship between two quantitative variables, r² specifically quantifies the proportion of explained variance. For example, if the correlation coefficient between hours studied (x) and exam score (y) is r = 0.8, then r² = (0.8)² = 0.64. This means that 64% of the variation in exam scores can be explained by the number of hours studied.
Calculating r²
While often calculated automatically by statistical software or calculators, understanding its conceptual basis is important. It can be expressed as:
r² = 1 - (SS_residuals / SS_total)
- SS_residuals (Sum of Squares of Residuals): This represents the unexplained variation, the sum of the squared differences between the observed y-values and the y-values predicted by the regression line (ŷ). It measures the variability around the regression line.
- SS_total (Total Sum of Squares): This represents the total variation in the dependent variable, the sum of the squared differences between the observed y-values and the mean of y (ȳ). It measures the total variability in the response variable without considering the independent variable.
The formula essentially calculates the proportion of total variation that is not explained by the model (SS_residuals / SS_total) and subtracts it from 1 to find the proportion that is explained. A higher r² indicates a smaller SS_residuals relative to SS_total.
Limitations and Misconceptions
- A high r² does not automatically imply that the model is good or that causality exists. Extraneous variables or confounding factors could be at play.
- Adding more independent variables to a model will always increase r² (or keep it the same), even if the added variables are not statistically significant. This is why adjusted r² is sometimes used in multiple regression to account for the number of predictors.
- r² does not provide information about the appropriateness of the linear model (e.g., whether the relationship is truly linear or if there are outliers). Residual plots are crucial for assessing the fit.
Practice questions
What does an r² value of 0.75 indicate in a linear regression model?
If the correlation coefficient (r) between two variables is -0.6, what is the coefficient of determination (r²)?
True or False: A high r² value guarantees that the linear regression model is the best possible model for the data.
Why is it important to examine residual plots in addition to r² when evaluating a regression model?
Related topics
Free AP4U account — unlimited practice, AI grader, and progress tracking.
Canonical: https://apforu.com/ap/statistics/unit-2-exploring-two-variable-data/coefficient-of-determination-r