arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1503.08504cs.SE
收藏

度量聚集技术对缺陷预测的影响研究

Investigating the Impact of Metric Aggregation Techniques on Defect Prediction

Rawad Abou Assi

摘要:

在方法级别收集的代码度量通常使用求和来聚合,以在更高级别捕获系统属性(例如,文件级或包级)。由于缺陷数据通常在这些更高的级别上可用,因此这种聚合允许研究人员构建缺陷预测模型。Landman等人最近的研究结果表明,聚合可能会夸大规模和复杂性度量之间的相关性。在本文中,我们探讨了九种聚合技术对三种类型的代码度量之间的相关性的影响,即代码行,McCabe和Halstead度量。除了求和之外,我们还研究了聚合技术,这些技术是以下指标:(1)集中趋势(平均值和中位数),(2)离散度(标准差和四分位数范围),(3)形状(偏度和峰度),以及(4)收入不平等(泰尔指数和基尼系数)。我们的研究结果表明,使用求和建立的缺陷预测模型优于使用其他聚合技术。我们还发现,更复杂的聚合与简单得多的聚合没有什么不同,并且将所有聚合类型合并到同一模型中并没有比单独使用求和提供显着的改进。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑