Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reporting fit statistics #84

Open
phajy opened this issue Mar 21, 2024 · 1 comment
Open

Reporting fit statistics #84

phajy opened this issue Mar 21, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@phajy
Copy link
Contributor

phajy commented Mar 21, 2024

I wonder if there is an easy way to calculate model-dependent fit statistics such as reduced $\chi^2$ values, for example. $\chi^2_\nu = \chi^2 / \text{d.o.f.}$ where the $\chi^2$ value is derived from the data and the fit (model folded through response), and the number of degree of freedom (d.of.) is equal to $(\text{number of data bins}) - (\text{number of free parameters})$ which come from the data and model, respectively.

@fjebaker
Copy link
Owner

Yes we can add a function that does that. The number of free parameters is already tracked, and the number of data bins is simply count(mask) on the data mask, so it's just about adding that to the report card of the fit! Good idea!

@fjebaker fjebaker added enhancement New feature or request good first issue Good for newcomers labels Mar 21, 2024
@fjebaker fjebaker changed the title Fit statistics Reporting fit statistics May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants