Does class size matter? An in-depth assessment of the effect of class size in software defect prediction

被引:0
|
作者
Amjed Tahir
Kwabena E. Bennin
Xun Xiao
Stephen G. MacDonell
机构
[1] Massey University,
[2] Wageningen University and Research,undefined
[3] Auckland University of Technology,undefined
[4] University of Otago,undefined
来源
关键词
Defect prediction; Class size; Metrics; Software quality;
D O I
暂无
中图分类号
学科分类号
摘要
In the past 20 years, defect prediction studies have generally acknowledged the effect of class size on software prediction performance. To quantify the relationship between object-oriented (OO) metrics and defects, modelling has to take into account the direct, and potentially indirect, effects of class size on defects. However, some studies have shown that size cannot be simply controlled or ignored, when building prediction models. As such, there remains a question whether, and when, to control for class size. This study provides a new in-depth examination of the impact of class size on the relationship between OO metrics and software defects or defect-proneness. We assess the impact of class size on the number of defects and defect-proneness in software systems by employing a regression-based mediation (with bootstrapping) and moderation analysis to investigate the direct and indirect effect of class size in count and binary defect prediction. Our results show that the size effect is not always significant for all metrics. Of the seven OO metrics we investigated, size consistently has significant mediation impact only on the relationship between Coupling Between Objects (CBO) and defects/defect-proneness, and a potential moderation impact on the relationship between Fan-out and defects/defect-proneness. Other metrics show mixed results, in that they are significant for some systems but not for others. Based on our results we make three recommendations. One, we encourage researchers and practitioners to examine the impact of class size for the specific data they have in hand and through the use of the proposed statistical mediation/moderation procedures. Two, we encourage empirical studies to investigate the indirect effect of possible additional variables in their models when relevant. Three, the statistical procedures adopted in this study could be used in other empirical software engineering research to investigate the influence of potential mediators/moderators.
引用
收藏
相关论文
共 50 条
  • [1] Does class size matter? An in-depth assessment of the effect of class size in software defect prediction
    Tahir, Amjed
    Bennin, Kwabena E.
    Xiao, Xun
    MacDonell, Stephen G.
    [J]. EMPIRICAL SOFTWARE ENGINEERING, 2021, 26 (05)
  • [2] An In-Depth Study of the Potentially Confounding Effect of Class Size in Fault Prediction
    Zhou, Yuming
    Xu, Baowen
    Leung, Hareton
    Chen, Lin
    [J]. ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2014, 23 (01)
  • [3] Does class size matter
    Ehrenberg, RG
    Brewer, DJ
    Gamoran, A
    Willms, JD
    [J]. SCIENTIFIC AMERICAN, 2001, 285 (05) : 79 - 85
  • [4] DOES CLASS SIZE MATTER
    AKERHIELM, K
    [J]. ECONOMICS OF EDUCATION REVIEW, 1995, 14 (03) : 229 - 241
  • [5] Does Class Size Matter in the University Setting?
    Ake-Little, Ethan
    von der Embse, Nathaniel
    Dawson, Dana
    [J]. EDUCATIONAL RESEARCHER, 2020, 49 (08) : 595 - 605
  • [6] Does class size matter in postgraduate education?
    Gaggero, Alessio
    Haile, Getinet
    [J]. MANCHESTER SCHOOL, 2020, 88 (03): : 489 - 505
  • [7] Does class size matter? Ask a teacher
    VanderVelde, S
    [J]. EDUCATIONAL LEADERSHIP, 1996, 53 (05) : 93 - 93
  • [8] Does class size matter? How, and at what cost?
    Kedagni, Desire
    Krishna, Kala
    Megalokonomou, Rigissa
    Zhao, Yingyan
    [J]. EUROPEAN ECONOMIC REVIEW, 2021, 133
  • [9] EAS DEFECT SIZE: DOES IT MATTER?
    Subramaniam, N.
    Dietz, H.
    [J]. INTERNATIONAL UROGYNECOLOGY JOURNAL, 2017, 28 : S33 - S34
  • [10] Does Size Really Matter? A Comparison of Class Size and Student Outcomes in Introductory Physiology Courses
    Kroeker, Carol Anne Gibbons
    [J]. FASEB JOURNAL, 2017, 31