scieee AI-readable full text Open interactive document viewer

Statistical Analysis for Revealing Defects in Software Projects

Elsayed, Alia Nabil Mahmoud Faried

Abstract

Defect detection in software is the procedure to identify parts of software that may comprise defects. Software companies always seek to improve the performance of software projects in terms of quality and efficiency. They also seek to deliver the soft-ware projects without any defects to the communities and just in time. The early revelation of defects in software projects is also tried to avoid failure of those projects, save costs, team effort, and time. Therefore, these companies need to build an intelligent model capable of detecting software defects accurately and efficiently. This study seeks to achieve two main objectives. The first goal is to build a statistical model to identify the critical defect factors that influence software projects. The second objective is to build a statistical model to reveal defects early in software pro-jects as reasonable accurately. A bibliometric map (VOSviewer) was used to find the relationships between the common terms in those domains. The results of this study are divided into three parts: In the first part The term "software engineering" is connected to "cluster," "regression," and "neural network." Moreover, the terms "random forest" and "feature selection" are connected to "neural network," "recall," and "software engineering," "cluster," "regression," and "fault prediction model" and "software defect prediction" and "defect density." In the second part We have checked and analyzed 29 manuscripts in detail, summarized their major contributions, and identified a few research gaps. In the third part Finally, software companies try to find the critical factors that affect the detection of software defects and find any of the intelligent or statistical methods that help to build a model capable of detecting those defects with high accuracy. Two statistical models (Multiple linear regression (MLR) and logistic regression (LR)) were used to find the critical factors and through them to detect software defects accurately. MLR is executed by using two methods which are critical defect factors (CDF) and premier list of software defect factors (PLSDF). The accuracy of MLR-CDF and MLR-PLSDF is 82.3 and 79.9 respectively. The standard error of MLR-CDF and MLR-PLSDF is 26% and 28% respectively. In addition, LR is executed by using two methods which are CDF and PLSDF. The accuracy of LR-CDF and LR-PLSDF is 86.4 and 83.8 respectively. The standard error of LR-CDF and LR-PLSDF is 22% and 25% respectively. Therefore, LRCDF outperforms on all the proposed models and state-of-the-art methods in terms of accuracy and standard error.

Full text

i Statistical Analysis for Revealing Defects in Software Projects. Alia Nabil Mahmoud Faried Elsayed Dissertation presented as partial requirement for obtaining the Master’s degree in Information Management ii NOVA Information Management School Instituto Superior de Estatística e Gestão de Informação Universidade Nova de Lisboa STATISTICAL ANALYSIS FOR REVEALING DEFECTS IN SOFTWARE PROJECTS by Alia Nabil Mahmoud Faried Elsayed Dissertation presented as partial requirement for obtaining the Master’s degree in Information Management/ Master’s degree in Statistics and Information Management , with a specialization in Systems Management and Information Technologies. Advisor :Prof. Vítor Manuel Pereira Duarte dos Santos iii ACKNOWLEDGEMENTS First, I would like to thank Prof. Vitor Santos of the Information Management School at Nova University. He was always available to help whenever I faced any trouble or had a questions about my research. He leaded me in the right the way whenever he thought I needed it. Finally, I must express my very deep acknowledge to my parents, my husband, my sisters, my brothers and my work friends for providing me with constant support and continuous encouragement throughout my years of study and through the process of researching and writing this thesis. This achievement would not have been possible without them. Thank you. iv PUBLICATIONS RESULTING FROM THIS DISSERTATION Mahmoud, A.; Santos, V. (2021) Statistical Analysis for Revealing Defects in Software Projects: Systematic Literature Review. The International Journal of Advanced Computer Science and Applications – vol.12, pp. v ABSTRACT Defect detection in software is the procedure to identify parts of software that may comprise defects. Software companies always seek to improve the performance of software projects in terms of quality and efficiency. They also seek to deliver the soft-ware projects without any defects to the communities and just in time. The early revelation of defects in software projects is also tried to avoid failure of those projects, save costs, team effort, and time. Therefore, these companies need to build an intelligent model capable of detecting software defects accurately and efficiently. This study seeks to achieve two main objectives. The first goal is to build a statistical model to identify the critical defect factors that influence software projects. The second objective is to build a statistical model to reveal defects early in software pro-jects as reasonable accurately. A bibliometric map (VOSviewer) was used to find the relationships between the common terms in those domains. The results of this study are divided into three parts: In the first part The term "software engineering" is connected to "cluster," "regression," and "neural network." Moreover, the terms "random forest" and "feature selection" are connected to "neural network," "recall," and "software engineering," "cluster," "regression," and "fault prediction model" and "software defect prediction" and "defect density." In the second part We have checked and analyzed 29 manuscripts in detail, summarized their major contributions, and identified a few research gaps. In the third part Finally, software companies try to find the critical factors that affect the detection of software defects and find any of the intelligent or statistical methods that help to build a model capable of detecting those defects with high accuracy. Two statistical models (Multiple linear regression (MLR) and logistic regression (LR)) were used to find the critical factors and through them to detect software defects accurately. MLR is executed by using two methods which are critical defect factors (CDF) and premier list of software defect factors (PLSDF). The accuracy of MLR-CDF and MLR-PLSDF is 82.3 and 79.9 respectively. The standard error of MLR-CDF and MLR-PLSDF is 26% and 28% respectively. In addition, LR is executed by using two methods which are CDF and PLSDF. The accuracy of LR-CDF and LR-PLSDF is 86.4 and 83.8 respectively. The standard error of LR-CDF and LR-PLSDF is 22% and 25% respectively. Therefore, LRCDF outperforms on all the proposed models and state-of-the-art methods in terms of accuracy and standard error. vi KEYWORDS Defects; Software projects; Statistical model; Linear regression; Logistic regression. vii INDEX 1. Introduction .................................................................................................................. 1 2. Literature review .......................................................................................................... 3 2.1. Background ............................................................................................................ 3 2.1.1. Software Defects: ........................................................................................... 3 2.1.2. Regression Analysis: ....................................................................................... 4 2.2. Materials and Methods ......................................................................................... 5 2.2.1. Research Questions ........................................................................................ 5 2.2.2. Search Strategy ............................................................................................... 6 2.3. Results, Analysis, and Discussion......................................................................... 11 2.3.1. Visualizing Analysis ....................................................................................... 12 2.3.2. Analysis Per Topic: ........................................................................................ 13 3. Methodology .............................................................................................................. 22 4. Results and discussion ................................................................................................ 24 4.1. Multiple Linear Regression: ................................................................................. 24 4.2. Logistic Regression: ............................................................................................. 27 5. Conclusions ................................................................................................................. 32 5.1. Main Contribution ............................................................................................... 32 5.2. Limitations To The Current Work ........................................................................ 32 5.3. Future Work......................................................................................................... 32 Bibliography..................................................................................................................... 33 viii LIST OF FIGURES Fig 1- search query for scientific manuscripts to extract the best studies in software defects ............................................................................................................................... 6 Fig 2- scientific steps for analyzing the proposed manuscripts “PRISMA flow chart” ...... 7 Fig 3 - The relationships between the common terms using the bibliometric map ....... 12 Fig 4 - A Proposed Statistical Model for Software Defects Prediction ............................ 23 Fig 5 - Flow chart of the proposed algorithm for MLR model……………………………………...25 Fig 6-The comparison between model of MLR-CDF and model of MLR-PLSDF to accuracy ……………………………………………………………………………………………………..…26 Fig 7 - The comparison between model of MLR-CDF and model of MLR-PLSDF to stander error ratio …………………………………………………………………………………..………27 Fig 8 - The comparison between model of LR-CDF and model of LR-PLSDF to accuracy …………………………………………………………………………………………….……………29 Fig 9 - The comparison between model of LR-CDF and model of LR-PLSDF to stander error ratio ……………………………………………………………………………………………………………………29 Fig 10 - The accuracy comparison of all proposed statistical model .............................. 30 Fig 11 - The standard error ratio comparison of all proposed statistical model ............ 30 Fig 12 - The comparison between the proposed model and state of the art methods…31 ix LIST OF TABLES Table 1- CHAOS Report by Agile Versus Waterfall ............................................................ 2 Table 2- Software Metrics of McCabe and Halstead to reveal software defects ............. 3 Table 3 - Regression analysis studies to reveal Software Defects .................................... 8 Table 4 - Studies of Software Defects Prediction .............................................................. 9 Table 5 - Major factors in software defect projects…………………………………………………….14 Table 6 - Intelligent and statistical techniques in software defect project…………………..19 Table 7 - Sample of performance metrics rate in previous work………………………………...20 Table 8 - Majority of performance metrics used in software defect projects ............ ….20 Table 9 - Summary of critical factors that affect software projects in MLR ………….……..26 Table 10 - Summary of critical factors that affect software projects in LR…………………..28 6 RQ2: Which statistical or intelligent techniques have been adopted for SD? RQ3: What performance metrics have been adopted in the literature in the prediction of SD? 2.2.2. Search Strategy A literature survey generally recommends searching several available journal and conference paper repositories to determine if similar work has already been per-formed, aiding in locating potentially relevant studies. The papers counted were searched in two electronic repositories, Scopus and Web of Science. This study's covered topics were multidisciplinary, including, Software, Computer Science, Engineering, Mathematics, Environmental Science, Telecommunications, and Multidisciplinary Sciences. However, both repositories were used. The analysis showed that most of the publications from Web of Science were in Scopus as well. A repeated search process was performed to identify publications that have in their titles, abstracts, or keywords the following expressions: "softwaredefects" (or software defects, or defect or projects defects), and "machine learning" in Figure 1. Fig. 1 search query for scientific manuscripts to extract the best studies in software defects (software-defects OR defect OR projects) AND (OR “data mining ” OR forecasting OR “machine learning” OR “neural network" OR “clustering" OR “artificial intelligence” OR “prediction” OR “predictive” OR “statistical” OR analysis”) 7 Fig. 2. scientific steps for analyzing the proposed manuscripts “PRISMA flow chart” In phase 1, we applied the search string to all electronic repositories looking for papers published between 2015 to 2019, which resulted in 627 publications. In Phase 2, followed a 5-step approach. In step 1, we excluded manuscripts based on titles (e.g., software defects, regression, and machine learning), which narrowed the set to 211 publications. In step 2, we excluded manuscripts based on abstracts screening, which resulted in 117 publications. In the following step 3, we excluded manuscripts reporting research without experiments, resulting in 83 publications. Subsequently, in step 4 of phase 2, we excluded position manuscripts which gave us the final figure of 29 publications. In phase 3, manuscripts underwent a full-text reading and review, which lead to no exclusions (the result of phase 4). As a result of our paper selection approach, the final list included 29 manuscripts (phase 5), analyzed in detail in this paper. These were further divided into the following four categories, as shown in tables 3 and 4. 8 1. Regression analysis studies to reveal Software Defects. 2. Studies of Software Defects Prediction. Table 3. Regression analysis studies to reveal Software Defects No Ref Application Dimensions Method of Solution and Performance Metrics 1 S.N. Umar Software testing defect prediction model-a practical approach Total number of test cases executed, test team size, allocated development effort, test case execution effort, and the total number of components delivered Multiple linear regression. R square and standard error 2 (Dhiauddin & Ibrahim, 2012) A Prediction Model for System Testing Defects using Regression Analysis Software complexity, test process, errors, the severity of the defect, and validity of defect Multiple linear regression. Adjusted R square 3 E. A. FELIX and et al Integrated Approach to Software Defect Prediction Defect acceleration, namely, the defect density, defect velocity, and defect introduction time Statistical analysis. Adjusted R square and correlation coefficient 4 D. VERMA and et al Prediction of defect density for open source software using repository metrics software size, number of developers, commits, and the total number of defects Multiple linear regression. R square 5 D. Sharma and et al Identification of latent variables using factor analysis and multiple linear regression for software fault prediction Coupling between object classes, depth of inheritance tree, lack of cohesion of methods, and weighted methods per class Multiple linear regression. R square and Adjusted R square 6 O. Sari and et al Use of Logistic Regression Analysis for Bug Prediction Weighted method count, depth of inheritance tree, lack of cohesion in methods, number of attributes, and number of methods Logistic regression. Standard error 9 7 G. MAUSA and et al Software Metrics as Identifiers of Defect Occurrence Severity Software size, number of code lines, and the total number of defects. Correlation coefficients and logistic regression. Error rate 8 Peng H. and et al presented a model for predicting defects in software projects Software size, number of code lines, and the total number of defects. Logistic regression. Standard error 9 M. Dhillon and et al An empirical model for fault prediction on the basis of regression analysis Weighted method count, depth of inheritance tree, lack of cohesion in methods, number of attributes, and number of methods Logistic regression. Precision, recall, and f1 measure 10 X. Chen and et al Multi-Objective Effort- Aware Just-in-Time Software Defect Prediction diffusion [Number of modified subsystems], size [line of codes], history [The number of unique changes to the modified files], and finally, experience [Developer experience]. Logistic regression. Accuracy Table 4. Studies of Software Defects Prediction No Ref Application Dimensions Method of Solution and Performance Metrics 1 A. H. Yousef Extracting software static defect models using data mining McCabe and Halstead metrics Data mining techniques. Accuracy, Precision, Recall, and F1 score 2 Karuna P and et al Statistical analysis of metrics for software quality improvement Violation of programming standards, error in data representation, error in design logic, and assorted error type Statistical analysis. Mean and standard deviation 3 Sukanya. V and et al An enhanced evolutionary model for software defect prediction McCabe and Halstead metrics Enhanced genetic algorithm, genetic algorithm, and 10 neural network. Precision 4 Y. Koroglu and et al Defect prediction on a legacy industrial software: a case study on software with few defects Product and process metrics Data mining techniques. AUC 5 L. KUMAR and et al An effective fault prediction model developed using an extreme learning machine with various kernel methods Complexity, coupling, cohesion, and inheritance in the code Extreme learning machine with various kernel methods (e.g., Linear kernel, Polynomial kernel, and Sigmoid kernel). Accuracy 6 F. Zhang and et al Towards building a universal defect prediction model The weighted method programming language, issue tracking, total lines of code, total number of files, the total number of commits, and the total number of developers K-mean clustering. AUC 7 A. Marandi and et al An approach of statistical methods for improving software quality Post-delivery rework effort, actual effort, cost of the appraisal, cost of prevention, and cost of failure Statistical analysis. Standard error 8 G. RajBahadur and et al The impact of using regression models to build defect classifiers Object-oriented metrics Linear regression, logistic regression, random forest, support vector machine, and neural network. AUC 9 S. Rathore and et al Predicting the number of faults in a software system using genetic programming Total number of modules, number of lines of code, and number of faulty modules Genetic programming. Recall and error rate 10 M. Sirshar and et al Comparative Analysis of Software Defect Prediction Product and process metrics Neural Network, Naive Bayes, Deep 11 Techniques Forest technique. Error rate 11 M. Rawat and et al Software defect prediction models for quality improvement: a literature study Object-oriented code, product, and process metrics Regression models. Accuracy 12 S. Feng and et al Complexity-based Oversampling Technique to alleviate the class imbalance problem in software defect prediction Line of code, number of children, and weighted method per class Complexity-based Oversampling. Error rate 13 S. Patil and et al Predicting software defect type using concept-based classification Interface, syntax, and standard [build-config- install] Concept-based Classification. F1 score 14 J. Jiarpakdee and et al The impact of automated feature selection techniques on the interpretation of defect models inconsistent and correlated Automated Spearman correlation. Error rate 15 A. Bangash and et al On the time-based conclusion stability of crossproject defect prediction models Time, types of the projects, software development process Mathews Correlation Coefficient. F-score 16 S. Morasca and et al On the assessment of software defect prediction models via ROC curves Lines of code and complexity Receiver Operating Characteristic. Error rate 2.3. RESULTS, ANALYSIS, AND DISCUSSION This section introduces two main parts, which are bibliometric analysis and analyzing previous works in detail. The first part shows the relationships between common terms in intelligence, statistical techniques, and performance metrics used in the previous study. The second part seeks to find the scientific gap between proposed manuscripts in this study to build a novel model to overcome the issues for revealing defects in software projects. 12 2.3.1. Visualizing Analysis We used VOS viewer ("VOS viewer," n.d.), a Visualizing bibliometric network, to find common terminology in two areas: software defects and statistical techniques, across the 29 manuscripts under analysis. This tool supported our study, with visual information enabling us to explore the relations between the domains of software defects and statistical techniques. Moreover, it helped us find the most common dimensions, clustering, and variety techniques able to answer our research questions. Figure 3 represents the visualization of a network map that displays the relations between the most popular terminology, how it is linked. The larger node represents the popular terminology in manuscripts, and the size of it represents the number of times these words appeared in manuscripts. VOS viewer splits the terminology into clusters according to the relevance concerning each other. Fig. 3. The relationships between the common terms using the bibliometric map. We performed the analysis on the title and abstract using a binary counting method of 759 examined keywords with a minimum threshold of 2 occurrences, resulting in 57 terminologies, as shown in the figure. The largest nodes representing the important nodes of each cluster in the network map are determined as" Regression" (red), "cluster" (yellow), "software engineering" (green), "neural network" (blue), and finally "software defect prediction" (purple) 13 Looking closer at the network map in figure1, we can see that the 5 clusters are connected between them; for instance, the "regression" term is connected to "fault prediction model" in the same red cluster, it connected to "cluster" and "accuracy" in the yellow cluster, it is also connected to "software engineering" and "recall" in the green cluster. Finally, it is also connected to "neural network" and "feature selection" in the blue cluster; it is also connected to "software defect prediction "and "defect density." Besides, the term "software engineering" in the green cluster is connected to "cluster" in the yellow cluster, "regression" in the red cluster, and "neural network" in the blue cluster. Moreover, the terms "random forest" and "feature selection" are connected to "neural network" in the blue cluster, "recall" and "software engineering" in the green cluster, "cluster" in yellow cluster, "regression" and "fault prediction model" in the red cluster and "software defect prediction" and "defect density" in the purple cluster. Finally, by analyzing the network map in figure1, we can identify the important terms in each cluster, as follows: • In the red cluster: "regression" and "software prediction model." • In the yellow cluster: "cluster" and "accuracy." • In the green cluster: "recall" and "software engineering." • In the blue cluster: "random forest", "feature selection" and "neural network" • In the purple cluster: "software defect prediction" and "defect density." 2.3.2. Analysis Per Topic: RQ1 drove to look for metrics, data sources, and critical factors able to reveal software defects. Our review of papers S1 to S26 allowed us to extract such critical factors. Dimensions such as software status [ No. of defects], OOP [Depth of Inheritance Tree and No. of Methods], McCabe Metrics [ Line Count of Code], and Halstead Metrics [Effort to Write Program and Time to Write Program] seem to be highly considered when studying the revealing of software defects in software companies. Table 5 shows the variety of metrics used in predicting defects in software projects. The studies of S1, S4, and S16 relied on team dimension (team size and the number of developers) to predict software defects in software projects. The studies of S2, S3, S4, S7, S8, S12, S15, and S26 relied on software status dimensions (software complexity, number of defects, and software size) to detect defects in those projects. Moreover, the studies of S5, S6, S9, S15, S16, S18, and S21 relied on the OOP dimension (coupling between object classes, depth of inheritance tree, number of methods) also to reveal defects in those projects. Also, the studies of S7, S8, S10, S11, S13, S16, S19, S22, and S26 relied on McCabe metrics (line count of code, cyclomatic complexity, essential complexity, and design complexity) to find the optimal intelligent techniques to predict defects in software projects. Finally, the studies of S1, S3, S11, S13, S16, S17, S25 relied on Halstead Metrics (total operators + operands, effort to write the program, number of delivered bugs, count of lines of comments, and time to write a program) to forecast defects in various software projects. We observed that four factors are the most used in predicting defects in software projects. These are the number of defects, depth of inheritance tree, number of methods, and line count of code. 14 Table 5. Major factors in software defect projects Dimensions Team Software status OOP McCabe Metrics Halstead Metrics Other Factors Size No. Developers software complexity No. of Defects Software Size Coupling between Object classes Depth of Inheritance Tree No. of Methods Line Count of Code Cyclomatic Complexity Essential Complexity Design Complexity Total Operators + Operands The effort to Write Program Number of Delivered Bugs Count of Lines of Comments Time to Write Program S.N. Umar [9] S1 Software testing defect prediction model-a practical ✓ - - - - - - - - - - - - ✓ ✓ - - ✓ M.D. Suffian and et al S2 [10] A Prediction Model for System Testing Defects using Regression Analysis - - ✓ ✓ - - - - - - - - - - - - - ✓ E. A. FELIX and et al. S3 [11] Integrated Approach to Software Defect Prediction - - - ✓ - - - - - - - - - - - - ✓ ✓ D. VERMA and et al. S4 [12] Prediction of defect density for open source software using repository metrics - ✓ - ✓ ✓ - - - - - - - - - - - - - D. Sharma and et al. S5 [13] Identification of latent variables using factor analysis and multiple linear regression for software fault prediction - - - - - ✓ ✓ ✓ - - - - - - - - - ✓ O. Sari and et al. S6 [14] Use of Logistic Regression Analysis for Bug Prediction - - - - - - ✓ ✓ - - - - - - - - - - G. MAUSA and et al. S7 [15] Software Metrics as Identifiers of Defect Occurrence Severity - - - ✓ ✓ - - - ✓ - - - - - - - - - Peng H. and et al. s8 [16] presented a model for predicting defects in software projects - - - ✓ ✓ - - - ✓ - - - - - - - - - 15 M. Dhillon and et al s9 [17] An empirical model for fault prediction on the basis of regression analysis - - - - - - ✓ ✓ - - - - - - - - - ✓ X. Chen and et al. s10 [17] An empirical model for fault prediction on the basis of regression analysis - - - - - - - - ✓ - - - - - - - - ✓ A. H. Yousef s11 [7] Extracting software static defect models using data mining - - - - - - - - ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ - Karuna P and et al. s12 [18] Statistical analysis of metrics for software quality improvement - - - ✓ - - - - - - - - - - - - - ✓ Sukanya.V and et al s13 [8] An enhanced evolutionary model for software defect prediction - - - - - - - - ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ - Y. Koroglu and et al s14 [19] Defect prediction on a legacy industrial software: a case study on software with few defects - - - - - - - - - - - - - - - - - ✓ L. KUMAR and et al. s15 [20] An effective fault prediction model developed using an extreme learning machine with various kernel methods - - ✓ - - ✓ ✓ - - - - - - - - - - - F. Zhang and et al. s16 [21] Towards building a universal defect prediction model - ✓ - - - - - ✓ ✓ - - - - - - ✓ - - A. Marandi and et al s17 [22] An approach of statistical methods for improving software quality - - - - - - - - - - - - - ✓ - - - ✓ G. RajBahadur and et al s18 [23] The impact of using regression models to build defect classifiers - - - - - ✓ ✓ ✓ - - - - - - - - - - 22 3. METHODOLOGY Proposal of a new proposed model based on a statistical model able to predict defects in software projects. This section presents an approach for a statistical model able to predict defects in software projects. The proposed model has been used in several scientific data science researches like is the case of (Yousef, A. H. ,2015). As shown in Figure 4, the detailed the proposed model will cover the following phases: 1. State-of-the-art analysis: Review the literature to extract important metrics, data sources, mathematical and computational approaches used for predicting defects of software projects. 2. Data collection: data is collected from the NASA data sets online. We have two reasons to select the NASA Data set. The first reason is it is too hard to collect huge data from software companies to reveal the defects in software projects. The second reason for selecting Nasa is based on its vast and high-quality data. It explains the static measures and other variables that are used to detect static defects in software projects. It also shows a binary variable indicating whether the module is defective or not. 3. Data Analysis and Pre-Processing: Analyze the data in detail and, if necessary, transform it to expose its information content better. Different mathematical techniques may be used, namely, outlier removal, discretization, reduction of the number of variables, and/or dimensionality (adopting regression models). 4. Feature selection: determine critical metrics and detect defects that will be adopted in the proposed IST study by using logistic regression and multiple linear regression. Create a mapping between logistic regression and multiple linear regression to determine the final list of critical metrics capable of predicting defects in software projects. 5. Build a model: present a statistical model capable of predicting defects in software projects using multiple linear regression and logistic regression. 6. Training and verification model: train the model with data set and verify its ability to predict defects in software projects. 7. Also, we will present a comparison between logistic regression and multiple linear regression by using the final list of critical metrics to determine which one is better than the other in terms of accuracy, precision, recall, F1 measure, and error rate. Following this holistic approach, we built a methodology composed of five phases, as shown in figure 4. 23 Fig 4. A Proposed Statistical Model for Software Defects Prediction 24 4. RESULTS AND DISCUSSION 4.1. MULTIPLE LINEAR REGRESSION: In our trial to detect which features can impact positively the defeat of software projects. This trial is used multiple Linear regression analysis, where the relationship between multiple independent variables (factors in software projects) and the dependent variable (grade of impacting the factors in software projects) is specific. Based on the Eq. (3), the multiple Linear regression analysis can be specified as follows: Y = β0 + β1x1 + β2x2 + …. + β11x11 + ε (3) Where: Y: is degree of effect the defeat factors in software projects β0: is the y-intercept βi: is the regression coefficient Xi: critical failure factors ε: the random error term The applied model has been executed by a set of steps. To begin with, the proposed data is split into dependent and independent variables (refer to Table 2). Furthermore, it consists of seventy percent training and thirty percent testing data. The ordinary least squares (OLS) is used to verify the proposed model that assumes a robust linear relationship between the dependent and the independent variables. After that, L2 Regularization is used to upgrade the quality of the proposed model. This part introduces a flow chart for determining the critical factors that impact software projects by MLR and LR analysis. Fig. 5 shows the flow chart for the proposed model. MLR and LR analysis introduced regression statistics like standard error (SE), R-squared (RS), adjusted R-squared (ARS), and P-value (PV). SE shows a first handle on how fully the provided equation is suitable for the sample data. It is critical to the units of the stander of the dependent variable. RS shows the explanatory impose of the regression model. ARS is an updated version of RS that has been modified for the set of predictors in the model. It raises only if the relative terms promote the model more than would be expected. It is minimized when a predictor promotes the model by less than expected. It is always lower than the RS.ARS of MLR and LR is 0.78. PV helps to set the importance of the statistical results. It is a number between 0 and 1 and is explained in the following method: a small PV (typically ≤ 0.05) indicates a powerful proof versus the null supposition. The null supposition is rejected from the statistical results. 25 Fig.5 Flow chart of the proposed algorithm for MLR and LR model 26 Table 9. Summary of critical factors that affect software projects in MLR No Factor ID P-Value 1 loc ✓ 0 2 v(g) ✓ 0 3 ev(g) X 0.4341 4 iv X 0.0537 5 n ✓ 0 6 v X 0.4804 7 l X 0.2107 8 d ✓ 0.0002 9 i ✓ 0.0075 10 e X 0.9454 11 b X 0.7833 12 t X 0.9454 13 IOCode ✓ 0 14 IOComment ✓ 0.0461 15 IOBlank X 0.0809 16 locCodeAndComment X 0.0667 17 Column1op ✓ 0 18 Column2opnd X 0.2169 19 Column1totalopnd ✓ 0.0001 20 Column1totalop ✓ 0.0003 21 Column1branch ✓ 0 The model based on critical defect factors (CDF) based on the model-based premier list of software defect factors (PLSDF) to the accuracy and standard error ratio, as shown below in Figs. 6 and 7. Fig 6. The comparison between model of MLR-CDF and model of MLR-PLSDF to accuracy 78.50% 79.00% 79.50% 80.00% 80.50% 81.00% 81.50% 82.00% 82.50% MLR-CDF MLR-PLSDF Accuracy Accuracy 27 Fig 7. The comparison between model of MLR-CDF and model of MLR-PLSDF to stander error ratio 4.2. LOGISTIC REGRESSION: In our trial to show the experimental results of our proposed approach. The approach is executed using a different technique, which is logistic regression. A group of pre-processing steps does the proposed model. First, the dataset attributes are split into defect factors in software projects as separate variables and the degree of effecting defect factors in software projects which will be as the dependent variable. Second, the dataset also is split into 80% training data and also 20% testing data. Third, the dependent variable was changed from categorical values (False, True) to binary values (0:1). Fourth, the independent variables were run between 0 and 1. assume that Xmin and Xmax are the minima and maximum values of an attribute X, as shown in Eq. (5). Xnew = 𝑋−𝑋𝑚𝑖𝑛 𝑋𝑚𝑎𝑥𝑋𝑚𝑖𝑛 Eq (5) We used logistic regression to define critical defect factors that impact software projects. Two methods do it. The first method relies on the critical defect factors (LR-CDF) of software projects. The second model relies on the premier list of software defect factors (LR-PLSDF). In the PLSDF method, the relationship between independent variables (premier list of software defect factors) and the dependent variable (degree of effecting defect factors in software projects) is fixed, as shown in Eq. (6). The logistic regression of PLSDF can be identified as follows: P = 1 1+𝑒−(β0 + β1x1 + β2x2 + …..+ β13x13) Eq (6) 25% 26% 26% 27% 27% 28% 28% MLR-CDF MLR-PLSDF Standard Error Ratio Standard Error Ratio 28 Where: • P = degree of effecting defect factors in software projects • β0 = P-intercept • βi = regression coefficient • Xi = LR-CDF Table 10 present the statistical results of the PLSDF method. It includes two significant results (Adjusted R squared and P-value). ARS is - 0.82. The PV shows the significant separate features that affect detect defects in software projects. If P-value>0.05, the degree is not significant statistically. For example, the P-value for (v(g)=0.5970) is greater than 0.05; thus, this feature should refuse. therefore, those features with a value level (P-Value<0.05) would be known as elects for being important features affecting defect factors selection. Table 10. Summary of critical factors that affect software projects in LR No Factor ID P-Value 1 loc ✓ 0.0000 2 v(g) X 0.5970 3 ev(g) ✓ 0.0267 4 iv ✓ 0.0447 5 n X 0.1740 6 v X 0.6973 7 l ✓ 0.0003 8 d ✓ 0.0072 9 i ✓ 0.0084 10 e X 0.9994 11 b X 0.7338 12 t X 0.9995 13 IOCode ✓ 0.0001 14 IOComment ✓ 0.0047 15 IOBlank ✓ 0.0111 16 locCodeAndComment X 0.0747 17 Column1op ✓ 0.0032 18 Column2opnd ✓ 0.0000 19 Column1totalopnd ✓ 0.0016 20 Column1totalop ✓ 0.0437 21 Column1branch X 0.1599 29 Fig 8. The comparison between model of LR-CDF and model of LR-PLSDF to accuracy Fig 9. The comparison between model of LR-CDF and model of LR-PLSDF to stander error ratio In this part we do comparison between the accuracy and stander error ratio in multilinear regression and logistic regression to extract the best result, as show in figure 10,11, which shows that the best result extracts from (LR-CDF). 82.50% 83.00% 83.50% 84.00% 84.50% 85.00% 85.50% 86.00% 86.50% LR-CDF LR-PLSDF Accuracy Accuracy 21% 21% 22% 22% 23% 23% 24% 24% 25% 25% LR-CDF MLR-PLSDF Standard Error Ratio Standard Error Ratio 30 Fig.10 The accuracy comparison of all proposed statistical model Fig.11 The standard error ratio comparison of all proposed statistical model 76.00% 77.00% 78.00% 79.00% 80.00% 81.00% 82.00% 83.00% 84.00% 85.00% 86.00% 87.00% MLR-CDF MLR-PLSDF LR-CDF LR-PLSDF Accuracy Accuracy 0% 5% 10% 15% 20% 25% 30% MLR-CDF MLR-PLSDF LR-CDF LR-PLSDF Standard Error Ratio Standard Error Ratio 31 The LR-CDF model outperforms the state-of-the-art methods in previous works of accuracy, as shown in figure 12. Fig12. The comparison between the proposed model and state of the art methods The LR-CDF model outperforms the intelligent techniques (Association rule, Decision tree, Naive Bayes, and neural network) in Ahmed H. Yousef's study in terms of accuracy by 9.1%, 10.3%, 13.1%, and 13.1% respectively. 66.00% 68.00% 70.00% 72.00% 74.00% 76.00% 78.00% 80.00% 82.00% 84.00% 86.00% 88.00% Association rules Decision tree Naı¨ve Bayes Neural network Proposed Model (LR-CDF)