3.3 Continuous Distribution
3.3.1 Uniform Distribution
The continuous uniform distribution is defined by spreading mass uniformly over an interval [a, b]. Its pdf given by
f (x|a, b) =
1
b−a if x ∈ [a, b]
0 otherwise It is easy to check that Rb
a f (x)dx = 1 and EX =
Z b
a
x
b − adx = b + a 2 VarX =
Z b
a
1
b − a(x − b + a
2 )2dx = (b − a)2 12 .
3.3.2 Gamma Distribution
The pdf of gamma(α, β) distribution is defined as f (x|α, β) = 1
Γ(α)βαxα−1e−x/beta, 0 < x < ∞, α > 0, β > 0.
The parameter α is known as the shape parameter, since it most influences the peakedness of the distribution, while the parameter β is called the scale parameter, since most of its influence is on the spread of the distribution.
Γ(α) is called the gamma function, it is defined as Γ(α) =
Z ∞
0
tα−1e−tdt.
It satisfies the following recursive formula
Γ(α + 1) = αΓ(α), α > 0.
EX = 1
Γ(α)βα Z ∞
0
xxα−1e−x/βdx
= 1
Γ(α)Γ(α + 1βα+1 = αβ
1
In a manner analogous to the above, we can calculate EX2 and then get VarX = αβ2.
The mgf of a gamma(α, β) distribution is MX(t) = ( 1
1 − βt)α, t < 1 β.
Example 3.3.1 (Gamma-Poisson relationship)
There is an interesting relationship between the gamma and Poisson distributions. If X is a gamma(α, β) random variable, where α is an integer, then for any x,
P (X ≤ x) = P (Y ≥ α), (1)
where Y ∼ Poisson(x/β).
There are a number of important special cases of the gamma distribution.
Chi-squared distribution If we set α = p/2, where p is an integer, and β = 2, then the gamma pdf becomes
f (x|p) = 1
Γ(p/2)2p/2x(p/2)−1e−x/2, 0 < x < ∞, which is the chi-squared pdf with p degrees of freedom.
exponential distribution If we set α = 1, we have f (x|β) = 1
βe−x/β, 0 < x < ∞,
the exponential pdf with scale parameter β. The exponential distribution can be used to model lifetimes, analogous to the use of the geometric distribution in the discrete case. In fact, the exponential distribution shares the “memoryless” property of the geometric.
P (X > s|X > t) = P (X > s, X > t)
P (X > t) = P (X > s) P (X > t)
= R∞
s 1
βe−x/βdx R∞
t 1
βe−x/βdx = e−s/β e−t/β
= e−(s−t)/β = P (X > s − t).
2
Weibull distribution f X ∼ exponential(β), then Y = X1/γ has a Weibull(γ, β) distribution,
fY(y|γ, β) = γ
βyγ−1e−yγ/β, 0 < y < ∞, γ > 0, , β > 0.
The Weibull distribution plays an extremely important role in the analysis of failure time data.
3