login

An investigation of the effect of module size on defect prediction using static measures

ACM SIGSOFT Software Engineering NotesPublished 15 May 2005
A. Güneş Koru, Hongfang Liu
Citations92

TL;DR

It is suggested that quality assurance activities can be guided even better if defect prediction is performed by using data that belong to larger modules, as measured by lines of code (LOC).

Abstract

We used several machine learning algorithms to predict the defective modules in five NASA products, namely, CM1, JM1, KC1, KC2, and PC1. A set of static measures were employed as predictor variables. While doing so, we observed that a large portion of the modules were small, as measured by lines of code (LOC). When we experimented on the data subsets created by partitioning according to module size, we obtained higher prediction performance for the subsets that include larger modules. We also performed defect prediction using class-level data for KC1 rather than the method-level data. In this case, the use of class-level data resulted in improved prediction performance compared to using method-level data. These findings suggest that quality assurance activities can be guided even better if defect prediction is performed by using data that belong to larger modules.

Keywords

Computer ScienceDecision Sciences