









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Effective software project estimation is one of the most challenging and important activities in software development. Proper project planning and control is not possible without a sound and reliable estimate. As a whole, the software industry doesn’t estimate projects well and doesn’t use estimates appropriately. We suffer far more than we should as a result and we need to focus some effort on improving the situation.
Under-estimating a project leads to under-staffing it (resulting in staff burnout), under-scoping the quality assurance effort (running the risk of low quality deliverables), and setting too short a schedule (resulting in loss of credibility as deadlines are missed). For those who figure on avoiding this situation by generously padding the estimate, over-estimating a project can be just about as bad for the organization! If you give a project more resources than it really needs without sufficient scope controls it will use them. The project is then likely to cost more than it should (a negative impact on the bottom line), take longer to deliver than necessary (resulting in lost opportunities), and delay the use of your resources on the next project.
The four basic steps in software project estimation are:
Estimating size
An accurate estimate of the size of the software to be built is the first step to an effective estimate. Your source(s) of information regarding the scope of the project should, wherever possible, start with formal descriptions of the requirements - for example, a customer’s requirements specification or request for proposal, a system specification, a software requirements specification. If you are [re-]estimating a project in later phases of the project’s lifecycle, design documents can be used to provide additional detail. Don’t let the lack of a formal scope specification stop you from doing an initial project estimate. A verbal description or a whiteboard outline are sometimes all you have to start with. In any case, you must communicate the level of risk and uncertainty in an estimate to all concerned and you must re-estimate the project as soon as more scope information is determined.
Two main ways you can estimate product size are:
By analogy. Having done a similar project in the past and knowing its size, you estimate each major piece of the new project as a percentage of the size of a similar piece of the previous project. Estimate the total size of the new project by adding up the estimated sizes of each of the pieces. An experienced estimator can produce reasonably good size estimates by analogy if accurate size values are available for the previous project and if the new project is sufficiently similar to the previous one.
By counting product features and using an algorithmic approach such as Function Points to convert the count into an estimate of size. Macro-level “product features” may include the number of subsystems, classes/modules, methods/functions. More detailed “product features” may include the number of screens, dialogs, files, database tables, reports, messages, and so on.
Estimating effort
Once you have an estimate of the size of your product, you can derive the effort estimate. This conversion from software size to total project effort can only be done if you have a defined software development lifecycle and development process that you follow to specify, design, develop, and test the software. A software development project involves far more than simply coding the software – in fact, coding is often the smallest part of the overall effort. Writing and reviewing documentation, implementing prototypes, designing the deliverables, and reviewing and testing the code take up the larger portion of overall project effort. The project effort estimate requires you to identify and estimate, and then sum up all the activities you must perform to build a product of the estimated size.
There are two main ways to derive effort from size:
The best way is to use your organization’s own historical data to determine how much effort previous projects of the estimated size have taken. This, of course, assumes (a) your organization has been documenting actual results from previous projects, (b) that you have at least one past project of similar size (it is even better if you have several projects of similar size as this reinforces that you consistently need a certain level of effort to develop projects of a given size), and (c) that you will follow a similar development lifecycle, use a similar development methodology, use similar tools, and use a team with similar skills and experience for the new project.
If you don’t have historical data from your own organization because you haven’t started collecting it yet or because your new project is very different in one or more key aspects, you can use a mature and generally accepted algorithmic approach such as Barry Boehm’s COCOMO model or the Putnam Methodology to convert a size estimate into an effort estimate. These models have been derived by studying a significant number of completed projects from various organizations to see how their project sizes mapped into total project effort. These “industry data” models may not be as accurate as your own historical data, but they can give you useful ballpark effort estimates.
Estimating schedule
The third step in estimating a software development project is to determine the project schedule from the effort estimate. This generally involves estimating the number of people who will work on the project, what they will work on (the Work Breakdown Structure), when they will start working on the project and when they will finish (this is the “staffing profile”). Once you have this information, you need to lay it out into a calendar schedule. Again, historical data from your organization’s past projects or industry data models can be used to predict the number of people you will need for a project of a given size and how work can be broken down into a schedule.
Projects often have a delivery date specified for them that isn’t negotiable - “The new release has to be out in 6 months”; “The customer’s new telephone switches go on-line in 12 months and our software has to be ready then”. If you already know how much time you have, the only thing you can do is negotiate the set of functionality you can implement in the time available. Since there is always more to do than time available, functionality has to be prioritized and selected so that a cohesive package of software can be delivered on time.
Working backwards doesn’t mean you skip any steps in the basic estimation process outlined above. You still need to size the product, although here you really do have to break it down into a number of pieces you can either select or remove from the deliverable, and you still need to estimate effort, schedule, and cost. This is where estimation tools can be really useful. Trying to fit a set of functionality into a fixed timeframe requires a number of “what if” scenarios to be generated. To do this manually would take too much time and effort. Some tools allow you to play with various options easily and quickly.
Whenever an estimate is generated, everyone wants to know how close the numbers are to reality. Well, the bottom line is that you won’t know exactly until you finish the project – and you will have to live with some uncertainty. Naturally, you will want every estimate to be as accurate as possible given the data you have at the time you generate it. And of course you don’t want to present an estimate in a way that inspires a false sense of confidence in the numbers.
What do we mean by an “accurate” estimate? Accuracy is an indication of how close something is to reality. Precision is an indication of how finely something is measured. For example, a size estimate of 70 to 80 KLOC might be both the most accurate and the most precise estimate you can make at the end of the requirements specification phase of a project. If you simplify your size estimate to 75000 LOC it looks more precise, but in reality it’s less accurate. If you offer the size estimate as 75281 LOC, it is precise to one LOC but it can only be measured that accurately once the coding phase of the project is completed and an actual LOC count is done.
If your accurate size estimate is a range, rather than a single value, then all values calculated from it (e.g., effort, schedule, cost) should be represented as a range as well. If, over the lifetime of a project, you make several estimates as you specify the product in more detail, the range should narrow and your estimate should approach what will eventually be the actual cost values for the product or system you are developing (Figure 2).
Figure 2 – Estimate Convergence Graph. Source: “Rapid Development” (McConnell 1996); Adapted from “Cost Models for Future Life Cycle Processes: COCOMO 2.0” (Boehm et al. 1995).
Of course, you must also keep in mind other important factors that affect the accuracy of your estimates, such as:
Understanding the Tradeoffs
Once you’ve generated a project estimate, the real work begins – finding some combination of functionality, schedule, cost and staff size that can be accepted by management and customers! This is where a solid understanding of the relationships between these variables is so important, and where being armed with different project estimates illustrating the tradeoffs is very useful for establishing what the limits are.
Here are a few facts of life you need to remember during the estimate “adjustment” phase:
Time
Cost
Shortest Possible Schedule
Nominal schedule
Figure 3 – Relationship between cost and schedule on a software project. Source: “Rapid Development” (McConnell 1996). The cost of achieving the nominal schedule is much less than the cost of achieving the shortest possible schedule.
Figure 4 – Three different estimates for a 75 KLOC Project
Management Metric Planning Value Effort (staff months) 97 Schedule (calendar months)
Cost $1,479, Peak Staff (people) 14. Average Staff (people) 9.
Management Metric Planning Value Effort (staff months) 14 Schedule (calendar months) 16. Cost $212, Peak Staff (people) 1. Average Staff (people) 0.
Management Metric
Planning Value Effort (staff months) 40 Schedule (calendar months)
Cost $605, Peak Staff (people) 4. Average Staff (people)
While effective software project estimation is absolutely necessary, it is also one of the most difficult software development activities. Why is it so hard?
The following lists some of the things that make it hard – and they’re things that we need to overcome:
The software industry does far more maintenance and enhancement work on existing products than completely new development. Most maintenance projects are a combination of new development and adaptation of existing software. Although the estimation steps outlined above can still apply to maintenance and enhancement projects, there are some special issues that have to be considered such as:
Estimation tools may be stand-alone products or may be integrated into the functionality of larger project management products. Estimation tools may just support the size estimation process, or just the conversion of size to effort, schedule and cost, or both. Project management tools have been discussed in an earlier ADS newsletter (November 1997). Tools that support just size estimation include LOC counters, Function Point analysis programs, and even requirements capture and management applications. This section of this report just focuses on estimation tools that are stand-alone products and support the conversion of size to effort etc.
No estimation tool is the “silver bullet” for solving your estimation problems. They can be very useful items in your estimation toolkit, and you should seriously consider using one (or more), but their output is only as good as the inputs they are given and they require you to have an estimation and software development process in place to support them. Beware of any vendor claiming their tool is able to produce estimates within +/- some small percentage of actuals unless they also highlight all the things you must be able to do in a predictable manner and what must go right during a project to ensure an estimate can be that accurate.
There are a variety of commercial and public domain estimation tools available. Searching for software project estimation tools on the web isn’t as straightforward as one might expect. A mix of keywords and search engines needs to be used to discover about 80% of the tools and web-sites where tool lists were available identified the rest. Web-based information on the capabilities and pricing of the tools is variable and occasionally very superficial, so some phone calls and email should be used to augment what is gleaned from the web.
The following provides a summary of the important features and criteria you should consider when evaluating a software project estimation tool. Figure 3 provides a context for the discussion.
Constraints & Priorities
Schedule
Project Estimation Tool
Effort
Cost
Size Estimation (Tool)
Other Cost Drivers
Exported data
Imported Data
Reports
Requirements
Figure 3 – Estimation Tool Context
Price
Commercial estimation tools can be categorized as either “for rent” (you pay an annual fee) or “for purchase” (one-time fee), and they come in 3 price ranges: affordable ($1000 or less), mid-range ($1001- $5000), or expensive ($5001 to $20000 or more). Probably only larger organizations or large projects would consider the mid-range or high-priced tools. The tools under $1000 implement non-proprietary models published by others (e.g., COCOMO) and may lack some of the functionality and extensive support of the expensive options, but can still generate more than adequate estimates.
Platform and Performance
Does it run on your current hardware/software? Does it run on more than one platform? How much RAM and disk space is required? Will its database handle the amount of historical data and the size and number of project estimates you will be entering?
Ease of Use and Documentation
Can you generate an initial project estimate easily the first time you use the tool, or do you have to study the underlying model in detail for days first learning all the acronyms and struggling with attribute definitions? Can you tailor your estimates easily? Do the user manual and help text provide an understanding how to use the tool to generate project estimates, as well as a simple list of what general functionality the tool possesses? Is sample project data available?
Networking Capability
Is there a common, shared database so that multiple users can access and add to the historical project data, and view or update estimates (assuming this is important to you)?
Upgrades
Model data shouldn’t be static – as new programming languages and new development paradigms appear, as different kinds of development projects are studied, updates to the model data in the tool should be made. Does the vendor make model updates available to customers? Is the vendor committed to making continuous enhancements that offer new functionality and support new platforms etc.? What do these upgrades cost?
Outputs Generated
Look for a tool that has functionality which shows options, probabilities and ranges. Tools using Monte Carlo simulation to generate estimates with different probabilities provide interesting insight into the volatility of the development process.
Reports should help you clearly present and discuss estimate options with customers and management. What kinds of reports are generated and are they useful to you? Can you obtain a softcopy of the reports so that you can add material to them or include them easily in other project documents you generate?
Import/Export Capability
Possible imports include things like module-by-module size estimates, historical project data, and updated model data. Possible exports include schedule, WBS, and staffing information to project management software like MS-Project or to a spreadsheet program like Excel.
There is no quick fix that will immediately make us better estimators and users of estimates. Effective estimates come about as a result of process definition and improvement, education and training, good project management, use of proper tools and techniques, measurement, sufficient resources, and sheer hard work. Depending on what the situation is when you start, and how long a typical project lasts in your organization, it could be several years before you’ve had enough time and project cycles to establish the basics from which better estimates are consistently made. Trying to set up everything in a week is equivalent to trying to build Rome in a day.
But don’t be discouraged by this! There are things you can do right now to make a difference to your current project, and there are actions you can take to make your next project better.
Assuming you are past the planning stage of your current project and you have little time to spare, here are some important actions you can take on this project to start improving your estimation process:
Here are some important actions you can take for your next project:
Try to make time to:
Small improvement steps, taken with care and attention, will lead you down the road to better project estimation and planning. In fact, taking small steps is often the only way to ensure permanent change occurs.
General Reading (includes Estimation and Project Planning)
Sizing Lines of Code
Function Points