Integrating over the standard normal distribution
Part of Math Camp: An Introduction to Mathematics and Statistics with Applications in Economics.
Main Stam4Econ site | View this section in the book | Author: Fan Wang | DOI: 10.5281/zenodo.24696926
Date: 2026-11-30 | HTML | PDF | QMD
1 Integrating over the standard normal distribution
1.1 Standard normal interval expectation integration by substitution
Consider the truncated (finite-interval) expectation integral against the standard normal density,
\[ \int_{a}^{b} x \cdot \phi(x)\, dx, \qquad \phi(x) = \frac{1}{\sqrt{2\pi}} e^{-x^2/2}. \]
Unlike the full-line integral \(\int_{-\infty}^{\infty} x\phi(x)\,dx\), which is zero by oddness, a finite interval \([a,b]\) need not be symmetric, so the integral is generally nonzero. We evaluate it by substitution.
Let \(u = x^2/2\). Then \(du = x\, dx\), and
\[ \int x \cdot \phi(x)\, dx = \int \frac{1}{\sqrt{2\pi}} e^{-x^2/2}\, x\, dx = \frac{1}{\sqrt{2\pi}} \int e^{-u}\, du = -\frac{1}{\sqrt{2\pi}} e^{-u} + C = -\phi(x) + C. \]
Therefore, on a definite interval,
\[ \int_{a}^{b} x \cdot \phi(x)\, dx = \Bigl[-\phi(x)\Bigr]_{a}^{b} = -\phi(b) + \phi(a) = \phi(a) - \phi(b). \]
1.2 Standard normal interval expectation integration by parts
Now compute the same integral by parts, without using the identity
\[ \phi'(x)=-x\phi(x) \]
inside this section.
\[ I(a,b):=\int_a^b x\phi(x)\,dx \]
Choose
\[ u=1,\qquad dv=x\phi(x)\,dx. \]
Then
\[ du=0,\qquad v=\int x\phi(x)\,dx. \]
To find \(v\) directly (within this method), compute:
\[ v=\int x\phi(x)\,dx =\frac{1}{\sqrt{2\pi}}\int x e^{-x^2/2}\,dx. \]
Let \(t=x^2/2\), so \(dt=x\,dx\). Then
\[ v=\frac{1}{\sqrt{2\pi}}\int e^{-t}\,dt =-\frac{1}{\sqrt{2\pi}}e^{-t}+C =-\phi(x)+C. \]
We can take \(v=-\phi(x)\) (constants do not affect integration by parts).
Apply integration by parts:
\[ \int_a^b u\,dv=\big[u v\big]_a^b-\int_a^b v\,du. \]
Therefore,
\[ I(a,b)=\Big[1\cdot(-\phi(x))\Big]_a^b-\int_a^b (-\phi(x))\cdot 0\,dx =\Big[-\phi(x)\Big]_a^b =\phi(a)-\phi(b). \]
This matches the substitution result.
1.3 Standard normal interval expectation using the normal-pdf identity
Now use the identity specific to the standard normal density:
\[ \phi'(x)=\frac{d}{dx}\left(\frac{1}{\sqrt{2\pi}}e^{-x^2/2}\right)=-x\phi(x). \]
Then
\[ I(a,b)=\int_a^b x\phi(x)\,dx=-\int_a^b \phi'(x)\,dx. \]
Evaluate directly by the Fundamental Theorem of Calculus:
\[ I(a,b)=-\big[\phi(x)\big]_a^b=\phi(a)-\phi(b). \]
This is usually the fastest method once the normal-pdf identity is known.