christophM / interpretable-ml-book

Book about interpretable machine learning
https://christophm.github.io/interpretable-ml-book/
Other
4.79k stars 1.06k forks source link

Problem with adjusted R squared #154

Closed huanfachen closed 4 years ago

huanfachen commented 4 years ago

In Section 4.1.1, the adjusted R squared is defined as: equation

This is different from the definition on wikipedia (https://en.wikipedia.org/wiki/Coefficient_of_determination#Adjusted_R2), and not accurate.

Consider this new formula: equation

christophM commented 4 years ago

Good catch, thanks a lot!