Estimating the parameters is often done through maximum likelihood
estimation. In this vignette, derivatives of parameters are calculated
to give the parameter gradient. This can then be used in numerical
optimization, such as with BFGS, and should be much faster than
calculating without having the gradient.
Deviance
In this vignette, I follow the lead of the GPfit paper. Instead of
maximizing the likelihood, we find parameter estimates by minimizing the
deviance. For correlation parameters
,
the deviance is shown below.
For now I will assume that
does not depend on
,
and will replace
with
,
as shown below.
Thus the only dependence on the correlation parameters is through
.
Via the GPML book
section A.3.1, we need the following equations:
Now we can calculate the derivative of the deviance in terms of
.
Now we just need to find
,
which depends on the specific correlation function
.
Nugget
The correlation function is usually augmented by adding a nugget term
to the diagonal:
The nugget accounts for noise in the responses, smoothing the
predicted response function. It also helps with numerical stability,
which is a serious problem when there is a lot of data. Often a small
value is used even the function is noiseless.
For the nugget,
Thus, the derivative for the deviance is very simple.
This equation gives the derivative of the deviance with respect to
the nugget regardless of the correlation function used.
Gaussian correlation
The Gaussian correlation function has parameter vector
.
Ignoring the nugget term, the
,
entry of the correlation matrix is
This will give the matrix
,
which can be used with the previous equations to calculate
.
Lifted brownian covariance
The lifted
brownian covariance function is
where
and
This is different from the others because it is not a correlation
function, which ranges from 0 to 1, but is the covariance function
itself. Thus we will have to use first deviance before inserting
.
Likelihood
The likelihood for data from a Gaussian process follows the standard
multivariate normal probability distribution function (pdf).
The log likelihood is generally easier to work with.
To simplify, we can multiply it by -2, and call this the deviance,
denoted here as
.
can be ignored since it usually constant while optimizing parameters.