R Regression slope(b) = (n * SIGMAXY - (SIGMA X)(SIGMA Y))) / (n * SIGMAX^2) - (SIGMAX)^2) Intercept(a) = (SIGMA Y - b(SIGMA X)) / n r-squared = (Cov(x,y) / SD(x) * SD(y))^2 r-squared = s1 / (p1' * q1') s1 = n('XY) - ('X)('Y) p1 = (n('X2) -- ('X)2)^1/2 q1 = (n('X2) -- ('X)2)^1/2
(x, y []float64)
source not stored for this graph (policy: none)