Feed on
Posts
Comments

Debugged!!

I finally hacked it. (see previous post). During a road trip to watch the basketball teams play in OK City, I finally discovered the problem with the code where we were using a nonlinear optimizer to determine the optimal portifolio by minimizing a quantity called, “Value at Risk.” Basically, the problem boiled down the fact that the optimization algorithms require a deterministic result. We are using a gradient reduction technique to minimize the objective function. In essence, you take small steps in the direction of steepest descent, but our objective function involved a bootstrapping technique that appoximates the 1st (or k-th) percentile of portfolio returns. The appoximation was based on randomly sampling with replacement from the history of returns, then calculating the 1st (or k-th) percentile. Because of the randomness, a single choice of stock/fund distribution can produce a different Value at Risk in different iterations. With all that said, we can now correct the problem, Yeehaw!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • Technorati
  • Facebook
  • Google
  • Pownce

6 Responses to “Debugged!!”

  1. on 25 Jan 2006 at 10:32 am mommyfranklin

    WOOHOO!
    Congratulations!

    :)

  2. on 25 Jan 2006 at 10:33 am mommyfranklin

    If you would have just asked, I would have told you how to do it…
    LOL

  3. on 25 Jan 2006 at 4:15 pm jonboy

    I think I’ll go read your other blog. Last time I checked it was written in English.

  4. on 26 Jan 2006 at 4:15 pm Mom

    Well, alright, then!

  5. on 26 Jan 2006 at 9:37 pm N'ida

    I new the answer, I just didn’t know the question.

  6. on 27 Jan 2006 at 8:57 am SpookyRach

    Wait - you mean there’s another blog? In English? I’m so there.

Trackback URI | Comments RSS

Leave a Reply