当前位置:网站首页>Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
2022-07-03 05:48:00 【code bean】
First of all, Bernoulli test
Bernoulli distribution
Bernoulli experiment is about the following event : In the life , There are only two possibilities for some events to happen , Happen or not ( Or success or failure ), These events can be called Bernoulli experiment .
Probability distribution of Bernoulli test It is called Bernoulli distribution ( Two point distribution 、0-1 Distribution ), If the probability of success is recorded as p, Then the failure probability is q=1-p, be :
The binomial distribution
Suppose a certain experiment is Bernoulli experiment . Conduct n This is an experiment like this , succeed x Time , Failed n-x. Binomial distribution holds that : The probability of this happening can be calculated by the following formula :
The probability quality function of binomial distribution can be abbreviated as X~B(n,p).
actually , When n = 1 when , The binomial distribution is Bernoulli distribution . This is the relationship between binomial distribution and Bernoulli distribution .
So here we can see , Binomial distribution is a histogram of discrete distribution .X The axis is the number of successes ,Y The axis corresponds to success n Number probability value .
As the number of experiments increases , We will get a histogram similar to the normal distribution .
An interesting example ( On binomial distribution )
What he will do is if you go shopping in JD , You want to buy a bike , Then I searched three stores , The first store has a total of 10 comments , It's all good reviews . The second ,50 comments ,96% The high praise , A third ,200 comments 96% The high praise . Which store should I choose to buy . Here I assume a premise , Suppose the bike mass OK Is the probability that x( quality NG Is the probability that 1-x), When buyers buy OK Your bike will give you good reviews , Otherwise, bad comments .
Look at the first one ,10 comments , It's all good reviews . Then it can be said that the yield rate of the first bicycle is 100% Do you ? Not necessarily . We assume that the yield of the first bicycle is 0.95. Then each extraction 10 Bicycles are OK The probability of is actually quite high ( amount to 10 Every customer buys OK The probability of cycling ).
The figure below shows , If the yield of bicycle is 0.95, Every time 10 car , Separate extraction 7,8,9,10 The car is OK Probability .
in other words , although 10 comments , It's all good reviews . But bicycle OK The rate is also uncertain . But according to this binomial distribution , You said that the good product rate of this store is 0.95 about , It feels OK . Generally speaking, there are too few samples , There are many possible situations .
in other words , If the yield is determined before , You can see the probability of favorable comment rate
such as , If the yield is 0.95, So if there is 50 comments , Among them is 48 The probability of a positive comment is 0.26110( appear 47 Or 49 Good reviews are also 0.2 above )
So in turn , If we know a positive binomial distribution , Can we introduce the most likely yield ? In fact, the distribution and yield s There is a corresponding relationship .
This figure shows , When s by 0.96 When ,50 Comments appear 48 The probability of favorable comments is the greatest .
Stage summary : In this case , I think of , Prior probability , Posterior probability , maximum likelihood ( Deduce the probability model according to the established facts ), Even related to Poisson distribution .
These also seem to be related to naive Bayes , That's all for the discussion in this part , Later, slowly complete the knowledge system .
Poisson distribution
Firstly, Poisson distribution is a special form of binomial distribution , When the binomial distribution formula p Approach 0( Very small ), The number of experiments approaches infinity , And n*p Equal to a constant , We will get Poisson distribution . In Poisson distribution “ Enter into ” In fact, it is in the binomial distribution n*p.
Three conditions need to be satisfied for the event to apply Poisson distribution :
1 This event is a small probability event
2 Events are independent of each other
3 The probability of the event is stable
Divide a certain time infinitely , Until an event occurs at most once in time . Then this period of time I call it the unit time of Poisson distribution .
subject 1: At present, one minute has come 3 Vehicles , Please come in a minute 5 The probability of a car ?
When “ Enter into ” After determining , This image is determined , probability P With K Change by change . In binomial distribution, we need to know n and p
This “ Enter into ” The meaning is , The average occurrence rate of random events in unit time ( That's right is np 了 np The meaning of is expectation / mean value )
subject 2: Xinhua Bookstore , Weekly sales 4 This Xinhua Dictionary , How many Xinhua dictionaries should the boss prepare ?( Hang in the air )
Reference material :
Probability of probability , The first part -- The binomial distribution _ Bili, Bili _bilibili
How did Poisson distribution come from ? How to use ?_ Bili, Bili _bilibili
边栏推荐
- Strategy pattern: encapsulate changes and respond flexibly to changes in requirements
- Talk about how to use p6spy for SQL monitoring
- mysql启动报错:The server quit without updating PID file几种解决办法
- 2022.DAY592
- [teacher Zhao Yuqiang] index in mongodb (Part 1)
- Es 2022 officially released! What are the new features?
- MySQL 5.7.32-winx64 installation tutorial (support installing multiple MySQL services on one host)
- CAD插件的安装和自动加载dll、arx
- How to create and configure ZABBIX
- Redhat7系统root用户密码破解
猜你喜欢
Apache+PHP+MySQL环境搭建超详细!!!
[function explanation (Part 1)] | | knowledge sorting + code analysis + graphic interpretation
Export the altaro event log to a text file
Method of finding prime number
[teacher Zhao Yuqiang] MySQL high availability architecture: MHA
Kubernetes resource object introduction and common commands (V) - (configmap)
[trivia of two-dimensional array application] | [simple version] [detailed steps + code]
PHP笔记超详细!!!
Redhat7系统root用户密码破解
[advanced pointer (1)] | detailed explanation of character pointer, pointer array, array pointer
随机推荐
Altaro o365 total backup subscription plan
NG Textarea-auto-resize
Sorry, this user does not exist!
Get and monitor remote server logs
Altaro requirements for starting from backup on Hyper-V
Notepad++ wrap by specified character
[teacher Zhao Yuqiang] Flink's dataset operator
[teacher Zhao Yuqiang] MySQL flashback
[set theory] relational closure (relational closure related theorem)
"C and pointer" - Chapter 13 advanced pointer int * (* (* (*f) () [6]) ()
Exception when introducing redistemplate: noclassdeffounderror: com/fasterxml/jackson/core/jsonprocessingexception
2022.6.30DAY591
If function of MySQL
Solve the problem of automatic disconnection of SecureCRT timeout connection
[minesweeping of two-dimensional array application] | [simple version] [detailed steps + code]
Installation of CAD plug-ins and automatic loading of DLL and ARX
Latest version of source insight
[teacher Zhao Yuqiang] use Oracle's tracking file
[branch and cycle] | | super long detailed explanation + code analysis + a trick game
[function explanation (Part 2)] | [function declaration and definition + function recursion] key analysis + code diagram