Skip to content

REGR_SYY

  • y: It’s the dependent variable represented usually as the response in the language of regression analysis. It’s a numerical input for which REGR_SYY computation is made. Null or non-numeric inputs result in null outputs.
  • x: It’s the independent variable, also known as the predictor in regression analysis. This is also a numerical input which helps in the regression computations. Similar to y, null or non-numeric input values result in null outputs.
SELECT
REGR_SYY(score, hours_studied) AS regr_syy
FROM
student_scores;
REGR_SYY
------------
285.17955

The REGR_SYY function in Oracle performs a linear regression calculation and returns the sum of squares of the differences of the dependent variable. In this example, it calculates the sum of squares of the differences for ‘score’ for each ‘hours_studied’ in the ‘student_scores’ table.