伽馬
機率密度函式
|
累積分佈函式
|
| 引數 |
形狀 尺度
|
| 支援
|
|
| PDF
|
|
| CDF
|
|
| 均值
|
![{\displaystyle \scriptstyle \operatorname {E} [X]=k\theta \!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/4bcd0564c15fa09e51ad6cef42d662ef6d1dca35)
![{\displaystyle \scriptstyle \operatorname {E} [\ln X]=\psi (k)+\ln(\theta )\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/ade84f1fd2e20c78ef0cf51012ad6626335092c2) (參見雙伽馬函式) |
| 中位數
|
沒有簡單的閉合形式 |
| 眾數
|
|
| 方差
|
![{\displaystyle \scriptstyle \operatorname {Var} [X]=k\theta ^{2}\,\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/333617e4e5bd65bdbe335c76c1a7d0327573320e)
![{\displaystyle \scriptstyle \operatorname {Var} [\ln X]=\psi _{1}(k)\!}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7633714acaea7355cb1750b03b1c68d8053d6196) (參見三伽馬函式 ) |
| 偏度
|
|
| 例如峰度
|
|
| 熵
|
|
伽馬分佈在技術上非常重要,因為它指數分佈的母分佈,可以解釋許多其他分佈。
機率密度函式是
其中
是伽馬函式。除非 p=1,否則累積分佈函式無法找到,在這種情況下,伽馬分佈將變為指數分佈。隨機變數 X 的伽馬分佈記為
。
或者,伽馬分佈可以用形狀引數
和逆尺度引數
,稱為速率引數,進行引數化

其中,常數
可以透過將密度函式的積分設定為 1 來計算

如下


並且,透過變數替換
如下

我們首先檢查機率密度函式的總積分是否為 1。

現在我們令y=x/a,這意味著dy=dx/a


![{\displaystyle \operatorname {E} [X]=\int _{-\infty }^{\infty }x\cdot {\frac {1}{a^{p}\Gamma (p)}}x^{p-1}e^{-x/a}dx}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2041b84abc19d0b68d9be98a49e51b025c98402b)
現在我們令y=x/a,這意味著dy=dx/a。
![{\displaystyle \operatorname {E} [X]=\int _{0}^{\infty }ay\cdot {\frac {1}{\Gamma (p)}}y^{p-1}e^{-y}dy}](https://wikimedia.org/api/rest_v1/media/math/render/svg/54f1d35c1a15d3ae2ed4481c2ec1eccf01e8b4f4)
![{\displaystyle \operatorname {E} [X]={\frac {a}{\Gamma (p)}}\int _{0}^{\infty }y^{p}e^{-y}dy}](https://wikimedia.org/api/rest_v1/media/math/render/svg/59e45dd2f2dc64776612607cc9c0821c049a5c63)
![{\displaystyle \operatorname {E} [X]={\frac {a}{\Gamma (p)}}\Gamma (p+1)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/9b500fdb08277ba4c426a844dd4a0293d04d5dee)
現在我們利用這個事實:
![{\displaystyle \operatorname {E} [X]={\frac {a}{\Gamma (p)}}p\Gamma (p)=ap}](https://wikimedia.org/api/rest_v1/media/math/render/svg/ec6ebf9c846951a550635d7f913c1903886bee57)
我們首先計算E[X^2]
![{\displaystyle \operatorname {E} [X^{2}]=\int _{-\infty }^{\infty }x^{2}\cdot {\frac {1}{a^{p}\Gamma (p)}}x^{p-1}e^{-x/a}dx}](https://wikimedia.org/api/rest_v1/media/math/render/svg/dd81fa18392582d5fdf8dfe72690d597d05a22fd)
現在我們令y=x/a,這意味著dy=dx/a。
![{\displaystyle \operatorname {E} [X^{2}]=\int _{0}^{\infty }a^{2}y^{2}\cdot {\frac {1}{a\Gamma (p)}}y^{p-1}e^{-y}ady}](https://wikimedia.org/api/rest_v1/media/math/render/svg/5ab45ebf7e86bcd131f504933497e55af902b9ce)
![{\displaystyle \operatorname {E} [X^{2}]={\frac {a^{2}}{\Gamma (p)}}\int _{0}^{\infty }y^{p+1}e^{-y}dy}](https://wikimedia.org/api/rest_v1/media/math/render/svg/3da9177001a8304d085db66b2c51174e46c88c54)
![{\displaystyle \operatorname {E} [X^{2}]={\frac {a^{2}}{\Gamma (p)}}\Gamma (p+2)=pa^{2}(p+1)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/4d399ef4add4c2afee9106d9fcc6b035e140128c)
現在我們計算方差
![{\displaystyle \operatorname {Var} (X)=\operatorname {E} [X^{2}]-(\operatorname {E} [X])^{2}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/cd5a922df13bdee788c0f06474fe002a42c25d8a)
