Different Ways to Integrate the Bell Curve

VJZ Corporation
5 min readDec 4, 2021

--

**IMPORTANT NOTICE:** WHILE THE FINAL RESULT IS CORRECT, SEVERAL CALCULATIONS ALONG THE WAY WERE INACCRUATE. THEY HAVE BEEN UPDATED HERE: https://vjz-corp.github.io/resources/tutorials/bell-curve-integration

The bell curve — or more formally: the normal (Gaussian) distribution — is one of the most important models in statistics. Given a mean and standard deviation, the bell curve can tell you all sorts of useful information about the probabilities and distribution of data. This article, however, is not statistically oriented but instead will demonstrate the techniques to find the integral of the bell curve, which assumes a undergraduate-level understanding of calculus.

When looking at the normal distribution, there are 2 mathematical functions we need to consider:

  • Probability density function (PDF)
  • Cumulative distribution function (CDF)

The probability density function (PDF) is our function of interest as it is the function which results in a bell-shaped curve.

The normal distribution probability density (Figure A).

Now, we need to find the antiderivative of the PDF. First, we need to know what even is the PDF. Well here it is:

When plotted out, this function will take the shape of a bell (Figure A). At first, it may seem impossible to integrate this, but remember: σ and 𝜇 are constants, as the standard deviation and mean of any dataset are just numbers. This makes it possible to integrate now that we can treat 𝜇 and σ as constants.

Part I: Finding the Antiderivative

Before we start to integrate the PDF, we need to modify a few things about the integral. First, let us extract the constants in the denominator to the outside of the integral:

[1]

Notice how I multiplied out the exponent of the integrand for the sake of convenience. Those who are experienced with different types of integrals may already see it, but for everyone else, choosing a distinct value for u-substitution is the most crucial step in solving this problem:

Why this value? Because if we square this u-value, we get our original exponent (see [1] above).

So following through with finding a suitable dx in terms of du (remember that 𝜇 is constant when taking the derivative):

We get the following new integral with u substituted in:

Now, follow closely, as this is the most seemingly arbitrary but important step many rookies fail to see:

First, remember that multiplying 1 to the integrand does nothing to it. But, why do we even multiply 1 in the first place? And why is 1 represented as the square root of π divided by itself? To answer those questions, let me present you the Gaussian error function:

The Gaussian error function.

The error function is non-elementary, meaning it cannot be represented with a finite amount of logarithms, exponents, polynomials, or trigonomic functions. While that is a bummer, we can use a specialized erf(x) notation to represent the error function. With that out of the way, is the pattern apparent? We are trying to get our integral in the form of the error function! Continuing with our integration, we are going to pull out the constants once again except for the denominator of the integrand and the square root of 2 (you will see why in a little bit):

Now, we need to irrationalize the denominator in order to fit it into the form of the Gaussian error function:

Now, we extract the constants from the integrand once again:

The term inside the parenthesis is the error function we talked about earlier, and finally we can substitute the value for u back into the expression. We cannot forget about the term that we dropped earlier for neatness, we have to add that back. Multiplying through, many constants cancel out, therefore leaving with the final answer of:

Part II: Definite Integrals

So, finding the antiderivative of the PDF was pretty rough. Luckily computing the definite integral of the PDF will be relatively easier. Recall the Fundamental Theorem of Calculus, and apply that to our indefinite form, then integrate that expression from a to b.

Unfortunately, the error function is a integral itself (see above), which is not very useful in computing a meaningful value. However, I will finish this article with the series expansion for the error function in one final gigantic monstrous equation for finding the definite integral of the bell curve (just plug in the constants and it should work):

That will be it for this article, as with any non-elementary integral, don’t expect the answer to be a pretty one. Plugging in a, b, 𝜇, and σ will give you a numerical value, but I don’t expect anybody to solve the numerical value by hand. These days, many computational engines can solve what I did above in seconds, so this article just acts as a medium for the curious.

--

--

VJZ Corporation
VJZ Corporation

No responses yet