skfolio.measures.variance#

skfolio.measures.variance(returns)[source]#

Compute the variance (second moment).

Parameters:
returnsndarray of shape (n_observations,)

Vector of returns.

Returns:
valuefloat

Variance.