Skip to main content
Skip to main content

covarPop

Calculates the population covariance:

Σ(xxˉ)(yyˉ)n\frac{\Sigma{(x - \bar{x})(y - \bar{y})}}{n}
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 x and y. Float64.

Example

Query:

Result: