A Case For Software Estimation: Effort (Size X Complexity) Productivity
A Case For Software Estimation: Effort (Size X Complexity) Productivity
A Case For Software Estimation: Effort (Size X Complexity) Productivity
Introduction:
A recent search of the World Wide Web identified over 2100 sites that describe over
5000 reasons that software projects fail, ranging from the poor use of technology to lack of
communication to management inattention. While these factors can contribute to the failure of a
project, the most important reasons include
Almost all software‐intensive projects start with the potential for some degree of failure.
The first risk of any software project is rooted in the initial estimate used to forecast needed
resources. The basic equation traditionally used to estimate the project effort is:
1
Summary:
At the beginning of any project the three variables in the equation are unknown. Over the
years, estimation methods and models that significantly lower the initial estimation risks have
been developed. However, failure to realize the potential imprecise nature of initial estimates and
effectively manage and control the risks associated with them certainly is a major contributor to
downstream problems, including project failure. If used properly, estimates can provide basic
constraints that potentially limit the options available when planning a project. The estimates
also identify the resource limitations that must be considered when scheduling a project, which
in turn may dictate the selection of methods and tools. Budget and resource constraints affect a
project’s schedule, the phasing of activities, the logical relationships of the work activities, and
the structuring and packaging of the products. In addition, the estimate determines the options
available to increase the quality of the products, either precluding or enabling the use of practices
such as structured inspections or enhanced testing.
Software estimation methods have been applied with varying degrees of success, to small
and large projects. Popular estimation methods include: Analogy; Compare project with past
similar projects Expert Judgment; Consult with one or more experts Top‐down estimation; A
hierarchical decomposition of the system into progressively smaller components is used to
estimate the size of a software component Bottom‐up estimation; Individuals assess each
component; estimates are summed to calculate the total estimate Design to Cost; Uses expert
judgment to determine how much functionality can be provided for a given budget Parametric
models; Perform overall estimate using design parameters and mathematical algorithms As
discussed earlier, one of the main inputs to software development effort is software size. If size is
Stimated correctly, the effort estimate will be realistic and will translate to a realistic cost
estimate. In the physical world, size is a measure of volume or mass. In the software world, size
is a measure of functionality. Various expressions of size include measures such as lines of code,
number of features, or functions, function points and their derivatives, SEER function‐based
sizing, use cases, and objects.
Additionally, the amount of rework of existing systems is a key size measure for
modifications. Software size is the main driver of software development effort, cost and schedule
via parametric models, and base productivity measures. An effective software estimate provides
the information needed to design a workable software development plan. Many elements are
involved in determining the structure of a project, including requirements, architecture, quality
provisions, and staffing mix. Perhaps the most important element in the success or failure of a
project is the initial estimate of its scope, in terms of both the time and cost that will be required.
The initial estimate drives every aspect of the project, constrains the actions that can be taken in
the development or upgrade of a product, and limits available options.
Although many people think they can estimate project scope on their engineering or
management experience, most offthe‐cuff estimates are incorrect and are most often based on
simple assumptions and over‐optimism, or worse, are made to accord with what others what to
hear. Needless to say, such estimates often lead to disaster.
2
A sound and reliable estimate is the linchpin of a realistic software project plan. The
assumptions, requirements, and projections on which the estimate is based allow you to plan a
project or define a product with a realistic understanding of the limits that constrain what can
actually be done. A software estimation process that is integrated with the software development
process can help projects establish realistic and credible plans to implement the project
requirements and satisfy commitments.
It also can support other management activities by providing accurate and timely
planning information. Any software project that wants to be successful requires realistic, credible
plans that describe how the project will meet specified objectives, and credible plans must be
based on accurate estimates of the required effort, duration, and cost of the project. Realistic
plans will also describe how the resources that are required to undertake the initiative in
accordance with the schedule will be secured. The problems inherent in accurately estimating the
resources required to develop software have been understood and have received significant
attention for the past 20 years, and many tools and methods have been developed to address
them. As a result, many people have high expectations that the software delivery process has
been improved such that these problems have been removed altogether. But the tools are not
used widely enough, and overzealous managers still attempt to misuse them to justify
unreasonable plans that result in insufficient resources to develop a quality product on time and
within budget.
A software project estimate is the most knowledgeable statement that can be made at a
particular point in time regarding effort, cost, schedule and risk. A complete estimate covers
definitions, uncertainties, ground rules, and assumptions. Many project managers have
unrealistic expectations about estimates. The definition of the verb estimate is to produce a
statement of the approximate value of some quantity. Estimates are based upon incomplete,
imperfect knowledge and assumptions about the future. For these reasons, many estimates of
software costs tend to be too low due to omissions of important product functions and project
activities. Most importantly, however, all estimates have uncertainty. There is no such thing as a
precise, single‐value estimate. Managers should always ask how large the uncertainty of an
estimate is. A manager can use the size of this uncertainly in conjunction with other factors such
as perceived risks, funding constraints, and business objectives to make decisions about a
project. Cost estimates are projections of required effort, time and staffing levels. Because all
estimates, particularly those made at the beginning of a project, are based on assumptions, they
should be considered probabilistic. Cost estimates in particular should provide a range with an
indication of accuracy, i.e., least, probable, and most, with the least and most values representing
the upper and lower bounds of the projected cost.
Ideally an estimate should be produced using a process, such as the ten‐step process
described in the book Software Sizing, Estimation, and Risk Management by Daniel D. Galorath
and Michael W. Evans.\
3
Estimating Software Size:
An accurate estimate of software size is an essential element in the calculation of
estimated project costs and schedules. The fact that these estimates are required very
early on in the project (often while a contract bid is being prepared) makes size
estimation a formidable task.
Initial size estimates are typically based on the known system requirements. You
must hunt for every known detail of the proposed system, and use these details to develop
and validate the software size estimates. In general, you present size estimates as lines of
code (KSLOC or SLOC) or as function points. There are constants that you can apply to
convert function points to lines of code for specific languages, but not vice versa. If
possible, choose and adhere to one unit of measurement, since conversion simply
introduces a new margin of error into the final estimate.
Regardless of the unit chosen, you should store the estimates in the metrics
database. You will use these estimates to determine progress and to estimate future
projects. As the project progresses, revise them so that cost and schedule estimates
remain accurate. The following section describes techniques for estimating software size.
Developer Opinion Developer opinion is otherwise known as guessing. If you are an
experienced developer, you can likely make good estimates due to familiarity with the
type of software being developed.
1. Decompose the system until the major functional components have been identified
(call this a function block, or software component).
2. Multiply the number of function blocks by the expected size of a function block to
get a size estimate.
4
Compute the expected size of a function block and/or a sub function with data from
Previous projects that use similar technologies and are of similar scope.If there are no
previous developments on which to base expected sizes, use the values 41.6 KSLOC and
4.16 KSLOC for the expected size of function blocks and sub functions respectively.
These values were presented by Britchner and Gaffney (1985) as reasonable sizes for
aerospace projects (real-time command and control systems).
1. external inputs - data or control inputs (input files, tables, forms, screens, messages,
etc.) to the system
4. external interfaces- libraries or programs which are passed into and out of thesystem
(I/O routines, sorting procedures, math libraries, run-time libraries, etc.)
5. internal data files - groupings of data stored internally in the system (entities,
internal control files, directories)
3. Multiply each occurrence by its complexity weight, and total the results to
obtain a function count. Complexity weights are listed in below Figure
5
4. Multiply the function count by a value adjustment multiplier (VAM) to obtain the
function point count. The VAM is calculated as follows:
(i). The rating reflects how each factor affects the software size.
1. data communications
2. distributed functions
3. performance
4. heavily used operational configuration
5. transaction rate
6. on-line data entry
7. design for end user efficiency
8. on-line update of logical internal files
9. complex processing
10. reusability of system code
11. installation ease
12. operational ease
13. multiple sites
14. ease of change
6
Assign the rating of 0 to 5 according to these values:
0 - factor not present or has no influence
1 - insignificant influence
2 - moderate influence
3 - average influence
4 - significant influence
5 - strong influence
Function point analysis is extremely useful for the transaction processing systems
that make up the majority of MIS projects. However, it does not provide an accurate
estimate when dealing with command and control software, switching software, systems
software or embedded systems.
To learn more about function point analysis, consider joining the International
Function Point Users Group (IFPUG). This group has developed the Function Point
Counting Practices Manual, which describes how to apply function points to software
development.
Count Externals
Counting externals is the application of function point analysis (presented in the
previous section) to real-time embedded systems. Instead of a function point count, the
end result is an estimated size in KSLOC. This is based on estimated counts of the
following externals (defined in the previous section):
external inputs
external outputs
external inquiries
external interfaces
The procedure for estimating the size of a new project in KSLOC is as follows:
1. Identify the number of program externals for each major program component
(function block or software component). Either estimate all four externals, or
work with these three externals: inputs, outputs, and inquiries.
2. Apply one of the following formulas:
7
Combining Estimates:
A good method for improving the accuracy of estimates is to estimate several
ways, and then calculate a weighted average of the estimates. For example, to average
four estimates obtained by different techniques:
1. Assign each estimate a weight (such that all the weights sum to 1.0). A small weight
indicates confidence in the estimate while a large weight indicates uncertainty in the
estimate.
Figure C.2 illustrates the calculation of a combined size estimate from four existing
estimates for a result of 129 KSLOC.
8
The cost of developing the software is simply the estimated effort, multiplied by
presumably fixed labour costs. For this reason, we will concentrate on estimating the
development effort, and leave the task of converting the effort to dollars to each
company.
Estimating Effort:
There are two basic models for estimating software development effort (or cost):
Holistic and activity-based. The single biggest cost driver in either model is the
estimated project size.
Holistic models are useful for organizations that are new to software
development, or that do not have baseline data available from previous projects to
determine labour rates for the various development activities.
Basic COCOMO
COCOMO comes in three levels (basic, intermediate, and detailed) with each
providing progressively more accurate estimates. This section gives a brief overview of
basic COCOMO.
You would apply the organic mode to projects that have a small, experienced
development team which is developing familiar applications in a familiar environment.
You apply the embedded mode to large projects, especially when the project is unfamiliar
or there are severe time constraints.
9
The semi-detached mode is for projects somewhere in between.
Effort is presented in person months, size is estimated in KSLOC, and time is estimated
in months. For more details on the basic COCOMO model, and the intermediate and
detailed models, refer to Barry Boehm's book, Software Engineering Economics.
Figure
The activity-based model uses data from the metrics database to determine the
labour rates for the various development activities. For this reason, you can only apply it
once the metrics program is established and there is a baseline from which to work. In
this document, the labour rate is defined as PH/SLOC (PH is person hours). Using this
definition, the formula for estimating the cost of a project is as follows:
where (PH / SLOC)i,j is the labour rate for activity i and code class j (j equals new or
reused), and (SLOC) j is the estimated size (in SLOC) of code for class j. The resulting
effort is given in person hours.
There are many tools on the market (such as Timeline, MacProject, OnTarget,
etc.) which help develop Gantt and PERT charts to schedule and track projects. These
programs are most effective when you break the project down into a Work Breakdown
Structure (WBS), and assign estimates of effort and staff to each task in the WBS.
10
Web Reference :
http://en.wikipedia.org/wiki/Software-estimation/
http://findarticles.com/p/articles/SE_qa4041/is_200201/ai_n9068422/
http://spm.microsoft.com/en-us/library/ms191440.aspx
11