Predicting defect densities in source code files with decision tree learners

TitlePredicting defect densities in source code files with decision tree learners
Publication TypeConference Paper
Year of Publication2006
AuthorsKnab, P, Pinzger, M, Bernstein, A
Secondary TitleProceedings of the 2006 international workshop on Mining software repositories
Pagination119–125
PublisherACM
Place PublishedNew York, NY, USA
ISBN Number1-59593-397-2
Keywordschange analysis, data mining, decision tree learner, defect density, defect prediction, mozilla, prediction, release history, scm, source code, version control
Abstract

With the advent of open source software repositories the data available for defect prediction in source files increased tremendously. Although traditional statistics turned out to derive reasonable results the sheer amount of data and the problem context of defect prediction demand sophisticated analysis such as provided by current data mining and machine learning techniques.In this work we focus on defect density prediction and present an approach that applies a decision tree learner on evolution data extracted from the Mozilla open source web browser project. The evolution data includes different source code, modification, and defect measures computed from seven recent Mozilla releases. Among the modification measures we also take into account the change coupling, a measure for the number of change-dependencies between source files. The main reason for choosing decision tree learners, instead of for example neural nets, was the goal of finding underlying rules which can be easily interpreted by humans. To find these rules, we set up a number of experiments to test common hypotheses regarding defects in software entities. Our experiments showed, that a simple tree learner can produce good results with various sets of input data.

URLhttp://doi.acm.org/10.1145/1137983.1138012
DOI10.1145/1137983.1138012
Full Text
AttachmentSize
PDF icon 119Predicting.pdf671.54 KB