We analitically show that spectral methods, such as principal component analysis, are unable to reveal the hierarchical structure of a set of mutivariate data. We introduce a method for associating a hierarchically nested factor model to a set of data by making use of clustering algorithms. We also provide a methodology to select the factors of the model that are robust against statistical uncertainty of real data.