The ability of object-oriented metrics to predict change-proneness: a meta-analysis

被引:57
|
作者
Lu, Hongmin [1 ,2 ]
Zhou, Yuming [2 ]
Xu, Baowen [2 ]
Leung, Hareton [3 ]
Chen, Lin [2 ]
机构
[1] Southeast Univ, Sch Comp Sci & Engn, Nanjing, Jiangsu, Peoples R China
[2] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing 210008, Peoples R China
[3] Hong Kong Polytech Univ, Dept Comp, Kowloon, Hong Kong, Peoples R China
基金
中国国家自然科学基金;
关键词
Object-oriented; Metrics; Change-proneness; Meta-analysis; Random-effect model; Sensitivity analysis; COUPLING MEASUREMENT; SOFTWARE; VALUES;
D O I
10.1007/s10664-011-9170-z
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Many studies have investigated the relationships between object-oriented (OO) metrics and change-proneness and conclude that OO metrics are able to predict the extent of change of a class across the versions of a system. However, there is a need to re-examine this subject for two reasons. First, most studies only analyze a small number of OO metrics and, therefore, it is not clear whether this conclusion is applicable to most, if not all, OO metrics. Second, most studies only uses relatively few systems to investigate the relationships between OO metrics and change-proneness and, therefore, it is not clear whether this conclusion can be generalized to other systems. In this paper, based on 102 Java systems, we employ statistical meta-analysis techniques to investigate the ability of 62 OO metrics to predict change-proneness. In our context, a class which is changed in the next version of a system is called change-prone and not change-prone otherwise. The investigated OO metrics cover four metric dimensions, including 7 size metrics, 18 cohesion metrics, 20 coupling metrics, and 17 inheritance metrics. We use AUC (the area under a relative operating characteristic, ROC) to evaluate the predictive effectiveness of OO metrics. For each OO metric, we first compute AUCs and the corresponding variances for individual systems. Then, we employ a random-effect model to compute the average AUC over all systems. Finally, we perform a sensitivity analysis to investigate whether the AUC result from the random-effect model is robust to the data selection bias in this study. Our results from random-effect models reveal that: (1) size metrics exhibit moderate or almost moderate ability in discriminating between change-prone and not change-prone classes; (2) coupling and cohesion metrics generally have a lower predictive ability compared to size metrics; and (3) inheritance metrics have a poor ability to discriminate between change-prone and not change-prone classes. Our results from sensitivity analyses show that these conclusions reached are not substantially influenced by the data selection bias.
引用
收藏
页码:200 / 242
页数:43
相关论文
共 50 条
  • [31] An overview of object-oriented design metrics
    Harrison, R
    Counsell, S
    Nithi, R
    [J]. EIGHTH IEEE INTERNATIONAL WORKSHOP ON SOFTWARE TECHNOLOGY AND ENGINEERING PRACTICE INCORPORATING COMPUTER AIDED SOFTWARE ENGINEERING, PROCEEDINGS, 1997, : 230 - 235
  • [32] Object-oriented metrics: An annotated bibliography
    Whitty, R
    [J]. ACM SIGPLAN NOTICES, 1996, 31 (04) : 45 - 75
  • [33] Automated metrics and object-oriented development
    Bansiya, J
    Davis, C
    [J]. DR DOBBS JOURNAL, 1997, 22 (12): : 42 - &
  • [34] Metrics for reuse of object-oriented software
    MilankovicAtkinson, M
    Georgiadou, E
    [J]. SOFTWARE QUALITY MANAGEMENT IV - IMPROVING QUALITY, 1996, : 363 - 374
  • [35] A survey of object-oriented design metrics
    Chhabra, Jitender Kumar
    Aggarwal, K. K.
    Singh, Yogesh
    [J]. WMSCI 2005: 9TH WORLD MULTI-CONFERENCE ON SYSTEMICS, CYBERNETICS AND INFORMATICS, VOL 10, 2005, : 185 - 190
  • [36] Empirical Study of Object-Oriented Metrics
    Aggarwal, K. K.
    Singh, Yogesh
    Kaur, Arvinder
    Malhotra, Ruchika
    [J]. JOURNAL OF OBJECT TECHNOLOGY, 2006, 5 (08): : 149 - 173
  • [37] A METRICS SUITE FOR OBJECT-ORIENTED DESIGN
    CHURCHER, NI
    SHEPPERD, MJ
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1995, 21 (03) : 263 - 265
  • [38] Object-Oriented Software Coupling Metrics
    Ma J.
    Liu F.
    Fan J.-P.
    [J]. Beijing Youdian Daxue Xuebao/Journal of Beijing University of Posts and Telecommunications, 2018, 41 (01): : 109 - 114
  • [39] Metrics for object-oriented software projects
    Sherif, JS
    Sanderson, P
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 1998, 44 (02) : 147 - 154
  • [40] Quality metrics for object-oriented design
    Gillibrand, D
    Liu, KC
    [J]. JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1998, 10 (08): : 56 - 59