September 26, 2008

"Know It? I..."

Sometimes I Google chess move sequences, just to see what's being played and discussed. (This is kosher for correspondence, right? By contrast I think it would not be kosher to ask someone for advice about a live position.)

Anyhow, I did this search, and check out the third hit. I have no memory of this game.

Posted by Matt Bruce at 11:20 AM

September 22, 2008

Ad Copy Atrocity of the Day

I keep getting this one Facebook ad that represents a crime against the English language, not to mention the game it's intended to support:

Play Chess against opponents worldwide in what is known as "correspondence" style chess.

1. Lower-case chess, and no need for quotes around correspondence

2. Did someone put a gun to their head and force them to squander syllables? (Did "Play correspondence chess against opponents worldwide" just not have a good ring to it?)

3. Correspondence isn't really a style, certainly not the way Chess960 constitutes a style. "Correspondence" traditionally meant that moves were mailed. The two big points here are that you don't have to be in the same room as your opponent, and you could (if you so chose) spend hours if not days analyzing a game in progress. Well, any old Internet site (from FICS to games.yahoo.com) satisfies the first criterion, and Facebook's leading chess app* (*- chess.com, not to be confused with letsplaychess.com from the ad in question) actually satisfies both inasmuch as the default time control is one move per three days.

Really, though, it's the awkward turn of phrase in the ad that just drives me up a wall.

Posted by Matt Bruce at 09:04 PM

September 08, 2008

Estimated Money Transfer: $150 Million

Before you click the link and read this CNBC article, take a wild guess: what recent event will result in (according to the forecaster quoted in that article) a $150 million shift from one (fairly well-defined) group of people to another (almost but not quite as well-defined) group of people?

Sort of a hint, but not really: I'm definitely not in the first group; there's an outside chance I'll end up in the second group. We'll never know for sure if I actually am in the second group, though we could easily learn for sure that I wasn't.

Posted by Matt Bruce at 11:37 AM

September 02, 2008

Pace Coase, Sometimes Initial Assignments Matter

This post is subtly mistitled.

My knee-jerk answer to the exact question ("How Much Would You Need to Be Paid to Give Up Your Life Vest on Your Next Flight?") was $1,000.

However, the real question is how much extra would you pay to have a life vest on your flight (if the default were that you didn't have a life vest). There my price point might be more than $1 but is definitely less than $5. (Assume for the moment that I wasn't allowed to bring my own.)

Posted by Matt Bruce at 12:05 PM

August 28, 2008

Internet Gaming Anthropology

There's a fascinating set of posts as a result of a horribly botched code deploy on the "Knighthood" Facebook app. I'd direct you to the relevant threads but I can't remember whether the Hive7 forums want you to supply a login and password above and beyond the Facebook credentials.

(And if you don't have a Facebook account then I'm all the more certain you wouldn't be able to read the threads.)

But anyway, some people who feel wronged (and I can't blame them) are screaming their heads off for a rollback, other people are trolling them, it's a mess.

As a quasi-computer geek (moreso a process geek) I'm transfixed by the ineptness of the Hive7 response. But I'm also transfixed by the idea that some of these aggrieved people spent so much of their time on this game.

(Now in general I'm a game person, an easily obsessed person, etc., so you wouldn't think I'd be in a position to talk -- but my goodness, so much emotional investment is evident in these threads.)

Posted by Matt Bruce at 04:55 PM

August 22, 2008

My Least Favorite Brainteaser

...but I finally have a plausible solution to it. That I had to slightly modify, and even then apparently it's only half as "efficient" as the usual solution. Blah!

First the problem, then what I hate about it, then (below the fold) what I finally came up with that's good enough for me to set the thing aside. And if I get around to it this weekend, some Monte Carlo simulations addressing both my proposed solution and my objection to the original premise.

Go to this page and search on "100 PRISONERS AND A LIGHT BULB"

100 prisoners are imprisoned in solitary cells. Each cell is windowless and soundproof. There's a central living room with one light bulb; the bulb is initially off. No prisoner can see the light bulb from his or her own cell. Each day, the warden picks a prisoner equally at random, and that prisoner visits the central living room; at the end of the day the prisoner is returned to his cell. While in the living room, the prisoner can toggle the bulb if he or she wishes. Also, the prisoner has the option of asserting the claim that all 100 prisoners have been to the living room. If this assertion is false (that is, some prisoners still haven't been to the living room), all 100 prisoners will be shot for their stupidity. However, if it is indeed true, all prisoners are set free and inducted into MENSA, since the world can always use more smart people. Thus, the assertion should only be made if the prisoner is 100% certain of its validity.

Before this whole procedure begins, the prisoners are allowed to get together in the courtyard to discuss a plan. What is the optimal plan they can agree on, so that eventually, someone will make a correct assertion?

What I hate about this problem is that no matter how far out you go, there's a probability greater than zero (vanishingly small, I'll admit, but still) that at least one prisoner STILL HASN'T BEEN to the living room! Whether it's six months, one year, five years, 50 years... you can't put an upper bound on the solution time.

With that in mind, wouldn't the optimal strategy be to choose a time frame (for example two years) and assert that by that point, it's worth the risk of being shot just to get freedom from that point instead of continuing to languish?

But if you absolutely insist that any false positive whatsoever is unacceptable, yetthat you want to minimize the average time it takes to reach an ironclad-guaranteed correct solution...

Define your "first tangible visit" as follows:
1. Your first visit (if any) in the time between day 1 and 99 when the light is still off.
2. Otherwise, day 100 if that was your first visit (but the light was already on)
3. Otherwise, the first time you came and found the light off

Days 1 - 99: Keep the light in the position it's in, unless:

a) you're a repeat visitor AND
b) the light is (still) off

By Day 100, one of two things will be true:

The day 100 visitor was the 100th unique visitor, and found the light off, and solved the problem (w00t!).

-or-

The day 100 visitor found the light on (or happened to be the first repeat visitor), and turned it off left it on if this was his first tangible visit, off otherwise. At this point must be a unique "first repeat visitor," known from this point onward as the Designated Problem Solver. That person made their first repeat visit on Day N+1. That person knows that N prisoners (counting herself) have been to the room but must assume that the other (100-N) prisoners HAVE NOT. (So even if one or more of those prisoners actually did come between Day N+2 and Day 100, they must act as though they hadn't.)

From Day 101 onward:
IF YOU'RE NOT THE DESIGNATED PROBLEM SOLVER -
if the light is on, leave it on
if the light is off, AND IF this is your first tangible visit (other than between day N+2 and day 100), then turn it on

If you ARE THE DESIGNATED PROBLEM SOLVER -
if the light is on, increment your "how many of us are known to have been in this room yet?" tally by 1, otherwise leave that total unchanged
either way, turn/leave the light off

Posted by Matt Bruce at 01:02 PM

August 16, 2008

Rowing Schadenfreude

Rowing is on NBC today. All these medals at stake and I have yet to see a Chinese rower or team. Didn't they spend oodles of money to become competitive in medal-rich events like this?

Posted by Matt Bruce at 01:41 PM

August 15, 2008

Question for Readers of Salon Sports

Why should I give two shakes of a rat's tail what Jennifer Sey's personal issues are with gymnastics?

More directly who at Salon decided it would be a good idea to pollute King Kaufman's domain with writers who aren't King Kaufman?

Posted by Matt Bruce at 11:20 AM

My Utter Disdain For "Competitions" That Require Aesthetic Judgment

Have I mentioned before how ridiculous these are? How irrational it is to devote so much time and energy to willingly place yourself at the mercy of (depending on your competition level) harried volunteers or power-mad incompetents?

(The three obvious examples are gymnastics, figure skating, and debate. Maybe there are others I'm not thinking of.)

So when "judges" (as they're called) flagrantly fail to apply any rhyme or reason to their scoring, I lack the capacity to be surprised (yet apparently I still have the capacity to be angry, who knew?).

UPDATE: ESPN.com seems to be a few minutes ahead of our local NBC affiliate, the upper right corner "LIVE" graphic notwithstanding.

Posted by Matt Bruce at 12:27 AM

August 13, 2008

Captain Obvious-o-Nomics

Second day in a row: When and why did the Freakonomics blog fall off a cliff like this?!

When people share space for awhile, they can save some time and energy and thought-process minutiae by adopting a left-right convention? WHO KNEW?!?

(I will strenuously insist -- I must believe -- that the first comment to that post is subtly mocking the post.)

Freakonomics bonus link: Just because of how he set up the post, I had the right answer to this who-said-it by the first sentence of the quote. I haven't even bothered to verify my correctness, but the next-to-last sentence of the post left me dead certain I'm right. What other answer would have been man-bites-dog enough to bet worth a blog post with that particular tone?

Posted by Matt Bruce at 12:44 PM

August 12, 2008

Why Is Lane-Merging Even Remotely a Dilemma?

I'm simultaneously appalled that a post like this is even necessary, baffled that they consider the proposed solution so novel, and skeptical that they've framed the problem as simply as it ought to be framed.

Consider the case where two lanes simply turn into one lane. In lighter traffic, everyone hits the merge point at whatever time they hit it; no matter which lane they were in before, now they're in the unified lane. In heavier traffic that doesn't quite work because some cars will hit the merge simultaneously -- but if there's nothing to distinguish the lanes, the natural equilibrium is that the incoming lanes take turns: a car from the left, a car from the right, etc.

So naturally when you're coming up on that kind of merge in heavy traffic, it behooves you to notice where your "slot" should be and drive accordingly (with respect to the person who's about to be behind you and the person who's about to be in front of you).

OK, now suppose traffic is enough that you have to think about how to merge but not so dense that everybody's going one at a time out of necessity. You still have to gauge the natural speed of your lane and the natural speed of the other lane and be aware of what your slot will be.

So how on Earth is this situation materially different from the situation where it's a specific lane that gets blocked and a specific other lane that gets merged into (rather than actively merging elsewhere)?

Well, apparently there are drivers who think they have a god-given right to continue in their lane unimpeded: If it isn't happening directly in front of them then they think they have a god-given right not to care about it. This is a terrible, terrible way to drive, as the odds approach 1 that at some point a soccer ball will roll in front of you or a cross street driver will run a red.

If you have any situational awareness, you'll notice when a lane is about to merge into yours and correctly perceive the situation as one where neither lane has a special privilege.

Or better yet, you'll figure best load-balancing practices on the fly. (For example, if there are 5 lanes about to become 4, then ideally the new rightmost lane would have all the previously rightmost drivers and 25% of the drivers from lane 4-of-5; you see why, right?)

Posted by Matt Bruce at 07:08 PM

Sunday Board Games

(This post would have boardgamegeek links if the site weren't down at the time.)

Five players.

Enemy Chocolatier - surprisingly complicated for a Cheapass game! I was one chocolate shy of completing my recipe first, apparently because I can't count. (Moreso, after my income stream was set I chose poorly between going for the recipe and going for popularity.)

Shadows over Camelot - Sir Kay completed the Lancelot's armor quest and then spent the rest of the game killing siege engines (beyond being Sir Kay my hand was fortuitously heavy on Fight cards) while the other four went on the other missions together. Nobody was a traitor so everyone won easily.

Wits & Wagers - I inadvertently guessed exactly right on the weight of the heaviest sumo wrestler, and knew cold the year in which the Watergate burglars were arrested. (The rest of the table explained how one could plausibly miss that one.) All for naught, as I underestimated Fox's ability to report a huge, huge number of people trying out for Season 2 of American Idol.

Pictelephone (like the old telephone game, but not: odd # of players in a circle, each with a sheet of paper. write a sentence, pass it on. draw a picture of that sentence and fold the sentence over, pass it on. write a sentence of that picture and fold the picture over [...] until the person on the other side of you writes a sentence that may vaguely resemble your original sentence) - Julia and I both got to draw our versions of A Sunday Afternoon on the Island of La Grande Jatte. I thought "A tree grows in Brooklyn" would stay more intact than it did.

Posted by Matt Bruce at 02:29 PM

July 31, 2008

Beat Y. Coon

Questionably useful notes on a frivolous Facebook game. (Doesn't everyone use his personal blog as portable, net-enabled scratch paper?)

Item Type
Winery Consumer $3 $7
Caviar Farm Consumer $2 $4
Brewery Consumer $3 $6
Toys Line Consumer $11 $17
Designer Clothing Brand Consumer $30 $49
Baby Food Line Consumer $41 $52
Snacks Brand Consumer $47 $57
Cereal Brand Consumer $55 $79
Cosmetics Line Consumer $78 $102
Canned Goods Line Consumer $99 $117
Designer Handbag Brand Consumer $109 $164
Luxury Furniture Line Consumer $107 $136
Fast Food Restaurant Chain Consumer $184 $202
Luxury Automobiles Line Consumer $240 $289
Jewelry Store Chain Consumer $454 $566
Appliances Brand Consumer $574 $672
Soft Drinks Brand Consumer $547 $767
Footwear Brand Consumer $514 $639
Clothing Store Chain Consumer $869 $1,025
Coffee Shop Chain Consumer $1,257 $1,786
Bugatti Exotic $1 $2
Race Horse Exotic $1 $2
Llama Farm Exotic $3 $5
Private Zoo Exotic $5 $7
Race Car Team Exotic $12 $14
Falconry Exotic $41 $61
Gulfstream Jet Exotic $64 $77
Private Space Flight School Exotic $108 $216
Island Resort Exotic $108 $213
Treasure Hunting Team Exotic $294 $507
Cryogenics Service Exotic $217 $486
Genetics Lab Exotic $721 $951
University Exotic $784 $1,078
Philanthropic Foundation Exotic $1,035 $1,068
Space Exploration Team Exotic $2,508 $2,936
Military Robotics Exotic $4,110 $4,388
National Park Exotic $37,136 $42,574
New Country Exotic $58,221 $72,451
Space Colony Exotic $259,169 $271,602
Tanker Industrial $5 $8
Gold Mine Industrial $13 $77
Steel Plant Industrial $22 $36
Bank Industrial $18 $57
Renewable Energy Farm Industrial $65 $92
Industrial Machinery Industrial $79 $92
Trucking Company Industrial $330 $361
Coal Mine Industrial $599 $893
Diamond Mine Industrial $940 $1,423
Oil Refinery Industrial $3,534 $4,643
Solar Power Plant Industrial $6,025 $6,852
Oil Exploration Team Industrial $6,822 $7,160
Night Club Leisure $8 $16
Ballooning Company Leisure $5 $10
Airship Company Leisure $18 $29
TV Show Leisure $23 $31
Newspaper Publisher Leisure $18 $62
Broadcasting Satellite Leisure $30 $42
Film Production Company Leisure $80 $192
Health Club Chain Leisure $68 $99
Amusement Park Leisure $78 $120
Airline Leisure $78 $101
Magazine Publisher Leisure $124 $183
Record Label Leisure $121 $196
Ice Hockey Team Leisure $510 $774
TV Station Leisure $524 $603
Casino Leisure $458 $651
Soccer Team Leisure $785 $1,697
Baseball Team Leisure $1,152 $1,357
Basketball Team Leisure $1,129 $1,379
American Football Team Leisure $1,478 $1,880
Houseboat Real Estate $6 $10
Condominium Real Estate $61 $85
Luxury Hotel Real Estate $80 $98
Luxury Apartment Real Estate $98 $139
Ranch Real Estate $102 $161
Private Villa Real Estate $154 $280
Ski Resort Real Estate $196 $268
Dunes Golf Course Real Estate $385 $451
Fairways Golf Course Real Estate $657 $754
Office Complex Real Estate $518 $707
Skyscraper Real Estate $687 $834
Greenhouse Real Estate $947 $1,417
Shopping Center Real Estate $2,015 $2,679
Luxury Hospital Real Estate $8,611 $8,971
Server Farm Tech $14 $19
Robotic Pets Company Tech $41 $87
Video Games Company Tech $80 $161
IT Site Tech $208 $380
E-Commerce Site Tech $303 $455
Call Center Tech $530 $715
Special Effects Company Tech $701 $934
Cellular Network Tech $926 $1,352
Business Software Tech $1,031 $1,241
Pharma Company Tech $13,058 $14,526
Facebook Tech $25,586 $26,320

Posted by Matt Bruce at 10:38 AM

July 29, 2008

An Open Letter to Hasbro

Some time in the last 24 hours you did to me the moral equivalent of knocking over a game board -- actually 11 game boards. You had no need to do this.

I will readily admit that Scrabulous violated your IP (they probably will too) and made money from ads. I infer that reaching a deal was just impossible, but given how much you had to gain from a deal I question how hard you tried.

You recently introduced your own product, years after Rajat & Jayant had already filled the void. Was their source code somehow not up to your high standards? Do you think so little of Scrabulous users that our patronage isn't worth your finding a way for us to make a smooth transition?

I am only one person -- about to become a father, I hope, so in theory the target audience of a toy company. I don't pretend that a multitude of people read this web log, but some of them do, and some are themselves recent parents.

I will go out of my way not to purchase Hasbro products and I urge my friends to do the same.

Posted by Matt Bruce at 08:53 AM

July 28, 2008

Freakonomics vs. Gas

I'm not proud of this post that I wrote in February, yet this surprising Freakonomics post reminded me of it.

Posted by Matt Bruce at 12:41 PM

July 24, 2008

Chess: Draw of the Day

(with diagrams)

[Event "Online Chess"]
[Site "Chess.com"]
[Date "2008.07.15"]
[Round "1"]
[White "John C."]
[Black "Matt B."]
[Result "1/2-1/2"]
[WhiteElo "1714"]
[BlackElo "1651"]
[TimeControl "1 in 3 days"]

1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4 Nf6 5. Nc3 a6 6. Be3 e5 7. Nde2

Free Image Hosting at www.ImageShack.us

Ng4 8. Qd2 Nxe3 9. Qxe3 Be6 10. f4 g6 11. O-O-O Bg7 12. Nd5 Bxd5 13. Rxd5 Nc6 14. Qd2 Qb6 15. c3 O-O 16. g4 Qc7 17. f5 Nb4

Free Image Hosting at www.ImageShack.us

18. g5 Nxd5 19. Qxd5 Qc5 20. Qxc5 dxc5 21. f6 Bh8 22. c4

Free Image Hosting at www.ImageShack.us

Rfd8 23. Bg2 b5 24. Nc3 Rd4 25. cxb5 axb5 26. Nxb5 Rc4+ 27. Kb1 Rb8


Free Image Hosting at www.ImageShack.us

28. Nc7 Rcb4 29. b3 R4b7 30. Nd5 c4 31. Ne7+ Kf8 32. Nc6 Ra8 33. Kb2 Rd7 34. Bf1 cxb3 35. Bc4

Free Image Hosting at www.ImageShack.us

bxa2 36. Ka1 Rd6 37. Nxe5 Ra7 38. Bb5

Free Image Hosting at www.ImageShack.us

Rxf6 39. Nd7+ Rxd7 40. gxf6 Bxf6+ 41. Kxa2 Rd2+ 42. Kb3 Be5 43. h3 Rd4 44. Bc6 f6 45. Ba8 Kg7 46. Kc2 h5 47. Rd1 Rc4+ 48. Kd2 Rc3 49. Rh1 Rg3 50. Ke2 Kh6 51. Bc6 Kg5 52. Kf2 Kf4 53. Bd5 g5 54. Ke2 g4 55. hxg4 hxg4 56. Rf1+ Kg5 57. Be6 Kh4 58. Rh1+ Rh3 59. Rxh3+ Kxh3 60. Kf1 Bd4 61. Bf5 Kg3 62. Be6 Kf3 63. Bf5 g3 64. Bh3 Kxe4 65. Kg2 Kf4 66. Bd7 Bf2 1/2-1/2

Free Image Hosting at www.ImageShack.us

Posted by Matt Bruce at 12:53 PM

July 17, 2008

Chess of the Day

...in which a frequent commenter vanquishes me. (No surprise that a Sudoku champion is very good at rook endings!) Moves 55-60 don't work out for me as well as I'd have hoped: I thought as of my 54th move that this line forced a draw, but one move later it was obvious from the chat widget that we both knew better.

White can safely resign after move 55; the rest is for show. (In theory Black could hilariously blunder move 61.) The final position is amusing because if you saw it from scratch (without the A-H/1-8 grid key) you'd guess wrong about which player was going which direction.

As usual I present, you annotate (if you wish).

[Event "Online Chess"]
[Site "Chess.com"]
[Date "2008.07.09"]
[Round "1"]
[White "Matt B."]
[Black "Jason Z."]
[Result "0-1"]
[WhiteElo "1640"]
[BlackElo "1705"]
[TimeControl "1 in 3 days"]

1. d4 Nf6 2. Nf3 d5 3. Bf4 Nc6 4. e3 e6 5. c3 Bd6 6. Bg3 Ne4 7. Nbd2 Nxg3 8. hxg3 f5 9. Bb5 Qf6 10. Nb3 Bd7 11. Nc5 Rb8 12. Nxd7 Kxd7 13. Bxc6+ bxc6 14. b4 e5 15. dxe5 Bxe5 16. Nxe5+ Qxe5 17. Qd4 Qxd4 18. exd4 Rhe8+ 19. Kd2 h6 20. Rhe1 g5 21. Re5 Rxe5 22. dxe5 Ke6 23. f4 gxf4 24. gxf4 Rg8 25. Rg1 Rg3 26. c4 dxc4 27. Ke2 Ra3 28. Rh1 Rxa2+ 29. Kf3 h5 30. Rc1 Ra3+ 31. Kf2 c3 32. Ke3 Rb3 33. g3 c2+ 34. Kd4 Rxb4+ 35. Kc5 Rb3 36. Rxc2 Rxg3 37. Kxc6 Rf3 38. Rc4 h4 39. Kxc7 h3 40. Rc6+ Ke7 41. Rh6 Rxf4 42. Kc6 Rf3 43. Kd5 a5 44. Rh7+ Kf8 45. e6 Re3 46. Kd6 Kg8 47. Rh5 Rd3+ 48. Ke7 Kg7 49. Rxf5 h2 50. Rf1 Rd2 51. Ke8 a4 52. e7 a3 53. Rf7+ Kg6 54. Kf8 h1=Q 55. Rg7+ Kf5 56. Rf7+ Kg4 57. Rg7+ Kf3 58. Rf7+ Kg2 59. Rg7+ Kf1 60. Rf7+ Rf2 61. e8=Q Qh8+ 0-1

Posted by Matt Bruce at 12:01 PM

July 09, 2008

Chess of the Day

I appreciate opponents who don't make you go all the way to a routine mate, but wow: There were stretches of this game (extended entry) in which I thought my position was way worse than the other guy's position is as of the end.

At least once I thought, "should I resign here? Well, there's this... we'll see what happens." Then things inexplicably happened, not even blunders per se.

I scoffed at his 6th move when I saw it -- but his 10th move and follow-up expose a deep flaw in my 7th-9th moves. The exchanges on move 12 just make a bad situation worse (lose a pawn instead of just two tempos), and yet his 17th move onward just showed a complacent lack of purpose. My counterplay seemed to come out of nowhere.

[Event "Online Chess"]
[Site "Chess.com"]
[Date "2008.07.07"]
[Round "1"]
[White "Akira S."]
[Black "Matt B."]
[Result "0-1"]
[WhiteElo "1586"]
[BlackElo "1598"]
[TimeControl "1 in 3 days"]

1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4 Nf6 5. Nc3 a6 6. g3 e5 7. Nf3 Nc6 8. Bg2 Bg4 9. O-O Qd7 10. Bg5 Nd4 11. Bxf6 gxf6 12. Nd5 Nxf3+ 13. Bxf3 Bxf3 14. Qxf3 Qd8 15. Nxf6+ Ke7 16. Nd5+ Ke8 17. Qc3 Rc8 18. Qb3 b5 19. f4 h5 20. fxe5 h4 21. Ne3 Qc7 22. exd6 Bxd6 23. Nf5 Bc5+ 24. Kh1 hxg3 25. Qxg3 Qxg3 26. Nxg3 Bd6 27. Nf5 Rxh2+ 28. Kg1 Be5 29. c3 b4 30. Rad1 bxc3 31. bxc3 Rxc3 32. Ng7+ Kf8 33. Ne6+ Ke7 34. Nd4 Rxa2 0-1

Posted by Matt Bruce at 12:33 PM

June 24, 2008

Philosophical Free-Style

(The part above the fold is just banter; the part below the fold is more serious.)

Waiting for my lasagna to heat up, I noticed that the snack basket had a small package of oyster crackers nestled amongst the chips. I poured the crackers into a paper cup, added some Cheez-Its, shook well, instant snack mix. But that's not the point.

Oyster crackers and Cheez-Its in the same cup reminded me of the old parable: Earlier this month I went to a time management session (I have yet to attempt to compute how many days (weeks?) of better time management it will take for me to enjoy a net "time profit" on the time investment of attending the session) where the instructor began with an anecdote, attributed to an English professor, of a container of large pebbles. "Is it full?" Yes. "Really?" [pour smaller pebbles into the container; they'll slip into crevices] - repeat these steps through grains of sand and finally water.

(This parable really originated with an ancient Greek thinker, no? I couldn't immediately confirm this with a web search.)

That's not to be confused with the story of a professor who mocks his student for believing that God was real, only for the student to turn around and mock the professor for believing that the concept of "cold" (versus hot) was real. A decent response paper assignment in a philosophy class would be for the students to improve on the hypothetical professor's weak sauce.

(Irrelevant aside: The author of the above link is a Mets fan whose call for Willie Randolph to be fired was published just a few hours before it actually happened.)

This led me to think about philosophy classes I'd actually taken, papers I'd actually written, and the disturbing premise behind my most memorable paper:

Most of the justifications for punishing a convicted criminal, even if they're logically sound to begin with, don't actually require that punishment be given to (or only to) people who are actually guilty.

Retribution arguments (or deterrence arguments for that matter) don't actually depend directly on punishing the guilty; rather, they depend on a universal good-faith belief that the guilty (and only the guilty) are punished. Obviously the best way to instill this belief is for it actually to be true -- but in theory it doesn't have to be true.

(A real-life example of this -- from years after I wrote the paper -- would be the Duke lacrosse rape suspects, if the general public had never learned how weak the case against them actually was. If the case hadn't so conspicuously unraveled then, regardless of whether they actually did it, I think many observers were so convinced that they did it that anything short of a harsh punishment (with or without formal conviction) would have been deeply unacceptable to those observers.)

Meanwhile, incarceration and rehabilitation are just methods to prevent future crimes. The fact that you have[n't] already committed a particular crime may be a strong signal that you [don't] need to be incarcerated, or rehabilitated, but other factors may predict just as strongly.

Here's the part that I fervently hope my paper conveyed (lest the TA mistake me for a monster): I don't like that the above statements seem to be true, and I certainly wouldn't advocate either show trials or preemptive punishment. But if we want to foreclose the possibility of show trials or preemptive punishment, then we need to present the reasons why the state punishes people a lot more rigorously than we typically present them.

We might also need to be more rigorous when we explain why certain practices would be obviously manifestly unjust as applied to the innocent (yet tolerable as applied to people found guilty of specific crimes).

(Or we could rely on a pragmatic, commonsense observation that the U.S. would never engage in particular practices that we intuitively think of as unjust... would it?!)

Posted by Matt Bruce at 01:26 PM

June 22, 2008

It's Hard to Figure Tournament EV for a Charity Event

No Limit hold 'em poker to benefit the Oakland A's community fund. 64(?) players initially (in any case eight tables generally eight players) at 1500 chips, now down to four tables of 6-7 per table. The final eight would each get an autographed baseball*; the final four would each get something in envelopes(seemed to be tickets, not cash).

*- Two particular autographed baseballs had been auctioned separately and went for $200-250, but I think those were Dennis Eckersley level of fame and I didn't catch who the poker award winner autographs were from.

Blinds at 200-400, Hero started the hand with 4500 in the SB. A shortish stack limped, the table's big stack (just over 7K) limped, two people folded, Hero picked up A6o and pushed, BB and first limper folded, second limper asked for a chip count.

Getting 57 to 41 he called with JTo. By pure chip EV it's (narrowly) the right call for the range he should expect from a SB push. (It didn't occur to me to try to give off a tell of having a monster hand; I probably couldn't reliably pull that off anyway.) Tournament EV, on the other hand... see post title.

Oh anyway the point of the story, a jack rivered. For analysis purposes it doesn't matter which of the five cards was a jack, but in real life chronology after the four that weren't... oh well, handshake, nice hand, good luck, etc.

Posted by Matt Bruce at 11:17 AM

June 19, 2008

Any Chessers in These Parts?

Analyze with me!

In the game below the fold, at what point did White (me) cinch the win, and was there ever a point at which I was just toast?

My 26th move is tricky because of Black's eventual threat of Qf4 into Qd2. My 21st move also feels very LAGgy (loose-aggressive), to borrow poker terminology.

[Event "Online Chess"]
[Site "Chess.com"]
[Date "2008.06.11"]
[Round "1"]
[White "Matt B."]
[Black "Carlos C."]
[Result "1-0"]
[WhiteElo "1515"]
[BlackElo "1449"]
[TimeControl "1 in 3 days"]

1. d4 d5 2. Nf3 h6 3. Bf4 Nf6 4. e3 a6 5. Bd3 Nc6 6. c3 Bg4 7. Nbd2 e6 8. h3 Bxf3 9. Nxf3 Bd6 10. Ne5 Qe7 11. Qc2 O-O 12. Ng4 Bxf4 13. exf4 Na5 14. b4 Nc4 15. Ne5 Nh5 16. g3 Na3 17. Qe2 Nf6 18. g4 Nd7 19. h4 Nxe5 20. fxe5 f6 21. g5 fxg5 22. O-O-O gxh4 23. Rdg1 Rf7 24. Qh5 Kf8 25. Rxh4 Rxf2 26. Qg6 Qf7 27. Qh7 Qg8 28. Rxh6 Qxh7 29. Rxh7 Ke8 30. Rgxg7 Rd8 31. Rh8+ Rf8 32. Bg6# 1-0

Posted by Matt Bruce at 04:01 PM

June 04, 2008

One of these Responses is Way Better Than the Others

The Freakonomics blog recently posted a contest, "asking readers to choose the one question they’d ask if picking a partner to play the Prisoner’s Dilemma."

The five finalists are up (for best question), of which I think #3 is head and shoulders better than the other four. (Distant second is #1. I'm shocked that the people who've seen fit to comment on that post have given so much love to #2 and #4.)

Posted by Matt Bruce at 04:50 PM

Another Facebook Chess Miniature

This one's still in progress. Again it's a one move per three days time control (so essentially correspondence chess); this time I'm White.

Despite the content of this and the previous chess post, I don't think it's quite right to assume that chess skill is demonstrated by eviscerating someone in comically few moves. A really bad player will play moves that don't accomplish anything, maybe accidentally give up his horse and so on. You have to be at least a little bit skilled to play moves that actually look solid, that don't immediately give material, and yet lose the game for you in the blink of an eye.

Anyway, I think his taking my pawn on move 8 is fatal:

1. d4 Nf6
2. Nf3 g6
3. Nc3 d5
4. Bf4 Bg7
5. Qd2 O-O
6. Bh6 Nbd7
7. h4 b6
8. h5 Nxh5
9. g4 Nhf6
10. Bxg7 Kxg7
11. Qh6+

(12. Ng5 to follow)

Posted by Matt Bruce at 01:52 PM

June 03, 2008

Semi-Slav of the Day

Facebook chess, 3 days per move. I'm Black, my first chess game against anyone other than Julia in over a year.

It's hard to say how much of the other guy's downfall was the premature push to c5, and how much was his failure ever to play Nf3. (In hindsight I should just 4...Nbd7 intending ...e5 against anything other than Nf3.)

1. d4 d5
2. c4 c6
3. e3 Nf6
4. Nc3 e6
5. c5 Nbd7
6. Bd3 e5
7. f3 b6
8. b4 a5
9. Qb3 axb4
10. Qxb4 bxc5
11. dxc5 Bxc5
12. Qh4 Qa5
13. Nge2 d4
14. resigns
(0-1)

Posted by Matt Bruce at 02:31 PM

April 18, 2008

Everyone Reading This Is Running Hot

Quote of the Year:

Q: What percent of your success would you say is attributable to randomness?

A: That really depends on what you mean by randomness. Was it random that I was born in the U.S. to a caring family that was able to educate me instead of to a poor family in Zimbabwe? That was probably the biggest determining factor in my success, and one of the most random.
--Freakonomics Blog interviews a poker pro

Posted by Matt Bruce at 04:59 PM

March 06, 2008

Not the Usual Inspiration for a D&D Character

"My preferred D&D character classes were clerics and fighters, neither of which have much connection to my current career."
--Ilya Somin

The tributes to Gary Gygax reminded me: I only ever had one AD&D character, a fighter. Very strong, not much charisma. The one real-life person after whom I patterned this character, more than any other, was...

Sebastian Janikowski

(Not the biographical details -- my guy had been a shipyard worker -- but more of a WWSJD?)

Secondary influences would be every guy who ever wore a full costume into the Black Hole -- at least the personae those guys dreamed of assuming.

Posted by Matt Bruce at 12:16 PM

March 04, 2008

Grab Bag of Links

Bugs vs. Daffy: a presidential race metaphor.

The Most Complicated Game: if I'd written a similar piece, completely eviscerating a popular game, I'd have chosen Pictionary. But the one actually mentioned here also richly deserves its treatment.

Very interesting number-crunching blog.

Add this one to your collection of dark humor about Communism (this time the Cuban variety):
"He lied to me! He told me that he was a luggage handler! It turns out, he's nothing but a neurosurgeon!"

Posted by Matt Bruce at 12:11 PM

February 26, 2008

That's One Variant on the Landmark Problem

Suppose you knew someone who apparently died (not of old age) a few years ago, but then you saw someone who seems to be that same person (as if the death were faked).

If your intuition were that this person wanted to meet you, but couldn't communicate a location, where would you go to hope to find that person? The answer seems very obvious to me, and I assumed that's what Mr. Monk was up to in "Mr. and Mrs. Monk," yet even if the case turned on that, he didn't specifically explain as much.

But both the plot and the climax of the previous episode ("Mr. Monk Gets Drunk") make up for it.

("Captain, you've got to see this! Monk is doing that summation thing of his, only he's completely wasted!")

Posted by Matt Bruce at 12:22 PM

February 11, 2008

Economic Puzzler

Developed in 1964 by economists Armen Alchian and William R. Allen, the [Alchian-Allen] theorem states that adding a per unit charge to the price of two substitute goods increases the relative consumption of the higher price good.
--Marginal Revolution, pulled from a post that's actually about long-distance relationships.

Can you think of substitute goods for which the Alchian-Allen theorem seems to get it backwards? In particular, a particular set of goods whose pairwise price difference at the same location is almost always exactly 10 cents per unit, but whose unit prices have basically doubled over the past few years?

Gas, of course.

Am I right, though? When gas prices go up, don't people become slightly more likely to get regular rather than premium? The A-A theorem would suggest the opposite.

Posted by Matt Bruce at 12:26 PM

February 06, 2008

FREE RIDE LOTTO

"We pay you to play!"

(Tag line is slightly misleading, as full truth would be "We usually pay you to play.")

A negative-sum (to the customer), but fun, game based on the structure I set out in the extended entry below.

$5 lottery ticket, with a greater than 70%(!) chance at cash back. Six digits, color-coded to emphasize that order is relevant, so a million values that are equally likely to come up.

Six air machines in sequence, each with 10 balls labeled 0-9.
1. Draw a grand jackpot number (one ball per machine)
2. Without replacing, now draw a "little jackpot number": one ball from each of the first four machines
3. Without replacing, now draw a last-chance combo: one ball from each of the first two machines

DOLLAR RIDE: If the first digit of your ticket does not match the first digit of any of those three prize numbers, then your ticket is redeemable for both $1 and a new ticket (randomly generated number) in the next drawing. (This will be true of 700K of the million possible ticket #s.)

TEN-DOLLAR RIDE: If your first two digits match the last-chance combo then your ticket is redeemable for both $10 and a new ticket (randomly generated number) in the next drawing. (This will be true of 10K of the million possible ticket #s.)

$500 PRIZE: If your first four digits match the "little jackpot number," your ticket is redeemable for $500. (This will be true of 100 of the million possible ticket #s.)

$25K PRIZE: If your first five digits (but not the last digit) match the first five digits of the grand jackpot number, then your ticket is redeemable for $25,000. (9 in 1M)

$250K GRAND PRIZE: If all six of your digits match the grand jackpot number then you win $250K (1 in 1M).

According to Excel, this would be a 12.5-cent expected profit per purchased ticket sold if the first two prizes were $6 and $15 rather than {$1 + ticket} and {$10 + ticket}. Since most of the winnings are awarded as tickets rather than cash, the actual expected profit per purchased ticket is an exercise for the reader.

Note that you have a 16.8% chance of getting the "Dollar Ride" five times in a row (bringing your net outlay back to zero, for a literal freeroll).

Posted by Matt Bruce at 11:37 AM

Design Your Ideal Zero-Sum Payout Structure

Suppose you were required to play a zero-sum game, but could choose whatever probabilities and payouts you wanted, so long as the expected cash value came out to zero. (If necessary, assume "the banker" has infinite resources.)

It's a loaded question because people play games for the game content as much as (more than?) the payout (especially if the EV is 0!). For example, you could choose up to eight rounds of reverse Martingaling -- start by betting $1 even money; if you lose, you finish down $1; if you win, you double your bet. 255/256 chance of -1, 1/256 chance of +255. The fun there is in the sequence more than the exact odds. Despite all that, it might be simpler to focus on odds/payout until you find a fantastic game that simulates those.

Mind, a lot of people are so cash risk-averse that their answer would be "play some fun game with play money and guarantee a cash outcome of exactly zero." That's fine too.

An interesting related question: How would your answer change if the expect cash value had to be a loss of one dollar? Would it just be the same answer as before, with a $1 surcharge tacked on all outcomes, or would it be different?

If the payout has to be zero and the game structure is ceteris parabus, then I think I'd require three things from the ideal version of all this:

1. A tiny chance of a huge payoff
2. A cap on my losses
3. A greater likelihood of winning than losing

Given all that, a quick and dirty approximation that works out correctly: Consider one million possible outcomes (for example, six lottery popcorn machines, each with the ten digit balls).

BIG MONEY: One in a million apiece for $256K, $128K, $64K, $32K, $16K, $8K, $4K, $2K. That's eight outcomes down, $510K. Add 40 more ways to win $1K, so we're at 48 outcomes $550K. Add two break-evens to make the math rounder.

ALMOST BIG MONEY: Add 500 payouts of $100 each. Now we're at 550 outcomes, $600K.

SMALL MONEY: Add 10,000 payouts of $10 each. Now we're at 10,550 outcomes, $700K.

MORE ROUNDING: Add 89,450 break-evens so we're at 100K outcomes, $700K. We need 900K outcomes totaling -$700K, which is an even multiple of nine outcomes totaling -7.

THE MEAT OF THE GAME: 600K outcomes of +$1, 200K outcomes of -$4, 100K outcomes of -$5.

Revisiting my requirements above:
1. More than a 1 in 100K chance of winning at least a thousand, in fact a shot at 256K!
2. Maximum possible loss per game of $5.
3. 60% chance of winning exactly one dollar.

Posted by Matt Bruce at 10:08 AM

January 20, 2008

Scrabulous

What took Hasbro so long?

When I first saw Scrabulous I figured the lawsuit or cease/desist order would be days away. When it didn't happen, I figured they'd worked out some financial deal, exactly the kind of deal they still can (and should!) work out.

In theory Hasbro should get a vast majority of the revenue (they can team up with an arbitrary development partner; Scrabulous has only one possible partner). In practice I wonder how closely this resembles those economic games where one person proposes a deal and if the other side rejects it nobody gets anything.

While we're here, I'll brag about my last five Scrabulous games, by final score:

381-275
433-365
424-384
420-389
329-319

Before that an 8-10 game stretch of .500 ball 3-6 skid with final scores around 300 flat Posted by Matt Bruce at 08:18 PM

January 14, 2008

Pinker's NYT Magazine Article About Morality

We read the paper version yesterday; you can read the on-line version here.

At one point the article mentions three hypothetical situations that most people supposedly find immoral. My immediate reaction was a complete lack of objection to any of the three. (Admittedly, my eyes glazed over a critical detail in one of the three. I fervently defended my original position even after catching the important detail: That might be an example of some psychological effect whose name I can't think of (oversimplify a bit and call it stubbornness).)

Julia agreed with me about the lack-of-immorality in the flag case and the dog case. The flag case might have been a moral transgression depending on what standard of conduct the protagonist would have otherwise claimed to uphold.

(Reminds me of something our rabbi told us in Judaism classes over a year ago, that I'll do my best to recount adequately: It's wrong to violate certain Jewish laws/traditions, if and only if you believed in their validity to begin with. So if you assert from the outset, for example, "kosher dietary restrictions are silly"... that's your choice and life goes on. But if you believe that kosher is theoretically correct, yet fail to live up to it in practice, then you've transgressed. Does this make sense? But you could argue that this distinction doesn't apply to any moral rules about treatment of other people.)

I argued with her at length about the brother-sister incest case. It's unclear how much of this was devil's advocacy, how much was rationalizing a stake I'd taken, and how much is what I really believe. I think the two best arguments against brother-sister incest are the risk of pregnancy (you can't just hand-wave this risk down to zero in a hypothetical, no matter how much contraception is involved), and the premise that lots of childhood/adolescent sibling interaction would be really squicky if "these two people can never have sex ever" weren't a ground rule.

The article also mentions two competing flavors of the train problem, that most people will throw a switch to kill one person instead of five, but won't kill that one person with their bare hands (i.e. shove that person in front of the train) to spare five people.

I sort understand why people reflexively draw that distinction, but the way people pigeonhole things is ridiculous in light of simple physics. If you won't use your bare hands but will throw a switch, then what about the case where you save the five people by firing a pistol at the one person? (Railroad switches don't kill people, people kill people.)

[As you know from past moral philosophy posts, I'm in the distinct minority in claiming that you shouldn't even throw the switch. My defense of this is almost exactly the same as what I infer that people say in objection to killing someone with their bare hands. Despite what I claim in theory, in practice I'd probably throw the switch, pull the pistol shove the fat guy, or whatever it took. Unless I just froze.]

Posted by Matt Bruce at 12:29 PM

December 21, 2007

Fortunately, Scissors Has Developed an Immunity to Iocane Powder

WHY WHY WHY WHY WHY?

You have exactly three options for your starting move. As game structure goes they're all analogous: You could call them asphalt, bagpipe, and chrysanthemum and not change the game itself one bit.

It is, therefore, rather unlikely that any one of those three options merits the phrase "stalwart players have come up with a strategy," much less the label "how to win."

But hey, some company won a big business deal with scissors once. And now that I think of it, I once saw some guy win a huge pot with 5d 4s on televised World Series of Poker. (OK fine, I looked it up.)

Posted by Matt Bruce at 12:40 PM

December 05, 2007

My Favorite Dice Paradox

(Internal monologue in the car this morning: "Is it too soon to care about Week 15 fantasy football?" "Yes, because even aside from injuries you don't know who you're facing." "But why would that matter. Regardless of the opponent I'm just maximizing expected scoring.")

You probably already knew this but in a two-player game where margin of victory is unimportant, comparing the "expected" payouts tells you a lot less than you might think.

For example, consider three nonstandard six-sided dice. One has two 6's and four 2's on its faces; one has 3's on every face; one has four 4's and two 0's.

The first die has an expected roll of 3.3, the second 3 (obviously), the third 2.7. But if your opponent had the second die (the all 3's), and you wanted a higher number, for a quick ten points which one of the remaining dice would you choose?

You saw what happened there, right? Once you've convinced yourself that {4, 4, 0, 0, 0, 0} < {3, 3, 3, 3, 3, 3} < {6, 6, 2, 2, 2, 2} in the long run, add another die to the mix, this one with three 5's and three 1's. How do you expect that one to do against the others?

Paul gets comment of the month. That was quite the typo (and of course his main point is dead-on)

Posted by Matt Bruce at 11:02 AM

November 24, 2007

Word Stacks

An exercise for the reader is to tell me (through memory or research) what two seven-letter words were involved in the story, from Word Freak, of a Scrabble game whose first play was a seven-letter word and whose second play was a seven-letter word that also made seven two-letter words.

Earlier this week Julia and I finished a game in which I slipped AXONS under TOGAE. (For one of the ancillary words ET became ETA, but since TA itself is a word I think this still counts as 5/7 of the Word Freak thing.)

Posted by Matt Bruce at 11:13 PM

The Limits of Stipulations in Philosophical Problems

I think I might be gravitating to the "one box" camp for Newcomb's paradox. But I should tell you how I got there.

Julia, like nearly every intelligent person, disagrees with me about the track/switch "kill one man to save five" problem. She's surprised that once my own life is secure, I'm unwilling to be an agent of death. (I suppose anyone who knows that I'm not a pacifist -- e.g. that I continue to support what the U.S. is doing in Iraq -- should be many times as surprised.)

My immediate answer -- not my whole answer, but so instinctively first that the rest is just rationalization -- is that ground rules be damned, I reject the 100% certainty that it's a case of five innocent people dying versus one innocent person dying.

So what if the ground rules become absolutely ironclad?

Then my answer to the switch problem becomes really lame, though it continues to be my answer. (It's not nearly as lame as the people who'd let their entire basement hideout be massacred because they were too wussy to smother one baby.)

This got me to thinking about other ground rules that I find suspect. For example, even in the usual formulation of prisoner's dilemma (where players have a dominant strategy that works to the other player's disadvantage) I am the most outspoken advocate I know of the correctness of the "nice" option. No matter how hard you stipulate that this is a one-time game, in practice different flavors of it can and do come up frequently. The world as a whole is better off if everyone consistently cooperates, and if everyone realize that the world as a whole [etc. to infinity].

Although you'd think Newcomb's paradox stems from a game that you personally play just once (apparently billions of other people have played it though, for the Great Predictor to have amassed such a track record?), something similar might be at play here: Think of sustainable development, and of various free rider problems. (I wonder if they cover Newcomb's paradox in those "Green MBA" programs...)

One caveat: Several years ago at a New Year's Eve party thrown by geeks, for geeks, I overheard someone (whom I'd never met and have never seen since) mention that unlike his friends, he carries grudges from strategy game to strategy game. That is, if you screw him over in one game (think of Diplomacy and the like), he'll remember it. That guy apparently wished to use his openness about such grudges to his advantage, as a deterrent.

I think if you're playing a strategy game that you don't (can't) take payoff calculations personally. The best long-term reaction to that guy I overheard would be just to refuse to play games with him.

(So the paradox is that I advocate screwing people over when you're playing for fun, yet being "nice" when you play for money! This must be what I think given how fervently I advocated the "Friend" strategy in that old game show Friend or Foe.)

Posted by Matt Bruce at 10:29 PM

Time Morality Quiz

Take it (via Fark).

I find problems 1 and 2 to be slam-dunk easy (can you guess from my other political views how strongly I value the right of self-defense?).

Like everyone who's ever taken a college philosophy class I've had plenty of opportunity to think about (and discuss) the trolley problem and its variants; I tend to be one of the few people in the room (sometimes the only one) who opposes throwing the switch.

The Time quiz doesn't include the "famous violinist" problem (nine months of detaining one man so that another might live: one of the most thinly-veiled allegories in this realm); my answer to that one is consistent with pro-life principles.

(For what it's worth, related to practical sociopolitics rather than abstract philosophy, one of my five biggest regrets in life is having been so vocally anti-abortion over the years. Since I somehow doubt that I personally have talked anyone out of having an abortion, that outspokenness has easily done more harm than good.)

Posted by Matt Bruce at 09:41 PM

November 12, 2007

I Solved a Volokh Puzzle!

Got this one right away. (As did basically every commenter.)

Posted by Matt Bruce at 05:31 PM

November 07, 2007

Replay!

I just sent my wife a link to the news about baseball GMs voting for instant replay. That left stuck in my head the glorious sound a pinball machine makes when you hit the replay threshold (or succeed at the 10% chance of a freebie, on those machine gracious enough to include that option).

It's been so long since I played pinball. Even the concept of "extra ball" is fond memories.

Posted by Matt Bruce at 11:12 PM

November 02, 2007

377-377

Have you ever had a Scrabble game end in a dead draw? I don't think I ever had, but there's a first time for everything.

Also, that makes twice in one week where I needed the leftover tile bonus/penalty to avert a loss.

Posted by Matt Bruce at 12:12 PM

October 22, 2007

Thomas the Sudoku Engine

The identity of the U.S. sudoku champ (pictured in the linked-to article) won't surprise anyone who read Jason Z's travelogue e-mails from Prague a few months ago.

Posted by Matt Bruce at 03:55 PM

October 15, 2007

Mechanism Design

Today's exercise for the reader:

1. Read as much as you can about the work that won the 2007 Nobel Prize in Economics.

2. Think about eBay, and the last-second sniping everyone talks about.

In theory last-second snipers should not affect a second-place auction; more importantly, if you understand the structure of those auctions then those snipers shouldn't affect you. Yet last-second bids are not only prevalent but also part of the conventional wisdom. Why? ("Market inefficiency" is an easy answer but how likely is it to be true?)

The best answer I can come up with: If last-minute bids become the perceived norm then buyers collectively will come out ahead of where they would have been. eBay probably has more buyers than sellers. (Ironically, all the people who get outbid at the last minute and say "I would have bid more" have only themselves to blame for bad tactics, even if those bad tactics were part of a plausibly good overall strategy (of rent-seeking?).)

Posted by Matt Bruce at 11:21 AM

September 26, 2007

Mutually Assured Destruction was a Suck-Out Artist

Do you fully comprehend how incredibly lucky we are that the world as we know it still exists despite the nuclear arms race of the Cold War?

I probably mention this dozens of times but this is one of the many things that could have gone wrong but didn't. (If you know what was going on as of the instant the Soviet warning system reported a supposed U.S. missile launch, what odds would you lay that nuclear holocaust would ensue?)

Posted by Matt Bruce at 01:47 PM

September 18, 2007

Silly Math of the Day

(See, not all of my posts lately are about fantasy sports. (Oh wait, this one actually is if you notice the direct mapping.))

A science class has an even number of students (2n for some positive integer n) and a 50-50 male female ratio. Those students are assigned randomly into lab partnerships. (Process doesn't matter but if it helps you visualize: Pick two students at random - they're partners. Pick two more students at random from among the ones who are left. Repeat until the two remaining students become partners.)

As a function of n, how many male-female partnerships do we expect?

Posted by Matt Bruce at 06:36 PM

September 13, 2007

Silly Arithmetic Relic

Read my mind and tell me: In what context did I just solve for the fraction 161/180?

(Hint: Public education is involved but it has nothing to do with a 180-day school year. Don't think of the denominator as exactly 180. Instead, think of someone who's perfect at computation (i.e. they have a calculator) but inept at understanding certain mathematical principles, like rounding.)

Posted by Matt Bruce at 05:52 PM

September 04, 2007

it always does come full circle

Only five minutes instead of a day, but the joke in this Fark headline led me to this Wikipedia page, which refers to the same Fark thread.

Posted by Matt Bruce at 01:31 PM

August 17, 2007

The Difference Between an Angle-Shoot and a Cheat

Yesterday some co-workers were in a pool tournament and with the game on the line one of them called a table scratch on the other (it was indeed a table scratch), took ball in hand, and sank the 8-ball.

Earlier in the game, the scratcher's teammate had chosen not to enforce a table scratch. Whether that's relevant is an exercise for the reader.

Posted by Matt Bruce at 05:32 PM

August 10, 2007

Bathroom Tile Math

I believe this problem has long since been solved, and it came up several "sit-down meetings" ago, but Z's comment to a baseball post reminded me that we do have some cool math geek readers here.

Consider infinitely many rows of tiles in a triangle pattern: The first row has one tile, second has two tiles, nth has n tiles.

Which positive integers can('t) be formed as the sum of two or more consecutive rows of tiles?

(Henceforth "number" describes only positive integers.)

Two consecutive rows can form any odd number greater than 1. Any odd number is expressible as 2i+1 for some i, and if i > 0 then you use the ith row and the (i+1)th row.

Three consecutive rows can form any proper multiple of 3 because i + (i+1) + (i+2) = 3i + 3 = 3(i+1).

More generally any odd number of consecutive rows can form any multiple of that odd number greater than half the square of that odd number.

Four consecutive rows can form any 2mod4 number >= 10. Six consecutive rows can form any 3mod6 number >= 21, eight consecutive rows can form any 4mod8 number >=36.

More generally, any number that can be expressed as the product of an even number and an odd number can be represented by consecutive rows. If 2E > O then use O rows whose average is E. If 2E < O then use 2E rows whose average is O/2. (For a quick 10 points why will you never see 2E == O?)

We've covered every odd number greater than 1 and every even number expressible as the product of an odd and an even. The only even numbers not expressible as the product of an odd and an even are powers of 2.

An exercise for the reader is to prove that NO power of 2 can be expressed as the sum of N consecutive integers.

Posted by Matt Bruce at 01:53 PM

August 09, 2007

Probability Theory of the Day

Also feeling pangs of regret must be the San Francisco cab driver who drove Murphy and Kamal from the airport to their hotel. Hoping to get out of the $55 fare, they told the driver that if they caught Bonds' record home run ball, they'd give him a couple thousand dollars.

"He turned me down, man," Murphy said.
--Yahoo! Sports

I think the actual probability that Bonds would hit his record-breaking home run that night, AND that one of those guys would catch it, was a good deal less than 55 in 10,000.

"What do you do for a living?"

"I drive cabs... AND I chase inside straight draws."

Posted by Matt Bruce at 02:29 PM

July 31, 2007

Mathematical Misconception of the Day

Five friends gather for a marathon bridge session. They want to play ten rubbers, such that each person has each possible partner for two rubbers and sits out two rubbers. Moreover, the two times any given partners play together must NOT both involve the same pair of opponents.

I spent much of this morning convinced that these criteria were impossible to meet (but not sure how to prove it). But then I realized exactly how to do it and felt stupid.

(Hint: The more instinctively you know the best way to set up a five-person round robin, the more you're at risk of falling into a mental trap.)

Posted by Matt Bruce at 12:17 PM

July 23, 2007

A Devil's Advocate Defense of Point Spreads

In theory, gambling based on point spreads (as opposed to straight-outcome betting) should not only reduce the magnitude of harm of gambling-related "fixes" but also make certain kinds of cheating easier to detect if someone actually crunches the numbers.

Consider a corrupt referee who needs the home team to win by at least five points and who does something to cause the home team to win by six points instead of by four. In abstract, yes, this still ruins the integrity of the game, but on purely outcome-based analysis what has he really changed? (If, on the other hand, he needed the home team to win and did something corrupt to cause the home team not to lose...)

As for catching the cheats: You may remember the chapter in Freakonomics about suspicious results in sumo wrestling. Couldn't one design a similar study involving, say, NBA games with a final score within 2-3 points of the spread? (Or within 2-3 points of the over/under?)

Unless players, coaches, and refs were chronically acutely aware of the exact spread, you wouldn't expect much discontinuity in stat trends involving games barely on either side of the line. (You would expect bits and pieces of discontinuity between games some team barely lost and games it barely won.)

Some interesting questions:
1. For all NBA referees, what was the average distribution of fouls in games in which
a) a home underdog barely covered?
b) a home underdog barely failed to cover?
c) a home favorite barely covered?
d) a home favorite barely failed to cover?

2. For NBA referee X, what were those distributions?

3. For all NBA refs, on average how many fouls were called in games in which the teams {barely hit, barely missed} the over?

4. For NBA referee X [...]

Here's the only Freakonomics post I could find that mentioned the scandal. Somebody mentioned the difficulty of detecting a cheating ref whose actions could nudge the outcome to either side of the spread. Well... just look for refs with a relatively high frequency of "outlier" games (e.g. visiting team got more foul calls than usual) correlated to close calls where the outlying trend worked to the benefit of whichever team barely covered.

Meanwhile Mark Cuban is an outstanding business leader. I should have guessed he would write something like this (but both the position and the eloquence still surprised me).

Posted by Matt Bruce at 01:08 PM

July 18, 2007

Math of the Day

Combinatorics can involve some messy computation. All the more reason to keep it simple(r) whenever you have a chance.

Barry Bonds has not started 16 of the 91 games that the Giants have played so far this season. There are 260,462,895,672,871,000 (260 quadrillion) possible combinations of games that Bonds might have “chosen” to miss. For example, Bonds missing Giants games # 88, 4, 62, 18, 22, 23, 61, 2, 91, 54, 87, 10, 58, 19, 65 and 83 is one such combination.

Of those combinations, 1,200,635,647,008,340 (1.2 quadrillion) involve each of the three Giants games that have been nationally televised on ESPN this season, as well as any other set of 13 non-ESPN games. In other words, the probability that if Bonds were picking 16 out of 91 games at random to miss, it would so happen that all 3 of the ESPN games were included among those 16, is 1,200,635,647,008,340 divided into 260,462,895,672,871,000, or about 215-to-1 against.
--Nate Silver, Baseball Prospectus Unfiltered

Those numbers seem plausible but I don't think many humans have a good sense of whether hundreds of quadrillions are the right order of magnitude. In a perfect world you could solve this problem without numbers that large. In fact, you can solve the problem int his world without numbers that large.

This problem is equivalent to three friends each drawing (without replacing) a ball out of an urn that contains 91 balls, 16 black and 75 orange. The probability that each of the three friends draws a black ball is:

16/91 * 15/90 * 14/89

(If the first friend draws an orange ball then we know our condition is false. If the first friend draws a black ball then the number of balls and the number of black balls have each decreased by one, etc.)

According to Excel (don't bother with a calculator!) that's 3,360 out of 728,910. Six-digit numbers are still difficult for a human to put in perspective but at least they're not quadrillions.

(And yes, consistent with what Nate said, about 215.9 to 1 against.)

Oh, if you're being truly anal about problem equivalence, you can have 91 people in a line, each of whom will draw a marble without replacing. Three of those people are friends, and they happen to be at places within the line that correspond to the ESPN games on the Giants' schedule-to-date.

Posted by Matt Bruce at 11:49 AM

July 12, 2007

Poker Hand Flashback of the Day

"What's more annoying, hearing about somebody's fantasy team, or hearing about his bad poker beats?

Nate Silver: Fantasy Team. Surprisingly not close. With the bad beat story, you can usually just tune it out and be done with it, but with someone talking about his fantasy team, you're usually expected to produce some coherent reply."
--Baseball Prospectus all-star game live chat. Nate is known elsewhere as Nate Tha Great.

An old roommate is getting married in two days. Several friends are in town for this, including Chad (the best man at my own wedding). He and the Mrs. are staying at our place, just as they did before our wedding.

(Friday night Chad and I stayed in the same hotel where most wedding guests stayed. The previous two nights Julia stayed at her parents. Because we had a one-bedroom apartment then (now a two) I slept on the couch those nights.)

The nights Julia was away I ratcheted up the stakes a bit in the on-line poker. If this was all about the last days of bachelorhood then there are certainly worse ways to mark that passage.

Anyhow: No Limit cash game, [mumble] stakes. Hero had A6 suited in the big blind. Some people limped and/or folded. Button min-raised. Hero called, anyone else still in the hand called.

The ragged flop (let's say it was T63) gave Hero second pair and a backdoor flush draw. Hero led with a half-pot bet, Button min-raised again, Hero called. Two players left.

Turn was a 6. Hero check-pushed. Button thought about it a bit. Hero felt a rush of anticipation and turned his attention to other tables. A few seconds later Hero noticed a shocking lack of stack at the original table.

(Villain called with AA. Naturally the river was the other ace. [There's only a 33% chance the link is apt. My suit was red.])

Posted by Matt Bruce at 10:33 AM

June 17, 2007

One More Anniversary Oddity

This is (at least) the second year in a row that R. spent his June 16 involved in bachelor party festivities, among a group of friends for whom the highlight of a bachelor party is an especially intricate board game.

Posted by Matt Bruce at 11:03 AM

May 13, 2007

Do I Underrate How Surprising or Groundbreaking This Is?

Benford's Law

"In many data series a surprising number of entries begin with the number 1, and the number 2 is also more common than a random distribution might suggest." --Tyler Cowen

You might not have thought of this (I hadn't) but in hindsight it makes total sense. Pick a random integer and see what happens with the digits of the numbers between 1 and that number. For example, in the tens digit you see a 1 ten times before you see other number, a 2 ten times before [etc.].

The interesting question for any given set of data is whether the law is applicable. It probably is, but think about conditions (upper or lower bounds, whether the data in question is better thought of as a sequence of digits than as an n-digit number) that would make it inapplicable.

I hope everyone realizes that the second parenthetical reason above is why lottery numbers decidedly do not follow Benford's law.

Even if there was a lottery setup that sort of applied to Benford's law -- e.g, if a lotto drew just one ping-pong ball from balls numbered sequentially from 1 to some three-digit number and thus the first digit was more likely to be 1 than any other number -- this would tell you absolutely nothing about whether 101 was more likely to appear than 102, 102 than 103, etc.

While we're here: Take a lottery that involves drawing six balls (without replacing) numbered from 1 to 99. Assume the balls have been properly randomly shuffled. THINK QUICK: Which outcome is more likely, 1-2-3-4-5-6 or 48-40-1-79-72-93? (If you get this wrong I will sigh sadly and die a little inside.)

This is all very interesting (I claim) and very easy to understand if explained correctly but it doesn't get nearly enough coverage. I'm embarrassed to admit that until the Marginal Revolution entry I'd never heard of Benford's Law, nor intuited the same result.

Posted by Matt Bruce at 01:46 PM

May 01, 2007

Uh Oh

Poker-style betting rules for golf.

The funny thing is you can do this with just about any multi-round contest (c.f. the Backgammon doubling cube (shout-out to Dan Harrington)) but it's so perfect for golf on so many levels, I'm surprised nobody thought of it sooner.

Posted by Matt Bruce at 05:03 PM

March 27, 2007

Iron Dragon: Worth A Hot Poker to the Eye?

I'll admit I'd wanted to learn how to play Iron Dragon. That said... six players, including four of us newbies, made for five hours (even after reducing the victory condition from 7 major cities + 250gp to 7 + 125gp) worth of pain. The really frustrating part was the opportunity cost of playing this one thing instead using that same time to enjoy three or four games with the other half of the party.

(Have I mentioned how big a Trans[location] snob I've become? Simple and elegant tactical games are your friend.)

The rest of this post is basically for Greg (or any other Iron Dragon connoisseur out there).

So for someone who claims to be all about efficiency (I enjoy wonkish stuff about logistics or operations research, and despise manual processes that take linear time), it turns out the games at which I do the worst on my first play-through are the efficiency games -- the ones where your levels of production snowball out of past production.

I went third. Since my initial cards had some nice synergy involving Fish, I planned to start in the top left corner of the board (what I thought of as "northwest" until I noticed that the compass on the game board was a bit askew, so technically more like NNW). As it happens that's exactly where the first two players BOTH went. So I started out in Old World (bottom right of the board), with some high-risk, high-reward strategy involving Wands. I ended up having to cut all the way across the bottom of the board, and it was a long time before any other player's moves became remotely relevant to what I was doing.

(If it weren't for our "you can borrow anything from the bank as long as you eventually pay back double (and don't use the borrowed funds specifically to hose an opponent)" house rule, I'd have probably been dead in the water, reduced to several turns in a row turning in cards until I got something I was capable of doing.)

Eons later I actually got out of debt and ostensibly came in fourth (I had seven major cities plus 55 gp when the game ended, though I'd just made a huge delivery; fifth place had fewer gp but was about to pass me; sixth place was still in debt). Ironically the one city I didn't connect was the "K" city smack in the middle of the board.

(If it weren't for the Rainbow Bridge event I probably couldn't have made it to the top-right-corner city either.)

Anyhow, my post hoc understanding of the game is way, way different from what I assumed at the outset (though still quite different from what other players made it out to be). Unless I'm missing something huge, this is NOT a game of immediate adversarial maneuvering (yeah, sure, other people will hog the most direct routes to the places you get to last, but that zig-zag route costs you, what, about 6-8 extra gp? pshaw).

On the contrary, I wonder whether the best strategy (maybe even the only strategy if you don't have that "borrow from the bank" house rule) is to tacitly cooperate with one or two opponents: Build adjacent to each other (and rent each other's track) so that early on you have access to a whole bunch of cities without needing to burn precious capital laying track you can't afford yet.

Full circle: from the TransEuropa on the other side of the apartment I heard an otherwise very smart person ask, half-jokingly, why bother to build at all if everything you play helps everyone else as well as yourself. Very amusing way to miss the point (of Trans, of Settlers, and of a lot of similar games): OF COURSE you're helping [some] other people at the same time you help yourself. Part of the trick is to get yourself into a position where you're helped as much as possible by other people (read: fewer things FAIL to help you than fail to help other people).

Posted by Matt Bruce at 05:01 PM

February 28, 2007

What Am I Playing Lately?

Moai

Leap of Faith

In both cases the music is especially soothing.

Posted by Matt Bruce at 08:28 PM

February 18, 2007

Brain Teasers 101

Post a brain teaser whose answer is very simple (but not immediately obvious). Examples, which many of you have probably heard hundreds of times:

1. You're in a room with two doors. One leads to freedom, the other to torture. (Obviously you want freedom.) There are two guards here, one of whom always tells the truth, the other of whom always lies. You know that to be the case (it's unclear how you know) but you don't know which is which. You're allowed to ask either guard (but not the other) ONE question, and only one, after which you will choose a door. Devise a question from whose answer you can pick the correct door with 100% certainty.

2. You have three boxes of marbles. One contains only blue marbles, one contains only red marbles, and one contains both blue marbles and red marbles. One is labeled "BLUE MARBLES," one is labeled "RED MARBLES," and one is labeled "BLUE MARBLES & RED MARBLES." However, you happen to know that all three boxes are currently mislabeled. The good news is, you can figure out which label belongs on which box by drawing just ONE marble from one box. Explain how!

3. You and several other contestants are invited to a game show taped on the set of The Price is Right. However, this show consists entirely of spins of a wheel. Until the game is won, contestants will take turns, each getting one spin. If a spin lands on "$1.00" (assume that any given spin will hit that square with 1/20 probability) then that contestant wins $10,000 and the show ends immediately. Otherwise, that contestant goes to the back of the queue and the next person spins. (Assume the outcome of each spin is independent of the outcome of any other spin.) When the initial queue forms, what's the best spot in the line and why? (Hint: Your initial impression is probably exactly right but the trick is to see, mathematically, why it's right.)

4. (In theory this one is more difficult but I hope it becomes clear why I put it here.) Big Tex plays a lot of hold em poker: Hundreds of hands a day every day for the last several years (at a casino where the dealers are known to be 100% honest). Despite the reputation of some poker players, you know him to be 100% a man of his word. Big Tex wins a huge pot with pocket aces. He turns to you (watching on the rail) and says "Okay, that was hand zero. The next hand I'm dealt will be hand 1, then hand 2, etc. Now, you know the odds of getting pocket aces on a hand." [N.B. 4/52 x 3/51 = 1/13 x 1/17 = 1/221.] "I want you to write down on this post-it note the NUMBER of the hand on which I get my NEXT pocket aces. Fold it up and I won't open it until that hand. If you're right I'll give you $10,000." What hand number should you write and why?

Posted by Matt Bruce at 11:49 AM

February 16, 2007

False Epiphany of the Day

Wow. I'd been aware of "the long tail" as business jargon but
this post severely deflated my interest the main purveyor of that piece of jargon.

How best to simplify it's findings? Let's see...

If you choose a bunch of characters at random (one of which is a space) then the length of intervals between spaces will follow a power law. WHO KNEW?!?

(Hint: No matter what characters your monkey just typed, you have exponential waiting time until the next time the monkey hits the space bar.)

Posted by Matt Bruce at 07:25 PM

February 12, 2007

This Game Is So Wrong

I don't mean morally wrong: I have no objections to pretending to wipe out the human race with a viral pandemic. But this game has inaccuracies in multiple disciplines:

GEOGRAPHY - Western Europe has no airports? (I give a free pass to the low population levels and "one airport per continent" statuses because those are obvious simplifications.)

GEOPOLITICS - Countries wouldn't sealed off their borders until after 100,000 people [in this game, 1/6 of the human population] had already died over two months?

BIOLOGY - If thousands of people contract a virus, and several weeks later that virus mutates into something else, the virus's transformation would instantly affect the instances those people previously contracted?

COMPUTER INTERFACE DESIGN - The virus definition screen and the world map can't possibly be on the same screen at once?

It's a most annoying game, about which the most annoying thing of all is how much time I spent on it yesterday. (The only way I can "win" is to reduce the virus to zero lethality before everyone shuts down their transportation, then bide my time until it somehow migrates to Western Europe, at which point you drop the hammer on fatal symptoms. You have to get to Western Europe before it occurs to them to seal that border. This ends the world by about Day 90 but doesn't get me anywhere near the high scores.)

Posted by Matt Bruce at 08:23 PM

February 06, 2007

Hey, I Know That Guy!

The alphabetically last member of the U.S. Sudoku team, that is.

I don't think Jason Z. and Mike Develin have ever met each other, which is funny given their common interests and how many mutual friends they have. I'm jealous of both for playing particular mind games well enough to represent our country.

Speaking of the latter (by the way, doesn't Rex Grossman sort of look like him from the neck up?), his January 25 quick hit sounds like exactly the type of practical advice my father-in-law the engineer/inventor would give. Meanwhile, he's exactly right about his February 5 rambling.

I'm lucky to be a relatively healthy person so that I have the luxury of taking sick days on a somewhat lower threshold of actual sickness than most people have (yet still without using many). I can't stand it when sufficiently sick people are out in public (especially on airplanes!). But then I'm evolving into one of those people who thinks that people don't use Purel nearly frequently enough.

(I'm still a clutter-messy person, though I'd like to claim not a germ-messy person. But enough of this: How on EARTH did I get here all the way from congratulating Jason Z.?!)

Posted by Matt Bruce at 01:25 PM

February 04, 2007

The Princes of Florence

This game seems to combine the best elements of Funkenschlag with the best elements of Puerto Rico. At the moment I'm head-over-heels smitten with Trans Europa, which means that at the moment Rio games seem gratuitously complicated to me; that said, this one is worthwhile.

Once you know how to play this, it seems really straightforward, despite how fiendishly complicated it seems when encountering the rules cold. OVERSIMPLIFICATION of the rules (with some finer points left out):

Your goal is to get prestige points. The best way to get prestige points is for someone in your court to complete a work. (You also get prestige points from buildings, redundant landforms, and satisfying criteria on Prestige cards, though these are ancillary to the central thrust of the game.)

There are seven rounds; each round has an auction phase and an action phase.

Auction: you acquire a landform, a Builder, a Jester, a recruiter (reuse someone else's already-played artisan/scholar), or a Prestige card.

Action: you do up to two things from among completing a work, adding an artisan/scholar to your court, building something, adding a Freedom (makes works more valuable, see below), or getting a Bonus card that (when played with a work) might make that work more valuable.

Each artisan/scholar is associated with a particular building, a particular land form, and a particular freedom. When you complete a work with that artisan (by playing that card from your hand -- each person starts with three but you can only use any given artisan once), the value of that work depends on the answers to these questions:

1. Have you build that building?

2. Do you have that freedom?

3. Do you have that landform?

4. How many Jesters (if any) do you have [Jesters improve artisan morale: Jesters need to fetch a high price at auction to prevent a degenerate all-Jester strategy]?

5. How many artisans do you have (counting both the ones in your hand and the ones you've played)?

Based on the above, each work has a Work Value that you can claim in either Prestige Points or money. Prestige Points are how you win but if you go broke you'll end up s.o.l.

My first and only time playing, from memory:

1. Park; built a Workshop and completed a work (took the Prestige). I know now how shortsighted and pointless that was but at this point none of us really knew what we were doing.

2. Lake; took a freedom and another artisan.

3. Prestige card; another freedom and completed a work (took the money)

4. Builder; built a University and an Opera House

5. Jester; drew an artisan and completed a work

6. Another Park; took a freedom and completed a work

7. Another Lake; took a bonus card (very useful one as it turned out) and completed a work

Despite thinking I was losing badly I ended up winning.

Posted by Matt Bruce at 10:58 PM

January 29, 2007

We've Played So Much Trans Europa This Month

Also, we were in L.A. taking care of our niece and nephew as a birthday present to their mom (while their dad took their mom on vacation).

Our six-and-a-half year old nephew played two rounds of "the train game," one as Julia's teammate and then one holding his own cards (which he never did show anyone) and choosing moves completely for himself. He successfully connected some green (ex-Soviet) city with Budapest(?), got his tracks networked, and went to Bilbao all by himself. (We didn't announce any scoring but he'd have done especially well had his selfish Madrid-holding uncle actually helped him on the westward drive.)

The point is this is a very easy game for even a six-and-a-half year old to understand (and play a round), yet still engaging enough not to bore my science grad student and Ph.D. friends.

Oh, and our 10-year-old niece won both of the first two rounds she played, and had the patience to play one particular overarching game all the way to the rulesheet-specified end.

(The Trans Europa/America points system is similar to Hearts in that you're trying to avoid being charged points, indeed to have the fewest whenever someone hits a specified milestone.)

Posted by Matt Bruce at 01:16 PM

January 09, 2007

Trans Africa

Pro: Brazzaville and Kinshasa just a double-line track away from each other.

Con: The southern group of cities might be too bunched together. (Jo'burg, Capetown, Durban, [...]?) Mabe just give South Africa (and its surroundings) the Florida (non-Jacksonville) treatment and make that group be Luanda, Lusaka, Harare, Maputo, Dodoma, Gaborone?

Cecil Rhodes would surely disapprove.

Anyhow, we now own Trans Europa, and over the weekend I made a homemade map identical to the Trans America layout. As soon as I get around to finding playing cards w/five different color backs, we can replicate Trans America using tracing paper on that homemade board.

(And really once you have the concept down and an free easy source of printable triangular (NOT hex!) graph paper, you can design a map of anywhere you want.)

Posted by Matt Bruce at 11:38 AM

December 28, 2006

The Ultimatum Game

Have you read about this?

Two anonymous parties interact only once. One is told to split an amount of money; the other then either accepts or rejects that split. If the second player accepts the split then players divvy up that money in the specified ratio. If the second player rejects then both players get nothing.

I just took a sex of your brain test (apparently I'm quite masculine, including 11 out of 12 on a surprisingly difficult spatial test) that had the ultimatum game as part of it.

They asked how you'd propose to divide 50 pounds if you were the first player in the ultimatum game. I made a snap gut decision (incidentally, the dollar is weaker than I thought it was but not strikingly so).

So yeah: 50 pounds. Divide it up, knowing that an anonymous person would get to accept the offer (you get what you allocated to yourself, other person gets the rest) or reject the offer (you both get nothing). Make your call before you read on.

I demanded 35 pounds (thus offering 15 pounds). I wince at how much money I seemed to be "leaving on the table" but did feel somewhat risk-averse about whether an anonymous person would just hose me out of spite.

Posted by Matt Bruce at 08:11 PM

December 25, 2006

Two Games

Play within your browser. Requires Java but does not require any emulation.

Montezuma's Revenge (this site has another, vastly inferior, MR instance that unfortunately has a much higher Google PageRank).

JezzBall

Posted by Matt Bruce at 11:27 AM

December 13, 2006

The Year 2100 Is Not A Leap Year

Years divisible by 100 (but not by 400) are not Leap Years. Since 2000 is divisible by 400, it came off as an application of the Leap Year rule instead of an exception an exception.

This thwarts what I'd previously thought of as a nifty calendar fact: At least between 1901 and 2099 there's a repeating 28-year cycle of day to date.

Questions for astute readers (based on a trivia question I wrote that was returned to me, probably correctly):

1. Why is it a 28-year cycle, rather than 27 or 29 or 14 or some other number?

2. In particular, how many days over a period of exactly 28 years (some time between 1901 and 2099) will it be Friday the 13th?

The answers to both are fairly simple.

Posted by Matt Bruce at 09:36 PM

November 30, 2006

LOL Dimeaments

If you were at the deathbed of a woman you secretly loved all your life but whom you never had the courage to tell and then she tells you that she secretly loved you all these years, what a great opportunity that would be to practice your "poker face."
--Dan Liebert, Verbal Cartoonist

At the bank today I changed a twenty into two rolls of dimes and ten ones. No questions asked, though I can't immediately think of any legitimate, non-business use for two rolls of dimes. Even the illegitimate uses just scream out for better herbs and/or higher stakes.

Wikipedia used to have a donkament page; it now redirects to a list of poker jargon that doesn't even include the term. (The phrase "LOL donkaments" and variants used to be in vogue on certain 2+2 message boards. Right when I stopped reading those the meme was being run into the ground.)

Anyhow, I claim that even for home play ring games are better than tournaments. Your mileage may vary, but the only real hassle with a ring game is making change, while tournaments involve getting everyone to show up (sort of) on time, keeping track of when blinds should go up, reaching a consensus on whether to allow rebuys and when, prize structure, etc. Then the whole thing comes down to five people each having about ten times the big blind worth of chips, pushing if you're the first in with a decent hand, and hoping for the best.

(Note to the wife: Yes, that last sentence sounds like a claim that poker is about luck. Really it's that a particular structure of poker has decisive luck.)

One time I drove eight miles to play cards with friends. After I got there we spent 45 minues watching the Colts and Patriots (Thursday season opener) and waiting for critical mass. Very first hand was set over set. I calmly walked right out the door (they caught up with me to collect the buy-in) and went over to the office to write trivia questions. In a rink game that'd just be a rebuy (admittedly in a tournament with rebuys that would also just be a rebuy).

(I've often driven 35 miles to play cards with friends near Stanford. One of two things is true: Either that same hand would have given me a one-and-done after a 35 mile drive, or the distance I drove would have affected how I played a hand.)

I know someone who strongly prefers tournaments to ring games because he believes he's a much better tournament player than ring game player. Such people do exist (Phil H., for one) but I'm not convinced, hand-by-hand, that ring play is all that different from how you'd play the early stages of a rebuy tournament. That said, apparently (before the big U.S. crackdown on on-line poker), the tournaments at the leading on-line poker site were much softer than the cash tables.

Posted by Matt Bruce at 03:21 PM

November 22, 2006

Brain-Dead Story Problem of the Day

From one end of I-40 to the other troopers across eight states will be out in record numbers to keep the highway and drivers safe. [...] Under the program state troopers will be positioned every ten miles along I-40.
--Troops out in record numbers along I-40

Length: 2554 mi
Miles km state
155 249 California
359 578 Arizona
373 600 New Mexico
177 285 Texas
331 533 Oklahoma
284 457 Arkansas
455 733 Tennessee
420 675 North Carolina
2,554 4,110 Total
--Interstate 40 on Wikipedia

"The Highway Patrol said they couldn't say how many troopers would be on the roads [...]" --ibid

CAN YOU?

I did learn something from this exercise: The easternmost part of I-40 is so circuitous that the shortest distance from Barstow, CA, to Wilmington, NC, is actually 30 miles shorter than the length of I-40. It dips through South Carolina.

Posted by Matt Bruce at 11:55 PM

November 06, 2006

An Anecdote About Prodigy-Based Movies

Thinking of quasi-scholastic pursuits turned into movies reminded me: (I've probably told this a million times but to me it never gets old.)

1992 High School Chess Championship (Lexington, KY). [I played in the Open division despite being eligible for the Under 1600. They actually had trophies just for people like me, and I took home a trophy for having one of the N best results (4.5 of 7: D L W D W D W) among under-1600ers who "played up" into the Open.]

One of the championship contenders was Josh Waitzkin, whose dad had just written the book about him that would later become the movie. After Waitzkin lost badly in some climactic game, a joke circulated around the floor that the sequel would be called STILL Searching for Bobby Fischer.

Posted by Matt Bruce at 11:20 AM

November 02, 2006

Child's Games: A Strategy Guide

The rock-paper-scissors reference reminded me: I've been sitting on this one since our visit to the niece and nephew ten days ago.

Clue Mysteries (obviously not to be confused with the original Clue): My first strategic act was a clear mistake. Visiting the police inspector is a waste of time. Once you've visited enough people to unqiuely identify a suspect (if everyone you talked to were truthful), the probability that they're all telling the truth is way more than the probability that you'd beat your N opponents in a race.

Franklin Goes to School: When you answer a question correctly (or not), one square is at stake. Compare to the spinner variance and the card drawing variance. So much luck is involved that this is a flimsy framework within which to read elementary school questions off a card to kids who don't think of themselves as being quizzed.

Pet Detectives (card game): This is a great simpler case of Canadian fish. The best strategy just seems to be a good memory. If I knew more about what the different outcome cards did, I could recommend going for either the "cheaper" pets or the "costlier" pets.

Mario Party: The key to victory is stealing other players' stars, by an overwhelming margin. Coins are just the intermediate step of being able to afford to ride a vicious dog or whatever else it takes to steal those stars.

One somewhat strategically interesting game-within-a-game is "Same Is Lame." I assume table talk is discouraged, but the more obvious you can make it that you're always going to press the same button, the better you'll do. (If everyone knows "Matt is always pressing B" then nobody gains anything from also selecting B. To be sure, this would result in a standoff if four players settled on unique buttons, but hey.)

Posted by Matt Bruce at 03:04 PM

October 19, 2006

A Disappointing Meta-Disappointment

I was all set actually to solve the "Sudorku" in this past Sunday's Foxtrot, except that for some reason I was dead certain that 252/36 wasn't an integer for spurious reasons relating to the fact that 2 * 6 = 12. Then I actually bothered to type "=252/36" into the cell of a spreadsheet.

Apparently I'm the worst number theorist ever.

Posted by Matt Bruce at 03:35 PM

I missed the specific brainteaser but worked out the general case a day later

(But now I think the general case is actually easier to solve aside from the fact that it's so much more more confusing to explain. Anyhow, we had dinner Tuesday night with a family that has twins in eighth grade, one of whom stumped us. You've probably seen the specific version somewhere.)

N soldiers (but only one feeble lantern) are traveling at night when they reach a mountain bridge that all N of them (N > 2) need to get across. From past experience they happen to know with complete certainty that:

1. Each soldier can cross the bridge alone in a specific amount of time (either direction, always the same time interval). Without losing any generality you can sort those times from fast to slow and represent them as x[0], x[1], ..., x[n-1], where x[i] <= x[i+1].

2. If two soldiers cross the bridge together, they'll always take exactly as long as the slower one would have taken crossing alone.

3. The bridge cannot hold more than two people; it would fall apart and kill all three (or more).

4. Nobody can so much as stand on the bridge without being in immediate proximity of their light source (that one feeble lantern, which as you might guess will keep going back and forth) or else that person will misstep in the dark (or, if standing, lose their balance) and fall to a grisly death.

5. There is no hidden way to conjure up more light sources, circumvent the bridge, or anything else that would make this a lateral thinking puzzle rather than a math problem.

6. Luckily for them, the instant one or two people finish crossing the bridge, anyone making the opposite crossing can grab the light and immediately be recrossing with no time lost in the transfer.

Now, give me both the strategy that always minimizes their time to cross, and the formula that expresses (in terms of x[0], x[1], ..., x[n-1]) that time. It can be a conditional formula (it very much is conditional) but you have to describe the conditions precisely.

Some time soon I'll write up my answer (I'm confident I'm right; whether I succeed at a rigorous proof is to be seen) and put it in the extended entry.

UPDATE: Inelegant solution posted (I idly wonder how many points it would get on a Putnam problem - 6 of 10?). Oh, and if you just want a brainteaser that's tricky without being confusing, then here you go:

Same facts as above, but it happens to be four soldiers. A takes 1 minute, B takes 2 minutes, C takes 5 minutes, D takes 10 minutes.

Base cases:
N=0, time = 0 (no crossing is necessary)
N=1, time = x[0] (one crossing)
N=2, time = x[1] (one crossing)

N>2: One crossing is not enough, in fact the lantern now has go back (and be carried by at least one person), so there's a maximum net gain of one person for each pair of crossings until the final step. So for N>2, we need at least 2(N-2)+1 crossings [also known as "2N - 3"].

A reasonable plan for N>2 is for the fastest one to hold the lantern all the time and escort the others one by one. That strategy has time x[n-1] + ... + x[1] + (N-2)*x[0], where the last term is the sum of all the return trips and the other terms are the individual forward trips.

I believe it's easy to prove that any successful maneuver with more than 2N-3 crossings has some easily eliminated redundancies, though I'll "leave that as an exercise to the reader," with mild regret that I didn't find an elegant way to nail that part of it.

Anyhow, when N=3 the best you can do is x[2] + x[1] + x[0]; any possible set of crossings is exactly that fast, or slower. So we have well-known solutions for N=2 and N=3.

Now what if for a given value of N soldiers, we already knew the general solution for N-2 soldiers?

There are two ways to simplify the N problem to the N-2 problem by getting the two slowest soldiers across the bridge first:

Either 0 escorts (n-1) and (n-2) one by one -- taking time 2*x[0] + x[n-1] + x[n-2].

Or, 0 escorts 1; n-1 and n-2 cross together; 1 takes the lantern back -- taking time x[0] + 2*x[1] + x[n-1]. Whichever of those two is faster depends on whether the average of x[0] and x[n-2] is greater than x[1].

(Example: The canonical form of the brainteaser is four soldiers, where x = [1,2,5,10]. They can do it in 17 minutes, not 19, because 2 + 2 < 1 + 5.)

The proof that "move the two slowest guys first to simplify the problem" is efficient involves these particular points:
1. To pull this crossing off most efficiently, the slowest two guys only cross the bridge once each. Any other way of doing it could be rearranged more efficiently by having them switch roles with people who cross just once.

2. Thus there's no way for the existence of the two slowest guys to make the subset of the other N-2 guys crossing go any quicker.

So the strategy:
Until there fewer than four guys left, get the slowest two guys at a time across. In each case, have the fastest guy escort them both if he's fast enough to make up for the second-slowest guy, otherwise have the fastest guy escort the second-fastest guy (and that guy bring back the lantern) otherwise.

The formula:
If N is even,
min(2*x[0] + x[n-1] + x[n-2], x[0] + 2*x[1] + x[n-1]) + min(2*x[0] + x[n-3] + x[n-4], x[0] + 2*x[1] + x[n-3]) + ... + x[1]

If N is odd,
min(2*x[0] + x[n-1] + x[n-2], x[0] + 2*x[1] + x[n-1]) + min(2*x[0] + x[n-3] + x[n-4], x[0] + 2*x[1] + x[n-3]) + ... + x[2] + x[1] + x[0]

Posted by Matt Bruce at 10:24 AM

October 13, 2006

Ambiguity Aversion as a Built-In Swindle Protector

Read about the Ellsburg Paradox here (first post of four). The basic scenario: I have an empty urn and some red marbles, white marbles, and black marbles. First, I put a red marble in an urn. Second, I flip a fair coin; if it comes up heads I put a white marble in the urn, if it comes up tails I put a black marble in the urn. Third, I flip that fair coin again, same consequences. Finally, I give you a choice among these four games:

A1. Draw a marble from the urn. If it's red you get +2, else you get -1.
A2. Draw a marble from the urn. If it's black you get +2, else you get -1.

B1. Draw a marble from the urn. If it's red or white you get +1, else you get -2.
B2. Draw a marble from the urn. If it's black or white you get +1, else you get -2.

If you're astute at probability then you should notice that all four of these potential games have an expected payoff of 0, and moreover that A1 and A2 are functionally equivalent just as B1 and B2 are functionally equivalent. The "paradox" is that despite all that, most people polled will strongly prefer A1 over A2, and B2 over B1. (In both cases simplifying the problem to "red vs. not red" so that the outcome of the coin flips is irrelevant.)

Now, if you know what these probabilities are, and you're confident that your calculations are correct, of course you should have no preference. I assume that the people who do have a preference have this gut feeling that there's a trick involved, and so are gravitating to the simpler scenarios to minimize the chance of being fooled somehow.

Of course, some function of your risk aversion may cause you to prefer the A1/A2 odds over the B1/B2 odds (or vice verse).

Posted by Matt Bruce at 08:17 PM

October 04, 2006

Poker Ban Thoughts (By Request)

If you live in a U.S. state other than Nevada then depending on your jurisdiction on-line poker for money was probably already illegal. That said, I exceeded the speed limit over various stretches of 880 and 580 on my way to work, this morning and every morning.

A bill that specifically forbids using particular monetary sources to fund on-line gambling is a lot like (there are so many ways to mangle this metaphor, especially by holding onto it too long)... imagine that the technology existed physically to prevent cars from exceeding the speed limit of the road they were on. Requiring this technology would be some kind of dystopia.

There's a hardcore strain of political philosophy which insists that you should either enforce a law rigorously or repeal it. I'd be strongly in favor of repealing either speed limits or gambling bans but I'm not holding my breath for either one. In lieu of that, everyone should remember that there are only so many law enforcement resources available, and using them to go after Internet gamblers is farcical (unless we already won the Global War on Terror and I hadn't noticed).

As for me, it's been almost a month since the night that I uninstalled Party software at 5 a.m. I haven't looked back.

Posted by Matt Bruce at 11:14 AM

September 29, 2006

Funniest Phrase Ever

Courtesy of someone who sent e-mail to Bill Simmons:
Little League World Series of Poker

Posted by Matt Bruce at 01:31 PM

August 29, 2006

RuSTLING CARRIE(D) BEAtINGS

The card player in me can only dream of ever getting hands as sick as the tiles I got just now.

Posted by Matt Bruce at 12:28 AM

August 15, 2006

This Is Why A Formal Ban on On-Line Poker Will Pass Eventually

It would be a horrible law enacted for all the wrong reasons, but still:

"I just lost $600. My mom is going to kill me."
--