Docsity

Lecture Notes Modeling Spatial Variability | ENVR 468, Study notes of Environmental Science

Toggle sidebar
bg1
Modeling spatial variability
1. The covariance of a Spatial Random Fields (SRF)
1.1 Definition of SRF and associated bivariate pdf
The Spatial Random Field (SRF) X(s) is a random variable that is a function of location s=(s1,s2)
X(s)=x is a random variable
X(s’)=x’ is another random variable
X(s) and X(s’) are correlated, they are characterized by their bivariate pdf
fX(s),X(s’)(

’) = fx,x’ (

’)
Note: For SRF we like to also write (purely a notation issue)
fX(s),X(s’)(

’) =fX(

’;s’,s’)
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Partial preview of the text

Download Lecture Notes Modeling Spatial Variability | ENVR 468 and more Study notes Environmental Science in PDF only on Docsity!

Modeling spatial variability

1. The covariance of a Spatial Random Fields (SRF)

1.1 Definition of SRF and associated bivariate pdf The Spatial Random Field (SRF) X( s ) is a random variable that is a function of location s =(s 1 ,s 2 ) X( s )=x is a random variable X( s’ )=x’ is another random variable X( s ) and X( s’ ) are correlated, they are characterized by their bivariate pdf

fX( s ) , X( s’ ) ( ’) = fx,x’ ( ’)

Note: For SRF we like to also write (purely a notation issue)

fX( s ) , X( s’ ) ( ’) = fX ( ’; s’,s’ )

1.2 The mean trend of a SRF The mean trend of X( s ) is mX( s ) = E[ X( s ) ] = (^)         d  d '  fxx '(, ') mX( s’ ) = E[ X( s’ ) ] = (^)         d^ ^ d '^ ' fxx '(,^ ') Note: For SRF we like to write: mX( s ) = E[ X( s ) ] =         d^ ^ d^ '^  fX (^ ,^ '; s , s' ) Also we can obtain the marginal pdf from the bivariate, and use that to express the mean trend   fX (  ; s )  (^)   d ' fX ( , '; s , s' ) mX( s ) = E[ X( s ) ] =  d ^  fX (^ ; s )   

Example 1 Let X( s ) be a SRF, let s and s’ be any two points, and assume that the bivariate pdf of X at s and s’ is     (^)      0 o/w ( , '; , ) 'exp if [^0 ,^1 ] and ' [^0 ,^1 ] a f^ k X   s s'^  s^ s'^ ^  Write the equations for mX( s ) , mX( s’ ) and cX ( s , s’ )

Example 1 Let X( s ) be a SRF, let s and s’ be any two points, and assume that the bivariate pdf of X at s and s’ is     (^)      0 o/w ( , '; , ) 'exp if [^0 ,^1 ] and ' [^0 ,^1 ] a f^ k X   s s'^  s^ s'^ ^  Write the equations for mX( s ) , mX( s’ ) and cX ( s , s’ ) mX( s ) = (^)     1 0 1 0 d^ d '^^ k 'exp a s s'     mX( s’ ) = (^)     1 0 1 0 d^ d '^ '^ k 'exp a s s'     cX ( s , s’ ) = (^)       1 0 1 0 d^ d '^ ( mX ( ))( ' mX ( ))^ k 'exp a s s'    s  s' 

1.4 Homogeneous SRF A homogeneous SRF has the following properties: It’s mean trend is constant, mX( s )= m It’s covariance is only a function of the distance, cX ( s , s’ ) = cX ( r=|| s - s’ || ) Example 2 Are the following SRFs homogeneous?

  1. A SRF with mean trend mX( s ) = a || s - s o|| NO
  2. A SRF with covariance cX ( s , s’ ) = exp-|| s - s o|| NO
  3. A SRF with mean trend mX( s ) = 4 and covariance cX ( s , s’ ) = exp-|| s - s’ || YES
  4. The SRF of Example 1. NO Properties of homogeneous SRF It’s variance of is constant,  X 2 ( s )= X 2 proof:X 2 ( s )= E [( X( s ) - mX( s ) ) 2 ] = cX ( s , s ) = cX ( r=|| s - s || ) = cX ( 0 ) is not a function of s cX (0) = X 2 When r → ∞, then cX ( r) → 0 cX ( r )= E [ X( s )X( s’ ) ] (^) || s - s’ || =r- mX 2  A useful equation to estimate the covariance from site specific data

1.5 Models of covariance for homogeneous SRFs The behavior of the covariance at the origin is important Gaussian model: cX ( r ) = co exp-( 3 r 2 /ar 2 ) co = sill = variance ar = spatial range = the distance at which the cov. drops by 95% of the sill value. Behavior at the origin: the correlation remains flat → smooth processes Exponential model: cX ( r ) = co exp-( 3 r/ar ) co = sill = variance ar = spatial range Behavior at the origin: the correlation is linear → more variability

Nugget effect model cX ( r ) = co ( r ) = ^ 

  0 o/w c o if r 0 co = sill = variance Behavior at the origin: the correlation drops → purely random

1.6 Estimation of covariance for homogeneous SRFs Recall that a useful equation to calculate the covariance of a homogeneous SRF is cX ( r )= E [ X( s )X( s’ ) ] (^) || s - s’ || =r- mX 2 When having site-specific data , and assuming the SRF is homogeneous , use the following estimator 2 , ( ) ( )^1 , 1 ˆ (^) ( ) taili X N r cX r  (^) N ri (^)  XheadiXm where N(r) is the number of pairs ( X head, X tail) I separated by a distance of r +/- dr, that is such that r-dr ≤ || s head- s tail|| ≤ r+dr

1.7 Modeling the covariance Modeling the covariance of the SRF is the exercise of fitting a covariance model (or nested models) through the set of experimental covariance values

1.8 Modeling the covariance of SRF in BMElib In BMElib the function used to estimate the covariance of a homogeneous SRF is covario.m SYNTAX : [d,C,o]=covario(c,Z,cl,method,options); INPUT: cl=[r1 r2 r3 r4 … ] defines classes of lags [r1 r2] is the first class of lags, i.e. those such that r1 ≤ || s head- s tail|| ≤ r [r2 r3] is the second class of lags, etc. ch=[- -; zh=[-; are coordinates and values of the site specific data

  • -; -;
  • -] -] OUTPUT: d average length of pairs in each class C values of the experimental covariance for each class o number of pairs in each class

Hints when estimating the covariance from site-specific data

  1. Choose your classes well! Wide enough so you have enough pairs, small enough to have a good resolution
  2. The maximum value (distance) of a spatial lag should be less than half the domain size
  3. You want to capture the behavior at the origin

covmodel=’nuggetC’; covparam=[c0];

Nested exponential + nugget: cX ( r ) = c 01 exp-( 3 r/ar1 ) + c 02 ( r )

covmodel={’exponentialC’,’nuggetC’}; covparam={[c01 ar1],[c02]}; See modelsyntax.m for more info on building covariance models in BMElib.

Appendix: The covEstimationS.m Tutorial

Exploratory analysis and covariance estimation for Spatial Random Fields (SRF) X(s) A Spatial Random Field (SRF) X( s ) takes a value that changes as a function of the spatial location s = [ x,y ]. Hard data are exact measurements of the SRF collected at a set of spatial location with coordinates ch = [[ x 1 ,y 1 ];…[ xn,yn ]]. The markerplot.m command may be used to provide a map showing the hard data with circles that have a size proportional to the value of the hard data. The covario.m command may be used to estimate experimental values of the covariance as a function of spatial lag. One then need to select a covariance model that fits the experimental covariance values. The exponential, Gaussian and Nugget covariance are example of some popular covariance models. Generally a sill (variance) value C 0 and a spatial range ar specify these covariance models. The covEstimationS.m command is a tutorial showing how to use these commands for a few selected case of SRFs. The case corresponding to four different SRFs are presented in figures on the following pages. The program covEstimationS.m itself is printed after those figures. i

Spatial Random Field (SRF) X( s ) with Gaussian covariance The model selected is C(r)=C 0 exp ( 3 2 /^2 r ar), where the sill (variance) C 0 =1.7 , and the spatial range ar = 6.5 Km. iii

Spatial Random Field (SRF) X( s ) with a nested covariance structure with nugget and Gaussian components The model selected is C(r)= Cnugget(r)+ C 0 exp ( 3 2 /^2 r ar), where the nugget sill Cnugget =0.43 , a Gaussian sill C 0 =0.22 the spatial range ar = 10 Km. iv