Description Usage Arguments Details Value Note Author(s) References Examples
Computes the power exponential or Matern correlation matrix for a set of n design points in d-dimensional input region and a vector of d correlation hyper-parameters (beta).
1 | corr_matrix(X, beta, corr = list(type = "exponential", power = 1.95))
|
X |
the ( |
beta |
a ( |
corr |
a list that specifies the |
The power exponential correlation function is given by
R_{ij} = ∏ exp(-10^β*|x_{i}-x_{j}|^{power}).
The Matern correlation function given by Santner, Williams, and Notz (2003) is
R_{ij} = ∏ \frac{1}{Γ(ν)2^{ν-1}}(2√{ν}|x_{ik} - x_{jk}|10^{β_k})^ν κ_{ν}(2√{ν}|x_{ik} - x_{jk}|10^{β_k})R_{ij} = ∏ \frac{1}{Γ(ν)2^{ν-1}}(2√{ν}|x_{ik} - x_{jk}|10^{β_k})^ν κ_{ν}(2√{ν}|x_{ik} - x_{jk}|10^{β_k})R_{ij} = ∏ \frac{1}{Γ(ν)2^{ν-1}}(2√{ν}|x_{ik} - x_{jk}|10^{β_k})^ν κ_{ν}(2√{ν}|x_{ik} - x_{jk}|10^{β_k}),
where κ_{ν} is the modified Bessel function of
order ν.
The (n x n
) correlation matrix, R, for the design matrix
(X
) and the hyper-parameters (beta
).
Both Matern and power exponential correlation functions use the new
β parametrization of hyper-parameters given by θ_k =
10^{β_k} for easier likelihood optimization. That is, beta
is a
log scale parameter (see MacDonald et al. (2015)).
Blake MacDonald, Hugh Chipman, Pritam Ranjan
MacDonald, K.B., Ranjan, P. and Chipman, H. (2015).
GPfit: An R Package for Fitting a Gaussian Process Model to
Deterministic Simulator Outputs.
Journal of Statistical Software, 64(12), 1-23.
http://www.jstatsoft.org/v64/i12/
Ranjan, P., Haynes, R., and Karsten, R. (2011).
A Computationally Stable
Approach to Gaussian Process Interpolation of
Deterministic Computer Simulation Data,
Technometrics, 53(4), 366 - 378.
Santner, T.J., Williams, B., and Notz, W. (2003), The design and analysis of computer experiments, Springer Verlag, New York.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ## 1D Example - 1
n = 5
d = 1
set.seed(3)
library(lhs)
x = maximinLHS(n,d)
beta = rnorm(1)
corr_matrix(x,beta)
## 1D Example - 2
beta = rnorm(1)
corr_matrix(x,beta,corr = list(type = "matern"))
## 2D example - 1
n = 10
d = 2
set.seed(2)
library(lhs)
x = maximinLHS(n,d)
beta = rnorm(2)
corr_matrix(x, beta,
corr = list(type = "exponential", power = 2))
## 2D example - 2
beta = rnorm(2)
R = corr_matrix(x,beta,corr = list(type = "matern", nu = 5/2))
print(R)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.