Introduction To The Gamma Distribution
29 Dec 2017Prologue To The Gamma Distribution
The Gamma Function Γ
It is very important in the gamma distribution, first of all, we take not only a glance over it, but go through some of the major properties of it. The gamma function comes in the definition:
Γ(α)=∫∞0xα−1⋅e−xdx, where α>0.Taking advantage of integration by part:
Let u=xα−1, dv=e−xdx, then,
du=(α−1)⋅xα−2, v=−e−x.Γ(α)=xα−1⋅(−e−x)|∞0-∫∞0−e−x⋅(α−1)⋅xα−2dx
=0+∫∞0e−x⋅(α−1)⋅xα−2dx
=(α−1)⋅∫∞0e−x⋅xα−2dx
=(α−1)⋅Γ(α−1)Γ(5)=4⋅Γ(4), therefore, we can deduce it out that: Γ(α)=(α−1)⋅Γ(α−1)
=(α−1)⋅(α−2)⋅Γ(α−2)=⋯[1]the corollary has it that:
Γ(n)=(n−1)⋅(n−2)⋅(n−3)⋯Γ(1)
,where Γ(1)=∫∞0x0⋅e−xdx=−e−x|∞0=1
, thus, Γ(n)=(n−1)! is obtained.[2]Γ(12)=√π
There exists some alternatives, either way could be:
proof::➀
As we don’t like −12, by means of change unit,
let x=u2, then, dx=2⋅udu:
Γ(12)=∫∞0x−12⋅e−xdx
=∫∞0u−1⋅e−u2⋅2⋅udu
=2⋅∫∞0e−u2duTake I=∫∞0e−u2du, then,
I2=∫∞0e−x2dx ∫∞0e−y2dy
=∫∞0∫∞0e−(x2+y2)dxdyGuess what? We just transform our integral to the quadrant one.
Take r2=x2+y2, we can have below two sets of deduction:
➀dr2dx=d(x2+y2)dx=2⋅x
⇒dr2=2⋅xdx➁dr2dr=d(x2+y2)dr
⇒2⋅r=d(x2+y2)dr
⇒2⋅rdr=d(x2+y2)
⇒2⋅rdrdx=2⋅x
⇒rdr=xdxReplace ➀ and ➁ in below integral:
∫∞0e−r2dr2
=∫∞0e−r2dr2dx⋅dx
=∫∞0e−r2⋅2⋅xdx
=∫∞0⋅2⋅r⋅e−r2dr
=−er2|∞0
=1Please recall that we have our integration area in quadrant one, at this moment, back to I, let θ=y to integrate from 0 to π2:
I2=∫π20∫∞0e−r2dr2dθ
=∫π20dθ ∫∞0e−r2⋅xdx
=π2 ∫∞0e−r2⋅rdr
=π2⋅(−12⋅e−r2)|∞0
=π2⋅(0−12)
=π4Γ(12)=2⋅∫∞0e−u2du=2⋅I, where I=∫∞0e−u2du is something we have already known.
Therefore, I2=π4, and I=√π2, finally, we have Γ(12)=√π thus proved.proof::➁
Γ(12)=∫∞0x−12⋅e−xdx, here we are again.
Take x=z22, then, dxdz=z, thus, we have dx=zdz
∫∞0x−12⋅e−xdx
=∫∞0(z22)−12⋅e−z22zdz
=∫∞0√2⋅z−1⋅e−z22zdz
=√2∫∞0e−z22zdz
=2⋅√π∫∞01√2⋅π⋅e−z22zdz
=2⋅√π⋅12
=√πwhere ∫∞−∞1√2⋅π⋅e−z22zdz=1 is the accumulative probability of normal distribution, therefore, ∫∞01√2⋅π⋅e−z22zdz=12.
The PDF of Gamma Distribution
Next we inspect the PDF(probability density function) of the gamma distribution. The f(x) of PDF is expressed as:
f(x)=1βα⋅Γ(α)⋅xα−1⋅e−xβ
=1β⋅Γ(α)⋅(xβ)α−1⋅e−xβ
=1β⋅(xβ)α−1⋅e−xβΓ(α)
, where α>0, β>0By taking λ=1β, then, we just have it that:
f(x)=λ⋅(λ⋅x)α−1⋅e−λ⋅xΓ(α)What do we mean by the parameters α, β, λ?
➀α is for the sharpness of the distribution.
➁the spread or dissemination of the distribution could be resort to β.
➂λ is for the intensity, that is, the rate, frequency, in the form of counttimeunit.
Expect Value And Variance Of Gamma Distribution
As we know that it is the PDF of the gamma distribution:
f(x)=1βα⋅Γ(α)⋅xα−1⋅e−xβNext to figure out the expect value and variance of the gamma distribution. The suggestion would be made that we should take advantage of the moment in Introduction To The Moment Generating Function.
E[Xk]=1βα⋅Γ(α)∫∞0xk⋅xα−1⋅e−xβdx
Let y=xβ, and we can have, dy=1βdx, then:
E[Xk]=1βα⋅Γ(α)∫∞0xk+α−1⋅e−xβdx
=1βα⋅Γ(α)∫∞0(β⋅y)k+α−1⋅e−y⋅βdy
=βk+α−1⋅ββα⋅Γ(α)∫∞0(y)k+α−1⋅e−ydy
=βkΓ(α)∫∞0(y)k+α−1⋅e−ydy
=βkΓ(α)⋅Γ(k+α)➀E[X]=μ1, the first ordinary moment, by taking k=1, we can have the expected value expressed as:
E[X]=βΓ(α)⋅Γ(1+α)=β⋅α
➁Var[X]=E[X2]−E2[X], by taking k=2, we can obtain E[X2]=μ2, the second ordinary moment, and have the expression of the variance:
Var[X]=β2Γ(α)⋅Γ(2+α)-(β⋅α)2
=β2⋅(α+1)⋅(α)-(β⋅α)2
=β2⋅α⋅(α−1−α)
=β2⋅α