On this page
Define the two squared sums
SSE sums squared residuals around the fitted line. Syy sums squared asset-return deviations around the asset mean. Both must use the same response-return unit.
Use a defined denominator
The denominator must be positive; this identity is scoped to the intercept fit.
Reconcile the original score
SSE is 1.2 and Syy 45.3 in percentage points squared. The resulting R² is 147/151≈97.350993%. For simple OLS with an intercept and nonconstant series, it also equals squared sample correlation.
Avoid an outcome-probability interpretation
This is an in-sample variation ratio. It is not a probability that the next observation will lie on the line, evidence of causation or a significance result. Squaring correlation also removes its sign.