Skip to content

REGR_SXY

  • y: This is the dependent variable in the regression equation. It is the variable that we want to predict or explain using the regression equation.
  • x: This is the independent variable in the regression equation. It is the variable that we use to predict or explain the dependent variable Y.
SELECT REGR_SXY(column1, column2)
FROM tableName;
REGR_SXY(column1, column2)
--------------------------
0.75

The REGR_SXY() function is used for statistical analysis in an Oracle database. It calculates and returns the covariation of the two variables (column1 and column2 in this instance) observed in a particular table (tableName in this example). The returned value, 0.75 in this case, represents the covariance of the two columns. A positive value signifies a positive linear relationship, a negative value signifies a negative linear relationship, and a value of zero signifies no linear relationship.