Tools › Project Management › Cost › Cost Risk Analysis


Cost Risk Analysis

Cost risk and uncertainty analysis of a work breakdown structure pasted as text: each element's low, most likely and high cost (or mean and standard deviation) with a triangular, PERT, uniform, normal or lognormal distribution, the closed-form mean, standard deviation and mode of every element, the analytic roll-up (sum of means, root-sum-square and correlated standard deviation, normal-approximation percentiles) and a seeded Monte Carlo simulation with Iman–Conover rank correlation or a Gaussian copula within correlation groups or from a pasted matrix. Optional risk-register events (probability × impact) and a schedule-driven cost (days of delay × burn rate) are added. Outputs: the cost S-curve, the percentile table, the contingency at each chosen confidence level against the point estimate and the sum of most-likely values, the cumulative probability of the point estimate, the P80 − P50 management-reserve figure, GAO's allocation of the contingency by standard deviation and by need, the risk-driver ranking by variance share and rank correlation, a tornado of the items by their swing and the register's expected monetary value. The default case is the NASA Cost Estimating Handbook example (Appendix G, Tables G-4 and G-5): eleven lognormal elements with a correlation of 0.6, mean $236 million and one standard deviation of $27 million, as the handbook prints.

  • Element distributions from three points or from mean and SD: triangular, PERT, uniform, normal, lognormal; bounds as absolute or as 5/95, 10/90 or 15/85 percentiles (GAO)

  • Analytic roll-up: sum of means, RSS and correlated standard deviation, normal percentiles; seeded Monte Carlo (Iman–Conover or Gaussian copula) with the S-curve and percentile table

  • Contingency at 50, 70, 80, 90 % (or any levels) against the point estimate and the sum of most-likely values; P80 − P50 reserve; allocation by standard deviation and by need

  • Risk drivers by variance share and Spearman correlation, tornado by swing, risk register expected monetary value, schedule-driven cost

Cost Risk Analysis


Unit System: /

Work Breakdown Structure (one element per line; fields separated by commas, tabs or |)



Distribution words: triangular, pert, uniform, normal, lognormal, fixed (blank = the default below). A group label (any word) after the numbers puts the element in a correlation group. A first line without numbers is a header.




Correlation Between Elements



Lower triangle or full rows, blanks read as 0; a matrix that is not positive definite is replaced by the nearest correlation matrix and the page says so.

Risk Register and Schedule-Driven Cost (optional)

Each risk occurs with its probability and then costs an impact drawn from its distribution (the default shape above unless named); risks are independent of each other and of the elements.




Simulation and Confidence Levels





×

Cost Risk Analysis

Distributions, Correlation, Monte Carlo S-Curve and Contingency

Why a point estimate is not enough

A cost estimate built from the most likely value of every work breakdown structure (WBS) element is a single number that will almost never be the final cost. Each element is uncertain, and cost distributions are skewed to the right: there are more ways for an element to cost more than planned than less, so the mean of each element lies above its most likely value and the sum of the most likely values sits well below the median of the total. The GAO Cost Estimating and Assessment Guide (GAO-20-195G, Chapter 12) and the NASA Cost Estimating Handbook (Appendix G) therefore ask that every estimate carry a risk and uncertainty analysis: a probability distribution of the total cost, the cumulative probability of the point estimate on it, and the contingency needed to reach the confidence level management chooses. This tool performs that analysis for a WBS pasted as text.

Element distributions

Each element is entered either as three points (low a, most likely m, high b) with a distribution shape, or as a mean and standard deviation (the layout of NASA CEH Table G-4) for a normal or lognormal element. The shapes and their moments are:

  • Triangular (a, m, b): mean (a + m + b)/3, variance (a² + m² + b² − am − ab − mb)/18, mode m. The usual shape for expert three-point estimates (GAO Chapter 12, NASA Figure G-4).
  • PERT: the four-parameter beta on [a, b] with shape parameters 1 + 4(m − a)/(b − a) and 1 + 4(b − m)/(b − a), so that the mean is (a + 4m + b)/6 (Malcolm, Roseboom, Clark and Fazar 1959). Its exact variance is (μ − a)(b − μ)/7; the classical (b − a)/6 is an approximation to its standard deviation and is printed beside the exact value. The PERT puts less weight in the tails than the triangular with the same three points.
  • Uniform (a, b): mean (a + b)/2, variance (b − a)²/12; for an element known only to lie in a range.
  • Normal: from a mean and standard deviation, or from a low and high read as percentiles: μ = (a + b)/2, σ = (b − a)/(2z) with z the standard normal quantile of the upper percentile (1.2816 for 10/90, 1.6449 for 5/95, 1.0364 for 15/85).
  • Lognormal: from a mean and standard deviation (σln² = ln(1 + σ²/μ²), μln = ln μ − σln²/2) or from percentiles (μln = (ln a + ln b)/2, σln = (ln b − ln a)/(2z)); mean eμln + σln²/2, mode eμln − σln². NASA's Appendix G prefers it over the normal because it cannot go negative and is right-skewed.
  • Fixed: a = b or a zero standard deviation; a firm quote or a contracted price.

The page tabulates the mode, mean, standard deviation and the 10th and 90th percentiles of every element so that the shapes can be compared on one footing.

Low and high as bounds or as percentiles

Experts asked for the lowest and highest possible cost rarely give the true extremes; GAO cites studies showing that subject-matter experts capture about 70 % of the real range, and describes the practice of reading their minimum and maximum as the 15th and 85th percentiles and widening the distribution accordingly. The "Low and High Are" selector does this: with a percentile choice the triangular, PERT and uniform bounds are solved outward (two equations F(aentered) = p, F(bentered) = 1 − p in the unknown bounds, the mode kept) so that the entered values sit at the chosen percentiles; the normal and lognormal always read the low and high as percentiles. The widened bounds are printed in the element's note.

Analytic roll-up

The mean of the total is the sum of the element means whatever the correlation. Its variance is σ² = ΣiΣj ρij σi σj: the root-sum-square √Σσi² when the elements are independent, the plain sum Σσi when every pair is perfectly correlated, and in between otherwise. With a common coefficient ρ between every pair, σ² = (1 − ρ)Σσi² + ρ(Σσi)². By the central limit theorem the sum of many elements approaches a normal distribution (NASA Figure G-3), so μ + zσ gives a first approximation to each percentile; the simulation shows how far the skew of the inputs, the register events and the correlation move the real percentiles away from it. The NASA Appendix G example on the page (eleven lognormal elements, correlation 0.6 everywhere) has a mean of $236.3M and a standard deviation of $26.9M, the handbook's "$236 million" with one standard deviation at "$209 million" and "$263 million".

Correlation

Cost elements move together: the same labour rates, the same schedule, the same design maturity. Positive correlation does not change the mean of the total but widens its distribution, so it matters most at the high percentiles where the contingency is read (GAO Figure 17: adding 0.9 correlation moved the 50th percentile by $1M and the 80th by $24M). GAO's rule is that correlation should never be ignored; the Joint Agency Cost Schedule Risk and Uncertainty Handbook recommends 0.3 as a default when nothing better is known, NASA's example uses 0.6. The tool applies one coefficient within correlation groups (a label after the numbers of a row), or one coefficient between every pair, or a pasted matrix (lower triangle or full). A matrix that is not positive definite (impossible as a set of correlations) is replaced by the nearest correlation matrix by eigenvalue clipping (Higham 2002) and the page says so. Elements with a fixed cost are uncorrelated by nature.

Monte Carlo simulation

In each iteration every element is drawn from its distribution, each register risk occurs with its probability and then draws its impact, the schedule delay is drawn and multiplied by the burn rate, and everything is summed. The sorted totals of all iterations form the empirical cumulative distribution, the S-curve, from which the percentiles, the cumulative probability of the point estimate and the contingency are read. Two methods induce the correlation:

  • Iman–Conover (1982) rank correlation, the method of @RISK and Crystal Ball: every element is sampled independently, then the samples are rearranged to follow the rank order of a matrix of correlated van der Waerden scores whose sample correlation is made exactly the target (Cholesky of the target and of the score correlation). The marginal distributions are kept exactly and the rank correlation of each pair comes out at its target to within sampling error; the page prints the achieved rank correlation of the most strongly correlated pair as a check.
  • Gaussian copula: correlated standard normal scores are generated by the Cholesky factor of the target matrix and each is mapped through its element's inverse distribution function. The Pearson correlation of the outputs is slightly below the target for skewed marginals.

The simulation is seeded, so the same inputs and seed reproduce the same result; 10,000 iterations put the P80 within about 0.3 % of its converged value for the examples on the page, and 50,000 are allowed.

Contingency and confidence levels

GAO defines the contingency as the difference between the point estimate and the cost at the confidence level management selects, and asks the estimator to report the cumulative probability of the point estimate itself: a point estimate at the 15th percentile, as in GAO's UAV example, has only a 15 % chance of not being exceeded. No single level is a best practice; budgeting to the mean is common, 70 or 80 % is used for high-risk programs (NASA policy sets a joint cost and schedule confidence level of 70 % for its projects), and a portfolio funded at a high level everywhere may be unaffordable. The page gives the cost and the contingency at every level entered, against the point estimate, the sum of the element means and the sum of the most likely values; the P80 − P50 difference, a common management-reserve convention above a median budget; and GAO's two allocations of the contingency to the elements, proportional to each element's standard deviation or to its "need" (its own cost at the level minus its point value), both scaled to the simulated total so that allocating element percentiles one by one does not overstate the reserve.

Risk register and schedule-driven cost

Discrete risks (a supplier slips, a test fails) are not well represented by widening an element's range. The register takes each as a Bernoulli event with probability p and an impact distribution: its expected monetary value is p × mean impact (PMBOK Guide), its unconditional variance p(σI² + μI²) − (pμI)². Such an event adds little to the mean but a step to the upper tail, which the S-curve shows. A schedule-driven cost models the standing cost of the project during a delay: days of delay (low, most likely, high) times a burn rate per day, independent of the elements.

Risk drivers and the tornado

Three measures rank the items by their influence on the total. The variance share cov(Xi, T)/var(T), analytic from the input σ and ρ and simulated from the sample, sums to 100 % and includes each item's covariance with the others, so with correlation an item's share includes the part of the other elements that moves with it. The Spearman rank correlation of each item with the total is the sensitivity measure of the commercial tools. The tornado swings each item alone from its 10th to its 90th percentile with every other item at its point value and plots the resulting totals as horizontal bars, largest swing on top. The items at the top are where better data, a firm quote or a design decision reduces the contingency most.

Reading the results

  • The cumulative probability of the point estimate: below 50 % the estimate is optimistic; the lower it is, the larger the contingency any realistic budget needs.
  • The gap between the sum of the most likely values and the sum of the means is the part of the contingency that is simply the skew of the inputs, before any correlation or discrete risk.
  • Mean versus median: a mean above the median marks a right-skewed total; the skewness is printed.
  • The analytic normal percentiles beside the simulated ones show how much the shape of the inputs matters; they agree closely when the elements are many, symmetric and independent.
  • Correlated standard deviation against RSS: the percentage increase is the price of the dependence between elements; it is what a rank correlation of 0.3 or 0.6 is worth at the P80.

Worked example on the page

The default case is the NASA Cost Estimating Handbook Version 4.0, Appendix G, section G.5: a flight-system WBS of eleven Level 2 elements with the means and standard deviations of Table G-4 (lognormal distributions), every pair correlated at 0.6 (Table G-5). The handbook prints a mean of $236 million with one standard deviation below and above at $209 million and $263 million, and reads from its S-curve a 70 % chance that the cost is below $248 million; the analytic roll-up gives 236.3 and 26.9, and the simulation puts the 70th percentile at 248. (The handbook's text also quotes a 40 % chance below $221 million, a reading of its figure that neither the normal approximation nor the simulation reproduces, both giving about 227 to 229.) The second example of the selector is an illustrative twelve-element WBS with three correlation groups, four register risks and a schedule-driven cost; its values are not from a publication. The test script checks the library against the handbook's numbers, GAO's printed contingency arithmetic, the closed forms of every distribution and an independent numpy run of two million draws.

Limits of the tool

  • The register risks and the schedule term are independent of the elements and of each other; a risk that drives several elements is better modelled as a correlation group or by widening those elements (GAO's risk-driver method is not implemented).
  • Correlation is applied as a Pearson coefficient (analytic) and as a rank or copula correlation (simulation); for skewed elements the two differ slightly.
  • Percentile-defined bounds assume the most likely value lies between the entered low and high.
  • No time phasing, inflation or discounting: every cost is in one currency unit of one year. No schedule network: the schedule term is a single delay distribution.
  • Contingency allocation follows GAO's two proportional rules; the allocations are shares of one simulated total and do not represent a commitment to fund the elements.



References

U.S. Government Accountability Office (2020). Cost Estimating and Assessment Guide: Best Practices for Developing and Managing Program Costs. GAO-20-195G, Washington, DC.

National Aeronautics and Space Administration (2015). NASA Cost Estimating Handbook, Version 4.0, Appendix G: Cost Risk and Uncertainty Methodologies. NASA Headquarters, Washington, DC.

U.S. Department of Defense and National Aeronautics and Space Administration (2014). Joint Agency Cost Schedule Risk and Uncertainty Handbook. Naval Center for Cost Analysis, Washington, DC.

AACE International (2008). Risk Analysis and Contingency Determination Using Range Estimating. Recommended Practice 41R-08, AACE International, Morgantown, WV.

Iman, R. L., and Conover, W. J. (1982). "A Distribution-Free Approach to Inducing Rank Correlation Among Input Variables." Communications in Statistics – Simulation and Computation, Vol. 11, No. 3, pp. 311–334.

Malcolm, D. G., Roseboom, J. H., Clark, C. E., and Fazar, W. (1959). "Application of a Technique for Research and Development Program Evaluation." Operations Research, Vol. 7, No. 5, pp. 646–669.

Vose, D. (2008). Risk Analysis: A Quantitative Guide, 3rd ed. Wiley, Chichester.

Evans, M., Hastings, N., and Peacock, B. (2000). Statistical Distributions, 3rd ed. Wiley, New York.

Book, S. A. (1997). "Cost Risk Analysis: A Tutorial." In Risk Management Symposium, Space Systems Cost Analysis Group, Manhattan Beach, CA.

Project Management Institute (2017). A Guide to the Project Management Body of Knowledge (PMBOK Guide), 6th ed. Project Management Institute, Newtown Square, PA.

Higham, N. J. (2002). "Computing the Nearest Correlation Matrix – A Problem from Finance." IMA Journal of Numerical Analysis, Vol. 22, No. 3, pp. 329–343.

Marsaglia, G., and Tsang, W. W. (2000). "A Simple Method for Generating Gamma Variables." ACM Transactions on Mathematical Software, Vol. 26, No. 3, pp. 363–372.

Marsaglia, G. (2004). "Evaluating the Normal Distribution." Journal of Statistical Software, Vol. 11, No. 4, pp. 1–11.

Worked Examples

Published examples this tool reproduces; each page lists the inputs to enter and the printed answers.

All worked examples


DISCLAIMER: The methods and calculation on aNOWysis.com are provided as means to educate the reader. There is no warranty, expessed or implied, as to the relevance or accuracy of the methods or calculations. All calculations should be checked by a qualified analyst for appropriateness and accuracy. We will not be held liable for any damages, injuries or deaths caused by using methods or calculations from this site.