Monday, July 11, 2011

Two doctors and a patient

In a town, there are two doctors and only one patient who is a drug addict. After a particularly bad seizure, the addict goes to one of the doctors. The doctor knows that the addict should be checked into rehab, but also foresees that since rehab is frustrating, the addict will likely switch doctors. Hence, the doctor, acting to avoid the loss of his only patient, administers to the addict a large dose of his own drug to restore the semblance of normalcy. In this way, the doctor buys time to implement a better long-term treatment plan. The other doctor is vocal in his criticism of the treatment method, although one might conjecture that had the patient gone to him instead, events would have unfolded with broad similarity while differing in details.

The analogy with the two-party system and the US economy is imperfect. If the above were to happen, the patient would ultimately die. The US economy will merely be reborn at some point. A part of me would like to believe that a long-term cure can be found for the excessive debt that has accumulated, but experts everywhere seem to not deny that debt has simply changed hands, not disappeared. The best outcome that I can think of is one where the dollar smoothly devalues, in the process reducing the effective sovereign debt burden, and also boosting exports. But a major economic adjustment such as this is unlikely to be without hiccups.

Debt signifies that tomorrow's spending was done yesterday, and in a zero-sum game we must spend less sometime in the future. Since we spent more yesterday, the economy did better than it would have. To quote Kenneth Fisher "Historically, big deficits are followed by stock-market returns that are dramatically superior to those following surpluses--for as long as 36 months out." When the time comes, stock market returns will be less than dramatic as the US government, which directly or indirectly is a big customer of the US economy, will have gone from spender to the opposite. Whether spending will reduce because of higher taxes or fewer public entitlements is something that the two doctors can debate ad infinitum.

Saturday, June 04, 2011

Choosing the right animal

A donkey is an inefficient horse. It is smaller, weaker, slower. But that a horse is an inefficient donkey is more revealing, because it is less expected. You see, a donkey has certain traits that are valuable in certain contexts - it is a dull, docile, complying animal.

So if a dhobi (washerman) needs a donkey to carry his pile of laundry to the dhobi-ghat (place by the side of a water body where clothes are washed), then it is a donkey that he must buy. If instead he buys an animal from a sale on race-horses who fell short of racing standards, then the next morning the whole village will watch with a mix of bewilderment, amusement and pity as an out-of-breath dhobi chases a trotting horse with a pile of clothes falling off its back.

Friday, April 15, 2011

Fairness over Equality

In an episode of the TV medical drama 'House', a patient of African origin is offended when the doctor tells him that a certain drug works better on blacks than on whites. He is offended because he knows that we are all equal; the difference is only skin deep.

The notion of equality is widely perceived as positive - as an antidote to discrimination.'Everyone is equal' is a simple idea anyone can grasp, whether they agree or not. Clearly everyone is not equal in the mathematical sense of equality, since if you can tell two people apart then they cannot be equal. But more importantly, I think that this oversimplified axiom prevents the more correct and more important idea of 'fairness' from finding the visibility that is due.

In a world where everyone is equal, tolerance is trivialized. Tolerance is hard. If we were zebras in the Serengeti, our survival would depend critically on the ability to generalize the behavior of one lion to all lions. A broadminded zebra who thought – “I should treat this lion as an individual, even though the last one chewed up my cousin” – would quickly end up as lunch. The ability to generalize is naturally hardwired into the parts of our brain that we have inherited from our ancestors of millions of years ago.

Unfortunately, humans tend to generalize by force of habit along lines that are not fundamental. Most of us here have had no choice in determining our religion, race, nationality etc. but are nonetheless attached to such identities strongly. When our country is insulted, we feel insulted, even though we are citizens simply because, through no choice or fault of our own, we found ourselves there when we first opened our eyes at birth. Every country, religion, race has people who would feel less insecure if people of other similarly accidentally acquired identities were wiped out. Zebras would feel less insecure if lions and other harmless animals that resemble lions could be exterminated.

Tolerance requires that even though people are not the same, they still deserve respect and fair treatment. This is harder. This is also a self-evident truth. Not another well-meaning lie devised for those whom we perceive as too stupid to think for themselves.

Wednesday, March 30, 2011

Free advice...

... does no good to its recipient, and causes loss of goodwill to the giver.

Sunday, March 13, 2011

To each his own

Religious beliefs are like toothbrushes. They can be quite useful to the owner, but it is unwise to think that someone else would want to use yours.

Tuesday, December 14, 2010

God said...

A thought,
before it can be written
in a book of God,
must first originate
in the mind of man.

Saturday, November 20, 2010

A simple way to design a secure password

Since we can access many of our belongings - from email accounts to bank accounts - online, it is important to have strong passwords.

When setting a password, two conditions should be satisfied:
1. the password for each account should be hard to guess, and
2. the password for each account should be different.

Condition 1 is obvious. A lock is useful only if it is hard to pick. A human being may try to break the password by using common personal information such as a family member's name. A computer can search through a dictionary of words and strings such as '123' that are commonly used in passwords (for example, see http://www.foxnews.com/scitech/2010/01/26/common-internet-passwords/).

Condition 2 says that you should not use the same key for all your locks, even if the key itself is secure (i.e. the password is hard to guess). If one account is compromised, for example an email account, then your bank account with the same password also becomes vulnerable.

The challenge with setting good passwords is that most people (including me) find it hard to remember many different passwords. To get around the problem, a person can design a simple rule to set multiple passwords. In order to meet both conditions above, the password creation rule must use two elements: 1. A personal key, and 2. A key that is unique to the account name.

For example, I am Arnab and I want to set a password for my Yahoo account. I could use a password 'ArnabYahoo', except that it would be predictable. But if I used a personal key 'alaihy' (which I can remember easily because it uses the first letters of the song "As Long As I Have You"), and replaced each letter of Yahoo with the next letter to obtain 'zbipp', and created a password by alternating the letters of the two keys to obtain 'azlbaiiphpy', then the password would be hard for a stranger or a computer to guess. The password for Google would similarly be 'ahlpapihhmyf'.

The above is just an illustrative example. There can be infinite variety in the ways in which a person can choose personal and account-specific keys and combine both. Depending on your appetite for complexity and your need for security, you can design a simpler or harder rule.

The vulnerability of the above approach is that if someone knew passwords from a number of your accounts, then the person could potentially uncover the rule you are using to design passwords. But the effort required to collect multiple passwords and uncover your rule is significantly higher than guessing/discovering one simple password.

Sunday, November 07, 2010

Snapshots

Sharing a collection of pictures I have taken over the years...

 The yellow flowers above are from the Anza Borrego desert state park. The flowers eclipse the sun, which given them the 'halo'.
 Gerbera daisies from my potted flower garden.
 Hydrangeas. Not from my garden :)
 Some fallen twigs with a few leaves attached.
 From a memorable trip to Mt. Olympic national park. The beach was amazing... unique in its own way. This was a Thursday afternoon with few people on the beach.
 Portland rose garden.
 Portland...
 More Portland rose...
 And more...
 You guessed it. I like flowers. Roses in particular.
A shot of Mt. Rainier from the plane. My wife worked in Redmond, WA while I completed my PhD in Houston, TX. This was a familiar sight from the window as the plane approached Seattle.
 
Big Bend National Park. The wall on the left is Mexico. The one on the right is the United States. In between flows the Rio. Amazing spot to visit. This one is stretched on my desktop as a wallpaper right now. Makes me feel like I am staring down at the reflection of the cliffs in the clear, calm water.
 A solitary tulip from Skagit Valley, WA. In spring, the tulip fields are in bloom, and the valley is bursting with color. We were there on a cold, rainy day (so characteristic of the region). And it was pretty awesome then. On a bright day, I imagine it would be heaven.

(If you use these pictures, please cite the source.)

Sunday, October 17, 2010

Downfall

We live in times when most human problems are created by humans. I have found myself postulating that the sum of human miseries is constant - it is only the nature of our problems that has changed over the years.

We humans seem to suffer from two types of shortcomings that lead us to create problems for ourselves. First is the inability to understand our needs - what will hurt us - either because of a lack of intelligence or reckoning ability or because of denial. The second is more pitiful - when someone knows that doing something hurts but in incapable of changing one's ways. Ask any addict.

If you are wondering 'What brings me to these thoughts?'... I was watching a documentary on the life of Sam Clemens (better known by his psuedonym, Mark Twain), a brilliant and successful writer who in later life thought he could do business, but was otherwise a very intelligent man. As someone in the movie commented, "There is no reason for a writer to not be a successful businessman. I have just never met one."

There is another thought worrying me too. Of late, I have begun to harbor the belief that financial independence is the solution to life's problems. I have convinced myself that people work for mainly two reasons - financial needs and the gratification of being productive - and being financially independent is the key to doing productive work of one's liking and therefore being happy. The catch is that research has found that abject poverty is cause for unhappiness, but once people reach middle class wealth, additional money makes them no happier. And I have never been anything below middle class in my life. Am I lying to myself about something?

Tuesday, September 14, 2010

Suicide helpline autoreply

Please record your message after the beep. When you are finished recording, you may hang yourself or press star for more options.

A fable from the Panchatantra

A man once had a faithful monkey, a powerful beast aggressively protective of its master.

Then one day the man fell ill. While he slept, the monkey kept guard by his bed. A fly buzzed. It buzzed and buzzed and it flew right over the man's face. The monkey was furious. It grabbed a club and aimed it at the insect. One swing after another went in vain until the fly was finally dead.

But alas, when the mission was accomplished, there were no accolades for the well-meaning animal. Time, it seemed, had been rent in two halves by the swift strokes of the club. Before, the insect was the focus of all thoughts.

'That creature must die! Look at the man. This will happen to us all!'

Then the club fell. There was shock, there was awe, and finally there was despair.

'Whoever heard of using a club to kill a fly?'

Respect

I know a man who works really hard, but people tend not to respect him. He complains all the time. I have never once heard him say something like 'Things are under control. I am taking care of things.' Ironically, he does take care of a lot of things, things that other dislike doing, but he also complains. Just by virtue of what he does, the man ought to be of use to others. And use him, they do, and they pay him too, but they don't respect him.

Earning respect seems to have a lot of prerequisites.

People seldom respect a person who does not respect them.

Respect yourself if you wish to be respected by others. I have seen successful people brag about insincere or unethical actions. Respect vanishes right there. Success and power do not necessarily earn respect. They may fetch flattery, fear, or foolish idolization, but not respect. Of course, that is if you care about respect. There are many who enjoy flattery and being feared as much as being respected. Flattery is insincere, and comes from an expectation of receiving incentives in return. Fear comes from anticipation of penalties. Both satisfy the primal need of being bowed down to. Respect is more subtle - when someone holds you in high esteem with no expectation of incentive or penalty.

A person can react to a situation in a way that earns respect, or in a way that begs sympathy, but usually not both at the same time. This man, with whom I started my story, has spent his entire life playing the victim, begging for sympathy in his own way. It is hard to respect a man like that. Actions designed to earn respect, however, can sometimes earn both respect and sympathy, especially in cases where the outcome is tragic. The sacrifice of martyrs awakens feelings of honor and sorrow at the same time.

Wednesday, April 14, 2010

Mistakes

The smartest learn from the mistakes of others. Most of us prefer to learn by making our very own mistakes. And then there are those who never learn...

Monday, March 08, 2010

approximately precisely

'It is better to be approximately right than precisely wrong' - is a useful piece of advice. Of late, I have been postulating in my mind a similar-sounding approximately-precisely principle, which goes:

'It is better to know the answer to a meaningful question approximately than to know the answer to a useless question precisely.'

Sunday, September 13, 2009

A memory from my last trip to India

I lay on my bed in the warm humid Kolkata weather, gazing lazily at the clock on the wall. It's an old clock, perhaps twenty years old, runs on a single AA battery. It hung on the wall in our home in Bokaro, or was it Durgapur? It brought back memories...

My father had a childlike enthusiasm about some things. When the clock was still new, he would compare the time on the clock with that on TV before the news on Doordarshan - India's primary TV channel. This was before cable. Some days the clock showed near perfect time, other days it was a little off. I remember the day my father noticed that due to the influence of gravity, the second hand progressed much faster from 0 to 15 seconds past the minute, and considerably slower from 45 to 60 seconds. The clock was not in error! It was perfect! Well... ignoring gravity anyway... There was this look of triumph in his eyes.

My brother recently sent me some old family photos. The one above is from 1990...ish. We were not rich, not poor either. We hardly had any savings but I did not know that as a child and it did not bother me. We were happy. Now, I am probably worth several times what my father was worth at the end of his life. But I miss the simple happiness. In many ways, I have less than I had then. I need to find my way back.

Wednesday, September 02, 2009

Charles Ponzi, Bernard Madoff and the exponential function

The Ponzi scheme is a fraudulent investment scheme named after Charles Ponzi. The idea is simple. Investors are promised fabulous returns on money. A few investors cautiously bring in small change, and the money is returned with interest as promised. Reassured, these investors bring in larger amounts. Other investors join them. People ask questions on how the money can grow so fast. Answers range from gold and diamonds mines in Africa to philanthropic donors who crave anonymity. In reality, there is no investment. Money from new investors is paid to old investors, while the organizers of the scheme help themselves to some of it. As long as the returns are coming, few questions are asked. People who ask too many questions are even censured by others who have invested money in the scheme, and are reveling in their imaginary returns.

Ponzi schemes tend to be short-lived, with a few exceptions. One important exception may be Bernard Madoff, and we will get to him. In order to thrive, a Ponzi scheme requires a growing inflow of new investment, and to get this inflow, the returns have to be be large enough to induce greed. Charles Ponzi, for example, promised to double money in 90 days. At that rate, money grows to 16 times in a year, and 4000 times in 3 years - exponential growth. To be truthful, all investment at fixed interest rate grows exponentially. Money kept in a bank at 7% interest would double in 10 years, 16 times in 40 years and 4000 times in 120 years. Exponential growth is the norm. What is not normal is the fabulous rate promised by the Ponzi scheme. I suspect that a lot of Ponzi schemers lack an appreciation of the exponential function. Anyway, if Ponzi's scheme were to go on for three years, an investor who brought in a thousand dollars on the first day would be entitled to four million in three years. So long as the investor does not demand his money, all is well. But chances are that the investor of a thousand dollars, now thinking himself a rich millionaire, would want to spend a modest few hundred thousand of his millions. At this point, paying the investor becomes a challenge because inflow of investment money can never keep up with the rapid exponential growth of accounts payable. The game winds up.

It is not hard to see that the longevity of a Ponzi scheme is inversely related to the promised rate of return, but the rate of return must noticeably exceed that obtainable through legitimate sources so as to attract new investors. In this regard, Bernard Madoff took the game to the next level. His returns were consistent, and always better than the market, but not like Charles Ponzi's. His scheme lasted over a decade in the complete absence of investments, and swallowed over 50 billion dollars. His story carries a bold warning: A smart enough Ponzi schemer may get away with a lifetime of fraud. Madoff had no investment whatsoever. A combination of a mediocre investment scheme with fraudulent accounting that shows consistent returns could last many decades. The idea is similar to what Enron and other firms charged with accounting fraud did. Somehow, productive and deceptive activities tend not to co-exist harmoniously over time, which is a great blessing for investors. Still, it pays to be cautious.

There is only one effective antidote to the Ponzi bug - transparency. Never put money into an investment that hides information, whatever the excuse may be. Madoff hid information for decades claiming that his techniques were proprietary trade secrets - sounds legitimate, but no reason is legitimate enough. Another partially effective cure is diversification. There is something pitiful about people who lament the loss of their life's savings in a Ponzi scheme. It is as if they have failed to evolve in a fundamental manner. Not only were they naive or greedy or both, they never understood the eggs and baskets principle either. The law can and should punish predators, but it is impossible to protect those who willingly set themselves up as prey.

Friday, August 28, 2009

Associating with the wise

When I was in tenth grade, I read the English translation of a small episode from the Indian Epic 'Mahabharat'. The God of Justice was quizzing his son. One of the questions he asked was :
'How does a man gain wisdom?'
The answer was :
'By associating with the wise'.

Reading a book enables one to associate with the author, a person wise enough to write a book. Reading is useful. My father would take me to a children's library and read to me when I was too young to read. Then I started reading, developed a love for it, and read story books for many hours each day as a child and as a teenager.

With age came focus. I did not read stories much more. I read things that would help me to achieve a goal - academic or otherwise. Whatever the subject, a book has probably been written on it.

Not all books are created equal. Some books are a lot better than others. They are written by wiser people. In the old days, when I went to a library or a bookstore, there was no alternative to judging a book by its cover, the author's reputation (if you knew the author), and from reading a few lines. One of the things I love about the Internet is that it has made the flow of information and opinions so easy. These days, I never buy or read a book before checking its reviews. Associating with the wisest has never been easier. And this is important, especially in fields where the world has very few real experts, and a lot of wagging tongues. This reminds me of the following experience:

I have purchased several books on finance from Amazon. Whenever I go to the website, it recommends other books along those lines, and I spend some time reading reviews of the recommended books. When the book 'Reminiscences of a Stock Operator ' was recommended, I was curious because the book has excellent reviews. It's a book on trading, or speculating, something I generally refrain from doing. But hey, reading a review cannot hurt.

The book is a biography of Jesse Livermore, a famed trader, or speculator. The reviewers heaped praise on the trading 'commandments' that the book offers, rules that any trader can repeat. Commandments such as -No stock is too high to buy or too low to sell. The book was crowned the grandfather of all books on trading, containing wisdom transferred from mothers to daughters(??) and winners to losers(!!). A sturdy foundation on which to build a successful trading career. WoW!

Another review spilled a few beans. Livermore made and lost millions throughout his life. He was worth 100 million after the 1929 crash and bankrupt by 1934. He ended up committing suicide in a bathroom.

(a moment of shocked silence)

God bless his soul. Clearly not my idea of associating with the wise...

Tuesday, December 16, 2008

Proof of address

The last time I visited India, I tried to open an account at the local branch of one of India's largest nationalized banks. In order to open an account you need, among other things, a 'proof of address'. It may be a passport, an electricity bill or any of a list of documents that carries the applicant's name and address. Having lived in the US for six years, I had no such document. My passport has a really old address on it, and I pay no bills in India. What the bank really needs is proof of citizenship, and an address for correspondence (which is rarely used since these banks seldom mail statements).

At first I thought that I would try reasoning with the bureaucracy although something told me that things would not go anywhere. As expected, I was thwarted by a clerk who asked 'How will the bank know where you live?'. I felt like replying 'How does the bank care where I live?', but I sensed triumph in his voice and decided to abandon this line of attack. I have seen this clerk coming to work and sitting on the same chair for the last ten years whenever I have been to the bank. The faces in a bureaucracy rarely change. They start young, grow wrinkles, and disappear after about four decades. When I arrived early at the bank one day, I saw this man arrive, sit on his chair, and open his books with a look of sheer annoyance on his face. He hates his job. Why add to his misery by arguing? He doesn't make the rules, he simply follows them; and he may have rightly concluded through experience that his life is simpler if he does not bring reason to the table.

Address does not prove citizenship, and most citizens in India do not have a home of their own, but then a lot of things in a bureaucracy don't make sense. But the not-making-sense part is only the tip of the iceberg. The real pain lies elsewhere. In order to get any of the 'proof of address documents', I would have to get an electricity or phone account, buy immovable property, procure one of the other items from the same list, or to go to an administrative officer, who supposedly knows every person in his particular densely populated locality of India. A clerk at the bank told me that some Bangladeshi citizens had accounts in their branch. Why not? How does the administrative officer know me from a Bangladeshi? All four of my grandparents were born in what is Bangladesh today before independence and the partition of India.

Somewhere during the process it struck me. If they weren't going to use the address, how did I care what address my passport had? I used my passport, and also let the manager know that this was not my current address. He sent me to a clerk who informally made a note of my true address and that was that. The system works, albeit not in a meaningful or foolproof way. It works in the traditional Indian ishtyle.

Saturday, November 15, 2008

Being right all the time...

It is tempting to draw a line between the things we do and the things we don't and call it the line between right and wrong.

It is tempting because we get to do what we like, and we get to think of ourselves as being right all the time. We also get to think of ourselves as fair, applying the same uniform standard of righteousness to everyone. Then there is the joy of meeting the highest standard effortlessly, and seeing others fail frequently. Having a holier-than-thou attitude certainly has its perks!

Friday, August 08, 2008

Strength

As a youngster trying to discover myself, my instincts often headed in the direction of strength. 'I’d rather be a hammer than a nail'. Strength is cool. You get to do what you want, people respect you, a lot of positives and no negatives. So I began to act strong. Breaking rules is a sign of strength. So is rowdy behavior. Conforming to rules cannot be strong because someone else gets to dictate what I do. And this was not an original conclusion of mine, but a widespread belief that preceded and has outlived my adolescence. Notice that God is equated to kings, and His chosen ones have the ability to break nature's laws? They call it performing miracles, sounds more cool that way.

So strength lay in acting macho. But in my life I had received nothing but kindness from my parents, my teachers, and other adults around me. 'What is strength?' I asked myself. When two people arm-wrestle, and one wins, the winner is clearly stronger. If these two people were to meet in a dark alley, and one were to rob and kill the other, would the robber be stronger? Something seemed wrong. Bullies, robbers, rapists, child molesters, murderers, and particularly dictators who succeeded in oppressing millions of people would all have to be considerably stronger than their victims in the traditional sense.

There is something in us that revolts at the idea of admitting that wrong-doers are actually strong - nope, we should not give them a single point for what they did. Something as positive as strength cannot be associated with crime. Gandhi said 'The weak can never forgive. Forgiveness is the attribute of the strong'. He also said 'A weak man is just by accident. A strong but non-violent man is unjust by accident'. Wait a minute, we seem to be redefining strength here. There is no reason for the arm-wrestling winner to be just, or for the just to be forgiving. These are different character traits that may or may not be found in the same person. What Gandhi really meant is that justice, non-violence and forgiveness are good, and therefore he associated them with strength, which is also perceived as good.

I concluded that strength, as in the ability to succeed, is completely neutral on the scale from bad to good. Like a hammer, it totally depends on what you do with it.