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

WIP: Partial derivatives of betainc #337

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bdeonovic
Copy link

Chain rules for partial derivatives of incomplete beta. Code is by @arzwa and taken from

https://github.com/arzwa/IncBetaDer/blob/main/src/beta_inc_grad.jl

Related to effort to provide julia implementations of pdf/cdf like functions (JuliaStats/StatsFuns.jl#113) and associated problems (JuliaStats/Distributions.jl#1334)

Chain rules for partial derivatives of incomplete beta. Code is by @arzwa and taken from 
https://github.com/arzwa/IncBetaDer/blob/main/src/beta_inc_grad.jl
Related to effort to provide julia implementations of pdf/cdf like functions (JuliaStats/StatsFuns.jl#113) and JuliaStats/Distributions.jl#1334
@bdeonovic
Copy link
Author

The algorithm used to compute the partial derivatives doesn't seem very accurate (I had to go down to atol=0.1 in the tests). I'll see if any other languages use a different algorithm

@bdeonovic
Copy link
Author

After reviewing the algorithms used for incomplete beta it is obvious that different approximations perform better in different domains of input variables. Unfortunately I have only found derivations of partial derivatives for a continued fraction approximation of incomplete beta (however not the one we are using for the incomplete beta).

We can put these derivatives in place while acknowledging that they are not be accurate for all ranges of inputs, or we can hold off until someone derives partial derivatives for more of the approximation methods (if that is even possible).

Thoughts?

@bdeonovic
Copy link
Author

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.

None yet

1 participant