REGR_SLOPE returns the slope of the line. After the elimination of null (expr1, expr2) pairs, it makes the following computation:
COVAR_POP(expr1, expr2) / VAR_POP(expr2)
The function returns a value of type NUMERIC. If the function is applied to an empty set, then it returns null.