当前位置:网站首页>13 probability distributions that must be understood in deep learning
13 probability distributions that must be understood in deep learning
2022-07-28 10:04:00 【Big data V】

Reading guide : As a machine learning practitioner , You need to know about probability distribution . Here is a tutorial on the most common basic probability distribution , Most and use Python Library for deep learning .
source :AI developer
Link to the original text :
https://github.com/graykode/distribution-is-all-you-need
Overview of probability distribution :

Conjugation means that it has a conjugate distribution relationship .
In Bayesian probability theory , If posterior distribution p(θx) And a priori probability distribution p(θ) In the same probability distribution family , Then a priori and a posteriori are called conjugate distributions , The prior is called the conjugate prior of the likelihood function . Conjugate a priori Wikipedia is here
https://en.wikipedia.org/wiki/Conjugate_prior
Multi classification means that the random variance is greater than 2.
n Second means that we also consider a priori probability p(x).
To further understand probability , I suggest reading [pattern recognition and machine learning,Bishop 2006].
Distribution probability and characteristics :
01 Uniform distribution ( continuity )
Code :
https://github.com/graykode/distribution-is-all-you-need/blob/master/uniform.py
Evenly distributed in [a,b] Have the same probability value on , It's a simple probability distribution .

02 Bernoulli distribution ( discrete )
Code :
https://github.com/graykode/distribution-is-all-you-need/blob/master/bernoulli.py
Prior probability p(x) Without considering Bernoulli distribution . therefore , If we optimize the maximum likelihood , Then we can easily be overfitted .
Binary cross entropy is used to classify binomial classification . Its form is the same as the negative logarithm of Bernoulli distribution .

03 The binomial distribution ( discrete )
Code :
https://github.com/graykode/distribution-is-all-you-need/blob/master/binomial.py
Parameter is n and p The binomial distribution of is a series of n Discrete probability distribution of success times in independent experiments .
Binomial distribution refers to a distribution that considers a priori probability by specifying the number to be selected in advance .

04 Dobbernoulli distribution , Distribution by category ( discrete )
Code :
https://github.com/graykode/distribution-is-all-you-need/blob/master/categorical.py
Dobenuli calls it the taxonomic distribution .
The cross entropy has the same form as the dobbernoulli distribution with negative logarithm .

05 Polynomial distribution ( discrete )
Code :
https://github.com/graykode/distribution-is-all-you-need/blob/master/multinomial.py
The relationship between polynomial distribution and classification distribution is the same as that between bernoulle distribution and binomial distribution .

06 β Distribution ( continuity )
Code :
https://github.com/graykode/distribution-is-all-you-need/blob/master/beta.py
β The distribution is conjugate with binomial distribution and Bernoulli distribution .
Using conjugation , Using the known prior distribution, the posterior distribution can be obtained more easily .
When β The distribution satisfies the special case (α=1,β=1) when , The uniform distribution is the same .

07 Dirichlet Distribution ( continuity )
Code :
https://github.com/graykode/distribution-is-all-you-need/blob/master/dirichlet.py
dirichlet Distribution and polynomial distribution are conjugate .
If k=2, Then for β Distribution .

08 Gamma distribution ( continuity )
Code :
https://github.com/graykode/distribution-is-all-you-need/blob/master/gamma.py
If gamma(a,1)/gamma(a,1)+gamma(b,1) And beta(a,b) identical , be gamma Distribution is β Distribution .
Exponential distribution and chi square distribution are special cases of gamma distribution .

09 An index distribution ( continuity )
Code :
https://github.com/graykode/distribution-is-all-you-need/blob/master/exponential.py
The exponential distribution is α by 1 when γ A special case of distribution .

10 Gaussian distribution ( continuity )
Code :
https://github.com/graykode/distribution-is-all-you-need/blob/master/gaussian.py
Gaussian distribution is a very common continuous probability distribution .

11 Normal distribution ( continuity )
Code :
https://github.com/graykode/distribution-is-all-you-need/blob/master/normal.py
The normal distribution is the standard Gaussian distribution , The average value is 0, The standard deviation is 1.

12 Chi square distribution ( continuity )
Code :
https://github.com/graykode/distribution-is-all-you-need/blob/master/chi-squared.py
k The chi square distribution of degrees of freedom is k Distribution of the sum of squares of independent standard normal random variables .
The chi square distribution is β A special case of distribution

13 t Distribution ( continuity )
Code :
https://github.com/graykode/distribution-is-all-you-need/blob/master/student-t.py
t The distribution is a symmetrical bell distribution , Similar to the normal distribution , But the tail is heavy , This means that it is more likely to produce values much lower than the average .


Extended reading

Extended reading 《 Neural networks and deep learning 》
Dry goods go straight to
Realize the unified management of one network of urban governance , This must be 4 A key technology
The relationship between cloud computing and digital transformation , At last someone made it clear
More exciting
Enter the following dialog box in the official account dialog box key word
See more quality content !
read | book | dried food | Make it clear | God operation | handy
big data | Cloud computing | database | Python | Reptiles | visualization
AI | Artificial intelligence | machine learning | Deep learning | NLP
5G | Zhongtai | User portrait | mathematics | Algorithm | Number twin
According to statistics ,99% The big coffee is concerned about the official account
边栏推荐
- 为什么要考一级建造师,一建证书含金量有多高?
- Word segmentation results of ES query index fields
- Experiment 4 uses fdisk to manage hard disk
- j s的数组方法,循环
- 路由器固件解密思路
- The blind box of super primitive series will be launched soon, and platofarm will enable more rights and interests
- 小黑重新站起来看leetcode:653. 两数之和 IV - 输入 BST
- It can traverse all files and subfolders under a folder
- 今天和大家聊一聊mysql数据库的数据类型
- 博弈论 1.Introduction(组合游戏基本概念、对抗搜索、Bash游戏、Nim游戏)
猜你喜欢

SeekTiger生态通证STI 新进展,4月14日登录 ZB

工业品MRO采购网站有哪些优势?一文带你读懂

Basic examples that must be mastered by beginners of C #

图解 3 种主流企业架构模式(建议收藏!)

并查集

Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 2)

为报复公司解雇,我更改了项目的所有代码注释!

刚获融资的Espresso Systems,知识产权与团队道德双双陷入困境

NTU Lin Xuantian's "machine learning cornerstone" problem solving and code implementation | [you deserve it]
![[ESP32][esp-idf][LVGL7.9] 使用oled iic编译失败](/img/16/e5aa43df6ef9bdbc173fa547c85559.png)
[ESP32][esp-idf][LVGL7.9] 使用oled iic编译失败
随机推荐
【FPGA教程案例41】图像案例1——通过verilog读取图片
2021.07.13 我们是这样崩的
Experiment 4 uses fdisk to manage hard disk
LandingSite电子标签Quuppa固件进入DFU状态说明
The secret behind three salary increases a year
Extreme deflation and perpetual motion machine model will promote the outbreak of platofarm
ASP. Net core 6 framework unveiling example demonstration [29]: building a file server
能够遍历一个文件夹下的所有文件和子文件夹
MySQL master-slave architecture. After the master database is suspended and restarted, how can the slave database automatically connect to the master database
ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器
Fixedwindowrollingpolicy introduction
SkiaSharp 之 WPF 自绘 拖曳小球(案例版)
(iros 2022) monocular visual inertial odometer based on event camera
In the era of home health diagnosis, Senzo creates enhanced lateral flow test products
OSPF的不规则区域,LSA和序列号
LSA and optimization of OSPF
Database advanced learning notes -- storage functions
Today, I want to talk about the data types of MySQL database
Edge team explains how to improve the comprehensive performance experience through disk cache compression technology
SizeBasedTriggeringPolicy简介说明