You are viewing a single comment's thread. Return to all comments →
import math
byx = -3/4 bxy = -3/4
result = math.sqrt(byx*bxy)
print(round(-1*result, 2))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 6: Correlation and Regression Lines #1
You are viewing a single comment's thread. Return to all comments →
import math
byx = -3/4 bxy = -3/4
result = math.sqrt(byx*bxy)
print(round(-1*result, 2))
for every time that we have a positive correlation coefficient, the slope of the regression line is positive.
in the formula a = r(sy/sx) since sy and sx will always be +ve a will have same sign as corr. coeff.