For questions regarding R-squared ($R^2$), a statistical measure that represents the proportion of the variance for a dependent variable that's explained by an independent variable or variables in a regression model.
R-Squared ($R^2$ or the coefficient of determination) is a statistical measure in a regression model that determines the proportion of variance in the dependent variable that can be explained by the independent variable. In other words, r-squared shows how well the data fit the regression model (the goodness of fit).
The formula for calculating R-squared is:
$R-Squared(R^2) = \frac{SS_{regression}}{SS_{total}}$
Where:
- $SS_{regression}$ is the sum of squares due to regression (explained sum of squares)
- $SS_{total}$ is the total sum of squares