Concentration-risk primitives for portfolio asset weights.
HHI is returned on the normalized 0-1 scale: equal weights move toward 0 and a single-asset portfolio returns 1.
API Functions
| Function | Arity | Description | Param Kinds |
|---|---|---|---|
hhi | 1 | Calculate Herfindahl-Hirschman Index over asset weights. | weights: value |
Summary
Functions
Return the normalized HHI: sum((weight / total_weight)^2).
Types
Functions
@spec hhi(weight_input()) :: Decimal.t()
Return the normalized HHI: sum((weight / total_weight)^2).