I was came across different formulas for R squared on different articles.
R Squared = 1 - RSS/TSS
R Squared = ESS/TSS
RSS -Residual sum of squares. TSS - Total sum of squares. ESS - Explained sum of squares.
Can any one explain which one should be the correct one.