Skip to main content
Skip to main content

covarPopStable

Calculates the value of the population covariance:

Σ(xxˉ)(yyˉ)n\frac{\Sigma{(x - \bar{x})(y - \bar{y})}}{n}

It is similar to the covarPop function, but uses a numerically stable algorithm. As a result, covarPopStable is slower than covarPop but produces a more accurate result.

Syntax

Arguments

Returned Value

  • The population covariance between x and y. Float64.

Example

Query:

Result: