[ 
https://issues.apache.org/jira/browse/STATISTICS-39?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Herbert resolved STATISTICS-39.
------------------------------------
    Fix Version/s: 1.0
       Resolution: Fixed

Updated gamma distribution in commit:

9d3c178463dee38867427f871bc8d8c07556bf8b

Updated chi squared distribution tests in commit:

13f0c30d85d8f900982d207f368d284d0bb666a0

 

> Correct the switch of function evaluation in the GammaDistribution
> ------------------------------------------------------------------
>
>                 Key: STATISTICS-39
>                 URL: https://issues.apache.org/jira/browse/STATISTICS-39
>             Project: Apache Commons Statistics
>          Issue Type: Improvement
>          Components: distribution
>    Affects Versions: 1.0
>            Reporter: Alex Herbert
>            Priority: Major
>             Fix For: 1.0
>
>         Attachments: pdf_error.jpg
>
>
> The Gamma distribution density is not accurate when shape < 1. There are 
> extensive tests related to MATH-753 [7] for accuracy of the Gamma 
> distribution. These test shape >= 1. The work requires extension to smaller 
> shapes where the density -> infinite as X -> 0. When shape >= 1 then density 
> -> 0 as X -> 0 (see [https://en.wikipedia.org/wiki/Gamma_distribution]).
> This results in inaccuracy of the Chi-squared distribution which uses 
> Gamma(df/2, 2) when the degrees of freedom (df) are < 2. I've read the code 
> and the documentation for the Boost functions which the code is based on and 
> I think the switch to the alternative computation to avoid overflow is 
> currently not working for all cases.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to