Lecture 13 Student
Lecture 13 Student
CE 766 L ECTURES 13
Riddhi Singh
Figure from: Wilby and Desai (2010), Weather Email: [email protected]
In this module, we will learn about:
2
SOURCES OF UNCERTAINTY
3
There are various sources of uncertainty in a
typical management problem
• R: relationships or models that relate actions to impacts may
have uncertainties associated with them
– The system we are analysing may change with time
• L: levers or actions may have uncertainties related to their
implementation, even if an optimal management strategy is
identified
• M: sometimes, we may be uncertain about our relative
preferences between multiple conflicting objectives, or we
may be uncertain how our measures will change with time
4
Generally, uncertainty is linked to risk
Image: http://www.nhc.noaa.gov/gifs/1992andrew2.gif 6
Risk is the potential of losing something of value.
The ISO 31000 (2009) / ISO Guide 73:2002 definition of risk is the 'effect of
uncertainty on objectives'.
http://en.wikipedia.org/wiki/Risk
Image http://accelerateddevelopment.ca/blog_images/RiskAndUncertainty.png 7
Uncertainty can enter into our analysis in
several ways
• Statistical variation (random error in measurement)
• Subjective judgement (systematic)
• Linguistic imprecision
• Inherent randomness (process randomness)
• Disagreement (conflicting information)
• Approximation
Aleatory Epistemic
Random Systematic
Uncertainty inherent in Uncertainty due to incomplete
stochastic phenomenon knowledge or incomplete
measurements about a
phenomenon
Cannot be reduced with time May increase or decrease with
time
Can be represented by Monte Fuzzy logic
Carlo method using specified
probability distribution
9
Example: sources of uncertainty in hydrologic modelling
(after Beven, 2012):
10
Example. Uncertainty sources in assessing impact
of climate change in water resources
Emission scenarios
(future CO2
concentration)
Legend
Return flows
Withdrawal General
AG Agriculture circulation
H/I Household/Industrial
E Energy model
Ec Ecological Services
ET Evapo-transpiration
P Precipitation
SW Surface Water
GWs Shallow Ground Water
GWd Deep Ground Water Downscaling
Hydrologic
model
Indicators of
hydrologic
response
11
Can we explore all possibilities?
Indicators of
Hydrologic
Response 12
UNCERTAINTY QUANTIFICATION
13
Tackling uncertainty: many ways
Beven, 2008 15
Image: http://en.wikipedia.org/wiki/File:Pi_30K.gif
MONTE-CARLO METHODS
16
Recall: random variables
A random variable is a variable whose value
depends on the outcome of an event X1 =5
X2 =1
X3 =6
Flip the dice 5 times X4 =1
X5 =4
Note down the values X6 = ?
on the upper face. .
.
.
P(X=1) = 1/6
P(X=2) = 1/6
P(X=3) = 1/6
P(X=4) = 1/6
P(X=5) = 1/6
P(X=6) = 1/6
1/6
0
1 2 3 4 5 6
Random variable X
PDF (X)
1 2 3 4 5 6
Random variable X
Example: a random variable that can take any value between 1 and 6
with equal probability
20
Examples of probability distributions- Normal,
Lognormal, Beta, Poisson, Binomial, and many more…
NORMAL Poisson
b
P(a X b) P ( x)dx P( X a) pa
a
PDF CDF
Area = F(X)
Normal or Gaussian 1
( x )2
1 x
2 2
2
e 1 erf
2 2
(ln x )2
Lognormal 1 1 1 ln x
e 2
2
erf
x 2 2 2 2
( ) 1 ( )
Beta
x
x (1 x) 1
( )( )
( )( ) 0
x 1 (1 x) 1
1
Student’s-t
Too long…!
1
2
2 1 x 2
23
2
Monte Carlo methods (or Monte Carlo
experiments) are a broad class of
computational algorithms that rely on repeated
random sampling to obtain numerical results;
typically one runs simulations many times over
in order to obtain the distribution of an
unknown probabilistic entity.
Source: http://en.wikipedia.org/wiki/Monte_Carlo_method24
The basic idea of Monte-Carlo is to relate the true statistic of a
random variable with its sample statistic
N (0,1)
Y f ( x) Y f ( x)
Mean of true
population
? ˆ n Mean of samples
25
The basic idea of Monte-Carlo is to relate the true statistic of a
random variable with its sample statistic
N (0,1)
Y f ( x) Y f ( x)
1 n
f ( x) p ( x)dx, E (Y ) ˆ n f ( xi ) p ( xi )
n i 1
1 n
E (Y ) ˆ n Yi
n i 1
26
Monte-Carlo works because of the strong and
weak laws of large numbers
P lim ˆ n 0 1
n
lim P ˆ n 0
n
This law states that as the number of samples increases the absolute error
between the sample mean and the true population mean goes to zero
27
RANDOM SAMPLING
28
Random sampling is the process of drawing random samples from a
given distribution.
29
Thankfully, MATLAB has inbuilt functions to easily generate random
samples from a distribution!
NORMAL LOGNORMAL
PDF CDF
x
>> x=random('normal',0,1,100,1);
>> histfit(x,sqrt(length(x)), 'normal')
31
>> cdfplot(x,'black',2)
We learnt how to generate random samples for a single variable, but
doing the same for multiple variables requires specification of MORE than
the distributions of the variables
Variable name
Distribution Range
(MATLAB name)
Variable A
Uniform [0, 1]
(varA)
Variable B
(varB) Uniform [0, 1]
You may end up loosing out on the extremes or important regions of the
space. 34
Sampling techniques that are an improvement over the standard URS:
35
Sampling techniques that are an improvement over the standard URS:
0.8
Variable B
(varB)
0.6
0.4
0.2
Variable A
(varA)
This exhaustive sampling ensures that all regions of the space are covered.
But...
36
Exponential growth in number of samples required with variables for
exhaustive grid sampling:
Number of Number of samples per Total number of
variables variable required samples
2 10 10x10 = 100
3 10 1000
4 10 10000
5 10 10^5
6 10 10^6
7 10 10^7
8 10 10^8
37
Stratified sampling attempts to overcome the limitations of URS (not
sampling certain regions of the space) by implementing an intelligent
sampling scheme.
0.8
Variable B
(varB)
0.6
0.4
0.2
Variable A
(varA)
Break up the space into separate regions and select points randomly from each
region 38
Latin Hypercube Sampling (LHS) is a typical type of stratified sampling
0.8
Variable B
(varB)
0.6
0.4
0.2
Variable A
(varA)
40
Sampling a joint normal distribution using Method 1/II
41