Grokbase Groups R r-help May 2005
In general, any n-th order partial derivative can be approximated by forming
the appropriate tensor product of n univariate approximations. If each
univariate approximation is based on a two-point central difference (which
involves 2 function evaluations), then the total number of function
evaluations in the tensor product is 2^n. So, if you have a bivariate
distribution, then its density is simply the second-order cross partial
derivative, which can be evaluated accurately with 4 function evaluations.
You can see that this problem quickly becomes non-trivial due to curse of

Hope this helps.


Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (410) 614-9625
Email: rvaradhan at
-----Original Message-----
From: r-help-bounces at [mailto:r-help-
bounces at] On Behalf Of Cuvelier Etienne
Sent: Friday, May 06, 2005 3:03 AM
To: r-help at
Subject: Re: [R] Numerical Derivative / Numerical Differentiation of
unknownfunct ion
-----Original Message-----
From: Berton Gunter [mailto:gunter.berton at]
Sent: 05 May 2005 23:34
To: 'Uzuner, Tolga'; r-help at
Subject: RE: [R] Numerical Derivative / Numerical Differentiation of
unknown funct ion


See ?numericDeriv which already does it via a C call and hence is much
faster (and probably more accurate,too).
Is there is a similar function to calculate the numerical value of the
density of a given
multivariable distribution?
I have a function of a distribution H(x1, ...,xn) (not one of the known
i.e. I can calculate a value of H for any (x1..., xn) .
And I want to calculate h(x1...,xn) for any (x1...,xn) BUT I don't know
expression of the density H.

No virus found in this outgoing message.
Checked by AVG Anti-Virus.

R-help at mailing list
PLEASE do read the posting guide!

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 6 | next ›
Discussion Overview
groupr-help @
postedMay 5, '05 at 10:38p
activeMay 6, '05 at 8:02p



site design / logo © 2018 Grokbase