skfolio.measures.ulcer_index#

skfolio.measures.ulcer_index(drawdowns)[source]#

Compute the Ulcer index.

Parameters:
drawdownsndarray of shape (n_observations,) or (n_observations, n_assets)

Vector of drawdowns.

Returns:
valuefloat or ndarray of shape (n_assets,)

Ulcer Index. If returns is a 1D-array, the result is a float. If returns is a 2D-array, the result is a ndarray of shape (n_assets,).