The confounding effect of class size on the validity of object-oriented metrics

被引:240
作者
Emam, KE
Benlarbi, S
Goel, N
Rai, SN
机构
[1] Natl Res Council Canada, Inst Informat Technol, Ottawa, ON K1A 0R6, Canada
[2] Cistel Technol, Nepean, ON K2E 7L5, Canada
[3] St Jude Childrens Res Hosp, Dept Biostat & Epidemiol, Memphis, TN 38105 USA
关键词
object-oriented metrics; software quality; metrics validation; validation methodology; object-oriented quality; coupling metrics; inheritance metrics; cohesion metrics;
D O I
10.1109/32.935855
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Much effort has been devoted to the development and empirical validation of object-oriented metrics. The empirical validations performed thus far would suggest that a core set of validated metrics is close to being identified. However, none of these studies allow for the potentially confounding effect of class size. In this paper, we demonstrate a strong size confounding effect and question the results of previous object-oriented metrics validation studies. We first investigated whether there is a confounding effect of class size in validation studies of object-oriented metrics and show that, based on previous work, there is reason to believe that such an effect exists. We then describe a detailed empirical methodology for identifying those effects. Finally, we perform a study on a large C++ telecommunications framework to examine if size is really a confounder. This study considered the Chidamber and Kemerer metrics and a subset of the Lorenz and Kidd metrics. The dependent variable was the incidence of a fault attributable to a field failure (fault-proneness of a class). Our findings indicate that, before controlling for size, the results are very similar to previous studies: The metrics that are expected to be validated are indeed associated with fault-proneness. After controlling for size, none of the metrics we studied were associated with fault-proneness anymore. This demonstrates a strong size confounding effect and casts doubt on the results of previous object-oriented metrics validation studies. It is recommended that previous validation studies be reexamined to determine whether their conclusions would still hold after controlling for size and that future validation studies should always control for size.
引用
收藏
页码:630 / 650
页数:21
相关论文
共 111 条
[1]  
Abreu F.B., 1994, P 4 INT C SOFTWARE Q, V186, P1
[2]   Evaluating the impact of Object-Oriented design on software quality [J].
Abreu, FBE ;
Melo, W .
PROCEEDINGS OF THE 3RD INTERNATIONAL SOFTWARE METRICS SYMPOSIUM, 1996, :90-99
[3]  
ALMEIDA M, 1998, P 20 INT C SOFTW ENG, P473
[4]  
[Anonymous], 1999, EMPIRICAL SOFTWARE E
[5]  
[Anonymous], P 19 INT C SOFTW ENG
[6]  
[Anonymous], 1996, Software Metrics
[7]  
[Anonymous], 1993, Proc.
[8]  
[Anonymous], 1982, CASE CONTROL STUDIES
[9]  
[Anonymous], 1991, 9126 ISOIEC
[10]   A PHILOSOPHY FOR SOFTWARE MEASUREMENT [J].
BAKER, AL ;
BIEMAN, JM ;
FENTON, N ;
GUSTAFSON, DA ;
MELTON, A ;
WHITTY, R .
JOURNAL OF SYSTEMS AND SOFTWARE, 1990, 12 (03) :277-281