Logistic Regression cost function and Maximum likehood estimate
Logistic Regression cost function
The original form is y^, here we simplified by using y’ because of the latex grammar.
This one equation can express that:
The log function is a strictly monotonically increasing.
Maximizing
give you a similar result that is optimizing p(y|x) and if you compute log of p(y|x)
->
note: l represents loss function here.
Minimizing the loss function corresponds to maximum the log of the probability.
This is what the loss funcion on a single example looks like.
Cost on m examples
Maximum likelihood estimation
And so in statistics, there’s a principle called the principal of maximum likelihood estimation,which just means choose the parameters that maximizes this thing(refer to above).
Cost function:
Because we want to minimize the cost, instead of maximizing likelihood we’ve got rid of negative. And then finally for convenience, we make sure that our quantities are better scale, we just add a 1 over m extra scaling factor there.
But to summarize, by minimizing this cost function J(w,b), we’re really carrying out maximum likelihood estimation Under the assumption that our training examples were IID or identically independently distributed.
Reference
https://mooc.study.163.com/learn/2001281002?tid=2001392029#/learn/content?type=detail&id=2001702014
Maximum likelihood Estimate
https://blog.csdn.net/zengxiantao1994/article/details/72787849