• + 0 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.