Docsity

Estimation technique, Thesis of Software Engineering

Partial preview of the text

Download Estimation technique and more Thesis Software Engineering in PDF only on Docsity!

Cost Estimation Methods

For Software Engineering

By

Andre Ladeira

Dissertation submitted in partial fulfillment of the requirements for the degree

Magister lngeneriae in Engineering Management In the faculty of Engineering at the Rand Afrikaans University

Supervisor: Prof L Pretorius January 2002

Executive Summary

This dissertation summarizes several classes of software cost estimation models

and techniques. Experience to date indicates that expertise-based techniques

are less mature than the other classes of techniques (algorithmic models), but

that all classes of techniques are challenged by the rapid pace of change in

software technology. The primary conclusion is that no single technique is best

for all situations, and that a careful comparison of the results of several

approaches is most likely to produce realistic estimates.

As more pressure on accurate cost estimation increase, research attention is

now directed at gaining a better understanding of the software-engineering

process as wall as constructing and evaluating software cost estimation tools.

This dissertation evaluated four of the most popular algorithmic models used to

estimate software cost (SLIM, COCOMO II, Function points and SLOC)

This dissertation also provides an overview of the baseline cost estimation model

tailored to these new forms of software engineering. The major new modeling

capabilities are an adaptable family of software sizing models, involving Function

Points and Source Lines of Code. These models are serving as a framework for

an extensive current data collection and analysis effort to further refine and

calibrate the model's estimation capabilities.

References ............................... Error! Bookmark not defined.

Chapter 1

Introduction

1.1. Background to the problem

"If there is one management danger zone to mark

above all others, it is software cost estimation."

Robert Glass - Building Software Quality

The reason for the strong emphasis on software engineering cost estimation is

that it provides the vital link between the general concepts and techniques of

economic analysis and the particular world of software engineering. There is no

good way to perform a software cost-benefit analysis, breakeven analysis, or

make-or-buy analysis without some reasonably accurate method of estimating

software engineering costs, and their sensitivity to various product, project, and

environmental factors. Software engineering cost estimation techniques also

provide an essential part of the foundation for good engineering management.

Cost in a project is also due to the requirements for software, hardware and

human resources. The bulk of the cost of software development is due to the

human resources needed, and most cost estimation procedures focus on this

aspect. Most cost estimates are determined in terms of person-months (PM).

1.2. Background literature

As the cost of the project depends on the nature and characteristics of the

project, at any point, the accuracy of the estimate will depend on the amount of

reliable information that is available about the final product [4][27]. When the

project is being initiated or during the feasibility study, the analysts have only

some idea of the data the system will get and produce and the major functionality of the system. There is a great deal of uncertainty about the actual specifications of the system. As the user specifies the system more fully and accurately, the uncertainties are reduced and more accurate cost estimates can be made. Despite the limitations, cost estimation models have matured considerably and generally give fairly accurate estimates.

By far, the project sizing technique that delivers the greatest accuracy and flexibility is function point analysis [24]. Based upon logical, user-defined requirements, function points permit the early sizing of the software problem domain. In addition, the function point methodology presents the opportunity to size a user requirement regardless of the level of detail available. An accurate function point size can be determined from the detailed information included in a thorough user requirements document, or an adequate function point size can be derived from the limited information provided in an early proposal.

An alternative sizing method is counting lines of code [20]. It dependent upon information that is not available until later in the development life cycle. Function points accurately size the stated requirement. If the problem domain is not clearly or fully defined, the project will not be properly sized. When there are missing, brief, or vague requirements, a simple process using basic diagramming techniques with the requesting user can be executed to more fully define the requirements.

In addition to the project size, project complexity must be properly evaluated [Matson]. To some extent, complexity levels are evaluated by 14 general system characteristics:

  • Data communication
  • Distributed data processing
  • Performance
  • Heavily used configuration

The capability to deliver software is based upon a variety of risk factors that influence a development organization's capability to deliver software in a timely and economical fashion. Risk factors include such things as the software processes that will be used, the skill levels of the staff (including user personnel) who will be involved, the automation that will be utilized, and the influences of the physical (development conditions) and business environment (competition and regulatory requirements). In fact, numerous factors influence our ability to timely deliver software with high quality. Categorized in Figure 1.1 are some examples of influencing factors that must be evaluated to produce an accurate estimate.

MANAGEMENT DEFINITION DESIGN

  • Team Dynamics^ • Clearly^ Stated^ • Formal^ Process
  • High Morale^ Requirements^ • Rigorous reviews
  • Project^ Tracking^ • Formal^ Process^ • Design Reuse
  • Project^ Planning^ • Customer^ • Customer
  • Automation^ Involvement^ Involvement
  • Management^ •^ Experience Level^ • Experience Skills (^) • Business Impact Development Staff - Automation BUILD (^) TEST ENVIROMEMENT
  • Code Review^ • Formal Testing^ • New^ Technology
  • Source^ Code^ Methods^ • Automated Tracking (^) • Test Plans Process
  • Project^ tracking^ • Development^ Staff^ • Adequate Training
  • Project^ Planning^ Experience^ • Organizational
  • Automation^ •^ Effective Test^ Dynamics
  • Management^ Tools^ • Certification Skills (^) • Customer Involvement

Figure 1.1: Influencing factors to be evaluated to produce an accurate estimate [19].

This information can be used to predict and explore "what-if' scenarios on future projects (see Figure 1.2).

Estimate Project Completion Access: Size Complexity \ ~Size Influence ,__~ Rate of delivery •,.....~ Complexity Factors Influence Factors

Select a baseline profile

Baseline of Performance (^) Rate ofCreate DeliveryProfile Time to Market Defects

Figure 1.2: Information to be used to predict scenarios on future projects

An organization should develop profiles that reflect the rate of delivery for a project of a given size, complexity, and risk factors [12].

1.3. Problem Statement At the core of the estimating challenge are two issues [14]: the need to understand and express (as early as possible) the engineering problem domain, and the need to understand the capability to deliver the required software solution within a specified environment. Only then it will be able to accurately predict the effort required to deliver a project.

The current engineering problem domain can be defined simply as the scope of the required software. The problem domain must be accurately assessed for its size and complexity. To complicate the situation, experience tells that at the point in time that an initial estimate is required (early in the system's life cycle) it cannot be presumed that all the necessary information is available. Therefore, there must be a rigorous process that permits a further clarification of the problem domain.

An effective estimating model considers three elements: size, complexity, and risk factors. When factored together, they result in a more accurate cost estimate (see Figure 1.3).

Chapter 2

Estimation Processes

2.1. Software Cost

Despite the terminology, software engineering cost does not refer directly to a

monetary value associated with software development. Such a value is almost

impossible to arrive at and not always useful. The questions are "What's the

effort involved?" and "How long will it take?" The answers to these two questions

can then be translated to the monetary value. This leads to the following

definition of software cost.

Software cost consists of three elements [9]:

  • Manpower loading is the number of engineering and management

personnel allocated to the project as a function of time.

  • Effort is defined as the engineering and management effort required to

complete a project, usually measured in units such as person-months. The

types and the levels of skills for the resources influence the cost of the

project.

  • Duration is the amount of time (usually measured in months) required to

complete the project.

Arriving at a cost estimate involves using a number of different factors to try to

determine the overall cost of a system. Deciding which factors to include and

combining them to arrive at the estimate make up the engineering cost

estimation process that is defined as follows [14]:

Direct costs include items such as analysis, design, coding, testing and

integration. Depending on who is doing the engineering and why, software cost

may also include a number of other items such as training, customer support,

installation, level of documentation, configuration management, and quality

assurance.

2.2. Software Cost Estimation Process

A software cost estimation process is the set of techniques and procedures that

an organization uses to arrive at a software cost estimate. Generally there is a

set of inputs to the process (e.g., system requirements) and an output of effort,

manpower loading, and/or duration.

It is very difficult to examine the software cost estimation process without the

overall context of the software development process in use within a given

organization.

The set of procedures, techniques, and standards that an organization uses for

organizing, managing, and controlling software development projects is called

the software process.

Organizations have different software processes, depending on the type of

software they are developing. For many organizations, the development process

is very informal; in other cases it is well documented and stringently monitored.

2.3. Estimation and the Software Process

Cost of a project can be estimated for a number of reasons. Why it is done is an

important factor in determining when and how it is done. The reasons why a cost

estimation process is undertaken include the following [14]:

  • Project approval. For every project there must be a decision by the

organization to undertake the project. Such a decision requires an

estimate of the money and resources required to complete it.

Re-estimates are required throughout the development cycle regardless of why

the estimate is done. As a project progresses, more information is available on

the product and the process being used to develop it. This information can be

used to increase the accuracy and detail of the estimate.

2.4. Inputs and Outputs to the Estimation Process

The software cost estimation process computes a set of outputs as a function of

a set of inputs. The inputs to the estimation process depend on when the

estimate is being performed. Very early estimates are necessarily based on

sparse and incomplete data regarding the project and the development process.

Preliminary estimates are needed before requirements are known or architecture

has been defined [22]. Such estimates will necessarily be based on sketchy data

and will not have a high degree of accuracy. Estimates performed late in the

development cycle are based on a much wider set of information. Computing

cost to completion late in the development cycle allows a great deal of project

and process information to be used. Given that more information is available,

more detailed estimates can be made, which have a much greater degree of

accuracy than the initial estimates.

Most models of cost estimation view the estimation process as being a function

computed from a set of cost drivers. These drivers are assumed to be the

characteristics of a system that determine the final cost of production. In most of

the advocated cost estimation techniques, the primary cost driver is assumed to

be the software requirements [2][3][1 0]. In this model of software cost estimation

(illustrated in Figure 2.1 ), the requirements are the primary input to the process

and form the basis for the estimate. The estimate is then adjusted according to a

number of other cost drivers (such as experience of personnel and complexity of

system) to arrive at the final estimate.

In this classical view, the effort, duration, and loading are computed as fixed numbers (perhaps with tolerances), or a set of relationships between the values is given, allowing managers to trade off costs in order to minimize any of the three values.

Cost drivers

Requirement

Other cost drivers

Software cost estimation process

Figure 2.1: Classical view of software estimation process [22]

Loading

In fact, the cost estimation process can be much more complex than that portrayed in Figure 2.1. There is interdependency between many items of information, all of which are relevant to the cost estimation process (Figure 2.2).

Many of the data items that are inputs to the cost estimation process are modified and output by the process. Thus, rather than viewing the cost estimation process as a function of the requirements, it is often more accurate to view this process as trying to satisfy a set of constraints. The inputs to the system are a set of constraints on the requirements, software architecture, financial resources, etc., while the outputs are a cost estimate and a set of assumptions that satisfy all the constraints.

This view allows the constraints to be imposed on any of the factors that affect the cost. These factors range far beyond requirements to include issues such as delivery date, finances and software process.

Requirements are viewed as constraints that must be satisfied. In a few cases, these requirements are fixed, complete, and correct. In most cases, however,

constraint that the standard WBS must be used for a project. The estimating

process will then tailor the WBS to the specific project, adding sufficient detail.

For example, one situation where constraints to the software process affect the

estimation process is the requirement to develop according to the ISO 9000

standard. Significant cost is incurred by adhering to this standard; for small

changes, ISO 9000 can actually be the dominant cost factor. When estimating a

system developed to this standard, estimators must be aware of the cost incurred

by use of the standard.

Cost drivers

Cons1raints

Other inputs

Vaque requirements Other cos drivers

Sofhvare cost estimation process

Figure 2.2: Actual cost estimation process [22]

Less vaque (and modified) requirements

Loading

Contingency Tentative WBS Less fuzzy architecture

Aside from the various constraints, other factors that must be included as part of

the estimation process are the risks associated with the project. These risks

could include, for example, dependency on outside contractors, lack of

experience in the application domain, etc. These risk factors should be identified

as early as possible in order include them in the decision making and project

management processes.

2.5. The Estimation Process

An estimate is arrived at by taking the identified constraints, applying the

estimation process, and generating results that satisfy all the constraints. A

variety of techniques are used by different organizations to arrive at these

estimates. The processes used can be classified as either model based or

analogy based.

Model-based estimation builds a costing model of system development based on

the characteristics of the system being built, the process being used to build it,

and it's the development environment.

A model can be a formal mathematical model or a set of informal guidelines used

by an estimator. Informal models are used by experienced developers who have

gained sufficient knowledge about system development by working on previous

projects. The informal model used by such an estimator is expressed as a set of

"rules of thumb" or, at an even more primitive level, as a "gut feel" [30]. When

questioned as to how they developed their model and how they apply it,

estimators are usually unable to say exactly what it is they do. It appears to be an

issue of gaining the required experience in order to arrive at accurate estimates.

Formal models attempt to quantify all inputs to the cost estimation process, and

then apply a set of equations that describes the relationships between the inputs

and the outputs of the cost estimation process. The equations are developed

through analysis of historical data and must be calibrated to each individual

development environment. The best known formal models are Boehm's

COCOMO II [2][4] function points, and Putnam's application of Rayleigh curves

to the development process [27].