deriv_2nd_ma1 | R Documentation |
To ease a later calculation, we place the result into a matrix structure.
deriv_2nd_ma1(theta, sigma2, tau)
theta |
A |
sigma2 |
A |
tau |
A |
A matrix
with the first column containing the second partial derivative with respect to theta,
the second column contains the partial derivative with respect to theta and sigma^2,
and lastly we have the second partial derivative with respect to sigma^2.
Taking the second derivative with respect to theta yields:
d^2/dtheta^2 nu[j]^2 (theta, sigma2) = (2*sigma2)/tau[j]
Taking the second derivative with respect to sigma^2 yields:
d^2/dsigma2^2 nu[j]^2 (theta, sigma2) = 0
Taking the first derivative with respect to theta and sigma^2 yields:
d/dtheta * d/dsigma2 nu[j]^2 (theta, sigma2) = (-6 + 2*(1 + theta)*tau[j])/tau[j]^2
James Joseph Balamuta (JJB)
deriv_2nd_ma1(.3, 1, 2^(1:5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.