Monte Carlo Sampling, Convergence and Percentiles
Overview
A Monte Carlo result is only as good as three choices made after the input distributions are set (Distributions):
- How the inputs are sampled — random or stratified, and how the columns are paired
- How many trials are run — enough for the statistic being reported to stop moving
- How the outcomes are summarised — which percentile is called P90, and how percentiles combine across wells, reservoirs or prospects
This article covers those three steps.
Sampling an Input
Inverse Transform
Every sampling scheme draws a probability between 0 and 1 and turns it into a value of the input through the inverse of its cumulative distribution function :
If is uniform on (0, 1), follows the distribution . For a normal input is the normal quantile function; for a lognormal input with the standard normal quantile of ; for a triangular input with minimum , mode and maximum :
Random Sampling
Simple Monte Carlo draws each independently. Over many trials the sample fills the distribution, but any finite sample clusters by chance: some ranges of probability are over-sampled and others missed, and the tails are the ranges most often missed.
Latin Hypercube Sampling
Latin hypercube sampling (LHS) divides the probability range of each input into strata of equal probability and takes exactly one value from each (McKay, Beckman and Conover 1979):
where is a random position within stratum , or for the stratum midpoint. Each input column therefore covers its whole distribution at any . The columns are then shuffled independently, so that stratum of one input is paired with an unrelated stratum of every other input.
For an outcome that is monotone in each input, McKay et al. showed that the LHS estimate of the mean has a variance no larger than that of a random sample of the same size, and in practice it is often much smaller. LHS therefore reaches a stable answer with fewer trials, which is why it is the default in most petroleum risk tools (Murtha 1997).
Pairing and Correlation
Independent shuffling makes the inputs independent only on average: a finite sample has a small spurious correlation between columns, which shrinks as grows. Where inputs are physically related (porosity with permeability, area with thickness), the pairing must instead impose the intended rank correlation. The standard method is the restricted pairing of Iman and Conover (1982), which reorders the sampled columns so that their rank correlation matrix matches a target while every marginal distribution is kept.
Ignoring a positive correlation between inputs that multiply together narrows the outcome distribution, so the P90 is too high and the P10 too low.
How Many Trials
Error in the Mean
For independent random trials with outcome standard deviation , the standard error of the estimated mean is:
and an approximate 95 % confidence interval is . Halving the error takes four times as many trials.
Error in a Percentile
A percentile converges more slowly than the mean, and a tail percentile more slowly than the median. The standard error of the sample -quantile is approximately:
where is the probability density at the true quantile. The density is lowest in the tails, so P90 and P10 (and even more so P99 or P1) need more trials than P50 for the same precision. With 1,000 random trials the 10th percentile is known to about in probability at 95 % confidence, meaning it could lie anywhere from roughly the 8th to the 12th percentile.
Convergence Check
| Step | What to do |
|---|---|
| 1 | Run with trials and record mean, P90, P50 and P10 |
| 2 | Double and run again |
| 3 | Accept when the reported statistics change by less than the precision needed (typically 1-2 %) |
LHS reduces the trials needed but does not remove the check: the stratification cuts the tails at the outermost strata ( from to for midpoint sampling), so extreme percentiles still need a large .
Reading the Outcome
The Exceedance Convention
Petroleum resource estimates quote percentiles as probabilities of exceeding a value (SPE-PRMS 2018):
| Term | Meaning | Percentile | Reserves |
|---|---|---|---|
| P90 | 90 % probability the outcome is at least this value | 10th | Low estimate (1P) |
| P50 | 50 % probability | 50th (median) | Best estimate (2P) |
| P10 | 10 % probability | 90th | High estimate (3P) |
Statistical software follows the opposite, cumulative convention, in which "P10" is the 10th percentile and therefore the petroleum P90. Check the convention before comparing numbers between reports.
The outcomes are usually plotted as an expectation curve: the probability of exceeding each value. A lognormal outcome with median 100 and :
Here P90 = 59.9, P50 = 100 and P10 = 166.9, a P10/P90 ratio of 2.8. The mean, , lies above the median: for a right-skewed outcome the mean is always above P50.
Why Volumetric Outcomes Are Skewed
Oil in place is a product of factors:
The logarithm of a product is the sum of the logarithms, so by the central limit theorem the product of several independent uncertain factors tends towards a lognormal distribution, whatever the shapes of the individual inputs. This is why outcome distributions for in-place and recoverable volumes are right-skewed. The P10/P90 ratio is a useful check on the input ranges: estimators tend to give ranges that are too narrow, so a ratio much smaller than analogue fields show usually means underestimated uncertainty (Capen 1976).
Interpolating Between Trials
With sorted outcomes , a percentile falls between two trials. The common rule (Hyndman and Fan 1996, definition 7, used by spreadsheet PERCENTILE.INC) interpolates linearly at position for the cumulative fraction :
The petroleum P90 is and the P10 is . Different packages use different definitions; with a few hundred trials or more the differences are negligible, but with few trials they are not.
Percentiles Do Not Add
When several wells, reservoirs or prospects are combined, means add but percentiles do not:
For independent items the P90 of the total is higher than the sum of the individual P90s, and the P10 of the total lower than the sum of the P10s: the low cases are unlikely to all occur together. Adding P90s arithmetically is therefore conservative, and it equals the probabilistic total only when the items are perfectly correlated. PRMS allows either method but requires the method of aggregation to be stated, and the correct probabilistic total comes from summing the outcomes trial by trial within one simulation.
In Petroleum Office
PO.RES.MC.Sampledraws a midpoint Latin-hypercube column from a normal, lognormal, triangular or uniform distribution, shuffled by a fixed permutation so that the sheet recalculates to the same numbers every time. Each input takes its own permutation.PO.RES.MC.Percentilesreturns P90, P50, P10 and the mean of an outcome column in the exceedance convention, interpolated asPERCENTILE.INC.- The Probabilistic Oil in Place by Monte Carlo blueprint and the Probabilistic Volumetrics workbook apply both to oil in place and recoverable oil, with checks on the trial count, the correlation between sampled inputs and the P10/P90 ratio.
Related Topics
- MC Overview — Monte Carlo methodology and workflow
- Distributions — Choosing and parameterising input distributions
- MBE Overview — Deterministic in-place estimates to compare against
- DCA Statistics — Fit quality and uncertainty in decline parameters
References
McKay, M.D., Beckman, R.J. and Conover, W.J. (1979). "A Comparison of Three Methods for Selecting Values of Input Variables in the Analysis of Output from a Computer Code." Technometrics, 21(2), 239-245.
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, 11(3), 311-334.
Murtha, J.A. (1997). "Monte Carlo Simulation: Its Status and Future." Journal of Petroleum Technology, 49(4), 361-373. SPE-37932-JPT.
Capen, E.C. (1976). "The Difficulty of Assessing Uncertainty." Journal of Petroleum Technology, 28(8). SPE-5579-PA.
Hyndman, R.J. and Fan, Y. (1996). "Sample Quantiles in Statistical Packages." The American Statistician, 50(4), 361-365.
Law, A.M. (2015). Simulation Modeling and Analysis, 5th Edition. McGraw-Hill.
SPE/WPC/AAPG/SPEE/SEG/SPWLA/EAGE (2018). Petroleum Resources Management System (PRMS), revised June 2018.