To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time. 4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds # Irwin–Hall distribution

Parameters Probability density function Cumulative distribution function n ∈ N0 $x\in [0,n]$ ${\frac {1}{(n-1)!}}\sum _{k=0}^{\lfloor x\rfloor }(-1)^{k}{\binom {n}{k}}(x-k)^{n-1}$ ${\frac {1}{n!}}\sum _{k=0}^{\lfloor x\rfloor }(-1)^{k}{\binom {n}{k}}(x-k)^{n}$ ${\frac {n}{2}}$ ${\frac {n}{2}}$ ${\begin{cases}{\text{any value in }}[0,1]&{\text{for }}n=1\\{\frac {n}{2}}&{\text{otherwise}}\end{cases}}$ ${\frac {n}{12}}$ 0 $-{\tfrac {6}{5n}}$ ${\left({\frac {\mathrm {e} ^{t}-1}{t}}\right)}^{n}$ ${\left({\frac {\mathrm {e} ^{it}-1}{it}}\right)}^{n}$ 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. 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.

## Definition

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) is given by

$f_{X}(x;n)={\frac {1}{2(n-1)!}}\sum _{k=0}^{n}(-1)^{k}{n \choose k}(x-k)^{n-1}\operatorname {sgn} (x-k)$ where sgn(xk) denotes the sign function:

$\operatorname {sgn} (x-k)={\begin{cases}-1&xk.\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

$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.

The mean and variance are n/2 and n/12, respectively.

## Special cases

$f_{X}(x)={\begin{cases}1&0\leq x\leq 1\\0&{\text{otherwise}}\end{cases}}$ $f_{X}(x)={\begin{cases}x&0\leq x\leq 1\\2-x&1\leq x\leq 2\end{cases}}$ • For n = 3,
$f_{X}(x)={\begin{cases}{\frac {1}{2}}x^{2}&0\leq x\leq 1\\{\frac {1}{2}}(-2x^{2}+6x-3)&1\leq x\leq 2\\{\frac {1}{2}}(x-3)^{2}&2\leq x\leq 3\end{cases}}$ • For n = 4,
$f_{X}(x)={\begin{cases}{\frac {1}{6}}x^{3}&0\leq x\leq 1\\{\frac {1}{6}}(-3x^{3}+12x^{2}-12x+4)&1\leq x\leq 2\\{\frac {1}{6}}(3x^{3}-24x^{2}+60x-44)&2\leq x\leq 3\\{\frac {1}{6}}(-x+4)^{3}&3\leq x\leq 4\end{cases}}$ • For n = 5,
$f_{X}(x)={\begin{cases}{\frac {1}{24}}x^{4}&0\leq x\leq 1\\{\frac {1}{24}}(-4x^{4}+20x^{3}-30x^{2}+20x-5)&1\leq x\leq 2\\{\frac {1}{24}}(6x^{4}-60x^{3}+210x^{2}-300x+155)&2\leq x\leq 3\\{\frac {1}{24}}(-4x^{4}+60x^{3}-330x^{2}+780x-655)&3\leq x\leq 4\\{\frac {1}{24}}(x-5)^{4}&4\leq x\leq 5\end{cases}}$ ## Similar and related distributions

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.

## Extensions to the Irwin–Hall distribution

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).