How to derive R-squared from correlation coefficient?