Now I’ll calculate the mean for the gaussian distribution in full detail, leaving the parameters \(\mu\) and \(\sigma\) as unknown. First, I do a small substitution to shift to the distribution to centred at zero.
\begin{align*}
f(x) \amp = \frac{1}{\sigma
\sqrt{2\pi}}e^{-\frac{(x-\mu)^2}{2\sigma^2}}\\
\mu \amp = \int_{-\infty}^\infty
\frac{xe^{-\frac{(x-\mu)^2}{2\sigma^2}}}{\sigma
\sqrt{2\pi}} dx\\
\amp v = x-\mu\\
\mu \amp = \int_{-\infty}^\infty
\frac{(v+\mu)e^{-\frac{v^2}{2\sigma^2}}}{\sigma
\sqrt{2\pi}} dv\\
\amp = \int_{-\infty}^\infty
\frac{(v)e^{-\frac{v^2}{2\sigma^2}}}{\sigma \sqrt{2\pi}}
dv + \int_{-\infty}^\infty
\frac{(\mu)e^{-\frac{v^2}{2\sigma^2}}}{\sigma
\sqrt{2\pi}} dv
\end{align*}
After this substitution, I split up the sum in the numerator to give two interals.
\begin{align*}
\mu \amp = \int_{-\infty}^\infty
\frac{(v)e^{-\frac{v^2}{2\sigma^2}}}{\sigma \sqrt{2\pi}}
dv + \int_{-\infty}^\infty
\frac{(\mu)e^{-\frac{v^2}{2\sigma^2}}}{\sigma \sqrt{2\pi}}
dv
\end{align*}
There are two integral to do here. Let me deal with the first integral first. Even though \(e^{-x^2}\) has no antiderivative, now I have something similar to \(xe^{-x^2}\) which does have an elementary antiderivative found by substitution. I could do that substitution and sovle this integral that way, but there is an easier method. The function \(ve^{-\frac{v^2}{2\sigma^2}}\) is an odd function: it’s positive part if a mirror of its negative part, but changes from below the axis to above the axis. Therefore, there is an equal area under the curve for the positive and negative pieces, but with different signs. In the limit for the improper integrals, these two areas will perfectly cancel each other out. This first integral must be zero.
\begin{align*}
\amp = 0 + \frac{\mu}{\sigma \sqrt{2\pi}}
\int_{-\infty}^\infty e^{-\frac{v^2}{2\sigma^2}} dv
\end{align*}
Now I have the second integral left. I’ve already pulled out all the constants. Now let me make another substitution.
\begin{align*}
w \amp = \frac{v}{\sigma \sqrt{2}}\\
\mu \amp = \frac{\mu}{\sigma \sqrt{2\pi}} \sigma \sqrt{2}
\int_{-\infty}^\infty e^{-w^2} dw
= \frac{\mu}{\sqrt{\pi}} \int_{-\infty}^\infty e^{-w^2} dw
\end{align*}
The resulting integral is exactly the integral I discussed original in
Example 8.1.4. The integral evaluates to
\(\sqrt{pi}\)/. This lets me finish the integarl.
\begin{equation*}
\mu = \frac{\mu}{\sqrt{\pi}} \sqrt{\pi} = \mu
\end{equation*}
Unsurprisingly, given the choice of notation, the parameter \(\mu\) (which is the centre point of the bell curve) is the mean of the distribution. The guassian distribution is the first and most important symmetry distribution: there is a mean at the centre of the distribution and the probability decays away from the mean equally on both sides. This means that measurements in symmetric ranges above and below the mean are equally likely.