What is the Maximum Likelihood Estimation

What is the Maximum Likelihood Estimation

2018, Aug 26    
  • likelihood : A probability of happening possibility of an event.

Let’s start with Bernoulli distribution !!

  • Bernoulli Distribution :

1

2

In this notation, We calculate the probability given x and theta.
Object is finding θ which maximize the probability.

3

In the bernoulli distribution, let me suppose that p is sigmoid.

4

And then, we can get likelihood with taking the log function.

Why do we take a log function? Because earlier notation, To get the probability, we multiplied all probabilities.
Multiplying too many probabilities makes the result too much small. Therefore, we transform the multiply to add by log function.

5,

6

7

Wow, It’s same with cost function of logistic regression.

8

Surely, partial derivation of MLE is same with partial derivation of cost function.

Remember!

  • MLE and Cost function have same result in logistic regression !!
    • Therefore, we can use cost function as maximize the parameter θ.