Statistics/Distributions/Uniform
From Wikibooks, open books for an open world
Contents |
[edit] Continuous Uniform Distribution
The (continuous) uniform distribution, as its name suggests, is a distribution with probability densities that are the same at each point in an interval. In casual terms, the uniform distribution shapes like a rectangle.
Mathematically speaking, the probability density function of the uniform distribution is defined as
![f\left(x\right)=
\begin{cases}
{1 \over {b-a}}\ \forall\ real\ x\ \in [a,b]
\end{cases}](http://upload.wikimedia.org/wikibooks/en/math/6/c/5/6c5684215b6d3205a0a64c180032e8ab.png)
And the cumulative distribution function is:

[edit] Mean
We derive the mean as follows.
As the uniform distribution is 0 everywhere but [a, b] we can restrict ourselves that interval
[edit] Variance
We use the following formula for the variance.
This page may need to be ![\operatorname{E}[X] = \int^\infin_{-\infin}f(x) \cdot x dx](http://upload.wikimedia.org/wikibooks/en/math/8/a/7/8a76fcb9e846613986d49b2debeb42f3.png)
![\operatorname{E}[X] = \int^b_a {1 \over {b-a}} x dx](http://upload.wikimedia.org/wikibooks/en/math/f/1/f/f1f3d2c3804e6e2e38604b4537e2c5f2.png)
![\operatorname{E}[X] = \left.{1 \over (b-a)}{1 \over 2} x^2 \right|^b_a](http://upload.wikimedia.org/wikibooks/en/math/1/6/7/1679c0eba60b06a6ccf395b2adca5683.png)
![\operatorname{E}[X] = {1 \over 2(b-a)}\left[ b^2-a^2 \right]](http://upload.wikimedia.org/wikibooks/en/math/1/9/d/19d887ab564a02616a248ed7535b1b9d.png)
![\operatorname{E}[X] = {b+a \over 2}](http://upload.wikimedia.org/wikibooks/en/math/e/9/1/e9165560863c6ebd406739598e261cda.png)
![\operatorname{Var}(X) = \operatorname{E}[X^2]-(\operatorname{E}[X])^2](http://upload.wikimedia.org/wikibooks/en/math/9/b/3/9b378396bbe129d303e578bca2d762c3.png)
![\operatorname{Var}(X) = \left[\int^\infin_{-\infin}f(x) \cdot x^2 dx\right]-\left({b+a \over 2}\right)^2](http://upload.wikimedia.org/wikibooks/en/math/e/2/8/e28c2d853a44a5429497db99b8f1a8a6.png)
![\operatorname{Var}(X) = \left[\int^b_a {1 \over {b-a}} x^2 dx\right]-{(b+a)^2 \over 4}](http://upload.wikimedia.org/wikibooks/en/math/1/6/e/16ea9c7e634506136b3be1a746551c34.png)

![\operatorname{Var}(X) = {1 \over 3(b-a)}[b^3-a^3] -{(b+a)^2 \over 4}](http://upload.wikimedia.org/wikibooks/en/math/b/0/2/b02953bc2c8010fa7a48ee2e5590f71b.png)


