Thursday, September 25, 2008

The Sibling Sex Test and other Mathematical Stories

I'll cut to the chase just this one time- and only because I'm so excited to write about this!

A friend asked me this puzzle today:
"I have two children.. one is a boy. what is the probability of the other being a boy as well?"

My immediate reaction was: "They are independent! So 1/2!"

This seems a bit counterintuitive. Imagine you tossed a coin 20 times, and got H 19 times. If someone asked you, "So, are you going to get 20 heads?", you'd shake yours and say "Nah, 19 is enough of a fluke, 20 would be awe-fking-some but impossible." Thus we are implying that the probability of the 20th toss is dependent on the results of the earlier 19 tosses. But that's human psychology. In reality they are just independent.

Or so I was mulling until the friend came back saying, "No! you are wrong, its 1/3." And my attention was dragged towards a Wikipedia-take on the issue.

Now, ladies and gentlemen, I must diverge from the topic and address this crazy rise of Wikipedia-reliance. Just to be clear, I love Wikipedia-surfing. The sheer joy of hopping from one all-you-can-find-on-topic-X page to another is only paralleled by the glee one experiences when one proudly rattles off recently-Wikied information to a guileless hottie at the pub. Get me no wrong, Wikipedia has been one of the most amazing new ventures in the last decade- by warehousing, presenting and classifying information, it has enabled us and opened our minds.

But we often forget that Wiki's open source strength is itself its biggest drawback. It really doesn't matter when it comes to finding out who appeared on the Playboy cover in April 1984, but when you are talking Maths and famous conundrums, the wwwikipedia reliance could be a bit stuttering. As has been proved in this case.

And this is what it said:
"For a single birth, there are two possibilities (a boy or a girl) with equal probability. Therefore, for two births, there are four possibilities: 1) two boys, 2) two girls, 3) first a boy, then a girl, and 4) first a girl, then a boy; all of them have equal probability. We are given that one of the children is a boy. Thus, only one of the four possibilities -- two daughters -- is eliminated. Three possibilities with equal probabilities (1/3) remain. Out of those three, only one -- two sons -- is what we are looking for. Hence, the answer is 1/3."

That did stump me for a while, until a Chai latte later, I discovered the fallacy in the above. Can you?

* WARNING, DISCLAIMERS AHEAD *



Yes, you got it! (Or you are too bored)

Assume there are 2 variants of the problem.

Variant 1: (the puzzle I asked above)
The puzzle says "THE FIRST ONE of them is a boy" (i.e permutations)

Hence your sample set in this case isnt BB BG GB. Thats wrong. You know that the 1st one is a boy. the second one cud be a B or a G. hence sample set is BB and BG simply. GB is ruled out

Variant 2:
Now suppose you were told that "ANY ONE of the 2 children is a boy. what is the probability that the other is a boy?"

Now this is combinations. your sample set now is BB and BG (BG = GB in this case) and the answer again is 1/2.

What I'm trying to get at is that the incorrect explanation (which leads to answer 1/3) selectively uses permutations and combinations hence resulting in an irrational answer. If you are assuming that the order matters then the case GB cant exist. if you are assuming that the order doesn't matter, then BG = GB and GB is thus a simple repetition of BG. In either case the answer is 1/2. And this is consistent with my 1st logical answer i.e 1/2.

I was surprised to find a lot of debate on this on the net- and quite a bit of it wasteful. For example, there has been talk of frames of reference, of ambiguous meanings of "one of them is a boy" etc etc. And people have gone into discussions of conditional probability v/s absolute probability and have defended 1/3 on the basis of that. But that's absolute trash. The two can often be different, yes, but only when events are dependent on each other. In the case of independent events, they have to be equal! Just because you get an erroneous answer of 1/3 you can't defend it by saying that probability depends on sample sets and hence depending on which sample set you choose, you have a different probability. That's wrong. Whatever sample set you choose, your answers must be consistent.

I was given yet another argument by the friend's random friend: BG and GB aren't the same because the boy being elder to the girl is different from the girl being elder to the boy. This is another argument citing permutations.

Again on first glance, you can make out that this is specious, because ages of the 2 siblings shouldn't make any difference to their genders. You haven't been told which sibling is the boy, the elder one or the younger one. Thus age cannot be a basis of permutations.

More formally, the error in this argument is this: If you really wanted to complicate matters in your head and include age, you should consider it completely. Hence if you considered the various combos as Elder/Younger, the total combos would be BB,BG,GB,GG.

Of this one is a boy, but as we said, it could be the elder one or the younger one. Hence there are 2 possibilities, and the final probablity is given by:

P(2nd kid is boy/1st kid is boy) = P(1st kid is elder)*P(2nd kid is boy/1st kid is boy and hes elder) + P(1st kid is younger)*P(2nd kid is boy/1st kid is boy and hes younger)

There's an equal chance of the kid being elder or younger, hence both probablities = 1/2

Hence P= 1/2*(2nd kid is boy/1st kid is boy and hes elder) + 1/2*P(2nd kid is boy/1st kid is boy and hes younger)

Possibility 1: the boy is elder
In this case BB and BG remain and the answer is 1/2

Possibility 2: the boy is younger
In this case BB and GB remain and the answer is 1/2

and the final answer is 1/2 :)

Of course the clever mind will realize that all I've done is prove that the gender probablities are independent of the age.

Probability theory can get really overwhelming at times- conditional probabilities, what sample sets to choose, independent or dependent events- all cause a lot of confusion. But at the end of the day, there is one thumb rule to mastering it: it should all tie up to common sense. Or else the chance that the purpose of mathematics is lost is unity :)

Sunday, September 14, 2008

Dynamics of a tête-à-tête

Let's admit it- I'm no man of my word (I claimed I'd write a blog regularly and I didn't!). But hey, I'm a man of my words. I'm also a man of other's words- because very often in conversations, I talk so much that I seem to steal the other person's fair share as well. But then talking for me is a passion, each conversation being an enjoyable puff of addiction and every random dialogue with a stranger a welcome stimulus to unlock my inner thought apparatus. And hence, here's an attempt at dissecting it. 

After all, we all place such a great emphasis on conversations. Consciously and unconsciously, they are critical to every important decision in our life- remember the night you spent discussing your fav cartoons with your girl in the park and realized you both clicked? Or the coffee you had with your current boss when he gave you the confidence to quit and join him (Did you even taste the coffee?)? And oh, we nearly forgot the 2-minute-long phone call that was enough to convince you that the prospective buyer of your flat sounded right! Yes, our hunches are always piggy-backing on impressions derived from conversations. 

Most importantly, though, it is such a joy to have a fruitful, meaningful, intelligent, non-stop conversation. The kind where you are parring thoughts back and forth, where one trivial observation is snowballed swiftly into a takeaway to be consumed in solitude. Where no thought is considered bad or stupid or wierd, and where the synergy between two minds is far greater than the sum of its parts.

So I wonder, what makes a cracking dialogue? Is it merely the people indulging in it? Do we only click with people who think alike? Are we born good or bad conversationalists or is it (as I strongly felt) something we can develop? I thought of the questions, but I'd never have conjectured any answers (I was busy talking!) until a chance reading in Gladwell's Blink on improvisation comedy (what Whose Line Is It Anyways is) got me at Hello. 

For those who haven't read it (is quite an average book tbh), Gladwell describes the science behind the art of spontaneity- how, unlike what we believe, creativity is honed and not inherited. He talks about how improv actors strictly follow a set of rules- foremost among them being the rule of agreement- no matter what, a character always accepts what is being said, and NEVER is his response to anything denial. Once this rule is followed, the book argues, spontaneity flows easily. The more I thought about it, the more I felt, yes, that's one of the major keys to conversationality as well!  

I think good conversationalists are people who follow this rule of agreement. But, agreement in this case doesn't mean agreement of views (they would be really boring conversationalists otherwise), but agreement with the existence of ANY view. You say something radical and they don't get fazed, and even though they obviously disagree, they would hit something back at you that isn't a knee jerk reaction or a judgement of you. Because they are suspending judgement completely. You stonewall a view, and they try breaking through it, asking questions on why you think so. Good con...lists (I'm tired typing now) never stop a topic. They always draw you into a conversation, not out of it. And they know how to steer your intellectual energy (positive or negative) in a positive direction. 

Another thing I feel that distinguishes an interesting dialogue from an average one is the difference between observations and facts. Look at students cramming for finance job interviews- they mug up the levels of every goddamn stock index in the world, and are ready to rattle off market capitalizations at the drop of the Managing Director hat. But as an interviewer, what catches the eye when it parses through a sea of intelligent applicants is simply an opinion. A student who has an unrefined, crudely-hatched view on where the market will be in 2010 is anyday a winner over the numbers-spewing Wikipedia-addict. And the same is true for other conversations, I feel. Knowledgeable people do create a good first impression, and if you know your facts you do earn respect. But your shelf-life is also for an instant- ironically, you lose your contributing power the moment you use it! But what really drives a good conversation is opinions and observations, hunches and stances. These are the ones which elicit responses, which draw people into following suit with their own views. 

What often makes chat fun is creativity- foremost needed in the ability to package things differently. Everyone conveys a thought in way A, so let's use method B. Isn't that what pick-up lines are all about? Everyone likes a light exercise of the brain cells, and a witty phrase or monicker provides just that, and in the right quantity. And if combined with humour, you've had your prey (in line with the context of pick-up lines!).  

But finally, the most basic ingredient of the confab masala is a hunger to talk to people who think differently from you, a genuine curiosity to understand why they think what they think, and a fearless disposition to subject your quirky, could-be controversial views to the microscope that's sitting across the sofa. And that's what makes banter, well, banter :)