Archive for the 'Random' Category

Where did I go?

It’s currently half past midnight and I can’t sleep. I haven’t posted to this blog in quite a while. I’ve been caught up with work and so much else lately that it seems impossible to get around to all the things I want to do in a day.

I did start another blog at snowxna.wordpress.com but I haven’t posted much there either lately. I think I’m going to try and merge the two eventually as I don’t really see the point in having both anymore.

I originally started blogging because I wanted to become a better writer and learn how to better express topics about programming to other people. This has been bugging me a lot lately at work so I think it’s maybe time I got back around to blogging.

I started the other blog because I thought maybe I should keep programming topics separate from others. That’s leaves me with very little to write about though as I do spend most of time programming. All that’s really left when you take that away is video games and music. I don’t see why I can’t sprinkle a little bit of that in around here.

The Game Show Host Problem, aka The Monty Hall Problem

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.

Jon Skeet

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.

http://www.yoda.arachsys.com/csharp/

It Works

Ok, so the old laptop I’m working with isn’t ideal, but it does work and does run Xna Game Studio. I’ll probably only being doing 2D stuff on it. I did look into getting a bit more ram for it though as it only has 512 right now and most of that is used up just by the OS and the minimal apps running in the background.

Working with Older Hardware

It looks like I’m going to be using an older laptop for some development when I’m riding on my train everyday. Only 512 MB or ram. Yikes.

Installing Visual Studio Express took like an hour and I’m installing Xna Game Studio right now to see if this is doable. This should be interesting.