A practical, effective calculation of gamma difference distributions with open data science tools
- 21 January 2022
- journal article
- research article
- Published by Taylor & Francis in Journal of Statistical Computation and Simulation
- Vol. 92 (11) , 2205-2232
Abstract
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 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 computational algorithm 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 open tool outperformed the speed of the analytical computation based on Tricomi's function in CAS software (commercial Mathematica, open SageMath) by 1.5–2 orders. At the default 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.
Keywords
All Related Versions
Funding Information
- Slovak Research and Development Agency (APVV-17-0568)
- the Internal Research Grant System of Faculty of Science, P. J. Šafárik University in Košice (vvgs-pf-2020-1423)
This publication has 46 references indexed in Scilit:
- A Double Exponential Formula for the Fourier TransformsPublications of the Research Institute for Mathematical Sciences, 2005
- Discovery of the Double Exponential Transformation and Its DevelopmentsPublications of the Research Institute for Mathematical Sciences, 2005
- The double-exponential transformation in numerical analysisJournal of Computational and Applied Mathematics, 2001
- A robust double exponential formula for Fourier-type integralsJournal of Computational and Applied Mathematics, 1999
- The Borel Transform and Its Use in the Summation of Asymptotic ExpansionsStudies in Applied Mathematics, 1999
- Obtaining Distribution Functions by Numerical Inversion of Characteristic Functions with ApplicationsThe American Statistician, 1995
- On Noncentral Generalized Laplacianness of Quadratic Forms in Normal VariablesJournal of Multivariate Analysis, 1993
- Double Exponential Formulas for Numerical IntegrationPublications of the Research Institute for Mathematical Sciences, 1973
- Numerical inversion of a characteristic functionBiometrika, 1973
- Note on the inversion theoremBiometrika, 1951