Data Science & ML
Intermediate
Coefficient of Determination (R²)
Proportion of variance in the target explained by the model.
Formula
Variables
y_iActual
\hat{y}_iPredicted
\bar{y}Mean of actual
Example
R² = 0.85 means 85% of variance is explained
Did You Know?
R² can be negative if the model is worse than predicting the mean.