Solving the Monty Hall Problem

In my previous post, [Introducing the Monty Hall Problem](https://www.dhirubhai.net/pulse/introducing-monty-hall-problem-larry-jones-katcc/), I gave you the background for the Monty Hall problem. I explained contest on the television show for which it is named and introduced this table which "solves" the problem using Bayes' theorem.


A solution to the Monty Hall problem

As a reminder, Bayes' theorem can be expressed mathematically in terms of a hypothesis and evidence as follows.


Bayes' Theorem Using Hypothesis and Evidence

But how do we apply this to our problem?

The term, P(H), is the prior probability; that is, the probability that a (particular) hypothesis is true before seeing any data. The term, P(E | H), is the likelihood that I would see the evidence if (or given) that a specific hypothesis is true. the term, P(E), is called by a number of names:

  • Probability of the evidence independent of any hypothesis
  • The marginal likelihood
  • The "model evidence"
  • The total probability of the evidence

Let's return to our problem. Before we have any evidence, we have no reason to believe that any of the three doors is more likely to have a prize than any other door. Consequently, the prior probability for each door is 1/3.

One of the two difficult parts of Bayesian inference is determining the likelihood. In our case, our reasoning is as follows


Reasoning out the Likelihood

The most difficult part of Bayesian inference is the calculation of P(E). Because of the specifics of our problem, we can calculate this value as the sum of the product of each prior probability and its corresponding likelihood; that is, we multiply each prior times the likelihood that the hypothesis of the prior is true and then sum all the products. This action results in the three values 1/6, 1/3 and 0 which, summed together is 1/2.

Now that we've filled out the hypothesis, prior, likelihood, and product columns of our table, we simply, for each hypothesis, multiply the prior times the corresponding likelihood and divide by the sum of all the likelihoods.

In other words, it always pays to switch. Surprised? You're not alone.


要查看或添加评论,请登录

Larry Jones的更多文章

  • Estimating Proportions - Again

    Estimating Proportions - Again

    I was not particularly happy with my post yesterday Think Bayes Estimating Proportions. My goal is to make these posts…

  • Think Bayes Estimating Proportions

    Think Bayes Estimating Proportions

    Over the next several days, I will be using examples from the book, "Think Bayes: Bayesian Statistics in Python" by…

  • A Diversion from E. T. Jaynes

    A Diversion from E. T. Jaynes

    Yes. I said it was time to move onto other applications of Bayes' theorem.

  • Alternatives to the Monty Hall Problem

    Alternatives to the Monty Hall Problem

    In my previous two posts, I introduced the Monty Hall Problem and then presented the (a) solution. Introducing the…

  • Introducing the Monty Hall Problem

    Introducing the Monty Hall Problem

    Theoretically, Bayes' Theorem is sufficient to determine one set of conditional probabilities from other probabilities…

  • The Vocabulary of Bayes

    The Vocabulary of Bayes

    Like many ideas, Bayes' Theorem introduces a new vocabulary and some adapted vocabulary. The new vocabulary consists of…

  • The Basics of Bayes' Theorem

    The Basics of Bayes' Theorem

    I'd like to introduce you to the "basics" of Bayes' theorem. The basics are very simple (well, at least for the…

    1 条评论
  • 70% True and 30% False - An Introduction

    70% True and 30% False - An Introduction

    Much of my education (a Masters degree in Physics) and my career has focused on finding "the answer" to problems…

    1 条评论

社区洞察

其他会员也浏览了