Think Locally, Act Globally - Improving Defect and Effort Prediction Models

Nicolas Bettenburg bio photo By Nicolas Bettenburg

Summary

Much research energy in software engineering is focused on the creation of effort and defect prediction models. Such models are important means for practitioners to judge their current project situation, optimize the allocation of their resources, and make informed future decisions. However, soft- ware engineering data contains a large amount of variability. Recent research demonstrates that such variability leads to poor fits of machine learning models to the underlying data, and suggests splitting datasets into more fine-grained subsets with similar properties. In this paper, we present a comparison of three different approaches for creating statistical regression models to model and predict software defects and development effort. Global models are trained on the whole dataset. In contrast, local models are trained on subsets of the dataset. Last, we build a global model that takes into account local characteristics of the data. We evaluate the performance of these three approaches in a case study on two defect and two effort datasets. We find that for both types of data, local models show a significantly increased fit to the data compared to global models. The substantial improvements in both relative and absolute prediction errors demonstrate that this increased goodness of fit is valuable in practice. Finally, our experiments suggest that trends obtained from global models are too general for practical recommendations. At the same time, local models provide a multitude of trends which are only valid for specific subsets of the data. Instead, we advocate the use of trends obtained from global models that take into account local characteristics, as they combine the best of both worlds.

Download the Full Paper

The full paper is available for download, if you want to learn more about .

Citation

If you would like to cite the research in your own work, please use the following citation:

@inproceedings{bettenburg:msr2012,
  author="Nicolas Bettenburg and Meiyappan Nagappan and Ahmed E. Hassan",
  booktitle="MSR '12: Proceedings of the 9th Working Conference on Mining Software Repositories",
  title="Think Locally, Act Globally: Improving Defect and Effort Prediction Models",
  year="2012",
  pages="60-69",
  publisher="IEEE",
  location="Zürich, Switzerland"
}

Legal Disclaimer

This material is presented to ensure timely dissemination of scholarly and technical work. Copyright and all rights therein are retained by authors or by other copyright holders. All persons copying this information are expected to adhere to the terms and constraints invoked by each author’s copyright. In most cases, these works may not be reposted without the explicit permission of the copyright holder.