Skip to content

New user: Why the curvature in power_law.plot_ccdf fit? #85

Description

@amybug

Hi Dr. Alstott (Jeff):
Thank you for this great suite of codes! We have a cCDF from simulation and want to fit to a power law. I am attaching what we see. We used a few lines from your great 2014 tutorial with Bullmore and Plenz. I suppose the fit package wants to normalize and so it matches our data at x_min ... which happens to be around 0.1. So be it. Can you explain why the method fit.power_law.plot_ccdf() draws the dashed line with curvature at large x values? Shouldn't it be a straight line?

Very grateful for your time and expertise!
-Amy Graves, Prof. of Physics, Swarthmore College
fit = powerlaw.Fit(all_lags_cyan, xmax = 1.0)
fig1 = fit.plot_pdf(color= 'k', linewidth=2)
fit1=fit.plot_ccdf(color='cyan', linewidth=2, ax = fig1)
x, y = results_cyan.ccdf()
plt.plot(x, y, 'o', color='cyan')
fit.power_law.plot_ccdf(color='r', linestyle = '--', ax=fig1)
Screen Shot 2021-07-29 at 2 51 25 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions