This article goes from:
http://blog.csdn.net/poi7777/article/details/23204789
In the field of machine learning, maximum likelihood estimation is one of the most common methods of parameter estimation, and it is the basic principle to be sorted out here.
Maximum likelihood estimation is fundamentally followed--seeing as reality, such philosophical thought. In other words, it strictly uses only the known experimental results to estimate the parameters in the probabilistic model.
The computational process for maximum likelihood estimation is very simple:
1. Write out the likelihood function
2. Find the value of the parameter that makes the likelihood function take the maximum value, this value is our maximum likelihood estimate of the parameter value in the probability model.
So, to understand the principle of maximum likelihood estimation, first we have to understand what a likelihood function is.
For example, we throw 2 coins in a row, the front is H and the reverse is T. When the coin has a homogeneous texture and the probability of the positive and negative sides is 0.5, P (HH) = 0.25. The former sentence is all expressed in mathematical notation, that is P (hh| h=0.5) = 0.25. For this equation, we can understand that: when the positive and negative probability of a coin is 0.5, the probability of a coin toss appearing two times in a row is 0.25. Now, let's rewrite some of this equation and turn it into P (hh| h=0.6) = 0.36. After rewriting, our understanding of this equation also becomes that when the positive probability of a coin is 0.6, the probability of a coin toss appearing two times in a row is 0.36.
Comparing the understanding before and after the rewrite, we found that the same is the face of the coin toss 2 consecutive positive results, but the positive probability of 0.6 when the value is greater than the positive probability of 0.5 when the value obtained. This allows us to judge numerically that when a coin toss appears 2 times in a row, the probability of a positive throw is 0.6:0.5 more reasonable. (very much in line with our intuitive judgment)
Further abstraction, we assume that the probability of throwing a positive is a, then the formula becomes P (hh| H=a) =a^2. At this point, the equation becomes the likelihood function that we write when facing the result of two consecutive positive results of a coin toss. According to the previous conclusion, in order to make the result as reasonable as possible, the larger the value of a is better, but here a value of 0 to 1, random a The most reasonable value is 1. Intuitively understand this result, that is, only 2 coins were thrown, the result appeared 2 positive, only from the experimental results to estimate the probability of the positive coin, 1 is the most reasonable estimate. (Intuitively, we have to admit that it does)
The above calculation process, in fact, is the idea of maximum likelihood estimation. When we generally solve, the likelihood function may be more complex, for example, many of the equations of the multiplication, the likelihood of the maximum value of the function, the general use of derivative method to obtain results.
Recall the previous coin toss experiment, although the coin toss 2 times positive results, the maximum likelihood estimate 1 is the most reasonable estimate of the positive probability of the coin. But in general, no one would think so, that's why.
The reason is that our brains have a priori estimate of the probability distribution of the coin toss, that the probability of the positive and negative tends to be the same.
In fact, these two different ideas reflect the Bayesian school and frequency School in the view of the fundamental differences. Maximum likelihood estimation is one of the most classical methods of frequency school, and it objectively estimates parameters from experimental results. While the Bayesian school thinks that the world is distributed according to some laws, we can estimate the world only if we assume some kind of distribution, and put it here, that is, people always think that the probability of the positive and negative is tending to be the same.