Uncertainty is inevitable in software projects but is often not addressed scientifically. The goal of software engineering should be delivering value, not precision alone. Decision analysis provides a scientific approach to make goal-based decisions under uncertainty, quantifying costs, benefits, risks and the value of information to reduce uncertainty. This helps prioritize measurement efforts and avoid common paradoxes. The approach has been applied to design decisions with potential to overcome cultural barriers and show cost-effectiveness through incremental evidence-based improvements.
1 of 37
Downloaded 17 times
More Related Content
The Value of Requirements Uncertainty, Louvain-la-Neuve, October 2013
1. The Value of Requirements Uncertainty
Emmanuel Letier
http://letier.cs.ucl.ac.uk
Joint work with David Stefan and Earl Barr
Louvain-la-Neuve, 4 October 2013
1
3. Software Design Decisions
What software to build? What
What components and interfaces?
quality level? What to build
How to deploy them? When to
in next iteration?
change the architecture?
Uncertainty is inevitable
We must decide without knowing everything
3
4. The Surfers Approach to Uncertainty
Instead of learning to
surf, conventional
organizations try to
control the waves. This
almost never works.
Allen Ward
Mary Poppendieck Learning to Surf
industry keynote @ ICSE2013
4
5. The Surfers Approach to Uncertainty
Instead of learning to
surf, conventional
organizations try to
control the waves. This
almost never works.
-- Allen Ward
5
6. The Scientific Approach to Uncertainty
Decision Analysis, a discipline
for understanding, formalising,
analysing, and communicating
insights about situations in
which important decisions
must be made
Ron Howard, Stanford
6
7. The Pseudo-Scientific Approach
Resembles the scientific
approach, except that
≒ the decision criteria are
numbers without verifiable
meaning
≒ the decision models are not
falsifiable
≒ no retrospective evaluation of
decisions and outcomes
Most widely used example, the
Analytical Hierarchy Process
(AHP)
7
9. Uncertainty
Uncertainty is the lack of complete knowledge about a state
or quantity. There is more than one possible value and the
true value is not known.
Measurement of uncertainty. A set of possible values with
a probability assigned to each.
How cold will it be?
0.6
0.4
yes
no
Probability
Will it snow at Christmas?
-5oC
2 oC
8 oC
9
10. Accuracy and Precision
For a measurement or prediction
≒ Precision refers to how close the measured or predicted
values are to each other
≒ Accuracy refers to how close the measured or predicted
values are to the true value
How hot will it be in Hyderabad, India on 1st June 2014?
30oC
Precise: yes; Accurate: ?
34oC
37oC
41oC
Less precise, but more accurate
10
11. Key Insights
The more precise, the higher risk of being wrong (inaccurate)
The less you know, the harder it is to be both precise and
accurate; if you want to be accurate, you have to be less
precise
Reducing uncertainty has economic value because it leads to
better decisions that will, on average, increase profit
11
12. Things Software Engineers Say ...
Clients dont know what they want
Requirements documents are always too vague,
incomplete, inconsistent, out-of-date, etc.
Requirements change is inevitable
Its not possible to discover the true requirements
before building the system
12
13. Things Academics Say ...
Requirements are inherently
unknowable!
Linda Northrop Does Scale Really Matter? Ultra-Large-Scale Systems
Seven Years after the Study plenary keynote @ ICSE2013
13
15. Yet, we insist on requirements being precise
Requirements engineering is the branch of
software engineering concerned with the realworld goals for, functions of, and constraints
on software systems. It is also concerned with
the relationship of these factors to precise
specifications of software behavior, and to
their evolution over time and across software
families.
Pamela Zave, ACM Computing Surveys, 1997
15
18. An Hypothesis
The cost-to-fix curve crystallised software engineering
thinking around questions of costs (time and money)
and defects
Requirements engineering focuses on precision
as a way to detect and fix defects as early as possible
when it is cheaper to do so
We have lost sight of the end goal!
18
19. What is the end goal of Software
Engineering?
19
20. The end goal of Software Engineering is ...
A. To deliver software on time
B. To deliver software on budget
C. To deliver software with low number of bugs
D. All of the above
E. None of the above
20
21. The end goal of Software Engineering is ...
A. To deliver software on time
B. To deliver software on budget
C. To deliver software with low number of bugs
D. All of the above
E. None of the above
E.
F. To deliver software that provides value for money
(or no software at all if there are better ways to provide value)
21
22. Beware of Treating Subgoals as End Goals
Delivering on time, on budget, with low defect rate doesnt
necessarily provide value for money (e.g. 贈80 million mobile
technology for UK police)
Minimising requirements defects (ambiguity, incompleteness,
etc.) doesnt necessarily yield a valuable system
22
25. Goal-based & Value-based
Software Engineering
Precision for its own sake
code coverage for its own sake ...
bugs finding for its own sake ...
bugs fixing for its own sake ...
25
26. A new perspective on software engineering
Goal-Based Decisions Under Uncertainty
26
28. A Typical IT Project Business Case
Expected Cost
2m
Expected Benefit
10m
Expected Net
Benefit
ROI
8m
400%
28
29. Cost-Benefit Analysis with Uncertainty
90% Confidence Interval
Most Likely
Cost
[2m , 5m]
3.5m
Benefit
[2m , 10m]
6m
Benefit
Probability
Probability
Cost
贈2m
贈5m
贈2m
贈6m
贈10m
29
30. Where Do the Numbers Come From?
≒ Cost and benefit are functions of
a set of uncertain variables (eg.
development cost, operating cost,
market size, ...)
≒ Uncertainty about each variable
is elicited from experts and
decision makers
using simple effective methods
having sound mathematical
foundations and significant
empirical validation
30
31. Cost-Benefit Analysis with Uncertainty
90% Confidence Interval
Most Likely
[2m , 5m]
3.5m
[2m , 贈10m]
6m
Cost
Benefit
Expected Net Benefit
Loss Probability
Average Loss Magnitude
2.5m
16%
1.3m
31
32. The Expected Value of Perfect Information (EVPI)
(Ronald Howard, 1966)
EVPI(X) = the expected gain in net benefit from obtaining
perfect information about X to inform decision
Expected gain
(expectation
over X)
Highest expected net
benefit among all
alternatives given
current knowledge BK
and X = x
Highest expected
net benefit among
all alternatives
given current
knowledge BK
32
33. The Expected Value of Information
Reminder: Expected Net Benefit = 2.5m; Loss Probability = 16%
EVPI
Remaining Loss
Probability
Total Perfect
Information
0.22m
0%
Info about Benefit
0.18m
3%
Info about Cost
0.001m
16%
≒ Information about benefit has high value and impact on risk
Current 90% confidence interval: 2m-10m
≒ Information about cost has no value and impact on risk
Current 90% confidence interval: 2m-5m
33
34. The Measurement Inversion Paradox
(Douglas Hubbard, 1999)
Lessons from applying decision analysis to 20 IT business
cases, each having 40 to 80 variables
1. Most variables have zero information value
2. Variables with high information values were routinely
those the client never measured
3. Clients spent most of their effort measuring quantities
with low or even zero information value
34
35. Application to Software Design Decisions
(with D. Stefan and E.T. Barr)
A mobile system for coordinating
emergency rescue teams
≒ Design space: 10 design
decisions, around 7,000 candidate
architectures
≒ Objectives: Cost, Response Time,
Reliability, Battery Life, ...
≒ Models given by design team:
Utility score defined as weighted
sum of objective satisfaction
≒ Lessons Learnt
Risks specific to requirements
and architecture decisions
Need to reason about model
uncertainty in addition to
parameter uncertainty
Decision models must be
falsifiable
35
36. Research Roadmap
Overcoming cultural barriers
Scientific Approach
to Software
Decisions
Showing cost-effectiveness
Showing applicability
???
Incremental value
delivery
Incremental evidence-based
model tuning
Model uncertainty: quantifying good enough
Parameter uncertainty
36
37. A Call to Action
Uncertainty is at the heart of
most major challenges for the
21st Century
Who do you want to inform our
IT projects decisions?
The Surfers
The Pseudo-Scientists
The Scientists
37