-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
- The formula for F(x;nu) in the documentation is only valid for x>0.
Wikipedia uses t (not x), but gives the same formula, but for t>0 only:
From "Sampling Student’s T distribution – use of the inverse cumulative distribution function" by William T. Shaw:

And the same formula is returned by wolframscript:

-
There is a problem in the implementation of
logcdf.
The implementation basically computes the normal cdf-probability and then takes the logarithm.
This defeats the purpose of having alogcdf, which is meant to be used whencdf(x)is
so small it is rounded to 0.The formula for
cdfuses the incomplete beta function, which in turn usesbeta.
Your project includes anbetalnwhich computes the logarithm of a beta value.
A solution must be to usebetalnto implement an "logarithm of a regularized, incomplete beta function"
and use that to implementlogcdf.