Section 6.3 Continuous Uniform Distribution
Modeling the idea of "equally-likely" in a continuous world requires a slightly different perspective since there are obviously infinitely many outcomes to consider. Instead, you should consider requiring that intervals in the domain which are of equal width should have the same probability regardless of where they are in that domain. This behaviour suggestsTheorem 6.3.1. Continuous Uniform Probability Function.
For R = [a,b], with a < b, the continuous uniform probability function is given by
Proof.
From before, for X a continuous uniform variable, we get
which is true regardless of \Delta so long as you stay in the domain of interest. Letting \(\Delta \rightarrow 0\) gives
but since F is an antiderivative of the probability function,
for all u and v in R. This only happens if f is constant...say, f(x)=c. If the space of X is a single interval with \(R = [a,b]\) then
which yields \(c = \frac{1}{b-a}\) as desired.
Example 6.3.2. Basic Continuous Uniform.
On R=[1,2Ï€],
Then, if you want to compute something like P(2<X<4.5) integrate
Checkpoint 6.3.3. WebWork - Continuous Uniform.
Example 6.3.4. Continuous Uniform over two disjoint intervals.
Suppose R=[0,2]∪[5,7]. Then, as in the theorem proof
Thus, f(x)=14. For computing probabilities, you will want to break up any resulting integrals in a similar manner.
Theorem 6.3.5. Properties of the Continuous Uniform Probability Function.
For the Continuous Uniform Distribution over R=[a,b], with a < b,
- f(x)=1b−a satisfies the properties of a probability function over R = [a,b].
- μ=a+b2
- σ2=(b−a)212
- γ1=0
- γ2=9(a5−5a4b+10a3b2−10a2b3+5ab4−b5)(a−b)5(a3−3a2b+3ab2−b3)2
Proof.
We can verify most of these here but you can also determine these using Sage below.
For the mean 1,
For the variance 2,
For the skewness 3,
The kurtosis 4 is more algebra like above. We will just let Sage do that part for us below.
xxxxxxxxxx
# Continous uniform distribution statistics derivation
reset()
var('x,a,b')
f = 1/(b-a)
mu = integrate(x*f,x,a,b).factor()
pretty_print('Mean = ',mu)
​
v = integrate((x-mu)^2*f, x, a, b)
pretty_print('Variance = ',v.factor())
stand = sqrt(v)
​
sk = (integrate((x-mu)^3*f, x, a, b)/stand^3)
pretty_print('Skewness = ',sk)
​
kurt = (integrate((x-mu)^4*f, x, a, b)/stand^4)
pretty_print('Kurtosis = ',kurt)
​
pretty_print('Several Examples')
a1=0
for b1 in range(2,7):
pretty_print('Using [',a1,',',b1,']:')
pretty_print(' mean = ',mu(a=a1,b=b1))
pretty_print('variance = ',v(a=a1,b=b1))
pretty_print('skewness = ',sk(a=a1,b=b1))
pretty_print('kurtosis = ',kurt(a=a1,b=b1))
Example 6.3.6. Occurence of exactly one event randomly in a given interval.
Suppose you know that only one person showed up at the counter of a local business in a given 30 minute interval of time. Then, R = [0,30] given f(x)=1/30.
Further, the probability that the person arrived within the first 6 minutes would be ∫60130dx=0.2.
Theorem 6.3.7. Distribution Function for Continuous Uniform.
for x∈[a,b].
Proof.
For x in this range,