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

Software Defect Prediction with Bayesian Approaches

Author

Listed:
  • María José Hernández-Molinos

    (Facultad de Estadística e Informática, Universidad Veracruzana, Xalapa 91020, Veracruz, Mexico)

  • Angel J. Sánchez-García

    (Facultad de Estadística e Informática, Universidad Veracruzana, Xalapa 91020, Veracruz, Mexico)

  • Rocío Erandi Barrientos-Martínez

    (Instituto de Investigaciones en Inteligencia Artificial, Universidad Veraruzana, Xalapa 91097, Veracruz, Mexico)

  • Juan Carlos Pérez-Arriaga

    (Facultad de Estadística e Informática, Universidad Veracruzana, Xalapa 91020, Veracruz, Mexico)

  • Jorge Octavio Ocharán-Hernández

    (Facultad de Estadística e Informática, Universidad Veracruzana, Xalapa 91020, Veracruz, Mexico)

Abstract

Software defect prediction is an important area in software engineering because it helps developers identify and fix problems before they become costly and hard-to-fix bugs. Early detection of software defects helps save time and money in the software development process and ensures the quality of the final product. This research aims to evaluate three algorithms to build Bayesian Networks to classify whether a project is prone to defects. The choice is based on the fact that the most used approach in the literature is Naive Bayes, but no works use Bayesian Networks. Thus, K2, Hill Climbing, and TAN are used to construct Bayesian Networks. On the other hand, three public PROMISE data sets are used based on McCabe and Halstead complexity metrics. The results are compared with the most used approaches in the literature, such as Decision Tree and Random Forest. The results from different performance metrics applied to a cross-validation process show that the classification results are comparable to Decision Tree and Random Forest, with the advantage that Bayesian algorithms show less variability, which helps engineering software to have greater robustness in their predictions since the selection of training and test data do not give variable results, unlike Decision Tree and Random Forest.

Suggested Citation

  • María José Hernández-Molinos & Angel J. Sánchez-García & Rocío Erandi Barrientos-Martínez & Juan Carlos Pérez-Arriaga & Jorge Octavio Ocharán-Hernández, 2023. "Software Defect Prediction with Bayesian Approaches," Mathematics, MDPI, vol. 11(11), pages 1-18, May.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:11:p:2524-:d:1160502
    as

    Download full text from publisher

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

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

    References listed on IDEAS

    as
    1. Somya Goyal, 2022. "Effective software defect prediction using support vector machines (SVMs)," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 13(2), pages 681-696, April.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.

      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:11:y:2023:i:11:p:2524-:d:1160502. 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.

      If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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.