Parameter | Type | Description |
---|---|---|
ys | decimal, double | the independent variable. |
xs | decimal, double | The dependent variable |
Returns: decimal
Example
query:
SELECT REGR_SXX(flux, time_bjd_2454833)
FROM tabbysstarflux
result:
regr_sxx |
---|
41,334,468.87 |
Calculates the linear regression coefficient for the sum of x*x where x and y are not null.
Parameter | Type | Description |
---|---|---|
ys | decimal, double | the independent variable. |
xs | decimal, double | The dependent variable |
query:
SELECT REGR_SXX(flux, time_bjd_2454833)
FROM tabbysstarflux
result:
regr_sxx |
---|
41,334,468.87 |