Skip to main navigation Skip to search Skip to main content

Study on the correlations between program metrics and defect rate by a controlled experiment

  • Fuqun Huang*
  • , Bin Liu
  • *Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

Abstract

Software defect prediction is an important approach that helps practitioners to manage software projects effectively. A large numbers of the existing models are based on program metrics. But how much exactly these metrics can account for defect rate still remains a controversial problem. As is known to all, programming is a knowledge-intensive activity. The content of task and the expertise of individuals influence defect rates a lot. Thus, if these interference factors are not well controlled, it's hard to draw any conclusions on how program metrics affect defect rate alone. There is extremely limited evidence produced by controlled experiments on this problem. This study bridges the gap by conducting a controlled experiment, in which the programming problem is solved by subjects with the same background of academic performance, programming training and programming experience. Fifty four subjects participated in the experiment, with 51 different versions of programs produced in the same language C. The results demonstrate that program metrics can only account for 27.6% variability of defect rate.

Original languageEnglish
Pages (from-to)114-120
Number of pages7
JournalJournal of Software Engineering
Volume7
Issue number3
DOIs
StatePublished - 2013

Keywords

  • Controlled experiment
  • Defect prediction
  • Human factors
  • Program metrics

Fingerprint

Dive into the research topics of 'Study on the correlations between program metrics and defect rate by a controlled experiment'. Together they form a unique fingerprint.

Cite this