Quality of Argument

In discussions about Israel like this one I see a huge difference in the quality of argument employed by each side. There are some trolls and flames by each side. But the pro-Israel side makes more attempt to reference or summarise history (I mean an overview instead of just one specific thing used to cherry pick a point). And the anti-Israel side does things like claim the President of Iran was misquoted about wiping Israel off the map. And that's standard fair, not unusual. Then you see a reply "yeah, the real quote was 'wipe from the sands of time'". And oh, by the way, the original topic was an article about how Hamas finally decided to recognise Israel. Except, oh wait, it turns out that the pro-Israel side read the translation and it doesn't say that. And now some other articles have said Hamas still won't recognise Israel. (Which BTW is a bit insane. It'd make a lot more sense of Israel wouldn't recognise Hamas than vice versa.) This is far from the first article that makes things up about Israel. I hope there will be a full investigation (there won't be). Shouldn't any observer of this conversation be able to easily see which side has a higher quality of argument?

Update: Look at this and think about the quality of argument.

Update 2: nokilli hadn't posted so much when i wrote this. i'm not referring just to him. also if you think this is unusual please show me some examples of good/sane discussion about Israel.

Elliot Temple | Permalink | Messages (0)

Envelope Paradox

Here is an interesting math problem about a paradox with envelopes. The answers given there are incorrect so I've written better ones.

Problem
There are two envelopes each with a random number inside. You open one and guess if the other number is bigger or smaller. Can you do better than chance?

Problem 2
There are two envelopes with money in them. One has twice as much as the other. You open one and then choose to keep it or swap envelopes. Is there a strategy that makes more money than never swapping?

Wrong Answer 1
Before you open the envelope, choose a pivot number like 500. If the number you open is over 500 guess the other number will be smaller. If it's under 500, guess bigger. The following can happen:

Both numbers are over 500. You score 50%
Both numbers are under 500. You score 50%
One number is over 500 and the other is under 500. You score 100%

Therefore on average the pivot strategy scores over 50%!

Wrong Answer 2
Say you open 100. Four possible things can happen. The total money in both is 300 or 150 and we keep or swap.

total 300 swap get 200
total 300 keep get 100
total 150 swap get 50
total 150 keep get 100

Total for keeping: 200
Total for swapping: 250

Therefore swapping makes more money than keeping.

Answer 1
There is no such thing as choosing a random integer (with equal probability for all integers). You can't choose randomly from an infinitely large set. You can think of it as each individual number has a 1 in infinity chance to be chosen, which is zero.

Answer 2
Again, there is no such thing as choosing a random integer (with equal probability for all integers). So it's not possible to be presented with that situation.

But that's boring! And it's still hard to see why the wrong answers are wrong besides that the problems technically don't make sense. So I tried putting money into envelopes in some possible ways and then seeing what strategy would be best (if any).

I used ruby to help out. Here's the code. But first I'll try to explain why the wrong answers are false in English.

The pivot strategy only does better than chance if you can ever guess a pivot that is between the two numbers. There are infinite choices of pivot, but only finite integers between the two numbers. So your chance of guessing correctly is finite divided by infinite. It's zero.

The money strategy (always swap) can't be right because it doesn't use the information of how much money you opened. So you could swap without even opening an envelope. That can't possibly be profitable.

Now let's put some money into envelopes! We'll need a strategy for deciding what goes in the envelopes. Let's try this: take the numbers from 0-5. For each one, make the pairs [x, x*2] and [x, x/2]. So we'll get 12 pairs of envelopes and each pair will correctly have one envelope with twice as much cash. Here are all the pairs:

[[0, 0.0], [0, 0.0], [1, 0.5], [2, 1.0], [2, 1.0], [3, 1.5], [4, 2.0], [4, 2.0], [5, 2.5], [6, 3.0], [8, 4.0], [10, 5.0]]

If we look closely we can figure out what we might get if we swap each number. All you do is imagine you open a 4 and then look for all the envelopes that have a 4 paired with them. There's two 2's paired with 4, and an 8. Here's all of them:

0: 0 0 0 0
.5: 1
1: .5 2 2
1.5: 3
2: 1 1 4 4
2.5: 5
3: 1.5 6
4: 2 2 8
5: 2.5 10
6: 3
8: 4
10: 5

So you can see you don't wanna swap any high numbers (6-10), swapping 0 and 4 breaks even, and swapping 1, 2, 3, 5 and fractions gains. So there is a strategy to make extra money, but it's not "always swap". You have to look at what number you open and only swap certain numbers.

Now suppose the envelope filling scheme is to take all the numbers from 1-1000 and make pairs of x,x+2 and x,x-1. The edge cases only have a small effect instead of being many of the numbers. So suppose you open the number 500.

500 is in the following pairs:

x = 498 => 498,500
x = 500 => 500,502, 500,499
x = 501 => 501,500

So if you swap you can get: 498 499 501 502

So despite the imbalance that a 10 can turn into 9 or 12 which average to 10.5 ... away from the edges swapping doesn't matter, swapping breaks even. Yay, the world is sane again! It's because and 8 and 11 can turn into a 10, which balances it out.

Now lets go back to having one envelope with double the money using x,x*2, x,x/2

500 is in the following pairs:

x = 250 => 250,500
x = 500 => 500,1000, 500,250
x = 1000 => 1000,500

So if you swap you can get 250 250 1000 1000. So swapping non-edge cases seems to be profitable! Is that really weird? Indiscriminate swapping can't be right!

Well, it's not as counter-intuitive as it seems. Think of it this way: there are some really big jackpots you can get. If the numbers range from 1-1000 before halving and doubling then there is an envelope with $2000. If you get a low number then it's worth shooting for doubling. But if you get a really high number then you should obviously keep it. So it's not crazy if we should swap more than half the time.

Now let's look at some more detailed results. Here is the half the output to my ruby program:

Results for *2 and /2 envelopes
sum simple swap results 11361136.0
sum smart swap results 13177840.0
avg of envelopes 113.0625
avg simple swap results 113.61136
avg smart swap results 131.7784
count of envelope pairs is 400
total envelopes is 800
swap 550
keep 100
tie 150
total unique values you can open is 400
unique swap 250
unique keep 100
unique tie 50
first swap index is 0 val is 0.5
last swap index is 696 val is 199.0
first keep index is 700 val is 202.0
last keep index is 799 val is 400.0
first tie index is 452 val is 102.0
last tie index is 699 val is 200.0


So what does all that mean in English? The envelope creation process used range 1-200 and made envelopes with x,2x and x,x/2 for a total of 800 envelopes we could open. And the results are: for 550 we should swap, 100 we should keep, and 150 it doesn't matter. Of the 400 actual different numbers we could open, we should swap 250 of them, keep 100, and for 50 it doesn't matter. We should swap 68.75%, and only keep 12.5% of the time!

From some extra output I disabled here (it's 800 lines long) I was able to see how the keep/swap/tie decisions were distributed (the summary of how they are distributed is above). All numbers up to 100 we should swap. All numbers over 200 we should keep. In the middle some should be swapped and some don't matter either way. It alternated 2 swaps then 3 ties.

So a new way to think about what happens if the numbers are chosen from an infinite range is: there are three sections: always swap, swap or tie, and always keep. Two are near the edges. In an infinite range there are no edges, so you get a biased set of envelopes with only the middle cases. But that's not possible.

If you use an envelope stuffing strategy with simple addition then the entire middle is ties, one end is swaps and the other end is keeps. You can see output for this at the bottom of my ruby code here.

By the way, I included a method in my script to make the ruby program learn how to play correctly and then play. I also had it play randomly. At the half/double envelopes game, the random program makes $113 per play and the smart one makes about $132. So it works! Soon I'll be rich...

Update I meant that you can't choose a random integer *with equal probability for all integers*. I've corrected the text above.

Elliot Temple | Permalink | Messages (3)

Being Sympathetic To Children

I'm going to tell a short story about what it's like to be young. It's about food, but it could just as well be about homework or cleaning or all sorts of other things. Then I'm going to make some suggestions about how to talk to young people in a sympathetic way by keeping the perspective in the story in mind.

Suppose your parents are constantly pressuring you: you must eat more beef and lettuce, and less lamb and carrots. It's for your health. And will make you skinny. But dammit you like lamb with carrots and you're tired of beef. And lettuce tastes like dirt. You'd get annoyed with them and you'd pick up they have no real arguments/reasons behind their crap. Well, you might pick that up. But it's hard. Parents bluff. A strong willed independent person will pick it up and ignore them. But that's rare, especially in young people. Not that most people are docile. Many will be unsure and conflicted. Many will sometimes ignore parents but sometimes think they might know something or have a point.

Parents would have hard time doing this alone. If TV was constantly explaining how good for you carrots are, it'd never work. Parents are thus known to complain incessantly about influences (ie sources of information that might reveal their bluffs and lies). But on a lot of issues, the TV isn't going to help much. There are other sources of information as well. Teachers, friends, books, magazines, internet

Overall a young person gets a lot of pressure on the side of your parents. Random adults he meets for dinner will make comments in support of the same bluffs his own parents made. His own friends will face similar lies from their parents, and also be unsure. And the strong independent friends will seem reckless and not good role models.

So, what he really really needs is not one more person saying that maybe his parents are right about carrots. It is someone encouraging him to make up his own mind

Conventional wisdom is true sometimes. So let's pretend you agree with the conventional wisdom about a particular issue. It doesn't matter very much which one. You still face the issue of how to communicate this while remaining sympathetic. Even if the parents are correct now and then, that doesn't mean you should be on their side. So what can you say?

Here's my suggestion:

Before you can rightly say the same thing his parents said you need to comment about how much you agree with him that they are nasty bastards and he shouldn't listen to them. They lie. Then say if they are right it's only by pure luck. Then add stuff about how he should make his own choices and only take your advice if you are persuasive. Then add stuff about how this is not a matter of life and death and he can always change his mind later and this whole issue really shouldn't be a very big deal. *Then* say you happen to think carrots are bad, and give real reasons. (Only do this if he has not heard your set of reasons before. If he is familiar with them, do not repeat, just refer to them and ask what he thinks is wrong with those reasons)


One flaw with the above is that you can't actually tell many children that their parents are nasty bastards. They rightly don't want to fight with their parents. So if you say that, they may be alienated from you. So a real statement often has the even harder task of simultaneously distancing from the parents and being sympathetic to them.

So one possible approach is to say (it really really depends on the person, and your relationship with him):

I saw you arguing with your parents about food again yesterday. Your parents mean well, but they care about you so much that they are over-zealous and over-protective. They are biased and it effects their judgment. So as much as they are trying to help, if your wellbeing is involved ... Their advice is probably perfectly safe but not necessarily the most rational. There are sometimes other choices that'd be good too. So you shouldn't feel compelled to do everything they say. You know that already. That's why you want to eat lamb and carrots, and be a chess player not a lawyer. And I agree with you about chess: being a lawyer is definitely not for everyone and you should try doing something you like. But I wanted to let you know that I actually avoid eating carrots myself (but lamb I do eat now and then). I have a book with me if you're curious about my reasons. It is about zen philosophy and explains why we shouldn't eat carrots. So if you want you can read it and make up your own mind. It's not too big a deal either way, but I thought you'd like to know there are serious reasons people don't eat carrots.

So note some of the key elements:

- Agrees with parent's conclusion (no carrots) without endorsing parents
- Shows seriousness of thinking child should make his own choices by endorsing him in a different disagreement with his parents
- Not hateful towards parents but also says they may be wrong
- Not trying to pressure child, only trying to genuinely offer helpful information
- Has reasons for position and offers them to child so he can evaluate them himself

Elliot Temple | Permalink | Message (1)

Cheap Global Warming Solution

Tom: i need a fan
Tom: will buy tomorrow maybe.
Elliot: fan > no fan
Elliot: (i'm smart)
Tom: i seem to remember that the curi fan will solve global warming crisis
Elliot: i dunno. if there is enough global warming i'll prolly get a second fan
Tom: lmao
Elliot: if a fan costs $10 (a good, big one), and there are 6 billion ppl, (when u mass produce this much i bet they cost much less than $10 .. let's say $5) ... then global warming will cost ....
Elliot: 30bil (max)
Elliot: plus electricity and fan maintanance
Elliot: that sounds like a lot less than kyoto's 500 thousand trillion

Elliot Temple | Permalink | Messages (2)

Elliot Temple | Permalink | Messages (0)

Geek Humor

LoganCapaldo: your welcome
LoganCapaldo: s/your/you're
LoganCapaldo: see Regexp's can fix grammar
lectrick: that's not regex, that's sed.
curi42: "your" was a regex
kreaturr: lectrick: you can make LoganCapaldo's example a bit more readable (like abolish the $& variable in it)
LoganCapaldo: yar
LoganCapaldo: but no one saw the _meta_ joke?
LoganCapaldo: where "Regexp's" was grammatically incorrect
LoganCapaldo: I give up
LoganCapaldo: I was obviously not meant for geek stand up ;)
curi42: oh. heh. i thought it had to do with grammers for languages being parsed with a regex based engine.
zenspider: geek humor is NEVER funny.
zenspider: it is a law of nature
curi42: yes it is!
zenspider: no, it isn't... ever.
curi42: People just sometimes don't laugh until the next day if the joke was O(2^N) or something.
zenspider: and it is grammars </peeve>
zenspider: curi42: you keep believing that...
curi42: my best joke ever people are due to laugh next year... :)
kreaturr: curi42: it got a chuckle, but it was somewhat immediate - so I guess it was low N.
curi42: hehe
lectrick: kreaturr: how to replace the $& to something more legible?
LoganCapaldo: { |same_as_funny| same_as_funny.scan ... }
lectrick: curi42: LOL

Elliot Temple | Permalink | Messages (0)

Drug Experts or Monkeys?

There's a new "scientific" study of the harmfulness of different drugs out. It looks pretty suspect with tobacco being ranked more harmful than ecstasy and marijuana more harmful than LSD.

I tried generating graphs of drug harmfulness using random numbers for experts. As you can see below, I got some with about the same shape as the study's graph.

[73, 71, 69, 67, 64, 63, 63, 62, 62, 61, 59, 59, 58, 57, 57, 52, 50, 49, 47, 47]

#########################################################################
#######################################################################
#####################################################################
###################################################################
################################################################
###############################################################
###############################################################
##############################################################
##############################################################
#############################################################
###########################################################
###########################################################
##########################################################
#########################################################
#########################################################
####################################################
##################################################
#################################################
###############################################
###############################################

[78, 74, 69, 66, 64, 63, 63, 63, 62, 62, 61, 61, 61, 60, 60, 60, 57, 54, 51, 42]

##############################################################################
##########################################################################
#####################################################################
##################################################################
################################################################
###############################################################
###############################################################
###############################################################
##############################################################
##############################################################
#############################################################
#############################################################
#############################################################
############################################################
############################################################
############################################################
#########################################################
######################################################
###################################################
##########################################

Elliot Temple | Permalink | Messages (0)

Myth of the Framework

And people, there is no way for a nuturer to win an argument with a nature-er and vice-versa, because the base position of each argument is so fundamentally different that it"™s like two people trying to have a conversation while one is speaking English and one is speaking Mandarin.


source

Here the (myth of the) framework argument is invoked, which says if people have different frameworks or foundations then discussion won't get anywhere. They won't be able to reconcile their different starting points.

What's amusing is that many of the analogies intending to prove the framework argument do a good job of proving it's a myth. This analogy says that people who speak different languages won't be able to make progress and come to understand each other and agree. But it's common knowledge that if you go to a country where you don't speak the language, that is a good way to learn the language. If you try a lot you can figure out what words mean and make progress, and eventually become completely fluent in the foreign language. So, by analogy, the nature/nurture people *could* solve their dispute.

Elliot Temple | Permalink | Message (1)

Sleep

Sleeping when not tired is like eating when not hungry.

Elliot Temple | Permalink | Messages (0)

Wearing An Israeli Flag

I wore my Israeli flag yesterday (context). I walked a short ways through downtown Berkeley in public (and went to Jamba Juice), went to a TCS speech by Sarah Fitz-Claridge, and went into two restaurants in Fremont.

Nothing bad happened.

In Berkeley people said something from their car, but I couldn't hear what. They didn't look angry and I waved to them. However it was 9am on Sunday and not many people were around.

At the speech, someone asked why I was wearing a flag. I said that I support Israel, and that if I don't wear a flag no one will ask about it. She didn't say anything so I added that on Saturday Hezbollah was smuggling weapons into Lebanon and Israel sent commandos to stop this, so the UN said Israel broke the cease fire. She thought that was dumb :)

Elliot Temple | Permalink | Messages (3)