Lecture 13 Gaussian Process Models - Part 2 3/06/2018 1
EDA and GPs 2
Variogram When fitting a Gaussian process model, it is often difficult to fit the covariance parameters (hard to identify). Today we will discuss some EDA approaches for getting a sense of the values for the scale, range and nugget parameters. From the spatial modeling literature the typical approach is to examine an empirical variogram , first we will define the theoretical variogram and its connection to the covariance. Variogram: 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π ) β π (π’ π )) where πΏ(π’ π , π’ π ) is known as the semivariogram. 3
Variogram When fitting a Gaussian process model, it is often difficult to fit the covariance parameters (hard to identify). Today we will discuss some EDA approaches for getting a sense of the values for the scale, range and nugget parameters. From the spatial modeling literature the typical approach is to examine an empirical variogram , first we will define the theoretical variogram and its connection to the covariance. Variogram: 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π ) β π (π’ π )) where πΏ(π’ π , π’ π ) is known as the semivariogram. 3
Variogram When fitting a Gaussian process model, it is often difficult to fit the covariance parameters (hard to identify). Today we will discuss some EDA approaches for getting a sense of the values for the scale, range and nugget parameters. From the spatial modeling literature the typical approach is to examine an empirical variogram , first we will define the theoretical variogram and its connection to the covariance. Variogram: 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π ) β π (π’ π )) where πΏ(π’ π , π’ π ) is known as the semivariogram. 3
Some Properties of the theoretical Variogram / Semivariogram β’ are non-negative πΏ(π’ π , π’ π ) β₯ 0 β’ are equal to 0 at distance 0 πΏ(π’ π , π’ π ) = 0 β’ are symmetric πΏ(π’ π , π’ π ) = πΏ(π’ π , π’ π ) β’ if there is no dependence then 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π )) + π ππ (π (π’ π )) for all π β π β’ if the process is not stationary 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π )) + π ππ (π (π’ π )) β 2 π·ππ€(π (π’ π ), π (π’ π )) β’ if the process is stationary 2πΏ(π’ π , π’ π ) = 2π ππ (π (π’ π )) β 2 π·ππ€(π (π’ π ), π (π’ π )) 4
Some Properties of the theoretical Variogram / Semivariogram β’ are non-negative πΏ(π’ π , π’ π ) β₯ 0 β’ are equal to 0 at distance 0 πΏ(π’ π , π’ π ) = 0 β’ are symmetric πΏ(π’ π , π’ π ) = πΏ(π’ π , π’ π ) β’ if there is no dependence then 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π )) + π ππ (π (π’ π )) for all π β π β’ if the process is not stationary 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π )) + π ππ (π (π’ π )) β 2 π·ππ€(π (π’ π ), π (π’ π )) β’ if the process is stationary 2πΏ(π’ π , π’ π ) = 2π ππ (π (π’ π )) β 2 π·ππ€(π (π’ π ), π (π’ π )) 4
Some Properties of the theoretical Variogram / Semivariogram β’ are non-negative πΏ(π’ π , π’ π ) β₯ 0 β’ are equal to 0 at distance 0 πΏ(π’ π , π’ π ) = 0 β’ are symmetric πΏ(π’ π , π’ π ) = πΏ(π’ π , π’ π ) β’ if there is no dependence then 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π )) + π ππ (π (π’ π )) for all π β π β’ if the process is not stationary 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π )) + π ππ (π (π’ π )) β 2 π·ππ€(π (π’ π ), π (π’ π )) β’ if the process is stationary 2πΏ(π’ π , π’ π ) = 2π ππ (π (π’ π )) β 2 π·ππ€(π (π’ π ), π (π’ π )) 4
Some Properties of the theoretical Variogram / Semivariogram β’ are non-negative πΏ(π’ π , π’ π ) β₯ 0 β’ are equal to 0 at distance 0 πΏ(π’ π , π’ π ) = 0 β’ are symmetric πΏ(π’ π , π’ π ) = πΏ(π’ π , π’ π ) β’ if there is no dependence then 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π )) + π ππ (π (π’ π )) for all π β π β’ if the process is not stationary 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π )) + π ππ (π (π’ π )) β 2 π·ππ€(π (π’ π ), π (π’ π )) β’ if the process is stationary 2πΏ(π’ π , π’ π ) = 2π ππ (π (π’ π )) β 2 π·ππ€(π (π’ π ), π (π’ π )) 4
Some Properties of the theoretical Variogram / Semivariogram β’ are non-negative πΏ(π’ π , π’ π ) β₯ 0 β’ are equal to 0 at distance 0 πΏ(π’ π , π’ π ) = 0 β’ are symmetric πΏ(π’ π , π’ π ) = πΏ(π’ π , π’ π ) β’ if there is no dependence then 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π )) + π ππ (π (π’ π )) for all π β π β’ if the process is not stationary 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π )) + π ππ (π (π’ π )) β 2 π·ππ€(π (π’ π ), π (π’ π )) β’ if the process is stationary 2πΏ(π’ π , π’ π ) = 2π ππ (π (π’ π )) β 2 π·ππ€(π (π’ π ), π (π’ π )) 4
Some Properties of the theoretical Variogram / Semivariogram β’ are non-negative πΏ(π’ π , π’ π ) β₯ 0 β’ are equal to 0 at distance 0 πΏ(π’ π , π’ π ) = 0 β’ are symmetric πΏ(π’ π , π’ π ) = πΏ(π’ π , π’ π ) β’ if there is no dependence then 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π )) + π ππ (π (π’ π )) for all π β π β’ if the process is not stationary 2πΏ(π’ π , π’ π ) = π ππ (π (π’ π )) + π ππ (π (π’ π )) β 2 π·ππ€(π (π’ π ), π (π’ π )) β’ if the process is stationary 2πΏ(π’ π , π’ π ) = 2π ππ (π (π’ π )) β 2 π·ππ€(π (π’ π ), π (π’ π )) 4
Empirical Semivariogram We will assume that our process of interest is stationary, in which case we Empirical Semivariogram: Μ πΏ(β) = 1 2 π(β) β |π’ π βπ’ π |β(ββπ,β+π) (π (π’ π ) β π (π’ π )) 2 Practically, for any data set with π observations there are ( π 2 ) + π possible data pairs to examine. Each individually is not very informative, so we aggregate into bins and calculate the empirical semivariogram for each bin. 5 will parameterize the semivariagram in terms of β = |π’ π β π’ π | .
Empirical Semivariogram We will assume that our process of interest is stationary, in which case we Empirical Semivariogram: Μ πΏ(β) = 1 2 π(β) β |π’ π βπ’ π |β(ββπ,β+π) (π (π’ π ) β π (π’ π )) 2 Practically, for any data set with π observations there are ( π 2 ) + π possible data pairs to examine. Each individually is not very informative, so we aggregate into bins and calculate the empirical semivariogram for each bin. 5 will parameterize the semivariagram in terms of β = |π’ π β π’ π | .
Connection to Covariance 6
Covariance vs Semivariogram - Exponential 7 exp cov exp semivar 1.00 l 1 1.7 0.75 2.3 3 3.7 0.50 y 4.3 5 0.25 5.7 6.3 7 0.00 0.0 0.5 1.0 1.5 2.0 0.0 0.5 1.0 1.5 2.0 d
Covariance vs Semivariogram - Square Exponential 8 sq exp cov sq exp semivar 1.00 l 1 1.7 0.75 2.3 3 3.7 0.50 y 4.3 5 0.25 5.7 6.3 7 0.00 0.0 0.5 1.0 1.5 2.0 0.0 0.5 1.0 1.5 2.0 d
9 From last time 1 0 y β1 β2 0.00 0.25 0.50 0.75 1.00 t
Empirical semivariogram - no bins / cloud 10 4 gamma 2 0 0.00 0.25 0.50 0.75 1.00 h
Empirical semivariogram (binned) 11 binwidth=0.05 binwidth=0.075 3 2 1 gamma 0 binwidth=0.1 binwidth=0.15 3 2 1 0 0.00 0.25 0.50 0.75 1.00 0.00 0.25 0.50 0.75 1.00 h
Empirical semivariogram (binned + n) 12 binwidth=0.05 binwidth=0.075 3 2 1 n 10 gamma 0 20 binwidth=0.1 binwidth=0.15 30 3 40 2 1 0 0.00 0.25 0.50 0.75 1.00 0.00 0.25 0.50 0.75 1.00 h
π·ππ€(β) = π 2 exp ( β (β π) 2 ) πΏ(β) = π 2 β π 2 exp ( β (β π) 2 ) Theoretical vs empirical semivariogram After fitting the model last time we came up with a posterior median of = 1.89 β 1.89 exp ( β (5.86 β) 2 ) 13 π 2 = 1.89 and π = 5.86 for a square exponential covariance.
Theoretical vs empirical semivariogram After fitting the model last time we came up with a posterior median of = 1.89 β 1.89 exp ( β (5.86 β) 2 ) 13 π 2 = 1.89 and π = 5.86 for a square exponential covariance. π·ππ€(β) = π 2 exp ( β (β π) 2 ) πΏ(β) = π 2 β π 2 exp ( β (β π) 2 )
Recommend
More recommend