Mais conteúdo relacionado Semelhante a Monte Carlo Simulation for Agile Development (20) Mais de Glen Alleman (20) Monte Carlo Simulation for Agile Development1. +
Managing in the Presence of Uncertainty requires
making decision with Models of that Uncertainty
Monte Carlo Simulation and some related approaches can be the basis of making informed decisions
in the presence of Uncertainty
MONTE CARLO
SIMULATION AND
ESTIMATING
TRADITIONAL AND
AGILE DEVELOPMENT
V1.0 Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
2. + The Motivation for Monte Carlo
Simulation
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
2
A rough translation of the planning algorithm
from Aristotle’s De Moti Animalium, c. 400 BC
But how does it happen that thinking is
sometimes accompanied by action and
sometimes not, sometimes by motion, and
sometimes not?
It looks as if almost the same thing happens as
in the case of reasoning and making inferences
about unchanging objects.
But in that case the end is a speculative
proposition ... whereas here the conclusion
which results from the two premises is an
action. ... I need covering; a cloak is a
covering. I need a cloak. What I need, I have to
make; I need a cloak. I have to make a cloak.
And the conclusion, the “I have to make a
cloak,” is an action.
3. Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017 3
Uncertainties are
things we can not be
certain about.
Uncertainty is created
by our incomplete
knowledge ‒ not by
our ignorance
And
By the naturally
occurring variances
in the underlying
processes of nature
5. + Some Words about Uncertainty
n When we say uncertainty, we speak about a future state of an system
that is not fixed or determined.
n Uncertainty is related to three aspects in our program management
domain:
n The external world – the activities of the program
n Our knowledge of this world – the planned and actual behaviors of the
program
n Our perception of this world – the data and information we receive about
these behaviors
n Managing in the presence of uncertainty is part of each success factor
n What does Done Look Like?
n What’s the Plan to reach Done
n What resources do we need to reach Done?
n What are the Impediments to reaching Done?
n How are we measuring progress to plan toward Done?
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
5
6. + Taxonomy of Uncertainty
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
6
Uncertainty
Irreducible
(Aleatory)
Reducible
(Epistemic)
Natural Variability
Ambiguity
Ontological
Uncertainty
Probabilistic Events
Probabilistic
Impacts
Periods of Exposure
7. + Aleatory & Epistemic Uncertainty
n Aleatory Pertaining to stochastic (non-deterministic) events, the
outcome of which is described using probability.
n From the Latin alea
n For example in a game of chance stochastic variability's are the natural
randomness of the process and are characterized by a probability density
function (PDF) for their range and frequency
n Since these variability's are natural they are therefore irreducible.
n Epistemic (subjective or probabilistic) uncertainties are event based
probabilities, are knowledge-based, and are reducible by further
gathering of knowledge.
n Pertaining to the degree of knowledge about models and their parameters.
n From the Greek episteme (knowledge).
Separating these classes helps in design of assessment calculations and
in presentation of results for the integrated program risk assessment.
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
7
8. + 3 Conditions of Aleatory
Uncertainty
n An aleatory model contains a single unknown parameter.
n Duration
n Cost
n The prior information for this parameter is homogeneous and is
known with certainty.
n Reference Classes
n Past Performance
n The observed data are homogeneous and are known with certainty.
n A set of information that is made up of similar constituents.
n A homogeneous population is one in which each item is of the same type.
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
8
9. + Measurement Uncertainty
n Precision – how small is the variance of the estimates
n Accuracy – how close is the estimate to the actual values
n Bias – what impacts on precision and accuracy come from the
human judgments (or misjudgments)
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
9
Accuracy
Precision
Accuracy
¯ Precision
¯ Accuracy
Precision
¯ Accuracy
¯ Precision
10. + Precision and Accuracy
n Credible estimates of program variables require both Accuracy and
Precision
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
10
11. + Cost Probability Distributions
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
11
$
Cost Driver (Weight)
Cost = a + bXc
Cost
Estimate
Historical data point
Cost estimating relationship
Standard percent error boundsTechnical Uncertainty
Combined Cost
Modeling and
Technical Uncertainty
Cost Modeling
Uncertainty
† NRO Cost Group Risk Process,Tim Anderson,The Aerospace Corporation, 2003
12. +
Monte Carlo
Simulation in the
Presence of
Uncertainty
George Louis Leclerc, Comte
de Buffon, asked what was
the probability that the
needle would fall across one
of the lines, marked here in
green.That outcome will
occur only if
𝐴 < 𝑙 sin 𝜃
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
12
13. + Monte Carlo Simulation Provides one
Solution the Estimating Problem
n Yes, Monte Carlo is named after the
country full of casinos located on the
French Rivera
n Advantages of Monte Carlo
n Examines all possible states of a
variable, not just the Mean and Variance
n Provides an accurate (true) estimate of
completion
n Overall duration distribution
n Confidence interval (accuracy range)
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
13
n Sensitivity analysis of interacting tasks
n Varied activity distribution types
n Dependency logic can include both probabilistic and conditional
n When resource loaded plans are used – provides integrated cost and
schedule probabilistic model
14. + The Monte Carol Methods Starts in
WWII History
n Any method which solves a
problem by generating suitable
random numbers and observing
that fraction of the numbers
obeying some property.
n The Monte Carlo method provides
approximate solutions to a variety
of mathematical problems by
performing statistical sampling
experiments on a computer.
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
14
n The method applies to problems with no probabilistic content as well as
to those with inherent probabilistic structure.
n The method is named after the city of Monte Carlo in the principality of
Monaco, because of a roulette, a simple random number generator.The
name and the systematic development of Monte Carlo methods dates
from about 1944 and the Manhattan project.
15. + Monte Carlo Simulation Tools
n @Risk – we use this on our programs
n http://www.palisade.com/risk/
n Risk Amp – an embedded Excel MCS simulator, used for cost modeling
n https://www.riskamp.com/
n Risky Project ‒ a MCS for cost and schedule using MSFT Project on our
programs
n http://intaver.com/
n MonteCarlito – haven’t used
n http://www.montecarlito.com/
n SimTools – haven’t used
n http://home.uchicago.edu/~rmyerson/addins.htm
n Monte Carlo Simulation Tutorial
n http://excelmontecarlo.com/
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
15
16. + Monte Carlo Simulation Tools
n SimulAr – haven’t used
n http://www.simularsoft.com.ar/SimulAr1e.htm
n Barnecana – popular in our domain
n https://www.barbecana.com/
n Monte Carlo Simulation tool for JIRA – interesting plug in
n https://agilemontecarlo.com/
n Guesstimate – used for quick assessment of cost model
n https://www.getguesstimate.com/
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
16
17. + References
n Cost Risk Analysis Made Simple
n https://www.aceit.com/docs/default-source/white-papers/cost-risk-
analysis-made-simple-(aiaa-sep-2004).pdf
n An Implementation of the Lurie-Goldberg Algorithm in Schedule Risk Analysis
n http://www.slideserve.com/Olivia/an-implementation-of-the-lurie-
goldberg-algorithm-in-schedule-risk-analysis
n The Beginning of the Monte Carlo Method
n http://library.lanl.gov/cgi-bin/getfile?00326866.pdf
n The Basics of Monte Carlo Simulation
n http://www.risksig.com/members/present/2001/21023.pdf
n “The Mother of All Guesses: A User Friendly Guide to Statistical
Estimation,” Francois Melese and David Rose, Armed Forces Comptroller,
1998
n http://www.nps.navy.mil/drmi/graphics/StatGuide–web.pdf
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
17
18. + References
n Anchoring and Adjustment in Software Estimation
n http://www.cs.toronto.edu/~sme/papers/2005/ESEC-FSE-05-Aranda.pdf
n Managing in the Presence of Uncertainty
n https://www.slideshare.net/galleman/managing-in-the-presence-of-
uncertainty
n How to reduce Agile Risk with Monte Carlo Simulation
n https://blog.versionone.com/how-to-reduce-agile-risk-with-monte-carlo-
simulation/
n Agile project forecasting using Monte Carlo Simulation
n http://scrumage.com/blog/2015/09/agile-project-forecasting-the-monte-
carlo-method/
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
18
19. + References
n Effort Estimation in Agile Software Software Development: A Systematic
Literature Review
n https://www.diva-portal.org/smash/get/diva2:881296/FULLTEXT01.pdf
n Monte Carlo Basics
n https://arxiv.org/pdf/cond-mat/0104215.pdf
n Focused Objectives has many papers and a book
n http://focusedobjective.com/forecast_agile_project_spreadsheet/
n Monte Carlo Simulation in Agile Project Estimation
n https://www.academia.edu/8939341/Monte-
Carlo_Simulation_in_Agile_Project_Estimation_Forecasting_Schedule_an
d_Required_Velocity (log in may be required)
Performance–Based Project Management®, Copyright © Glen B. Alleman, 2002 ― 2017
19