arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

COVAR_SAMP

This section contains reference documentation for the COVAR_SAMP function.

Returns the sample covariance between of 2 numerical columns.

COVAR_SAMP(col1, col2) = COVAR_POP(col1, col2) * besselCorrection

hashtag
Signatures

COVAR_SAMP(col1, col2) -> double

hashtag
Usage Examples

These examples are based on the .

covariance
SELECT COVAR_SAMP(numberOfGames, AtBatting) AS covariance 
FROM baseballStats

8270.973200974102

Batch Quick Start