Asymptotic properties of the partition function and applications in tail index inference of heavy-tailed data