Skip to main content

covarPop

Introduced in: v1.1.0 Calculates the population covariance: Σ(xxˉ)(yyˉ)n\frac{\Sigma{(x - \bar{x})(y - \bar{y})}}{n}
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
Query
Response
Last modified on July 2, 2026