Friday, December 01, 2006

Our new friends in Peru

We Love Peru!

Janet and I manage a small consulting business and our company is undergoing unprecedented growth, doubling every year. As contentious managers, we know that customer relations are important, and we have found ourselves traveling the globe to meet our new clients. We have even worked in India, a country that is the home of computer “outsourcing”! The irony is that even though we have a high hourly rate, yet our experienced experts provide the cheapest solution, even for developing countries on a limited budget!

It all started when we completed a major overseas project for a tiny fraction of the original estimate. The client told their friends, and Janet and I are now traveling the world arranging systems development projects. In Peru, Linux and Oracle are catching-on fast, and its fun to be in on the ground-floor for a nascent yet burgeoning IT industry:


Peruvian Open Source Conference 2007

For more details on our adventures in Lima, see our travelogue on Lima Peru.

Lima Peru is a sprawling city which is about 30% Native American, 25% Spanish, with a 40% majority called “Mestizos” (Peruvians with a mixed Spanish and Indian heritage). The Mestizos are very proud of there heritage, although I did see this strange t-shirt commemorating the 1531 arrival of the Conquistadors. I’m not sure what it means, but it must have some unobtrusive meaning:



The national drink of Peru is “Piso” (a strong brandy, which is usually served with line and egg-white as a “Piso Sour”) and the ubiquitous Inca Cola, a yellow concoction the color of Mountain Dew, which has a nice bubble-gum flavor very much the special Junkanoo soda of the Bahamas, which is only made for the Christmas season:



Native Peruvian foods includes hearty meats, especially roasted Cavy (Guinea Pig), which is skinned, gutted and charcoal roasted on a spit, and sold for only about fifty cents each. They are just a snack really, and you should get at least 3-4 for a full meal. You eat Guinea Pig just the same a squirrel, starting with the hams, and working your way forward, making sure to scrape all the meat off of the ribs.




Before: Cute and furry



After: Juicy and delicous

Peru is a country where a programmer’s weekly income is about what I charge by the hour, and it was huge surprise that many developing nations are now requesting our computer consulting services.

People all over the globe are now beginning to recognize that an experienced programmer can build computer systems over a hundred times faster than a neophyte.

Hey, experience counts. . .

Thursday, November 30, 2006

Trial, re-trial Probabilities and Superstition

Trial, re-trial Probabilities and Superstition

When evaluating the probabilities of an outcome, I’ve seen many superstitious behaviors, from kissing dice to wearing a lucky shirt. The core nature of superstition relates to trial re-trial probabilities, and it’s worth a closer examination.

When you toss a fair coin five times and it always comes-up “heads”, what is the probability of a “heads” on the sixth roll? A scientist will tell you that the probabilities between trials are always exactly the same regardless of previous outcomes, but real-world experience documents “streaks” which cannot be explained by science.

So, is the belief in “streaks” superstitious? How do we reconcile the fact that trial, re-trial probabilities are always exactly the same with the equal fact that “luck” runs in streaks? After all, it’s silly to leave a table when you are winning every hand, and it’s not too bright to stay at a table when you are loosing every hand.

Clinically, superstitious behavior occurs when the subject feels that their outcomes are governed by random chance, and there is a natural tendency to search for causation, even when none exists. Hence, it’s no surprise that many professional gamblers indulge in superstitious behavior.

When lightening strikes thrice

In real-world observations, streaks do exist, and random number analysis shows that winning-losing “streak” combinations occur quite frequently. Is it superstitious to stay at the gaming tables when you are “on a roll”?

We are at a client site where there is little to do after work but gamble in the casinos. Janet was at the roulette table today, and she bet straight-up on black 25, plus a 5x street bet. She was thrilled to win the first time, and left the bet on the table. The second time the wheel landed on black 25 again (with Janet retaining her original bet) , a probability of (38**2) , or a 1,444 chance of “lightening striking twice”. But that not the end of the tale.

To further confound probability theory, the third roll also returned a black 25 (with her same bet retained), and the roulette croupier stopped play to show the pit boss about this amazing event, as he handed Janet her stack of $100 chips. (we were afraid that they would throw her out, as casino’s are not public places, and large winners are frequently ejected).

The statistical probability of the same number hitting three times in roulette are 38 cubed, of (38**3 = 51,942), a 50k chance that the same number would come-up three times, and even more remarkable that Janet would retain bets on these numbers.



Now, we loose as much as we win in roulette, but nobody can deny that amazing statistical “streaks” occur. Any professional gambler will tell you to “ride the wave” when you are hot and “lay low” when the cards are against you.

Beginners luck

I believe in beginners luck and I’ve seen enough first-hand anecdotal evidence to believe in the beginners luck. The very first time that Janet played in a Texas Hold-em tournament, first hand, she got a royal straight-flush, something that occurs once out of 65,000 hands. On Janet’s first time playing bingo, she won a cruise ship jackpot of over $4k, and call me superstitious, but I’m a firm believer in beginners luck.



Psychologists have done many studies on superstitious behaviors. This paper titled “An Exploratory Investigation of Superstition, Personal Control, Optimism and Pessimism” is great, and check out the great book “Believing in Magic: The Psychology of Superstition” for a great read about superstitious behaviors and scientific probabilities.

Me, I’ve been around lucky gamblers and I firmly believe that saintly people like Janet seen to always have good luck. Call me superstitious, call me whatever you like, but clean-living and charity seems to be clearly connected to good luck in all things.