Skip to content

Commit f6ec80f

Browse files
committed
Change sample variance/coveriance to population covariance/covariance for regr_* functions
Fixes #3295
1 parent 3dc0778 commit f6ec80f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/sql/functions/aggregates.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -473,9 +473,9 @@ They all ignore `NULL` values (in the case of a single input column `x`), or pai
473473
| [`regr_intercept(y, x)`](#regr_intercepty-x) | The intercept of the univariate linear regression line, where x is the independent variable and y is the dependent variable. |
474474
| [`regr_r2(y, x)`](#regr_r2y-x) | The squared Pearson correlation coefficient between y and x. Also: The coefficient of determination in a linear regression, where x is the independent variable and y is the dependent variable. |
475475
| [`regr_slope(y, x)`](#regr_slopey-x) | The slope of the linear regression line, where x is the independent variable and y is the dependent variable. |
476-
| [`regr_sxx(y, x)`](#regr_sxxy-x) | The sample variance, which includes Bessel's bias correction, of the independent variable for non-`NULL` pairs, where x is the independent variable and y is the dependent variable. |
477-
| [`regr_sxy(y, x)`](#regr_sxyy-x) | The sample covariance, which includes Bessel's bias correction. |
478-
| [`regr_syy(y, x)`](#regr_syyy-x) | The sample variance, which includes Bessel's bias correction, of the dependent variable for non-`NULL` pairs , where x is the independent variable and y is the dependent variable. |
476+
| [`regr_sxx(y, x)`](#regr_sxxy-x) | The population variance, which includes Bessel's bias correction, of the independent variable for non-`NULL` pairs, where x is the independent variable and y is the dependent variable. |
477+
| [`regr_sxy(y, x)`](#regr_sxyy-x) | The population covariance, which includes Bessel's bias correction. |
478+
| [`regr_syy(y, x)`](#regr_syyy-x) | The population variance, which includes Bessel's bias correction, of the dependent variable for non-`NULL` pairs , where x is the independent variable and y is the dependent variable. |
479479
| [`skewness(x)`](#skewnessx) | The skewness. |
480480
| [`stddev_pop(x)`](#stddev_popx) | The population standard deviation. |
481481
| [`stddev_samp(x)`](#stddev_sampx) | The sample standard deviation. |
@@ -622,23 +622,23 @@ They all ignore `NULL` values (in the case of a single input column `x`), or pai
622622

623623
<div class="nostroke_table"></div>
624624

625-
| **Description** | The sample variance, which includes Bessel's bias correction, of the independent variable for non-`NULL` pairs, where x is the independent variable and y is the dependent variable. |
625+
| **Description** | The population variance, which includes Bessel's bias correction, of the independent variable for non-`NULL` pairs, where x is the independent variable and y is the dependent variable. |
626626
| **Formula** | - |
627627
| **Alias(es)** | - |
628628

629629
#### `regr_sxy(y, x)`
630630

631631
<div class="nostroke_table"></div>
632632

633-
| **Description** | The sample covariance, which includes Bessel's bias correction. |
633+
| **Description** | The population covariance, which includes Bessel's bias correction. |
634634
| **Formula** | - |
635635
| **Alias(es)** | - |
636636

637637
#### `regr_syy(y, x)`
638638

639639
<div class="nostroke_table"></div>
640640

641-
| **Description** | The sample variance, which includes Bessel's bias correction, of the dependent variable for non-`NULL` pairs, where x is the independent variable and y is the dependent variable. |
641+
| **Description** | The population variance, which includes Bessel's bias correction, of the dependent variable for non-`NULL` pairs, where x is the independent variable and y is the dependent variable. |
642642
| **Formula** | - |
643643
| **Alias(es)** | - |
644644

0 commit comments

Comments
 (0)