Description

Syntax

double regr_syy(y, x)

x, y support basic numeric types.

calculates the sum of squares of deviations of the dependent variable Y from its mean

EXAMPLE

We have the following data

  1. mysql> select * from t;
  2. +------+------+------+
  3. | id | x | y |
  4. +------+------+------+
  5. | 2 | 14 | 27 |
  6. | 4 | 10 | 20 |
  7. | 3 | 5 | 7 |
  8. | 1 | 18 | 13 |
  9. +------+------+------+
  1. mysql> select regr_syy(y,x) from t;
  2. +----------------+
  3. | regr_syy(y, x) |
  4. +----------------+
  5. | 224.75 |
  6. +----------------+

KEYWORDS

REGR_SYY