Coefficient of determination

The coefficient of determination, also known as R-squared, is a measure of how well a regression model fits the data. It is calculated by taking the square of the correlation coefficient between the observed values of the dependent variable and the predicted values of the dependent variable. The coefficient of determination ranges from 0 to 1, with 0 indicating that the model does not explain any of the variability in the data, and 1 indicating that the model explains all of the variability in the data.