The Irwin–Hall distribution is the continuous
probability distribution for the sum of
n independent and identically distributed U(0, 1) random variables: : X = \sum_{k=1}^n U_k. The
probability density function (pdf) for 0\leq x\leq n is given by : f_X(x;n)=\frac{1}{(n-1)!}\sum_{k=0}^n (-1)^k{n \choose k} (x-k)_+^{n-1} where (x-k)_+ denotes the positive part of the expression: : (x-k)_+ = \begin{cases} x-k & x-k \geq 0 \\ 0 & x-k Since k is an integer, we have that (x-k)_+ = (x- k) if and only if k \leq \lfloor x \rfloor. Hence, a completely equivalent expression of the pdf for 0 \leq x \leq n is given by : f_X(x; n) = \frac{1}{(n-1)!} \cdot \sum_{k=0}^{\lfloor x \rfloor} (-1)^k \binom{n}{k} (x-k)^{n-1}. Thus the pdf is a
spline (piecewise polynomial function) of degree
n − 1 over the knots 0, 1, ...,
n. In fact, for
x between the knots located at
k and
k + 1, the pdf is equal to : f_X(x;n) = \frac{1}{(n-1)!}\sum_{j=0}^{n-1} a_j(k,n) x^j where the coefficients
aj(
k,
n) may be found from a
recurrence relation over
k : a_j(k,n)=\begin{cases} 1&k=0, j=n-1\\ 0&k=0, j0\end{cases} The coefficients are also A188816 in
OEIS. The coefficients for the cumulative distribution is A188668. For a geometric/combinatorial interpretation of the pdf in terms of a plane passing through a cube, please see here. The
mean and
variance are
n/2 and
n/12, respectively. ==Special cases==