On this page Signature

API Reference / mespy.covariance

covariance

Signature

covariance(
    x: ArrayLike,
    y: ArrayLike,
    w: ArrayLike | None = None,
) -> float

covariance estimates the covariance between two numeric variables, with optional support for weights and consistent input validation.

Overview summarizes purpose, parameters, errors and a usage example; Implementation walks through the internal flow and the implemented formulas step by step.