Learn R Programming

GPFDA (version 2.2)

D2: Second derivative of the likelihood

Description

Computer the second derivative of the likelihood function with respect to one of the hyper-parameters, with first and second derivative of the kernel function given.

Usage

D2(d1, d2, inv.Q, Alpha.Q)

Arguments

d1

First derivative of the kernel function with respect to the required hyper-parameter.

d2

Second derivative of the kernel function with respect to the required hyper-parameter.

inv.Q

Inverse matrix of the covariance matrix

Alpha.Q

This is iQY(iQY)'-iQ. where iQ is the inverse of the covariance matrix, Y is the response.

Value

out

A number

Details

The function is to calculate the second derivative of the normal likelihood, using the first and second derivative of the kernel functions. The first and second derivative need to be pre-defined, for example of customized covariance function, see "demo('co2')".

References

Shi, J Q., and Choi, T. (2011), Gaussian Process Regression Analysis for Functional Data, Springer, New York.