Module - 5 Risk & Decision Analysis - Simulation
Module - 5 Risk & Decision Analysis - Simulation
01/18/2022 1
Risk & Decision Analysis - Simulation
• Expected Value (EV) computation also called “Monte Carlo
Simulation”
• Most popular management science method
• Computation with probability distribution
• Simulation = Monte Carlo Simulation
• Simulation, option of describing risk & uncertainty of input variables
in probability distribution e.g. CAPEX, OPEX, pay thickness
• Input probability distribution of variables into deterministic formulas
gives probability distribution of output e.g. NPV
01/18/2022 2
Simulation - Outline
• Simulation overview
• Simulation process, & descriptions of key techniques
• Random numbers
• Stopping rules
• Latin hypercube sampling
• Dependency
• Applications & examples
• Paper by Orodu et al. (2011)
01/18/2022 3
Simulation Overview of Methods
• Primary reason, to define distribution of outcome for uncertainty
analysis, including statistical mean (EMV or EV NPV) & other
measures of central tendency & dispersion
• EMV, common criterion for investment decisions
• NPV = f(oil price, CAPEX, OPEX, tax, royalty, discount rate, production
rate); these variables may be interrelated
• Deterministic values of independent variables yields a deterministic
NPV, hence deterministic evaluation.
01/18/2022 4
Prob. Prob. Prob.
= × ×......
NPV i Po
01/18/2022 5
Why Simulation
• Conversion of probability distribution into probability
density distribution & represented by analytical
functions
• These analytical functions are then required to give
the density function.
• Analytical approach not feasible for economic
evaluation and petroleum risk.
• Use of mean values of the input distribution; mean of
dependent variable not equal to applying the mean of
the independent variables.
01/18/2022 6
Hence simulation is adopted, how:
01/18/2022 7
ADVANTAGES OF APPROACH
01/18/2022 8
SIMULATION PROCESS
01/18/2022 9
SIMULATION PROCESS Cont’d
01/18/2022 10
SIMULATION PROCESS Cont’d
01/18/2022 11
Random Numbers
• Unbiased way/method of sampling values from random variable
distributions.
• Random numbers sampling method is one of the methods for
sampling distributions.
• Are dimensionless, positive numbers sequence of numbers 0 to 1
• No pattern in order of numbers
• Each number equally likely to occur in the sequence
• Practical source of random number is by random number generator.
• An equation-technically, it is a pseudo-random number generator.
• Generates numbers that are uniformly distributed (no discoverable pattern).
01/18/2022 12
Random Numbers Cont’d
• Generator algorithm is standard component of programmable
tools.
• Spreadsheets e.g. Excel, RAND function.
• Good generator possesses the capability to set the STED or starting
value, this enables regeneration of same series of random numbers.
• Use of random numbers
• Example, with 5 random 1 1
Random Number
equation, 5 different
Cumulative
Probability
random numbers are
required.
0 0
01/18/2022
Random Variable 13
Stopping Rules
• No specific laid down rules for number of trials required.
• For convergence, this depends on:
• Number of distribution sampled for each trial.
• Shape and magnitude of each distribution.
• Relationship amongst variables.
• Minimum number of trials is 100
• Maximum number of trials is 10,000 and more.
01/18/2022 14
Stopping Rules Cont’d
• Brute force methods
• Standard error of the mean
01/18/2022 15
Stopping Rules Cont’d
Brute Force
• Run 100 trials and compute mean.
• Change speed, run 100 trials and compute mean.
• Compute mean, if far apart, repeat step 1 and 2 with 200 trials.
• Compute mean of all runs
01/18/2022 16
Stopping Rules Cont’d
Standard Error of the Mean
01/18/2022 17
LATIN HYPERCUBE SAMPLING (LHS)
1
Frequency
0 0.5 1
Random Numbers
01/18/2022 18
LATIN HYPERCUBE SAMPLING (LHS) Cont’d
01/18/2022 19
MONTE-CARLO SAMPLING
• Manual method
• graphical approach
• equation
• Graphical Approach
• Equation
• CDF of distribution stated as RN = f(x)
• Solving for x is a function of RN (inverse function of the CDF)
01/18/2022 21
XL XM XH
• Uniform distribution simply U(Xmin,Xmax)
X = RN (XM AX – XMIN) + (XMIN)
xmin xmax
01/18/2022 22
• Exponential distribution sampling
01/18/2022 23
Excel Function for Simulation
• Use of excel in-built functions
• Fit-fit-purpose applications, possible using Excel’s built-in function in
macro language, Visual Basic for Applications (VBA).
Excel’s spread sheet functions also accessible in VBA
• Functions
• Random numbers
• RAND (); uniform random numbers generation (0 →1)
• EXCEL RAND()
• Recalculation; use F9
01/18/2022 24
Excel Function for Simulation
Probability Distribution – Inverse CDF
• =BETAINV (prob., α, β, A, B) - random
inverse of the cumulative probability function
• =CHINV (prob., degree-freedom)`
inverse one –tailed cumulative probability of chi-squared distribution
• =FINV (prob., degrees-freedom, degrees-freedom2)
inverse of F cumulative probability distribution
• = GAMMAINV (prob., α, β)
inverse of gamma cumulative probability distribution
• =LOGINV (prob., μ, σ)
inverse log-normal cumulative probability distribution
• =NORMINV ( prob., μ, σ)
Inverse normal cumulative probability distribution
use, e.g NORMINV(RAND(),µ,σ)
• = NORMSINV ( prob.)
inverse of standard normal cumulative probability distribution
01/18/2022 25
Further Excel statistical function
• PDF & CDF FUNCTIONS
=BINOMDIST ()
=EXPONDIST ()
=HYGEOMDIST ()
=NEGBINOMDIST ()
=POISSON ()
=WEIBULL ()
• PDF & CDF; used with VLOOKUP () function to create random variables
e.g VLOOKUP (RAND(), look up-vector, result- vector)
01/18/2022 26
Dependency
• Total (full) Dependency
• Diffuse (partial) Dependency
01/18/2022 27
Total (Full) Dependency
• Cross-plot with dependence
• Correlation coefficient “r”, is used to access the
the relationship of a variable to the other
• r = ±1 or close to ± 1.0 sufficient for y=f(x)
xy xy
r
x y xx yy
xy xi x yi y xx xi x
2
x
2
01/18/2022 28
Diffuse (Partial) Dependency
• Dependency not well formed function
• For variable y, substantial range of values for x
• Hence y-distribution required for each trial of x
• “x” independent random variable for this example
• “y” dependent random variable
• How to sample dependent random variable?
01/18/2022 29
Decision analysis for petroleum exploration” 2nd Ed. Newendorp & Schuyler
01/18/2022 30
Decision analysis for petroleum exploration” 2nd Ed. Newendorp & Schuyler
01/18/2022 31
Dependency - Procedure
• Cross plot of random variable X & Y
• Draw envelope around data points
• Representative equations of upper bound & lower bound of envelope
• Equation: Linear or Curvi-linear
• Upper boundary function; Yupper (x)
• Lower boundary function ; Ylower (x)
01/18/2022 32
Dependency – Procedure Cont’d
• Identify shape of dependent variable’s distribution
• Normalize the distribution generated above for each x in x-axis
• Slightly different normalization for log-normal, normal..........
y ymin
ynorm
ymax ymin
01/18/2022 33
Dependency – Procedure Cont’d
• Sample the independent variable X by Monte Carlo sampling or Latin
Hypercube Sampling
• gives x1 -trial value
• Trial value partially dependent variable
• sample normalized distribution f(y)
(include fig.8.19)
normalized value = yni= ynorm
• random variable y
• Y = Ylower(X1) + Yni{Yupper(X1) - Ylower(X1)}
01/18/2022 34
Dependency – Procedure Cont’d
• NON- IDEAL SITUATION
• Different shape of the dependent variables distribution w.r.t. “X” (horizontal
axis)
“density pattern of points y, y vs x in cross- section varies”
• e.g. mode of triangle may change
• function of shape versus x is necessary
• an alternative; different distribution at specified intervals of “x”
• correlation coefficient applicable to model partial dependency
01/18/2022 35
Software Applications
• @Risk by Palisade Corporation
• Oracle Crystal Ball
• Spreadsheet based software as Excel Add-in
• Functionality
• Monte Carlo Simulation
• Monte Carlo Sampling
• Latin Hypercube Sampling
• Dependency
• Sensitivity Analysis: Spider & Tornado plots, rank correlation
• Optimization
• Fit probability distribution to data
01/18/2022 36
Oracle Crystal Ball Application - Example
01/18/2022 37
Valuation of Oil & Gas Properties
by
Empirical Production Forecast
Valuation Methods
•Actual cost or replacement value
•Sale of Similar Properties
•Capitalization of Income, Engineering Evaluation Method
01/18/2022 40
qi=initial unrestricted flow rate qi DQ
Q=recoverable reserves
qa
tc ta
td
01/18/2022 41
Present Value PVOC Co ( PCFoc )
PVOC=present value of operating cost
(1 e jta )
(cumulative) Co
Co=operating cost per year j
PCF= Present Cost Factor
01/18/2022 42
PVF: Composite Present
Value Factor
PVR=(Reserves)(PVF)
qc qi qc qc
Recoverable Reserves (Q) Q qc tc
D
1 e Dtd
D
D
1 e Dtd
qi qc Dtd qi qa
1 e 1
D qi D qi
qa qi 1.0
PVR=Q (PVF) qi
Q
D
qi
PVR ( PVF )
D
qc D
PVF
qi
j
1 e
jtd
j
D
jtc
j
e 1
e
D j td
no period of prorated
D
production; qc/qi=1 ,tc=0 PVF
1 e
( D j ) td
D j
01/18/2022 43 43
Example
Consider the case of one well in an oil lease block. The reservoir data are as follows:
Lease area, A = 160 acres
Net Pay thickness, h = 100ft
Recovery, ER= 80bbl/acre-ft
Decline rate, D= 25%/year
MER rate, Qc= 500 bbl/day [(maximum efficient rate) allowable production rate, prior to production rate decline]
Working interest = 100%
Royalty = 12%
State & Local taxes = 7%
Selling price of crude oil = $30/bbl
Operating cost = $500/month
Drilling & completion costs = $2,000,000
Calculate on a before tax basis!
(a) Net present value of oil to be produced at discovery time.
(b) Net present value at decision time if there is a Six (6) month lag from decision time
to discovery time.
01/18/2022 44
Short cut profitability methods
• Approximate methods to
previous solution for qi
simplicity.
• Solution for this figure, during
period of constant or qc qc e Dt
allowable production at mid-
year discounting, present
value of allowable production qa
(total)=Q*c tc ta
td
1 i c
t
01/18/2022 46 46
Example
01/18/2022 47
Graphical Techniques
(Approximate Calculation of Profit Indicators)
01/18/2022 48