QuantitativePrimer icon indicating copy to clipboard operation
QuantitativePrimer copied to clipboard

Suggestion for answer to Question 6

Open nathanagmon opened this issue 3 years ago • 0 comments

Similar to generating functions, another useful trick for calculating moments of various distributions is to use Feynman's integral trick (differentiating under the integral sign). The main idea is to introduce a fictitious parameter and rewrite the integrand as some derivative with respect to this parameter. (Note that this trick can also be used when evaluating expectation values for discrete distributions). Let me illustrate this for moments of the Gaussian distribution, which appear in the primer. Consider the integral

In order to evaluate the above expression, we introduce a parameter in the probability density function

Notice that this integral can be rewritten as

This is just a Gaussian integral, and so we find

Finally, we recover the desired result by setting the parameter to 1,

nathanagmon avatar Jul 01 '22 18:07 nathanagmon