Hey there,
I use powerlaw to fit my data. For display reasons, I first fit my data and then write the bin_edges and hist data using
bin_edges = fit.pdf(original_data=True)[0]
hist = fit.pdf(original_data=True)[1]
into a file. Now, if I compare the results with the result of
fit = powerlaw.Fit(observations, discrete=false)
ax = fit.plot_pdf(color="k", linestyle="-", original_data=True, label="observations")
I get additional data points in the lower part of my distribution (see also the comparison of the graphs below, I have already set the 0 entries to nan). Can you tell me why and where in the code these data points are deleted?
Greetings,
Jan