Thursday, August 30, 2007

More on Bayes Rule, and Friday Musings

On Thursday I played some solid poker in just two or three tournaments on the night, leading me to believe that it might actually be possible for me to regain my form from before my vacation after just a few days to shake off the rust. I don't have any huge scores to show for it, due mainly to a gross suckout for almost my entire large stack in the 5050 about two-thirds of the way through the field, but at least I did this again:



I mean I ran through Thursday night's token frenzy like a lawn cutter, mowing down everyone in my path and slowly increasing my stack until I overtook the chip lead with about 25 players remaining (82 runners, 15 would get $75 tier II tokens). From there I only increased my lead, knocking out 14 of the 82 players in the event overall on my way to sittong on double even the 2nd-place-guy's stack by the time the tokens were won. It felt great to make my first big run in a tournament of the week, and hopefully that is something I can build on heading into the weekend and then continuing into the future. I was on an awesome jag there -- for a good 3 or 4 weeks, I was ending up positive almost every single night, just by doing my thing, playing some tournaments and some cash games when the desire piqued. My roll on full tilt probably quintupled during that time, and now it is down just a bit after a week of a few small scores but nothing real big. I think I ran to 50-somethingth in the 50-50 earlier this week, and I cashed in the 28k a few days back as well, but nothing worth being that happy about. But returning to my winning ways in the frenzy seems a bit like a return to my prior form, so hopefully there is more tournament success to come for me in the near term.

I also had some fun on Thursday evening playing low-limit razz with Al, Heather, Drizz and Aposec72, culminating in me bubbling out of a HORSE sng with that crew in Stud Hi when my (TQ)QQ6Tx (Queens Full on 6th street) lost to aposec's (AA)J2JA (2-outered Aces full on 6th street) for a huge stack when we were basically all tied 4-handed for first at around 3k each. For whatever reason that felt like just about the worst Stud Hi beat in the world, but maybe that's just because I don't tend to play so much stud these days, which is true. Anyways as always playing low-stakes with bloggers was a great time and I enjoyed blowing off some steam with some friends. And congrats to Aposec for putting my chips to good use in winning the $5 sng, and to Maigrey for cashing in second place.

Another thing that made all night on Thursday fun was the world of sports. Not only did college football start up, but my Eagles were on tv in New York playing the Jets, and the hated Giants were also on the tube for my viewing pleasure. Eli Manning actually looked pretty good, pretty poised against those scrubs and tryout guys on defense for the one long drive in which he participated. But the best part about Thursday in sports had to be the Phillies**, who completed a 4-game sweep of the Mets in Philadelphia with a dramatic, come-from-behind 9th inning 11-10 win, typical of most of the Phillies' wins this season given their NL-worst team ERA and overall pitching staff (both the rotation and the bullpen). Just four days earlier, on Sunday morning of this week, the Phils stood a seemingly insurmountable 7 games behind the Mets in the NL East. Now as of Thursday late afternoon, the deficit is just 2 games, and suddenly September is gonna be a crazy one for all the closeted Mets fans in this town. And believe you me, there are tons of 'em. Nobody likes to talk about these days anymore, but make no mistake, in the mid 1980's you couldn't give away a ticket to see the loser Yankees, but this city was all Mets, all the time. My how things change. 10 straight years of playoffs, World Series appearances and multiple championships will do that I guess. But for me, getting to watch the Mets collapse at the hands of my beloved Phillies day after day on television in New York was just about the coolest thing I've seen in baseball in a few years.

**Don't think I don't know that now that I've blogged about them, the Phils are about to embark on another losing streak just like they've done every other time they had just about won over the fans that they could really make a playoff run this year. I just had to write about it anyways, because sweeping the division-leading Mets from 2nd place like this does not happen often for us Phillie fans.

God you guys should hear my daughter talk about Barry Bonds. Now whenever she sees me take a pill in the morning (vitamin, aspirin, etc.), she always asks me if those are like the pills that Barry Bonds took to cheat with (rather than explain "the clear" and "the cream" to a 3 year old, I told her that he took some pills that made him cheat). Then she will go off on a 5-minute tirade about how cheating is wrong, Barry Bonds is a cheater, and the real home run champion is Hank Aaron. And then of course how she should always be like Hank Aaron and never like Barry Bonds because cheaters never win, and winners never cheat. That right there is some sickly cute and entertaining stuff coming from the mouth of a 3-year-old, let me tell you. I should post a video sometime. If only I had the first effing clue about how to do that....

Anyways, one other thing about sports this week...how bad did the Yankees thump the Red Sox this week, huh? Now don't get me wrong, I despise the Yankees as an institution because of the ridiculous buy-everyone strategy that they have followed for the past 10 years or so. But I've been to a bunch of games, the stadium is only a few subway stops from where I live (as opposed to Shea, which is like a 50-minute ride away over subway and then a switch to a commuter train), and I know an old-fashioned beating when I see one. After winning the first game of the series on Tuesday, I was at the game on Wednesday night (I heard you guys treated Hammer Wife nicely at the table in the first hour or two), and let me tell you that Roger Clemens laid the beat-down on the Red Sox lineup for 6 straight innings. Sure, Big Papi hit a ball about 10,000 feet deep into the right field seats in the 6th, but Clemens pitched a no-hitter into the 6th before giving up just the one run on the way to a one-run Yankees victory again on Wednesday. Then on Thursday, Yankees ace pitcher Wang took a no-hitter of his own into the 7th inning before the Sox finally got a base hit on their way to a 5-0 shutout loss and a sweep at the hands of the Yankees.

Now to be sure the Yankees are still 5 games behind the Sox with around a month left in the season, so that is a lot of ground to make up, but the Yankees completely took it to the Red Sox in pretty severe fashion over three games. In fact, I was at the game on Wednesday and I have to say, the Red Sox lineup is pretty much not formidable at all like it used to be. You've got Big Papi who is obviously a dominator, even though he too is having a bit of a down year for him, but otherwise you've got Manny Ramirez who is a great hitter but injured, and then...well...that's it. I mean, 5 of the 9 players in Boston's lineup on Wednesday had averages below .270. That is highly unusual for a team with the best record in all of baseball. With Manny back that gets a little better, but considering there is also a pussy DH on that team, it's a pretty poor stat. Meanwhile the Yankees, who admittedly have pitching problems themselves at the back of their rotation, thre 7 of 9 batters in their lineup with averages of .287 or higher. It's not hard to see what happened this week in the Bronx -- with some decent pitching, this Red Sox team is beyond beatable. The Yankees lineup hit two homers off Schilling by the 5th inning on Thursday, crushed Josh Beckett early on Wednesday, and scored two runs in the 1st inning against Dice-K on Tuesday on their way to a sweep. This does not bode well for the Sox over the next month in my view. I bet these two teams find a way to make it interesting at some point during this month.

OK before I sign off today I did want to take a few minutes to address some of the commenters from yesterday who still insist I am totally wrong with my answer to the Monty Hall problem from the other day. I assure you, switching is the correct answer and it does double your chances of picking the right box. As I mentioned yesterday, there are always people (usually most people) who dispute this result vehemently, because it seems so counter to human logic. But it is in fact correct.

In my attempts to further show the correctness of this answer, I posed a similar problem in the comments to yesterday's post that I want to reproduce here, especially because from past experience I know there are probably a great many of you out there who do not agree or at least understand how this conclusion to switch was arrived at:

Instead of having just 3 boxes to choose from as in my original problem, imagine instead that Monty Hall shows you 100 million boxes, and asks you to choose one at random, with one of them containing a million dollars and each of the rest containing just a dead rat. So you're making what is a 1 in 100 million guess to win the million bucks. Then imagine that Monty Hall proceeds to open up every single other box but one -- say box # 98,765,432 -- and shows you a dead rat in each one. You see, he could do this every time to you, because Monty knows where the million actually is, so he can always open up the other 99,999, 998 boxes that you did not choose, leaving unopened only the one box with the million bucks, and your own box. Surely, I posed in the comments yesterday, you would not stick with the one box that you happened to choose with a 1/100,000,000 chance of being right in that situation, rather than switching to the one other box that Monty left over by opening up every other remaining box but that one. It should be more intuitive when you apply this to large numbers that clearly your box has almost zero chance of being the one with the million dollars, given that in every single instance Monty could always use his knowledge of the actual location of the million dollars to open every other box but one, leaving just the box with the million dollars inside. In actuality, just like in the 3-box example I posed the other day, the odds of your box being the money box are still 1 in 100,000,000, while the odds that the money is in the one other box that Monty has left unopened are 99,999,999 / 100,000,000. It is more or less certain in that scenario that you should switch, and in fact you increase your chances of being right by 99,999,999% if you do in fact switch.

The principles and the math in the above example I think show very well why the solution to the simpler, 3-box problem is to switch every time. Yesterday in the comments it was suggested that the law of large numbers somehow changes the math between the 3 boxes example and the 100 million boxes example, but that is flat-out incorrect as I will show here. In the 100 million boxes example, your chances of having picked the right box are 1 in 100 million, while the chances of the last box Monty left unopened being the money box are 99.999999%. Clearly far, far, far more likely to win the money if you switch. In the 3-box example, using the exact same logic and the exact same math, the odds of your box being the money box remain at 33%, while the odds of the other box being the money box are then 66%. Again, clearly it is still far more likely that you get the money if you switch.

And one other point that I will try to rephrase from yesterday's post with the solutions to the problems in it: you people who believe the answer is 50% either way, you would be correct in either one of the following two scenarios:

1. Once he shows the dead rat in box #3, Monty Hall then puts the other two boxes behind a curtain, and randomly jumbles them such that the money could equally be in box #1 or box #2; or

2. Once he opens up box #3 and shows a dead rat, a new contestant is brought in with no knowledge of the prior scenario and simply asked to choose between two boxes, one of which contains money and the other, a dead rat. Although the odds would still be 66% in actuality at this point that the money is in box #2, that new contestant has no way of knowing how the boxes were picked or even that a third box was ever removed from the pool of choices, and thus for that person, the decision is simply a 50-50 guess given what he or she knows about the decision.

So, your answer of 50-50 would be correct if the boxes were somehow re-randomized before the final decision of whether to stay with box #1 or switch to box #2. But that's not what is being done here. In this case, you have the additional very important information that your box was originally picked from a 1-in-3 chance, leaving a 2-in-3 chance that the money was in either box #2 or box #3, and that probabilty factor still holds true after box #3 has been opened and shown to contain a rat. When you come out with an answer that it is 50-50 in either box in this scenario, you are answering the question as if you are simply being asked out-of-the-blue to choose randomly between two boxes, which I think we all can acknowledge is in fact a 50-50 guess situation. But here, you are being asked to choose not between two random 50-50 chances, but rather a 33% box or a 66% box.

As I said yesterday, I myself took several months to accept the veracity of this solution, and it is a truly difficult concept for anyone with a human brain to get his or head around because it is simply so totally counter-intuitive to everything our brains tell us about the situation. I encourage all of you out there if you are interested to explore the various explanations and assessments of this problem available online and elsewhere. There happens to be a pretty decent treatment of several aspects of the problem on Wiki, and more than that, if you're still not convinced, how about some actual testing of your own? This option should be especially attractive to the sciencey types out there, so take a look at the following links and test this theory yourself, as many times as you see fit before you are willing to start accepting the truth of the value of switching boxes:

Decisionhelper.com Monty Hall Problem Simulator -- I just ran it and stopped when switching had worked 10 times and staying had worked only 4 times.

Cut-the-knot.org simulator -- I also just stopped after switching won me 10 out of 14 trials.

University of South Carolina simulator -- here I stopped when switching had won 9 out of 14 trials. This one might be the most satisfying to the nonbelievers out there because it pauses and allows you to choose whether to switch or not, as opposed to the first two which basically just tell you what would have happened had you switched and had you stayed with your original pick.

I urge anyone still interested in the problem but not totally down with the accuracy of the solution I have presented to go to one of the simulator sites above and perform as many trials as you need to feel comfortable that in fact it clearly wins roughly 2/3 of the time if you switch boxes than if you stay with your original pick. The odds are not 50-50 at that point in the problem as posed, but rather it is literally twice as likely (66% vs 33%) that you pick the winning box if you switch when the option is offered in the problem as presented.

I think that's enough heavy stuff for today. I'll be back on Monday when I plan to spend some time discussing Bayes' rule as it applies to poker. Have a great weekend, and you can look for me at some point in that 9:45pm ET token frenzy that I've been killing recently to the tune of 5 shiny new $75 tokens sitting in my full tilt account. As usual because Friday nights can be tough I'm not sure if I can make Kat's DonkeyMint tonight at 9pm ET on full tilt, but as always that tournament is a $1 rebuy and is consistently a fun time, one that turns into an actual fun tournament after an hour of monkeypushing and donkeychasing everything with at least an out or two. Password as always is "donkarama" so please come out and enjoy yourself in this event that is open to anyone and everyone, as long as you've got at least $1 in your full tilt account (Bayne). Ha ha. Good weekend everyone.

Labels: , , , , , ,

Bayes Theorem -- Problem Solutions

OK we got a great set of responses to the two problems I posed yesterday to help discuss Bayes Theorem, and eventually its application to the game we all know and love. First, let's review the two problems in case you did not read yesterday and/or are too lazy to just scroll down a bit and read yesterday's post (and the corresponding comments) first:

Question #1: You are on the popular 70s game show Let's Make a Deal. Monty Hall is up there and he shows you 3 boxes on the stage, and asks you to pick one at random, explaining that under one box is a million dollars cash, but under the other two is a dead rodent of some kind. You choose Box #1. He then opens up Box #3 and shows you that there is in fact a dead rodent under that box. Now he offers you to either keep Box #1 or switch to Box #2, your choice. What do you do? Do you switch, do you keep your first box, or does it make any difference?

OK the answer to Question #1, as maybe half of the commenters intuited, is that you have to switch boxes here. Normally I would give my standard explanation that I have repeated many times to friends and family of mine, but I really like the way that Goat introduced it in his first comment to yesterday's post. So for starters I am just going to repeat what he said here:

"Always switch. I'm betting the comments I haven't read have already explained why, but the basic deal is when you pick box #1, there is an approx. 33% shot at a million bucks.

So you're holding 33%. The 'field' is holding 66%. When Monty lifts box #3 to show the dead rat, the 'field' is narrowed to box #2. Which still holds 66% equity. The 'field's' equity has not shrunk with your new information. You just happen to know which of the two boxes now holds all of the 66%.
"

In a nutshell, this is the reason why you should always switch boxes in this scenario, and why as a few of the commenters correctly pointed out, you literally double your chances of winning the million if you switch. Because at the time you chose box #1, you had a 33% chance of being right. We all can agree on that. Random pick of 1 out of 3 items. And that means that the odds that the money is in (either box #2 or box #3) = 66%. Now when box #3 is taken out of the equation, hopefully you can see that, since we know that the probability of the money being in (either box #2 or box #3) = 66%, now we know that the probability of the money being in (box #3) = 66%. Which makes sense, since we all know that we picked a random 1 out of 3 chance to get the money correct when the game began.

Let me just address quickly here those of you who make the very, very common argument that this is incorrect because obviously we have a 50-50 chance of having the money box since we have chosen one box out of two boxes total, or 1/2 = 50%. This would be the right answer if, instead of opening what he knew to be a dead rat box, Monty Hall had instead opened up a dead rat box, and then randomly spun box #1 and box #2 such that it was now an independent 50% chance that the money was behind either box #1 or box #2. But that is not the case here. In the example posed, we already had the existing probability of 33% chance of our box #1 being the box with the money, and that fact never changes. Again, if Monty eliminated box #3, and then followed up by hiding the other remaining two boxes and randomly reassigning the money to one of those two boxes, then of course you would be right, we are 50-50 to have the correct box with box #1. But here, we hold a 33% chance of being right, leaving 66% to the other two boxes, and when Monty eliminates one of those other two boxes (the "field", as Goat helpfully defines it in his comment above) without re-randomizing the remaining two boxes, then our box #1 retains its 33% chance, and box #2 doubles to the remaining 66% chance of being the one with the million inside.

This solution has proven over time to be a very, very difficult thing to explain, so I probably did not do a good enough job here for most of you, and I'm sorry about that. Despite having had this conversation with maybe 100 people in my day, I've never yet been able to devise the explanation that convinces everyone or even mostly everyone in any case. But rest assured, this explanation is the correct one. The reason I used this problem is that it is one of the best possible examples to show how the human brain tends to misapply what is essentially the concept underlying Bayes Theorem in applying new changes to probability when there is already an existing underlying probability assumption in place. And that fact in my opinion tends to spill right over onto the poker table as well with many people I run into on a nightly basis on the virtual felt.

Now on to Question #2 from yesterday:

Question #2 (this one comes directly from The Mathematics of Poker): Suppose doctors have a screening process for, say, Lupus, and that if a person is screened who actually has Lupus, the screening process will return a positive result for Lupus 80% of the time. Assume also that if a person who does not have Lupus is screened, the test will return a (false) positive result for Lupus 10% of the time. Lastly, assume that we know that 5% of the total population on average actually has Lupus.

A person is selected at random from the population at large and screened, and the test returns a positive result for Lupus. What is the likelihood that this person, who just tested positive for Lupus, actually has Lupus?

I was impressed with how many of the commenters seemed to get this one right on, which is great. I have read about this in some other studies, and I was really hoping that some of our doctor bloggers would have weighed in with their own thoughts, because in reality something like more than 75% of doctors gave answers or estimations to this very problem that were at a good 40-50 percentage points away from the right answer. The right answer, as a number of the commenters figured, is that even having received a positive test result, the chances that this randomly-selected patient does in fact have Lupus are 29.5%. This can be intuited very easily actually if you just pick an actual sample size for the total population, and work it out (something many of the commenters did):

So, assume the world has 1000 people in it. 50 of them will actually have Lupus (since 5% of the population on average has it). Of the 50 Lupus people, 40 of them will test positive given the 80% true positive rate that the test reports. Of the other 950 people who do not in fact have Lupus, 95 of them will test positive given the 10% false positive rate that the test reports. So, this means that a total of 135 people out of our 1000 population will test positive for Lupus under this screening process -- 40 of whom actually have Lupus, and 95 of whom actually do not. So, given the fact that someone is among the 135 people who test positive for Lupus, the odds are actually 40/135 that they actually have Lupus, and 95/135 that they do not. This equates to a 29.4% chance that the guy who tests positive actually is positive for Lupus.

So think about that again -- we have a test with an 80% effectiveness and only a low 10% false positive rate. That's actually pretty good. But in stark contrast to the analysis in some of the comments (Goat goat goat), the most relevant figure in this problem from a mathematical perspective is the fact that only 5% of the underlying population actually has Lupus, the relative rareness of which drags down the 80% effectiveness rate of the screening process to mean that even one positive test result still makes it only 29.6% likely that the subject actually has Lupus. Funny enough as I mentioned earlier, hundreds of doctors were asked this question, and I think more than 75% estimated the chances of the subject actually having Lupus to be somewhere between 70 and 80%. I myself originally estimated a higher number before reading about the simplicity of the solution that produces the 29.6% outcome, as did most of the people I have asked this question to myself over the past couple of days.

As I alluded to above, the results of both of the above two problems go to show how much the human mind is hard-wired to underweight the relative importance of existing, known probabilities and instead to put more importance than it should on later changes to that probability. Thus, even though there was already a 1/3 chance that your box was the money box in problem #1, the human mind by its intuitive nature tends to be more willing than it should be to believe that that probability is much higher than it actually is once there are now only two boxes left in the equation. Similarly, in problem #2, the inclination of most people is to significantly overweight the 80% effectiveness of the test, and to significantly underweight the already-given probability of 5% of the total population having the condition to begin with. Bayes Theorem and the concepts underlying it help us to understand and identify these situations where people commonly make faulty assumptions and faulty estimates -- sometimes arriving at the completely wrong result, such as the doctor who assumes that his positive-testing patient is 75% likely to have Lupus when in reality he is actually less than 30% to have the condition. These errors are commonly made at the poker table as well, and tomorrow I plan to discuss some of those situations where Bayes' rule can be used to help properly make such calculations.

Labels: ,

Wednesday, August 29, 2007

More Blogger News, and Bayes Theorem

Well I am pleased as punch today to have some more news of a biggest-ever tournament cash by one of our very own. The amazing thing is it is someone who I've already posted about a biggest-ever cash recently right here on the blog. But on Tuesday afternoon / evening, it happened again. This blogger stayed home from work after a redeye flight back from a Vegas trip of all things, played in the $165 buyin 32k guaranteed nlh tournament at 3pm ET on full tilt, and ended up losing a race to bust in third place. For over $5300. Cold. Hard. Cash. Who is this blogger dominator, you ask? Why, it is LJ. Again. And she's already got a post up about her latest run. That is two huge tournament scores for LJ within days, and three big ones in the past few weeks. How far will her tournament prowess extend one day? We'll all have to watch and see. Now go congratulate LJ, and if you can figure out what her new-found secret is, somebody please tell me.

So today I wanted to chat briefly about Bayes Theorem. There are actually complex mathematical formulas involved in this thing, which I accept as true without taking the effort to go through the detailed mathematics used in various conditional probability equations. But I do understand the effect of Bayes Theorem, including its tremendous applicability to the poker world, and to me it remains one of the most interesting, and truly difficult-to-grasp, theorems out there. And yes I know that "theorems" is probably not a word. See, I know it's not right, but I still ain't changing it. Deal with it.

So to introduce my discussion on Bayes Theorem this week, I'm going to start today with a couple of problems, and I would like as many of you as feel comfortable to provide your estimates or answers to the two questions I pose below in the comments to this post. Then tomorrow I will do my best to explain conceptually how I like to use the concept involved in Bayes Theorem to consider the two solutions.

Question #1: You are on the popular 70s game show Let's Make a Deal. Monty Hall is up there and he shows you 3 boxes on the stage, and asks you to pick one at random, explaining that under one box is a million dollars cash, but under the other two is a dead rodent of some kind. You choose Box #1. He then opens up Box #3 and shows you that there is in fact a dead rodent under that box. Now he offers you to either keep Box #1 or switch to Box #2, your choice. What do you do? Do you switch, do you keep your first box, or does it make any difference?

Question #2 (this one comes directly from The Mathematics of Poker): Suppose doctors have a screening process for, say, Lupus, and that if a person is screened who actually has Lupus, the screening process will return a positive result for Lupus 80% of the time. Assume also that if a person who does not have Lupus is screened, the test will return a (false) positive result for Lupus 10% of the time. Lastly, assume that we know that 5% of the total population on average actually has Lupus.

A person is selected at random from the population at large and screened, and the test returns a positive result for Lupus. What is the likelihood that this person, who just tested positive for Lupus, actually has Lupus?

Let me know your answers (either of these questions may be just estimates), and I look forward to discussing these two problems in more detail on Thursday. Then I will write some as well about how Bayes Theorem applies to poker and the decisions that you are faced with at the table.

I will try to register for the Mookie tonight at 10pm ET (password is "vegas1" as always) to chase my third consecutive cash in this event, but I will be at the coveted Yankees - Red Sox game this evening so I will probably be late to my one elusive blonkament that I can never win. Free blinds for everyone!

Labels: , ,