Beruflich Dokumente
Kultur Dokumente
and return of quality improvements suggest that software development, examples of prevention costs
there are diminishing returns to quality expenditures include the costs of training staff in design methodolo-
[12]. However, quality improvements can often result gies, quality improvement meetings, and software
in quantifiable cost savings that outweigh the money design reviews. Appraisal costs include measuring, evalu-
spent on the quality efforts. A key management prob- ating, or auditing products to assure conformance to
lem therefore is how to make profitable decisions on quality standards and performance. For software, exam-
quality expenditures. This problem is particularly ples of appraisal costs include code inspections, testing,
salient in software development due to limited empir- and software measurement activities.
ical evidence on the economics of software quality. The cost of nonconformance includes all expenses
In this article, we focus on evaluating the cost of that are incurred when things go wrong. Internal failure
quality and return on quality from the perspective of costs occur before the product is shipped to the cus-
software development. We introduce three new met- tomer. For software these include the costs of rework in
rics in the software engineering economics context: programming, reinspection, and retesting. External
cost of software quality (COSQ), return on software failure costs arise from product failure at the customer
quality (ROSQ), and software quality profitability site. For software, examples include field service and
index (SQPI).1 We then report the results from a support, maintenance, liability damages, and litigation
detailed longitudinal study on the economics of soft- expenses.
ware quality at BDM International, a major informa- So how can companies reduce the costs of software
tion technology company.2 Our analysis yields a quality? A basic strategy is to drive failure costs to zero,
number of important insights for software managers invest in the “right” prevention activities to bring
who are interested in improving their decisions on soft- about improvement, reduce appraisal efforts as quality
ware quality expenditures. improves, and continue to evaluate and alter preventive
efforts for further improvement [5]. The idea behind
Cost of Software Quality this approach is that real software failure costs can be
The costs of quality as originally articulated by measured and then reduced through the proper analy-
Juran and Gryna are those that would be eliminated sis of cause and effect. Elimination of root causes means
if all workers were perfect in their jobs. Quality costs identifying and permanently fixing defects as early in
are important because every dollar and labor hour the software life cycle as possible, because the cost of
not spent on rework can be used for making better correction increases the later in the software process the
products more quickly or for improving existing defect is discovered and corrected. As software failure
products and processes. The costs of quality are costs are reduced, appraisal costs can also be reduced,
divided into two major types: conformance and and the total software quality costs decrease.
nonconformance. Important questions then arise concerning
The cost of conformance is the amount spent to whether and how much to invest in specific software
achieve quality products. It is further divided into costs quality improvement initiatives. It is useful to
of prevention and appraisal. Prevention costs are those asso- approach these questions from a financial return on
ciated with preventing defects before they happen. In investment (ROI) perspective. We refer to this as the
return on software quality.
1Our work extends an important stream of research on metrics for assessing the eco-
nomics of software engineering. Readers are referred to the work of Chidamber and Return on Software Quality (ROSQ)
Kemerer on object-oriented metrics [6]; Banker, Kauffman, Wright, and Zweig on The rationale behind ROSQ is that software quality
metrics for software reuse leverage and value [2]; Banker and Slaughter [3] and Banker,
Chang, and Kemerer [1] on project scale size in software development and maintenance; expenditures must be financially justified. Increas-
and Mukhopadhyay and Kekre on features for software cost estimation [10]. ingly, the chief financial officers in many companies
2The authors would like to thank BDM International for providing access to archived
data for this study. are promoting disciplines for financial evaluation to
72.1% 70.0%
training that are
required to main- 61.2% 60.0%
tain the quality 100 50.0%
48.3%
process once it is 40.0%
in place. We call 51 25.4% 46 30.0%
this software qual- 50
26 20.0%
ity maintenance 22 18 13 11 8 6 10.0%
(SQM). Finally,
each software 0 0.0%
gic n e n n n e
quality improve- JCL Lo t a tio
t a bas c a tio C I CS r a tio
s t Pla h ang
gra
m en Da cifi Mi
g Te sC
ment initiative Pro o cum Spe m ent
D ir e
should result in rt equ
p po R
S u Defect Category
annual revenues.
These software
quality revenues
(SQR) can be derived from the projected increases in Figure 1. Identifying process improvement opportunities using
sales or estimated cost savings due to the software qual- Pareto analysis
ity improvement.
The return on the software quality initiative is determination portion of a material requirements plan-
the net present value of the software quality rev- ning (MRP) system. The impetus of software quality
enues and costs or cash flows (NPVCF) divided by improvement at BDM for this project was its fixed price
the net present value of the initial investment and incentive contract. BDM agreed to absorb any costs
ongoing maintenance costs for the software quality above a ceiling price, but would retain a percentage of
initiative (NPVIC). More formally, by selecting a any savings below the original estimated cost that
financial discounting factor (r) that reflects the resulted from improved efficiency. BDM focused on
company’s weighted average cost of capital, we can improving quality in order to increase efficiency and
calculate the ROSQ over T periods of time for minimize software costs.
which the project yields value for the firm. Related Major Software Quality Initiatives. To reduce
to the concept of financial ROI is the SQPI, which defect rates over the life of the project, four major
is the ratio of the present value of the difference
between the software quality revenues and costs 3Contact the authors for the formulas for COSQ, ROSQ, and SQPI.
35.00
Tool
30.00 Non-Conformance
Conformance
25.00
20.00
15.00
10.00
5.00
0.00
Jan-84 Jun-85 Oct-86 Feb-88 Jul-89 Nov-90 Apr-92 Aug-93 Jan-95
Process Process Process Process
Improvement # 1 Improvement # 2 Improvement # 3 Improvement # 4
quality costs as well as the conformance and noncon- mance cost impacts of defect reduction occurred at
formance costs associated with this project. Total qual- BDM. Costs were tracked in 10 different software
ity costs are the sum of conformance and quality cost centers at BDM:
nonconformance costs. Conformance costs include the
initial and ongoing expenditures for software quality • Data Element Dictionary—for database
initiatives, baseline configuration management, element names, field descriptions,
design reviews, system-level testing, and quality edit criteria
assurance audits. Nonconformance costs include soft- • Integration—for management of product interfaces
ware debugging, configuration management migra- to ensure compatibility and system-level
tions of software fixes, regression testing, operations integration
support for retesting, and additional audits and • Documentation—for system, user, and support
reviews due to defects. Crosby [4] and others have documentation
argued that both nonconformance and conformance • ADPT Support—for automated data processing
costs should decrease with quality improvement. As technical support from hardware and system soft-
shown in Figure 4, total quality costs and nonconfor- ware specialists
mance costs per line of code decrease over the life of • Operations—for computer operator support for
the project (from $46 and $32 per line of code at the development, testing, and production
beginning of the project to $23 and $9 per line of code • Quality Assurance (QA)—for auditing of processes
at the end). However, conformance costs appear to be and products
largely fixed over the project (starting and ending at • Configuration Management (CM)—for manage-
$14 per line of code with relatively little variance). ment of baseline documents and software, and for-
This could reflect the limited degree to which BDM’s mal reviews
appraisal and prevention policies were changed due in • Program Control—for schedule and budget
part to contractual obligations. While some minor tracking
adjustments to appraisal and prevention efforts did • Management—for senior executive management of
occur as a result of defect reduction, the costs associ- development, operations, and support
ated with conformance did not appear to change. activities
Marginal Analysis of Nonconformance Costs. • Development—for software design, coding, and
We then examined where the greatest nonconfor- testing through customer acceptance
80.00 Operations
Quality Assurance
20.00
0.00
3.5 2.8 1.2
Initial Defect Rate (Errors per 1000 Lines of Code)
We calculated the marginal cost effects of defect improvement, we calculated the cost savings as the
reduction by estimating parsimonious log linear regres- difference between the nonconformance costs associ-
sions that related each nonconformance cost type to ated with the average defect density level prior to the
lines of code and defects. The coefficients from these investment (projecting these to the end of the project)
regressions were used to determine the marginal less the nonconformance costs associated with the
impact of 10% reductions in defect rates at different average improved defect level after the investment
levels of initial defect rates. Marginal analysis of non- (projecting these to the end of the project). We used
conformance costs at three different defect density lev- actual figures on defects and costs for these calcula-
els (Figure 5) indicates that the greatest marginal cost tions in our analysis.
effects of defect reduction were in the Development, How should companies estimate the cost leverage
Management, Operations, and Quality Assurance areas. from defect density reduction for a project a priori?
There are a number of reasons for these findings. Devel- One approach is to use actual historical defect and
opment costs were directly impacted by defect reduc- effort data from the project itself (if it is done over a
tion due to less rework in debugging, testing, and long period of time) or to obtain defect and effort data
programming. Management costs experienced a large from a similar project. This data can then be input
marginal impact from defect reduction due to the into a data-driven cost estimation model (such as
involvement of senior managers when errors occurred Capers Jones’ SPQR™ or Checkpoint™) to estimate
and the high cost of their time. Quality Assurance costs cost leverage. In BDM’s case, defect density was mea-
were also impacted because fewer defects led to less sured before and after the first process improvement
reinspection, reappraisal, and re-testing activities. in the project to gauge the effect of the process
Operations costs are driven by software testing, pro- improvement. Beginning in the third year of the pro-
duction, and maintenance support. Defect rates have a ject, the actual defect density and effort were com-
high marginal impact on operations costs because they pared with the estimated defect density and effort
influence allocation of operations staff support for from SPQR. Actual data on process, productivity, and
regression testing and maintenance workload. effort were used to update the SPQR estimation mod-
Return on Software Quality. To determine the els and to recalibrate the defect density and effort pre-
return on investment of software quality improve- dictions for the following year. Thus, BDM could
ment at BDM, we calculated the Net Present Value, estimate the cost leverage from each process improve-
ROSQ, and SQPI for the four quality initiatives ment (after the first initiative) using data from the
(Table 1). We determined the software quality rev- SPQR models.
enues in terms of nonconformance cost savings due to As shown in Table 1, all four quality initiatives
defect reduction. Specifically for each quality (numbered 1 through 4) generated a positive return as