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

软件故障预测模型中尺寸效应的再认识

Revisiting the size effect in software fault prediction models

Amjed Tahir, Kwabena E. Bennin, Stephen G. MacDonell, Stephen Marsland

摘要:

背景技术背景:在面向对象(OO)的软件系统中,类大小已被公认为具有一定的工件特性,通过度量捕获,和故障倾向之间的关系的间接影响,因此,它是建议在设计故障预测模型时,控制大小。目的:使用强大的统计方法,以评估是否有证据表明任何真正的影响,类的大小对故障预测模型。方法:我们研究了潜在的调解和适度的影响类大小之间的关系面向对象的指标和故障数。我们采用回归分析和基于自举的方法来研究两个广泛使用的数据集,包括17个系统的中介和缓和效果。结果:我们没有发现有力的证据表明,一个显着的中介或适度的影响类的大小之间的关系OO指标和故障。特别是,大小似乎有一个更显着的中介效果CBO和扇出比其他指标,虽然证据是不一致的,在所有检查系统。另一方面,大小似乎有一个显着的调节作用,WMC和CBO在大多数的系统检查。再次,所提供的证据是不一致的,在所有检查的系统结论:我们无法确认类的大小有一个显着的中介或适度的影响OO指标和故障的数量之间的关系。我们认为,类大小并不能完全解释OO指标和故障数量之间的关系,它并不总是影响这些关系的强度/幅度。我们建议研究人员在构建预测模型时考虑班级规模的潜在中介和调节效应,但这应该针对每个系统进行独立检查。

英文摘要:

BACKGROUND: In object oriented (OO) software systems, class size has been acknowledged as having an indirect effect on the relationship between certain artifact characteristics, captured via metrics, and faultproneness, and therefore it is recommended to control for size when designing fault prediction models. AIM: To use robust statistical methods to assess whether there is evidence of any true effect of class size on fault prediction models. METHOD: We examine the potential mediation and moderation effects of class size on the relationships between OO metrics and number of faults. We employ regression analysis and bootstrapping-based methods to investigate the mediation and moderation effects in two widely-used datasets comprising seventeen systems. RESULTS: We find no strong evidence of a significant mediation or moderation effect of class size on the relationships between OO metrics and faults. In particular, size appears to have a more significant mediation effect on CBO and Fan-out than other metrics, although the evidence is not consistent in all examined systems. On the other hand, size does appear to have a significant moderation effect on WMC and CBO in most of the systems examined. Again, the evidence provided is not consistent across all examined systems CONCLUSION: We are unable to confirm if class size has a significant mediation or moderation effect on the relationships between OO metrics and the number of faults. We contend that class size does not fully explain the relationships between OO metrics and the number of faults, and it does not always affect the strength/magnitude of these relationships. We recommend that researchers consider the potential mediation and moderation effect of class size when building their prediction models, but this should be examined independently for each system.

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

↑