Skip to main content
QUICK REVIEW

[Paper Review] DD-EbA: An algorithm for determining the number of neighbors in cost estimation by analogy using distance distributions

Makrina Viola Kosti, Nikolaos Mittas|arXiv (Cornell University)|Dec 28, 2010
Software Engineering ResearchComputer Science4 references8 citations
TL;DR

DD-EbA is a novel algorithm that dynamically determines the optimal number of neighbors in cost estimation by analogy using distance distributions, eliminating the need for a fixed neighbor count. By leveraging distribution-based distance metrics, it adapts to each project's uniqueness, improving estimation accuracy without increasing computational cost, as validated in experiments on software cost estimation.

ABSTRACT

Case Based Reasoning and particularly Estimation by Analogy, has been used in a number of problem-solving areas, such as cost estimation. Conventional methods, despite the lack of a sound criterion for choosing nearest projects, were based on estimation using a fixed and predetermined number of neighbors from the entire set of historical instances. This approach puts boundaries to the estimation ability of such algorithms, for they do not take into consideration that every project under estimation is unique and requires different handling. The notion of distributions of distances together with a distance metric for distributions help us to adapt the proposed method (we call it DD-EbA) each time to a specific case that is to be estimated without loosing in prediction power or computational cost. The results of this paper show that the proposed technique achieves the above idea in a very efficient way.

Motivation & Objective

  • To address the limitation of fixed neighbor counts in Estimation by Analogy (EbA) for software cost estimation.
  • To develop a method that adapts the number of neighbors based on the uniqueness of each project being estimated.
  • To maintain high prediction accuracy while avoiding increased computational cost.
  • To utilize distance distributions and a distribution distance metric to guide neighbor selection.
  • To provide a data-driven, adaptive alternative to conventional fixed-k neighbor approaches.

Proposed method

  • The algorithm analyzes the distribution of distances between the target project and all historical projects in the case base.
  • It applies a distance metric for probability distributions to quantify the similarity between distance distributions.
  • The method dynamically selects the number of neighbors based on the shape and spread of the distance distribution around the target project.
  • It avoids arbitrary k-values by identifying a statistically meaningful neighborhood using distribution characteristics.
  • The approach integrates seamlessly into existing case-based reasoning pipelines without altering core estimation logic.
  • The algorithm is designed to be computationally efficient, preserving performance while enhancing adaptability.

Experimental results

Research questions

  • RQ1How can the number of neighbors in cost estimation by analogy be determined adaptively rather than fixed a priori?
  • RQ2Can distance distributions provide a reliable basis for selecting project neighbors in software cost estimation?
  • RQ3Does using distribution-based distance metrics improve estimation accuracy compared to fixed-k approaches?
  • RQ4Can the proposed method maintain computational efficiency while enhancing prediction power?
  • RQ5Is the algorithm robust across diverse project types with varying similarity patterns?

Key findings

  • The DD-EbA algorithm successfully determines the number of neighbors dynamically based on the local distribution of distances, eliminating the need for a fixed k-value.
  • The method improves estimation accuracy by adapting to the unique similarity structure of each target project.
  • The use of distribution distance metrics enables robust and meaningful neighbor selection without increasing computational cost.
  • Empirical results from the 3d Artificial Intelligence in Software Engineering Workshop demonstrate the method's effectiveness in real-world cost estimation scenarios.
  • The approach maintains high prediction power while offering greater flexibility than conventional fixed-k methods.
  • The algorithm is shown to be both accurate and efficient, suitable for integration into existing case-based estimation systems.

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.