Skip to content

Noncentral F distribution: fix degree of freedom finders - #1672

Merged
mborland merged 1 commit into
boostorg:developfrom
dschmitz89:ncf_df_finders_bug
Nov 24, 2026
Merged

mborland merged 1 commit into
boostorg:developfrom
dschmitz89:ncf_df_finders_bug

Conversation

@dschmitz89

Copy link
Copy Markdown
Contributor

Closes #1669

Explanation: large_difference is the residual as the searched degree of freedom tends to infinity. After the opposite-sign limit check, a positive value indicates an upward crossing; a negative value indicates a downward crossing. That is the direction the solver needs, unlike f(guess) < 0, which only describes one point.

It would be highly appreciated if this could also be backported to 1.93 master.

@dschmitz89

Copy link
Copy Markdown
Contributor Author

CC @mborland @NAThompson

@mborland mborland left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me. I will request permission to back port.

@mborland
mborland merged commit ef1019b into boostorg:develop Nov 24, 2026
55 checks passed
@dschmitz89

Copy link
Copy Markdown
Contributor Author

I just noticed that the fisher F distribution will likely be affected by the same bug. Will try to get a fix ready tomorrow.

@dschmitz89

Copy link
Copy Markdown
Contributor Author

Thanks @mborland .

@dschmitz89
dschmitz89 deleted the ncf_df_finders_bug branch November 24, 2026 21:11
@mborland

Copy link
Copy Markdown
Member

I just noticed that the fisher F distribution will likely be affected by the same bug. Will try to get a fix ready tomorrow.

Ok. I'll hold off on asking to merge backport until they are both ready

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.

Bugs in degree of freedom finders of noncentral F distribution

2 participants