Mathwords logoMathwords

Half-Normal Distribution — Definition, Formula & Example

The half-normal distribution is what you get when you take a normal distribution centered at 0 and fold the negative half onto the positive half. It models the size of a random error and ignores its direction, so it never takes negative values.

If X∼N(0,σ2)X \sim N(0, \sigma^2), then Y=∣X∣Y = |X| has a half-normal distribution with scale parameter σ>0\sigma > 0. Its support is [0,∞)[0, \infty) and its CDF is F(y)=2Φ(y/σ)−1F(y) = 2\Phi(y/\sigma) - 1, where Φ\Phi is the standard normal CDF. Its mean is σ2/π\sigma\sqrt{2/\pi} and its variance is σ2(1−2/π)\sigma^2(1 - 2/\pi). Unlike the normal distribution, it is right-skewed, and its density peaks at y=0y = 0 (the mode) rather than in the middle. The normal distribution allows any real value and is symmetric about its mean.

Key Formula

f(y)=2σπ e−y2/(2σ2),y≥0f(y) = \frac{\sqrt{2}}{\sigma\sqrt{\pi}}\, e^{-y^2/(2\sigma^2)}, \quad y \ge 0
Where:
  • yy = The value of the half-normal variable, such as the size of an error (never negative)
  • σ\sigma = Scale parameter: the standard deviation of the original normal variable X, not of Y
  • f(y)f(y) = Probability density at y. It is exactly twice the N(0, σ²) density for y ≥ 0

Worked Example

Problem: A digital thermometer's reading error X is normally distributed with mean 0°F and standard deviation 2°F. Let Y = |X| be the size of the error. Find the mean error size E[Y] and the probability that the error is at most 4°F.
Step 1: The error size is the absolute value of a mean-zero normal variable, so Y is half-normal with scale σ = 2.
Y=∣X∣∼Half-Normal(σ=2)Y = |X| \sim \text{Half-Normal}(\sigma = 2)
Step 2: Apply the mean formula. Note that the mean is not 0, because Y cannot be negative.
E[Y]=σ2π=22π≈1.60∘FE[Y] = \sigma\sqrt{\frac{2}{\pi}} = 2\sqrt{\frac{2}{\pi}} \approx 1.60^\circ\text{F}
Step 3: Use the CDF. Then read Φ(2) ≈ 0.97725 from a standard normal table.
P(Y≤4)=2Φ(42)−1=2(0.97725)−1≈0.9545P(Y \le 4) = 2\Phi\left(\tfrac{4}{2}\right) - 1 = 2(0.97725) - 1 \approx 0.9545
Answer: The average error size is about 1.60°F. The probability that the error is at most 4°F is about 0.9545. That leaves about a 4.55% chance that the error exceeds 4°F.

Why It Matters

In Bayesian statistics courses and software such as Stan, half-normal distributions are a standard prior for standard-deviation parameters, which must be nonnegative. Economists use them in stochastic frontier models to describe how far a firm falls below its maximum possible output. Engineers use them for the magnitude of positioning or measurement errors.

Common Mistakes

Mistake: Treating σ as the standard deviation of the half-normal variable Y.
Correction: σ is the standard deviation of the original normal variable X. The standard deviation of Y is σ√(1 − 2/π) ≈ 0.603σ. In the thermometer example, that is about 1.21°F, not 2°F.

Related Terms