Wednesday, April 10, 2013

I will be presenting on this today

In other words, the stuff that happens when the econometrician gets up from his computer to use the facilities or get another cup of coffee.
 

Who says economics is boring!

9 comments:

  1. That was my computer screen yesterday! I maximized the shit out of that likelihood function.

    Also, potentially relevant: http://xkcd.com/303/

    ReplyDelete
    Replies
    1. Oh I am TOTALLY adding that to my slides...

      ...or would that be unprofessional? I like to keep things somewhat lighter and sometimes I don't know.

      Delete
    2. Yep, added it to the first slide with the picture above. Went over very well :)

      Most of the presentations have been on empirical papers which are more interesting because they have a story and neat identification tricks. So it was nice to have this at the beginning of mine, since mine was one of only two presentations that was more about textbook type material.

      Delete
  2. That's exactly what my computer screen looked like when I tried to write an agent-based simulation of the indulgence market. Also pretty much every single ones of my forays into simulations, machine learning and my day to day job: compiling, running tests, running the flaky tests again...

    I have a good link for your slides: http://oneweirdkerneltrick.com/

    ReplyDelete
    Replies
    1. Haha - I like "37-year-old patriot discovers "weird" trick to end slavery to the Bayesian monopoly."

      When I first clicked through I thought you gave me a bad link - then I realized, nope - this is it.

      Delete
  3. Looks like you have quadratic convergence for the first two iterations and then it falls off pretty quickly. If any part of the code is written in single precision, you are just fighting round-off errors by iteration 10.

    All of this assumes that the answer is even meaningful. Log likelihood = - 2 million does not seem meaningful if you really mean "log likelihood".

    ReplyDelete
    Replies
    1. Not sure what you mean by quadratic convergence (unless you just mean literally following a quadratic function). The model is a multinomial logit model with a bunch of crap in it. I tried some others just to get the screenshot but they actually optimized too quickly! So I had to pick one that I knew would take a long time.

      With multinomial logit you're multiplying a bunch of small probabilities together for the likelihood function, so that likelihood will be relatively small for any given solution and the log-likelihood will be large and negative.

      Stata has default tolerances for when to stop optimizing. It may be getting into rounding errors at that point, but I would think by the time it ran into rounding errors the tolerances would tell it to stop.

      Delete
    2. Quadratic convergence is when you have an iterative method and your error in effect squares with each iteration so you might have a sequence where the first iteration has an error of .1, the second iteration the error is .01, the third iteration you have .0001 and the fourth iteration the error is .00000001. If your method and your problem permit quadratic convergence it's awesome. That is probably what is going on with your other cases. Newton's method for finding a root of a function will display quadratic convergence once the estimate is close to a root.

      Delete
    3. This comment has been removed by the author.

      Delete

All anonymous comments will be deleted. Consistent pseudonyms are fine.