Skip to content

issue with error determination in the FastFit #2

@mmosc

Description

@mmosc

Hi David,
I think there is a problem in the determination of the errors for the FastFit.
You solve:

err_l = brentq(lambda x: -2*fit.log_likelihood([x]) - 1, a=0.03, b=bf['x'])

err_r = brentq(lambda x: -2*fit.log_likelihood([x]) - 1, a=bf['x'], b=0.05)

but we should actually solve Delta Chi^2 == 0, i.e.:

err_l = brentq(lambda x: -2*(fit.log_likelihood([x])-bf['log_likelihood']) - 1 , a=0.03, b=bf['x'])
err_r = brentq(lambda x: -2*(fit.log_likelihood([x])-bf['log_likelihood']) - 1 , a=bf['x'], ##b=0.05)
Best,
Marta

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions