Department of Mathematics The Bucharest Academy of Economic Studies
Department of Mathematics The Bucharest Academy of Economic Studies
“Spiru Haret” University in Bucharest
University of Reggio, Calabria
Submitted
October 24, 2026
Abstract
In this paper, we propose an algorithm for hierarch ical classification, based on an ultrametric distance. We study its properties and develop an application in Microsoft Visual Studio, based on the algorithm proposed, using C# language. The software obtained will be used to classify the shares from Bucharest Stock Exchange which had profit during the last two years, in order to find similarities and differences between these shares a nd build a diversified portfolio. We prove that thi s portfolio is representative for the shares from Bu charest Stock Exchange and study the evolution of the obtained portfolio at different moments of time, using functional data analysis methods ( STATIS ) . In order to evaluate our methodology, we provide a numerical experiment .We demonstrate the performance of the proposed algorithm by comparing the obtained results with the evolution of BET index, BET-C index or BET –XT index, which are representatives for the capital market in Romania.