Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
Review
. 2018 May 1:9:612.
doi: 10.3389/fpsyg.2018.00612. eCollection 2018.

ExGUtils: A Python Package for Statistical Analysis With the ex-Gaussian Probability Density

Affiliations
Review

ExGUtils: A Python Package for Statistical Analysis With the ex-Gaussian Probability Density

Carmen Moret-Tatay et al. Front Psychol. .

Erratum in

Abstract

The study of reaction times and their underlying cognitive processes is an important field in Psychology. Reaction times are often modeled through the ex-Gaussian distribution, because it provides a good fit to multiple empirical data. The complexity of this distribution makes the use of computational tools an essential element. Therefore, there is a strong need for efficient and versatile computational tools for the research in this area. In this manuscript we discuss some mathematical details of the ex-Gaussian distribution and apply the ExGUtils package, a set of functions and numerical tools, programmed for python, developed for numerical analysis of data involving the ex-Gaussian probability density. In order to validate the package, we present an extensive analysis of fits obtained with it, discuss advantages and differences between the least squares and maximum likelihood methods and quantitatively evaluate the goodness of the obtained fits (which is usually an overlooked point in most literature in the area). The analysis done allows one to identify outliers in the empirical datasets and criteriously determine if there is a need for data trimming and at which points it should be done.

Keywords: ex-Gaussian fit; python; response components; response times; significance testing.

PubMed Disclaimer

Figures

Figure 1
Figure 1
ex-Gaussian distributions for different values of the λ asymmetry parameter.
Figure 2
Figure 2
Differences between the ex-Gaussian distribution with λ = 0.2 and the gaussian distribution. Both curves plotted on the left and the difference on the right (note this difference is less than 1%).
Figure 3
Figure 3
Data for the young_gng experiment trimmed for outliers with three fitted ex-Gaussians.
Figure 4
Figure 4
Fitting results obtained with the minSQR method varying the number of intervals in the histogram for the young_hfgng experiment. The horizontal line shows the value obtained with the maxLKHD method. (Upper left) Evolution of the p probability. (Upper right) Evolution of μ. (Bottom left) Evolution of σ. (Bottom right) Evolution of τ.

Similar articles

Cited by

References

    1. Balota D. A., Cortese M. J., Sergent-Marshall S. D., Spieler D. H., Yap M. (2004). Visual word recognition of single-syllable words. J. Exp. Psychol. Gen. 133:283. 10.1037/0096-3445.133.2.283 - DOI - PubMed
    1. Clauset A., Shalizi C. R., Newman M. E. J. (2009). Power-Law distributions in empirical data. SIAM Rev. 51, 661–703. 10.1137/070710111 - DOI
    1. Cousineau D., Brown S., Heathcote A. (2004). Fitting distributions using maximum likelihood: methods and packages. Behav. Res. Methods Instrum. Comput. 36, 742–756. 10.3758/BF03206555 - DOI - PubMed
    1. Cousineau D., Larochelle S. (1997). Pastis: a program for curve and distribution analyses. Behav. Res. Methods Instrum. Comput. 29, 542–548. 10.3758/BF03210606 - DOI
    1. Epstein J. N., Langberg J. M., Rosen P. J., Graham A., Narad M. E., Antonini T. N., et al. . (2011). Evidence for higher reaction time variability for children with adhd on a range of cognitive tasks including reward and event rate manipulations. Neuropsychology 25:427. 10.1037/a0022155 - DOI - PMC - PubMed

LinkOut - more resources