%O The paper was accepted for publication subject minor revisions. Together with the paper, a software python package was released under the GPL licence 2 (1991), useful for the computation of the hierarchical mutual information. %I American Physical Society %P 062825 %T Hierarchical mutual information for the comparison of hierarchical community structures in complex networks %C Physical Review E %J Physical Review E %N 92 %R 10.1103/PhysRevE.92.062825 %A Juan I. Perotti %A Claudio Juan Tessone %A Guido Caldarelli %X The quest for a quantitative characterization of community and modular structure of complex networks produced a variety of methods and algorithms to classify different networks. However, it is not clear if such methods provide consistent, robust and meaningful results when considering hierarchies as a whole. Part of the problem is the lack of a similarity measure for the comparison of hierarchical community structures. In this work we give a contribution by introducing the {\it hierarchical mutual information}, which is a generalization of the traditional mutual information, and allows to compare hierarchical partitions and hierarchical community structures. The {\it normalized} version of the hierarchical mutual information should behave analogously to the traditional normalized mutual information. Here, the correct behavior of the hierarchical mutual information is corroborated on an extensive battery of numerical experiments. The experiments are performed on artificial hierarchies, and on the hierarchical community structure of artificial and empirical networks. Furthermore, the experiments illustrate some of the practical applications of the hierarchical mutual information. Namely, the comparison of different community detection methods, and the study of the the consistency, robustness and temporal evolution of the hierarchical modular structure of networks. %L eprints2897 %D 2015