Here you can find the code for obtaining the analytical results in section IVC of the paper Distinguishing subsampled power laws from other heavy-tailed distributions (Sormunen, Leskelä & Saramäki, arXiv: https://arxiv.org/abs/2404.09614). In short, the code is used for calculating how the method of Clauset et al. [1] would behave on samples from different probability distributions as the sample size
[1] A. Clauset, C. Shalizi, and M. Newman, Power-law distributions in empirical data, SIAM Review
[2] J. Alstott, E. Bullmore, and D. Plenz, powerlaw: a Python package for analysis of heavy-tailed distributions, PLoS ONE 9(4): e95816 (2014).