In probability and statistics, the Irwin–Hall distribution, named after Joseph Oscar Irwin and Philip Hall, is a probability distribution for a random variable defined as the sum of a number of independent random variables, each having a uniform distribution.[1] For this reason it is also known as the uniform sum distribution.
The generation of pseudo-random numbers having an approximately normal distribution is sometimes accomplished by computing the sum of a number of pseudo-random numbers having a uniform distribution; usually for the sake of simplicity of programming. Rescaling the Irwin–Hall distribution provides the exact distribution of the random variates being generated.
This distribution is sometimes confused with the Bates distribution, which is the mean (not sum) of n independent random variables uniformly distributed from 0 to 1.
The Irwin–Hall distribution is the continuous probability distribution for the sum of n independent and identically distributed U(0, 1) random variables:
X=
n | |
\sum | |
k=1 |
Uk.
The probability density function (pdf) for
0\leqx\leqn
f | ||||
|
n | |
\sum | |
k=0 |
(-1)k{n\choosek}
n-1 | |
(x-k) | |
+ |
where
(x-k)+
(x-k)+=\begin{cases}x-k&x-k\geq0\\ 0&x-k<0.\end{cases}
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
fX(x;n)=
1 | |
(n-1)! |
n-1 | |
\sum | |
j=0 |
aj(k,n)xj
where the coefficients aj(k,n) may be found from a recurrence relation over k
aj(k,n)=\begin{cases}1&k=0,j=n-1\\ 0&k=0,j<n-1\\ aj(k-1,n)+(-1)n+k-j-1{n\choose k}{{n-1}\choosej}kn-j-1&k>0\end{cases}
The coefficients are also A188816 in OEIS. The coefficients for the cumulative distribution is A188668.
The mean and variance are n/2 and n/12, respectively.
fX(x)=\begin{cases} 1&0\lex\le1\\ 0&otherwise \end{cases}
fX(x)=\begin{cases} x&0\lex\le1\\ 2-x&1\lex\le2 \end{cases}
fX(x)=\begin{cases}
1 | |
2 |
x2&0\lex\le1\\
1 | |
2 |
(-2x2+6x-3)&1\lex\le2\\
1 | |
2 |
(3-x)2&2\lex\le3 \end{cases}
fX(x)=\begin{cases}
1 | |
6 |
x3&0\lex\le1\\
1 | |
6 |
(-3x3+12x2-12x+4)&1\lex\le2\\
1 | |
6 |
(3x3-24x2+60x-44)&2\lex\le3\\
1 | |
6 |
(4-x)3&3\lex\le4 \end{cases}
fX(x)=\begin{cases}
1 | |
24 |
x4&0\lex\le1\\
1 | |
24 |
(-4x4+20x3-30x2+20x-5)&1\lex\le2\\
1 | |
24 |
(6x4-60x3+210x2-300x+155)&2\lex\le3\\
1 | |
24 |
(-4x4+60x3-330x2+780x-655)&3\lex\le4\\
1 | |
24 |
(5-x)4&4\lex\le5 \end{cases}
By the Central Limit Theorem, as n increases, the Irwin–Hall distribution more and more strongly approximates a Normal distribution with mean
\mu=n/2
\sigma2=n/12
\phi(x)=l{N}(\mu=0,\sigma2=1)
\phi(x)\overset{n\gg0}{ ≈ }\sqrt{
n | |
12 |
12 | |
\sum | |
k=1 |
Uk-6\simfX(x+6;12)
|
The Irwin–Hall distribution is similar to the Bates distribution, but still featuring only integers as parameter. An extension to real-valued parameters is possible by adding also a random uniform variable with N − trunc(N) as width.
When using the Irwin–Hall for data fitting purposes one problem is that the IH is not very flexible because the parameter n needs to be an integer. However, instead of summing n equal uniform distributions, we could also add e.g. U + 0.5U to address also the case n = 1.5 (giving a trapezoidal distribution).
The Irwin–Hall distribution has an application to beamforming and pattern synthesis in Figure 1 of reference [2] [3]