Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2015/discrete-mathematics-continuous-mathematics-and-probability/9/c/iii/solution

The source prints bare differentials in both integrals; the integration variable is , so we write them as .[ref]
The normalization of a probability distribution for gives
Therefore
Next, the standard normal distribution has and , so the second moment is . Since , linearity of expectation yields . Expressing this expectation using the probability density function gives
Consequently
These evaluate the gamma function at and , respectively, directly from a transformed normal random variable.

New to topics? Read the docs here!