Wednesday, May 16, 2012

Note: Differentiating expectations of a function of a random variable with respect to location and scale parameters

Consider a real-valued random variable with a known probability distribution Pr(z)=ϕ(z). From ϕ(z), one can generate a scale/location family of probability densities by scaling and shifting ϕ(z):

Pr(x;μ,σ)=1σϕ(xμσ)

The most familiar example of such a family is the univariate Gaussian distribution, when ϕ(z)=[2π]1/2exp(12z2). Now, consider the expectation of a function of f(x) with respect to Pr(x).

f(x)=Rf(x)Pr(x)dx=Rf(x)1σϕ(xμσ)dx

What are the derivatives of f(x) with respect to μ and σ2? The answers are:

(1)μf(x)=f(x)σ2f(x)=12σ2(xμ)f(x)x