Skip to main content
QUICK REVIEW

[Paper Review] The Impact of Correlated Metrics on Defect Models

Jirayus Jiarpakdee, Chakkrit Tantithamthavorn|arXiv (Cornell University)|Jan 31, 2018
Software Engineering ResearchComputer Science81 references21 citations
TL;DR

This study investigates the impact of correlated software metrics on defect model interpretation, finding that correlated metrics distort metric ranking across 9 interpretation techniques. Removing correlated metrics significantly improves ranking consistency—except for ANOVA Type-I—while negligibly affecting model performance, leading to the recommendation that researchers eliminate correlated metrics and avoid ANOVA Type-I in defect modeling studies.

ABSTRACT

Defect models are analytical models that are used to build empirical theories that are related to software quality. Prior studies often derive knowledge from such models using interpretation techniques, such as ANOVA Type-I. Recent work raises concerns that prior studies rarely remove correlated metrics when constructing such models. Such correlated metrics may impact the interpretation of models. Yet, the impact of correlated metrics in such models has not been investigated. In this paper, we set out to investigate the impact of correlated metrics, and the benefits and costs of removing correlated metrics on defect models. Through a case study of 15 publicly-available defect datasets, we find that (1) correlated metrics impact the ranking of the highest ranked metric for all of the 9 studied model interpretation techniques. On the other hand, removing correlated metrics (2) improves the consistency of the highest ranked metric regardless of how a model is specified for all of the studied interpretation techniques (except for ANOVA Type-I); and (3) negligibly impacts the performance and stability of defect models. Thus, researchers must (1) mitigate (e.g., remove) correlated metrics prior to constructing a defect model; and (2) avoid using ANOVA Type-I even if all correlated metrics are removed.

Motivation & Objective

  • To investigate how correlated software metrics impact the interpretation of defect models in software engineering.
  • To evaluate the benefits and costs of removing correlated metrics on model consistency, performance, and stability.
  • To assess the reliability of widely used interpretation techniques—especially ANOVA Type-I—when correlated metrics are present.
  • To provide actionable guidelines for researchers to improve the validity of empirical software quality studies.

Proposed method

  • Applied variable clustering (VarClus) and variance inflation factor (VIF) to detect and remove correlated metrics in 15 publicly available defect datasets.
  • Constructed logistic regression and random forest models using both mitigated (no correlated metrics) and non-mitigated datasets.
  • Employed 9 model interpretation techniques: ANOVA Type-I, ANOVA Type-II (Wald, Likelihood Ratio, F, Chi-square), and scaled/non-scaled Gini and Permutation Importance.
  • Compared model performance using AUC, F-measure, and Matthew’s Correlation Coefficient (MCC), and assessed stability across datasets.
  • Used a case study approach across 15 defect datasets spanning open-source and proprietary systems to evaluate generalizability.

Experimental results

Research questions

  • RQ1RQ1: How do correlated metrics affect the ranking of metrics in defect models across different interpretation techniques?
  • RQ2RQ2: What are the benefits of removing correlated metrics on the consistency of metric rankings?
  • RQ3RQ3: What is the impact of removing correlated metrics on the performance and stability of defect models?
  • RQ4RQ4: How do different model interpretation techniques (e.g., ANOVA Type-I vs. Type-II) behave when correlated metrics are present or removed?

Key findings

  • Correlated metrics significantly distort the ranking of the highest-ranked metric across all 9 interpretation techniques, including ANOVA Type-I, Type-II, Gini, and Permutation Importance.
  • Removing correlated metrics improves the consistency of the highest-ranked metric across all interpretation techniques—except for ANOVA Type-I, which remains sensitive to metric ordering.
  • The performance of defect models, measured by AUC, F-measure, and MCC, is negligibly affected by removing correlated metrics, indicating minimal cost to model stability.
  • The consistency of metric rankings is substantially enhanced when correlated metrics are removed, suggesting more reliable and reproducible empirical findings in software quality research.
  • ANOVA Type-I is found to be fundamentally unreliable for model interpretation, even when correlated metrics are removed, and should be avoided in favor of more robust alternatives.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.