On the ability of complexity metrics to predict fault-prone classes in object-oriented systems

被引:74
|
作者
Zhou, Yuming [1 ,2 ]
Xu, Baowen [1 ,2 ]
Leung, Hareton [3 ]
机构
[1] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing, Peoples R China
[2] Nanjing Univ, Dept Comp Sci & Technol, Nanjing, Peoples R China
[3] Hong Kong Polytech Univ, Dept Comp, Hong Kong, Hong Kong, Peoples R China
基金
中国国家自然科学基金;
关键词
Complexity; Metrics; Fault-prone; Prediction; Logistic regression; Odds ratio; Concordant pairs; EMPIRICAL VALIDATION; SOFTWARE QUALITY; DESIGN METRICS; IDENTIFICATION; ACCURACY; MODELS; CURVE; AGILE; CODE; AREA;
D O I
10.1016/j.jss.2009.11.704
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Many studies use logistic regression models to investigate the ability of complexity metrics to predict fault-prone classes. However, it is not uncommon to see the inappropriate use of performance indictors such as odds ratio in previous studies. In particular, a recent study by Olague et al. uses the odds ratio associated with one unit increase in a metric to compare the relative magnitude of the associations between individual metrics and fault-proneness. In addition, the percents of concordant, discordant, and tied pairs are used to evaluate the predictive effectiveness of a univariate logistic regression model. Their results suggest that lesser known complexity metrics such as standard deviation method complexity (SDMC) and average method complexity (AMC) are better predictors than the two commonly used metrics: lines of code (LOC) and weighted method McCabe complexity (WMC). In this paper, however, we show that (1) the odds ratio associated with one standard deviation increase, rather than one unit increase, in a metric should be used to compare the relative magnitudes of the effects of individual metrics on fault-proneness. Otherwise, misleading results may be obtained; and that (2) the connection of the percents of concordant, discordant, and tied pairs with the predictive effectiveness of a univariate logistic regression model is false, as they indeed do not depend on the model. Furthermore, we use the data collected from three versions of Eclipse to re-examine the ability of complexity metrics to predict fault-proneness. Our experimental results reveal that: (1) many metrics exhibit moderate or almost moderate ability in discriminating between fault-prone and not fault-prone classes; (2) LOC and WMC are indeed better fault-proneness predictors than SDMC and AMC; and (3) the explanatory power of other complexity metrics in addition to LOC is limited. (C) 2009 Elsevier Inc. All rights reserved.
引用
收藏
页码:660 / 674
页数:15
相关论文
共 50 条
  • [21] The prediction of faulty classes using object-oriented design metrics
    El Emam, K
    Melo, W
    Machado, JC
    JOURNAL OF SYSTEMS AND SOFTWARE, 2001, 56 (01) : 63 - 75
  • [22] A comparison of cohesion metrics for object-oriented systems
    Etzkorn, LH
    Gholston, SE
    Fortune, JL
    Stein, CE
    Utley, D
    Farrington, PA
    Cox, GW
    INFORMATION AND SOFTWARE TECHNOLOGY, 2004, 46 (10) : 677 - 687
  • [23] An in-depth investigation into the relationships between structural metrics and unit testability in object-oriented systems
    Zhou YuMing
    Leung, Hareton
    Song QinBao
    Zhao JianJun
    Lu HongMin
    Chen Lin
    Xu BaoWen
    SCIENCE CHINA-INFORMATION SCIENCES, 2012, 55 (12) : 2800 - 2815
  • [24] Combining object-oriented metrics and centrality measures to predict faults in object-oriented software: An empirical validation
    Ouellet, Alexandre
    Badri, Mourad
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2024, 36 (04)
  • [25] A comparative study of models for predicting fault proneness in object-oriented systems
    Singh, Yogesh
    Kaur, Arvinder
    Malhotra, Ruchika
    INTERNATIONAL JOURNAL OF COMPUTER APPLICATIONS IN TECHNOLOGY, 2014, 49 (01) : 22 - 41
  • [26] A Hybrid Set of Complexity Metrics for Large-Scale Object-Oriented Software Systems
    Ma, Yu-Tao
    He, Ke-Qing
    Li, Bing
    Liu, Jing
    Zhou, Xiao-Yan
    JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2010, 25 (06) : 1184 - 1201
  • [27] A METRICS SUITE FOR OBJECT-ORIENTED DESIGN
    CHURCHER, NI
    SHEPPERD, MJ
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1995, 21 (03) : 263 - 265
  • [28] A METRICS SUITE FOR OBJECT-ORIENTED DESIGN
    CHIDAMBER, SR
    KEMERER, CF
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1994, 20 (06) : 476 - 493
  • [29] Application of Random Forest in Predicting Fault-Prone Classes
    Kaur, Arvinder
    Malhotra, Ruchika
    2008 INTERNATIONAL CONFERENCE ON ADVANCED COMPUTER THEORY AND ENGINEERING, 2008, : 37 - 43
  • [30] A SOFTWARE COMPLEXITY MODEL OF OBJECT-ORIENTED SYSTEMS
    TEGARDEN, DP
    SHEETZ, SD
    MONARCHI, DE
    DECISION SUPPORT SYSTEMS, 1995, 13 (3-4) : 241 - 262