Pertinent Observations

03 Mar

Love in Monte Carlo

A popular class of randomized algorithms is what are called “Monte Carlo algorithms”. These algorithms are applied to decision problems and give a “yes/no” answer. The peculiarity with Monto Carlo Algorithms is that if they say “no” you can be sure that the answer is “no” while if they say yes, the answer is “yes” with only a certain probability! The most “popular” such algorithm is the Primality Test which uses Fermat’s Little Theorem.

I have found an interesting practical instance of a Monte Carlo algorithm. It is regarding the decision I’ve been trying to make over the last two months – is she the ideal girl for me? From my “experiences” I’ve found that the algorithm I use for this is Monte Carlo!

I input a girl into my algorithm and ask it if there is a possibility of a relationship with her. If it says no, I can completely believe it and get on with life. A ‘yes’, however, means trouble. It means there is a possibility of a relationship, but there is no guarantee. An MBA like me is actually supposed to revel in ambiguity, but what the hell.

The way computer scientists get around this peculiarity of this algorithm is by running it multiple times. They define a probability limit (say 95%) and say that “if I am 95% sure that it is a yes, then I’ll take it as a yes”. Now, the number of times the algorithm needs to be run in order to get 95% confidence is determined by the probability that the algorithm is right when it says “yes”.

What has been happening in my case is that this probability is not too high (from historical data). Hence, I need to run it a really large number of times in order to reach the required confidence interval. Consequently, it is taking a fairly long time (there have been occasions in the past when the algorithm kept saying yes for 2 months and then finally said “no”).

Wanted: A better algorithm! Hopefully a Las Vegas.

Bookmark and Share

One Response to “Love in Monte Carlo”

  1. 1
    Arranged Scissors 13 - Pruning | Pertinent Observations Says:

    [...] in a post a long time ago, this whole business of louvvu and marriage and all such follows a “Monte Carlo approach“. When you ask yourself the question “Do I want a long-term gene-propagating [...]

Leave a Reply

© 2010 Pertinent Observations | Entries (RSS) and Comments (RSS)

GPS Reviews and news from GPS Gazettewordpress logo

Bad Behavior has blocked 94 access attempts in the last 7 days.