Article ID Journal Published Year Pages File Type
461061 Journal of Systems and Software 2014 18 Pages PDF
Abstract

•We propose an approach for predicting defects using Granger causality tests.•We extend a public dataset to evaluate defect prediction techniques.•We describe a first study to evaluate the feasibility of our approach.•We report a second study to evaluate our model for triggering defects alarms.•We compare our approach with baselines that are not based on causality tests.

In this paper, we propose a defect prediction approach centered on more robust evidences towards causality between source code metrics (as predictors) and the occurrence of defects. More specifically, we rely on the Granger causality test to evaluate whether past variations in source code metrics values can be used to forecast changes in time series of defects. Our approach triggers alarms when changes made to the source code of a target system have a high chance of producing defects. We evaluated our approach in several life stages of four Java-based systems. We reached an average precision greater than 50% in three out of the four systems we evaluated. Moreover, by comparing our approach with baselines that are not based on causality tests, it achieved a better precision.

Related Topics
Physical Sciences and Engineering Computer Science Computer Networks and Communications
Authors
, , , , ,