covarPop
Calculates the population covariance:
Note
This function uses a numerically unstable algorithm. If you need numerical stability in calculations, use the covarPopStable function. It works slower but provides a lower computational error.
Syntax
Arguments
Returned Value
- The population covariance between
xandy. Float64.
Example
Query:
Result:
covarPop
Introduced in: v1.1
Calculates the population covariance:
Note
This function uses a numerically unstable algorithm. If you need numerical stability in calculations, use the covarPopStable function. It works slower but provides a lower computational error.
Syntax
Aliases: COVAR_POP
Arguments
Returned value
Returns the population covariance between x and y. Float64
Examples
Basic population covariance calculation