<a id="skfolio-measures-worst-realization"></a>

# skfolio.measures.worst_realization

<a id="skfolio.measures.worst_realization"></a>

### skfolio.measures.worst_realization(returns)

Compute the worst realization (worst return).

* **Parameters:**
  **returns** *ndarray of shape (n_observations,) or (n_observations, n_assets)*
  : Array of return values.
* **Returns:**
  **value** *float or ndarray of shape (n_assets,)*
  : Worst realization.
    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,).

### Notes

NaN handling:
- Unweighted: NaNs are ignored; all-NaN inputs yield NaN.
- Weighted: NaNs propagate.

