Difference between "Squared pearson correlation (r^2)" and "Coefficient of determination (R^2)"
Issue #634
resolved
Hi I got difference values of "Squared pearson correlation (r^2)" and "Coefficient of determination (R^2)". As I know, the first one is calculated from Sklearn library, while another one uses Scipy. I wonder why the results if different.
Comments (3)
-
-
- changed status to closed
-
- changed status to resolved
refactoring added MimeDataTextEdit().currentMimeData() DataSourceManager: - resolved
#634- added attribute table icon for vector sources without geometry - context menu allows to open vector sources in Attribute Editor - csv is now checked for vector source first, text file second→ <<cset fd0ac74a07bf>>
- Log in to comment
r^2 and R^2 are only equal for linear least squares regression
You may read the scikit-learn docs and the wiki page to get a better understanding:
https://scikit-learn.org/stable/modules/model_evaluation.html#r2-score
https://en.wikipedia.org/wiki/Coefficient_of_determination#As_squared_correlation_coefficient