A practical, effective calculation of gamma difference distributions with open data science tools

05/10/2021
by   Martina Hančová, et al.
0

At present, there is still no officially accepted and extensively verified implementation of computing the gamma difference distribution allowing unequal shape parameters. We explore four computational ways of the gamma difference distribution with the different shape parameters resulting from time series kriging, a forecasting approach based on the best linear unbiased prediction, and linear mixed models. The results of our numerical study, with emphasis on using open data science tools, demonstrate that our open tool implemented in high-performance Python(with Numba) is exponentially fast, highly accurate, and very reliable. It combines numerical inversion of the characteristic function and the trapezoidal rule with the double exponential oscillatory transformation (DE quadrature). At the double 53-bit precision, our tool outperformed the speed of the analytical computation based on Tricomi's U(a, b, z) function in CAS software (commercial Mathematica, open SageMath) by 1.5-2 orders. At the precision of scientific numerical computational tools, it exceeded open SciPy, NumPy, and commercial MATLAB 5-10 times. The potential future application of our tool for a mixture of characteristic functions could open new possibilities for fast data analysis based on exact probability distributions in areas like multidimensional statistics, measurement uncertainty analysis in metrology as well as in financial mathematics and risk analysis.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/18/2023

On the gamma difference distribution

The gamma difference distribution is defined as the difference of two ga...
research
02/05/2018

Fast and accurate approximation of the full conditional for gamma shape parameters

The gamma distribution arises frequently in Bayesian models, but there i...
research
01/07/2018

Exact distribution of selected multivariate test criteria by numerical inversion of their characteristic functions

Application of the exact statistical inference frequently leads to a non...
research
05/15/2019

Process Mining for Python (PM4Py): Bridging the Gap Between Process- and Data Science

Process mining, i.e., a sub-field of data science focusing on the analys...
research
08/29/2022

On the Barnes double gamma function

We aim to achieve the following three goals. First of all, we collect al...
research
02/07/2023

Landscape of High-performance Python to Develop Data Science and Machine Learning Applications

Python has become the prime language for application development in the ...
research
09/09/2021

A series acceleration algorithm for the gamma-Pareto (type I) convolution and related functions of interest for pharmacokinetics

The gamma-Pareto type I convolution (GPC type I) distribution, which has...

Please sign up or login with your details

Forgot password? Click here to reset