Skip to main content

covarPopStable

Introduced in: v1.1.0 Calculates 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 Returns the population covariance between x and y. Float64 Examples Basic population covariance calculation with stable algorithm
Query
Response
Last modified on June 23, 2026