1.均勻分布(連續)代碼:https://github.com/graykode/distribution-is-all-you-need/blob/master/uniform.py
均勻分布在 [a,b] 上具有相同的概率值,是簡單概率分布。
2.伯努利分布(離散)代碼:https://github.com/graykode/distribution-is-all-you-need/blob/master/bernoulli.py
3.二項分布(離散)代碼:https://github.com/graykode/distribution-is-all-you-need/blob/master/binomial.py
4.多伯努利分布/分類分布(離散)代碼:https://github.com/graykode/distribution-is-all-you-need/blob/master/categorical.py
5.多項式分布(離散)代碼:https://github.com/graykode/distribution-is-all-you-need/blob/master/multinomial.py
多項式分布與分類分布的關係與伯努爾分布與二項分布的關係相同。
6.β分布(連續)代碼:https://github.com/graykode/distribution-is-all-you-need/blob/master/beta.py
7.Dirichlet 分布(連續)代碼:https://github.com/graykode/distribution-is-all-you-need/blob/master/dirichlet.py
8.伽馬分布(連續)代碼:https://github.com/graykode/distribution-is-all-you-need/blob/master/gamma.py
如果 gamma(a,1)/gamma(a,1)+gamma(b,1)與 beta(a,b)相同,則 gamma 分布為β分布。9.指數分布(連續)代碼:https://github.com/graykode/distribution-is-all-you-need/blob/master/exponential.py
指數分布是 α 為 1 時 γ 分布的特例。
10.高斯分布(連續)代碼:https://github.com/graykode/distribution-is-all-you-need/blob/master/gaussian.py
高斯分布是一種非常常見的連續概率分布。
11.正態分布(連續)代碼:https://github.com/graykode/distribution-is-all-you-need/blob/master/normal.py
正態分布為標準高斯分布,平均值為0,標準差為1。
12.卡方分布(連續)代碼:https://github.com/graykode/distribution-is-all-you-need/blob/master/chi-squared.py
13.t 分布(連續)代碼:https://github.com/graykode/distribution-is-all-you-need/blob/master/student-t.py
t分布是對稱的鐘形分布,與正態分布類似,但尾部較重,這意味著它更容易產生遠低於平均值的值。