New Statistical Approach to the Analysis of Hierarchical Data