Skip to content

Conversation

dschmitz89
Copy link
Contributor

What does this implement/fix?

In #18433 I had implemented an asymptotic expansion to increasethe precision of the logpdf method of the student t distribution for high degrees of freedom. Turned out that this was not necessary actually, special.poch comes again to the rescue. This simplifies the code, eliminates a branch and slightly improves performance at the expense of a very minor decrease of accuracy for extreme high degrees of freedom.

@github-actions github-actions bot added scipy.stats maintenance Items related to regular maintenance tasks labels Jan 1, 2024
@lucascolley lucascolley added this to the 1.13.0 milestone Jan 1, 2024
Copy link
Contributor

@mdhaber mdhaber left a comment

Choose a reason for hiding this comment

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

LGTM pending Cirrus checks.

@mdhaber mdhaber merged commit 08a5b6f into scipy:main Jan 2, 2024
@dschmitz89 dschmitz89 deleted the MAINT_t_logpdf_poch branch January 2, 2024 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.stats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants