concentrationMetrics is a python library for the computation of various concentration, diversification and inequality indices. The library implements the computation of all well known indexes of inequality and concentration.
You can use concentrationMetrics to:
- access an exhaustive collection of concentration, inequality and diversity indexes and metrics
- perform file input/output in both json and csv formats
- compute indexes with confidence intervals via bootstraping
- visualize using matplotlib
- Author: Open Risk
- License: MIT
- Mathematical Documentation: Open Risk Manual
- Code Documentation: Read The Docs
- Development website: Github
- Discussions: Open Risk Commons
NB: concentrationMetrics is still in active development. If you encounter issues please raise them in our GitHub repository
An overview of the implemented metrics (indexes) and their relationships is available at the Open Risk Manual
The below list provides more specific documentation URL's for each one of the implement indexes:
- Atkinson Index
- Berger-Parker Index
- Concentration Ratio
- Ellison-Glaeser Index
- Gini Index
- Theil Index
- Hannah-Kay Index
- Hoover Index
- Herfindahl-Hirschman Index and related indexes such as Simpson and Inverse Simpson
- Shannon Index
- Generalized Entropy Index (Renyi)
- Kolm Index
The Open Risk Academy has free courses demonstrating the use of the library: Open Risk Academy
Comparing two indexes across a range of input portfolio data
Calculating industrial and geographic concentrations