Jump to content
The Dark Mod Forums

For Nerds Only - How To Calculate Odds


Komag

Recommended Posts

You can assume that he picks randomly among the doors he knows do not contain the prize.

I've never seen that assumption made explicit though, although it certainly is a reasonable one under the circumstances.

 

Here's the proof I promised earlier. I didn't take notes at the time the lecturer was explaining, so I recreated the proof based on this one from Wikipedia: http://en.wikipedia.org/wiki/Monty_Hall_pr...ayes.27_theorem

 

Notice that the assumption that the host makes his choice randomly has to be stated explicitly there.

 

------

 

Let P1 be the event "the prize is behind door 1".

Let P2 be the event "the prize is behind door 2".

Let P3 be the event "the prize is behind door 3".

Let O1 be the event "the host opens door 1".

Let O2 be the event "the host opens door 2".

Let O3 be the event "the host opens door 3".

 

Assume the prize is distributed with uniform probability: P(P1) = P(P2) = P(P3) = 1/3.

 

Assume, without loss of generality, that you have chosen door #1.

 

Assume that if the host has a choice of doors to open (i.e. the prize is behind door #1), then he will always open door #2. That is, P(O2 | P1) = 1, and P(O3 | P1) = 0. [usually, everyone assumes that these values are both 1/2.]

 

If the prize is behind door #2, then the host will always open door #3. i.e. P(O3 | P2) = 1. Similarly, P(O2 | P3) = 1.

 

Of course, P(O2 | P2) = 0 and P(O3 | P3) = 0 (the host will never open the door which conceals the prize).

 

Using a law of conditional probability, P(O2) = P(P1)*P(O2 | P1) + P(P2)*P(O2 | P2) + P(P3)*P(O2 | P3)

-> P(O2) = (1/3) * (1 + 0 + 1) = 2/3

 

Using Bayes' Theorem, P(P3 | O2) = P(O2 | P3)*P(P3) / P(O2)

-> P(P3 | O2) = 1 * (1/3) / (2/3) = 1/2

 

Also, P(P2 | O2) = 0 and P(P1 | O2) + P(P2 | O2) + P(P3 | O2) = 1; therefore P(P1 | O2) = 1/2.

 

In other words, if the host opens door #2, then the probability that the prize is behind door #3 is 1/2; and the probability that the prize is behind door #1 is also 1/2. So in this situation there is no advantage in switching.

 

On the other hand, if the host opens #3, then of course the prize must be behind door #2 (since he would have opened door #2 if he was able), so switching guarantees a win. You can also calculate this using a method similar to the above.

 

Granted, this is somewhat artificial, since it relies on you knowing that the host will always choose a certain door when he is able (which in a real-world gameshow you probably wouldn't know), but it does demonstrate my point.

 

Note that always switching is still an optimal strategy (one of two, the other being "always switch unless the host chooses his preferred door"), so that piece of advice holds true no matter what the probabilities involved are. :)

My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.
Link to comment
Share on other sites

I get a bit lost in the details, but I understand your explanation via the concept of "information leakage".

 

As in, if you know that the host will choose a specific door if possible, you can gain information by observing whether he does so or not.

Link to comment
Share on other sites

Yep. That's the simplified intuitive explanation. :)

My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 2 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
×
×
  • Create New...