I had a funny idea to describe HTTP Status Codes as telephone conversations so I thought I’d write it in a blog post.
- She’s not here right now but she’ll be back later.
- She doesn’t live here anymore, she now lives somewhere else.
- He hesn’t changed a bit.
- I can’t allow you to speak to him.
- $1.99 for the first minute…
- No one by that name lives here.
- It’s not you, it’s me.
- I can’t deal with this anymore.
Google Alerts is a service that allows you to be notified whenever a new search result is found by Google. I currently have it set up to alert me whenever a new result is found for “Zachary Snow”. Turns out I’m not the only Zachary Snow in the world, although I am the #1 (as of this writing) according to Google (see here). That is why I am awesome.
NOTE: This is a repost from my old blog.
So, me and my girlfriend went to see 21 last night and in the movie they make mention of The Game Show Host problem, aka The Monty Hall Problem.
The jist of the problem is this: You are on a game show. The host presents you with 3 doors, 1 of which has a car behind it, the other 2 have goats. The game show host tells you to pick a door. You do so, at which point the game show host opens up a door to show you a goat behind the door and then asks you if you would like to switch your choice to the other closed door. The question is then, should you switch your choice?
The correct answer is yes. More on why after the jump.
I won’t go too far into detail about why you should switch your answer, I’ll leave that to Wikipedia. Some things to note that may not be obvious: 1) The game show host will always open a door that is not the correct door 2) He will never open your door. These are the keys to this problem. By switching, you will win a prize 2/3 of the time as opposed to only winning 1/3 of the time if you do not.
Many people will argue that once the game show host opens the door with the goat behind it that there is now a 50% chance of you picking the right door by either staying with your door or switching. This is simply not true. Each door still only has 33.3% chance of being the door with the car behind it. The thing is though, once you pick your door, the game show host then eliminates a door based on 2 criteria: 1) The door is not the one with the prize behind it 2) The door is not yours. Due to these criteria, the odds of the correct door do not change for the door that you have picked, but rather change for the doors that you have not picked. The 2 doors not chosen by you then in a sense combine into one option and they together have a probability of 66.7%.
The Wikipedia article explains in much more mathematical detail why it is better to switch. I suggest you look there if I have done nothing but confuse you. This is simple strategy and probability. Knowing exactly how the game works can make you alot better at it.
I just received my copy of C# In Depth by Jon Skeet. Jon has a great deal of knowledge on C# and if you’ve never ran into his blog I suggest you check it out here. I’ll post later more about the book but I’m pretty sure it’s a good one.