What is coefficient of determination

The coefficient of determination, also known as the R-squared value, 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 no correlation and 1 indicating a perfect correlation.