IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v12y2024i11p1686-d1404290.html
   My bibliography  Save this article

Implementation of a Parallel Algorithm to Simulate the Type I Error Probability

Author

Listed:
  • Francisco Novoa-Muñoz

    (Departamento de Enfermería, Facultad de Ciencias de la Salud y de los Alimentos, Universidad del Bío-Bío, Chillán 3800708, Chile)

Abstract

Simulating the probability of type I error is a powerful statistical tool that allows confirming if the statistical test achieves the established nominal level. However, its computational implementation has the drawback of significantly long execution times. Therefore, this article analyzes the performance of two parallel implementations ( parRapply and boot ) which significantly reduce the execution time of simulations of type I error probability for a goodness-of-fit test for the bivariate Poisson distribution. The results obtained demonstrate how the parallelization strategies accelerate the simulations, reducing the time by 50% to 90% when using 2 to 12 processors running in parallel. This reduction is graphically evidenced as the execution time of the analyzed parallel versions fits almost perfectly ( R 2 ≈ 0.999 ) to the power model y = a p b , where p is the number of processors used, and a > 0 and b < 0 are the constants of the model. Furthermore, it is shown that the parallelization strategies used scale with an increasing number of processors. All algorithms were implemented in the R programming language, and their code is included at the end of this article.

Suggested Citation

  • Francisco Novoa-Muñoz, 2024. "Implementation of a Parallel Algorithm to Simulate the Type I Error Probability," Mathematics, MDPI, vol. 12(11), pages 1-24, May.
  • Handle: RePEc:gam:jmathe:v:12:y:2024:i:11:p:1686-:d:1404290
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/12/11/1686/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/12/11/1686/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:12:y:2024:i:11:p:1686-:d:1404290. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.