Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECONOMIC FITNESS AND COMPLEXITY PACKAGE

This repository provides the python class useful to handle and to evaluate the Economic Fitness and Complexity (EFC) framework.

The repository is organized as follows:

  • a class file collecting the two classes of efc_matrix and efc_matrix_dataset
  • routine files
  • a simple tutorial Jupyter notebook showing the use of the framework on a simple set of data

efc_matrix class

This class provides the routines on a single snapshot, for example of the international trade export on a single year.

Main features are:

  • it handles dense (numpy, pandas) and sparse (scipy.sparse) matrix representations
  • it evaluates the comparative advantages and its binarizations
  • it evaluates the main economic complexity indices: Fitness, Diversification, ECI
  • it evaluates simple projections and relatedness both validated and not validated

efc_matrix_dataset class

This class provides the routines to handle a collection of data with many snapshots, for example when the data is available on many years.

TUTORIAL

The package provides a tutorial jupyter notebook in the tutorial folder

USAGE

from efc_repo import efc_matrix

# load the stored csv data in matrix format
data = efc_matrix.load_matrix('folder/stored_data.csv')

# get the Fitness
data.get_fitness(aspandas=True)

EFC references

[1] Tacchella A., Cristelli M., Caldarelli G., Gabrielli A., Pietronero L., A New Metrics for Countries' Fitness and Products' Complexity, Sci Rep, 2, 723 (2012)

[2] Hidalgo C., Hausmann R., The building blocks of economic complexity, PNAS, 106 (26), 10570-10575, (2009)

[3] Tacchella A., Mazzilli D., Pietronero L. A dynamical systems approach to gross domestic product forecasting. Nature Phys, 14, 861–865 (2018)

[4] Mazzilli D., Mariani M.S., Morone F., Patelli A., Equivalence between the Fitness-Complexity and the Sinkhorn-Knopp algorithms, J. Phys. Complex., 5, 015010, (2024)

[5] Hidalgo C., Klinger B., Barabási A.L., Hausmann R., The product space conditions the development of nations, Science, 317 (5837), 482-487, (2007)

[6] Zaccaria A., Cristelli M., Tacchella A., Pietronero L, How the Taxonomy of Products Drives the Economic Development of Countries, PloS one, 9(12), e113770, (2014)

About

Economic Fitness and Complexity framework package

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages