Computer Science > Software Engineering
[Submitted on 29 Mar 2015]
Title:Investigating the Impact of Metric Aggregation Techniques on Defect Prediction
View PDFAbstract:Code metrics collected at the method level are often aggregated using summation to capture system properties at higher levels (e.g., file- or package-level). Since defect data is often available at these higher levels, this aggregation allows researchers to build defect prediction models. Recent findings by Landman et al. indicate that aggregation is likely to inflate the correlation between size and complexity metrics. In this paper, we explore the effect of nine aggregation techniques on the correlation between three types of code metrics, namely Lines of Code, McCabe, and Halstead metrics. In addition to summation, we study aggregation techniques that are measures of: (1) central tendency (average and median), (2) dispersion (standard deviation and inter-quartile range), (3) shape (skewness and kurtosis), and (4) income inequality (Theil index and Gini coefficient). Our results show that defect prediction models built using summation outperform those built using other aggregation techniques. We also find that more complex aggregations are no different than much simpler ones and that incorporating all aggregation types in the same model does not provide a significant improvement over using summation alone.
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.