Error Function (erf) — Definition, Formula & Examples
The error function, written erf(x), measures the probability that a normally distributed random variable falls within a certain range of the mean. It equals the area under the bell curve from to , scaled so that .
The error function is defined as . It is an odd function satisfying , with and .
Key Formula
Where:
- = Upper limit of integration (any real number)
- = Dummy variable of integration
How It Works
You cannot evaluate the integral in terms of elementary functions, so erf is treated as a special function with tabulated values and built-in implementations in calculators and software. To use it, substitute your limit into the definition and look up or compute the result numerically. The complementary error function is often used when you need the tail probability. Many CDF formulas for the normal distribution are written in terms of erf: .
Worked Example
Problem: Use the error function to find the probability that a standard normal variable Z falls between −1 and 1.
Step 1: The CDF of the standard normal distribution relates to erf by:
Step 2: Substitute a = 1:
Step 3: Look up or compute the value numerically:
Answer: The probability is approximately 0.6827, confirming the well-known 68% rule for one standard deviation.
Why It Matters
The error function appears throughout heat conduction, diffusion equations, and signal processing wherever Gaussian distributions arise. In statistics courses, understanding erf clarifies how normal distribution tables and CDF values are actually computed. Engineers use erf directly when solving the heat equation for semi-infinite domains.
Common Mistakes
Mistake: Confusing erf(x) with the standard normal CDF Φ(x).
Correction: They are related but not identical. The conversion is . Mixing them up introduces a scaling error by a factor of .
