# Integral of product of Gaussian pdf and cdf [closed]

$\phi(x) = \frac{1}{\sqrt{2\pi}} e^{-\frac{x^2}{2}}$ is the pdf of a standard normal distribution.

$\Phi(x) = \int_{- \infty}^x \phi(t) dt$ is the cdf of a standard normal distribution.

How does one calculate the following: $$T = \int\limits_0^{\infty} \Phi^2(bx) \phi(x) dx$$

In fact, I can find the result in wiki, https://en.wikipedia.org/wiki/List_of_integrals_of_Gaussian_functions#CITEREFOwen1980

But I would like to know how to do it.

## closed as off-topic by RP_, Neil Strickland, Jan-Christoph Schlage-Puchta, Ben McKay, Mateusz KwaśnickiJul 22 '18 at 22:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "MathOverflow is for mathematicians to ask each other questions about their research. See Math.StackExchange to ask general questions in mathematics." – RP_, Neil Strickland, Ben McKay, Mateusz Kwaśnicki
If this question can be reworded to fit the rules in the help center, please edit the question.

• a closed-form answer will not be forthcoming for any $b$; for $b=1$ one has $T=7/24$. – Carlo Beenakker Jul 18 '18 at 18:30
• Mathematica confirms $T=7/24$ for $b=1$ but cannot solve the general case analytically. – David G. Stork Jul 18 '18 at 23:23
• In fact, there is closed form solution, please see en.wikipedia.org/wiki/… – Magica Jul 19 '18 at 10:15
• did you know there was a closed-form solution when you first posted the question? – Carlo Beenakker Jul 19 '18 at 10:43
• no, after posting, I find it in wiki – Magica Jul 19 '18 at 11:10

Maybe this proof is too large, but you can deduce the result you want, sorry for that.

First of all:

• $\phi(x)= \frac{1}{\sqrt{2\pi}}e^{-\frac{x^2}{2}}$
• $\Phi(x)=\int_{-\infty}^{x}\phi(t)dt=\frac{1}{2}(1+erf(\frac{x}{\sqrt{2}}))$

1. $\int_{0}^{\infty}xe^{-x^2a}dx=\frac{1}{2a}$ (Proof by direct integral)
2. $erf'(x)=\frac{2}{\sqrt{\pi}}e^{-x^2}$ (Proof by definition of $erf$ function)
3. $$\int_0^{\infty}xe^{-\alpha^2x^2}erf(\beta x)dx=\frac{\beta}{2\alpha^2 \sqrt{\alpha^2+\beta^2}}$$ Hint for 3. Integrating by parts, with \begin{equation}u=erf(\beta x) \rightarrow du=\frac{2\beta}{\sqrt{\pi}}e^{-(x\beta)^2}dx\end{equation} $$dv=xe^{-\alpha^2x^2} \rightarrow v=-\frac{e^{-x^2\alpha^2}}{2\alpha^2}$$ the result follows really easy.

Now, you have all the ingredients to calculate this monster: $$T(b)=\int_{0}^{\infty}\Phi^2(bx)\phi(x)dx$$ Derivating $T(b)$ respect $b$, changing $\Phi(bx)$ by the definition in terms of $erf$ function, and using the fact 2, will lead you to:

$$T'(b)=...=\frac{1}{2\pi}\Big(\int_0^{\infty}{xe^{-x^2(b^2+1)/2}}dx + \int_0^{\infty}{x \cdot erf\big(\frac{bx}{\sqrt{2}}\big)e^{-x^2(b^2+1)/2}}dx \Big) =\frac{1}{2\pi}(A+B)$$

Compute A using the fact 1 to get: $$A=\frac{1}{b^2+1}$$ and compute B using the fact 3 with $\alpha=\sqrt{\frac{b^2+1}{2}}$ and $\beta= \frac{b}{\sqrt{2}}$ to get: $$B=\frac{b}{(b^2+1)\sqrt{2b^2+1}}.$$

It remains to integrate $T'(b)=\frac{A+B}{2\pi}$ respect $b$: \begin{align}T(b)=&\frac{1}{2\pi}\Big(\int_{0}^{b}\frac{1}{t^2+1}dt+\int_{0}^{b}\frac{t}{(t^2+1)\sqrt{2t^2+1}}dt\Big)=\\ =&\frac{1}{2\pi}\Big(arctan(b)+arctan\big(\sqrt{2b^2+1}\big)\Big)+C. \hspace{0.5cm}\square \end{align}

• Here is a shorter version: First, differentiate under the integral sign with respect to $b$. Second, integrate the result explicitly with respect to $x$: wolframalpha.com/input/…. Third, apply the limits of integration at $x=0$ and $\infty$. Fourth, integrate the result with respect to $b$. – Matt F. Jul 19 '18 at 21:19
• Thanks a lot, at last, the integral should be indefinite integral? not from 0 to b? – Magica Jul 20 '18 at 11:53

By a rather circuitous route I get $$T = \dfrac{\arctan\left(\sqrt{2b^2+1}\right) + \arctan(b)}{2\pi}$$

• impressive result! – Carlo Beenakker Jul 19 '18 at 7:49
• Yeah, it is the right result, but how to obtain? – Magica Jul 19 '18 at 10:14
• I found a linear recurrence for the Maclaurin series of $T(b)$, converted that to a differential equation, and solved the differential equation. – Robert Israel Jul 19 '18 at 17:11