• + 0 comments

    I found Wikipedia's "geometric interpretation" to be helpful here, i.e. r² = 1/cos(delta) - tan(delta) where delta is the angle between the given regression lines. https://en.wikipedia.org/wiki/Pearson_product-moment_correlation_coefficient#Geometric_interpretation

    (Delta is easy to calculate from the y = f(x) = ax + b form of both regression lines, as a = tan(alpha) where alpha is the angle of the function w.r.t. the x axis)

    Personal pitfalls: forgetting to get the square root, forgetting to consider the sign (+ or -) of the result.