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

Fixed bugs for combined fits with multiple independent variables #211

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

s-kuberski
Copy link
Collaborator

This fixes two bugs that were present in least_squares when doing a combined fit with multiple independent variables. The reason for the bug was that transposing the concatenation of the x values did not result in the expected shape.

This fixes:

  • The computation of the number of degrees of freedom works now correctly.
  • The computation of the expected chi^2 does not throw an error anymore.

I furthermore discovered that the expected chi^2 with priors is not correctly evaluated. Therefore I have written the tests such that they don't detect this. I think I know what to do, but let's fix this bug first.

@s-kuberski s-kuberski requested a review from fjosw as a code owner October 24, 2023 17:27
Copy link
Owner

@fjosw fjosw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for spotting this!

@fjosw fjosw merged commit dc63142 into fjosw:develop Oct 24, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants