Git Product home page Git Product logo

mle's Introduction

MLE and MAP

Machine Learning: Maximum Likelihood Estimation (MLE) and Maximum a Posteri (MAP) Estimation

Subtleties

ML doesn't work good with sparse data because P(X | Y) might be zero. (for example, Xi = birthdate, Xi = Jan_25_1992)

P(Y=1 | X1...Xn) = (P(Y=1) * Mult P(Xi | Y=1) for i) / P (X1...Xn)

We can solve it by using prior with MAP estimation.

MLE

Pros

  • invariant under reparameterization. So we can wrap \theta_{MLE} in any function.

MAP

Pros

  • avoid overfitting (regularization / shrinkage)
  • tends to look like MLE asymptotically

Cons

  • point estimation (no representation of uncertainty in θ). Because it could choose spike of θ because it has higher probability
  • not invariant under reparameterization
  • must assume prior on θ

Examples

Univariate Gaussian mean

\theta_{MAP} =  \overline{x} * \frac{n}{n + \sigma^2} + \mu * \frac{\sigma^2}{n + \sigma^2}

in other words it is sample mean plus prior mean.

\theta_{MLE} = \overline{x}

so when n->0 we get

\theta_{MAP} \rightarrow \mu

but when n->∞ we get

\theta_{MAP} \rightarrow \theta_{MLE}

Related Topics

Videos

Jeff Miller (mathematicalmonk)

mle's People

Contributors

hyzhak avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.