As I already did the analysis of the social network, I came across the problem of selecting the probability distribution according to the degree of the network.
So, I have a probability distribution P(X >= x)
, which from visual control follows a power law with exponential cutoff, and not a pure power law (straight line).
So, given that the equation of distribution of power laws with exponential cutoff:
f (x) = x ** alpha * exp (beta * x)
How can I evaluate alpha
and beta
parameters using Python?
I know that the scipy.stats.powerlaw package exists, and they have a .fit()
function, but this does not seem to complete the task, since it only returns the location and scale of the graph, which, apparently, is only useful for normal distribution? There are also not enough textbooks in this package.
PS I am well aware of the implementation of CLauset et al. , But they seem to provide no way to evaluate the parameters of alternative distributions.
Mike
source share