# Monty Hall Redux

**URL:** <https://boards.straightdope.com/t/monty-hall-redux/506012>\
**Category:** Cecil's Columns/Staff Reports\
**Created:** [August 11, 2009, 1:14am UTC](https://boards.straightdope.com/t/monty-hall-redux/506012 "2009-08-11T01:14:08Z")\
**Posts on this page:** 14\
**Page:** 8

<div class="post-metadata">

**Author:** ![W0X0F](https://avatars.discourse-cdn.com/v4/letter/w/b77776/32.png) [@W0X0F](https://boards.straightdope.com/u/W0X0F)\
**Post date:** [July 19, 2012, 5:37pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/141 "2012-07-19T17:37:47Z")

</div>

That’s just it though - you don’t know whether the boy is older or younger than his sibling and that provides different information than if you do know whether he’s older or younger. Look at ultrafilter’s four cases. They’re are equally likely, correct? If you know the boy is older (or younger), you eliminate two of the possibilities and you’re left with a 50-50 chance as you say. But if you only know one is a boy and not whether he’s older or younger, then you’ve only eliminated one of the possibilities - the girl-girl one - and you’re left with two of your remaining three possibilities having a girl as the remaining sibling, i.e. two-thirds chance.

---

<div class="post-metadata">

**Author:** ![Bytegeist](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@Bytegeist](https://boards.straightdope.com/u/Bytegeist)\
**Post date:** [July 19, 2012, 5:46pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/142 "2012-07-19T17:46:07Z")

</div>

> [@Barkis\_is\_Willin](#):
>
> I always thought this problem was silly because the boy must obviously be either the oldest or youngest.

There is no specific boy being talked about, is the main issue. The setup of the original problem says essentially that there is at least one boy among the two children — not that one particular child (whether identified by age or any other quality) is a boy.

---

<div class="post-metadata">

**Author:** ![Barkis\_is\_Willin](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@Barkis\_is\_Willin](https://boards.straightdope.com/u/Barkis_is_Willin)\
**Post date:** [July 19, 2012, 6:32pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/143 "2012-07-19T18:32:15Z")

</div>

Yes, but as \*\*BrianSK \*\*was alluding to upthread, we always have some form of identifying information. What’s the difference between the following two sets?

1. The oldest child is a boy and the youngest child is a boy.
2. The oldest child is a boy and the youngest child is a girl.
3. The oldest child is a girl and the youngest child is a boy.
4. The oldest child is a girl and the youngest child is a girl.

* * *

1. The one I know is a boy, the one I don’t know is a boy.
2. The one I know is a boy, the one I don’t know is a girl.
3. The one I know is a girl, the one I don’t know is a boy.
4. The one I know is a girl, the one I don’t know is a girl.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [July 19, 2012, 6:36pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/144 "2012-07-19T18:36:53Z")

</div>

> [@Barkis\_is\_Willin](#):
>
> Yes, but as \*\*BrianSK \*\*was alluding to upthread, we always have some form of identifying information. What’s the difference between the following two sets?
> 
> 1. The oldest child is a boy and the youngest child is a boy.
> 2. The oldest child is a boy and the youngest child is a girl.
> 3. The oldest child is a girl and the youngest child is a boy.
> 4. The oldest child is a girl and the youngest child is a girl.
> 
> * * *
> 
> 1. The one I know is a boy, the one I don’t know is a boy.
> 2. The one I know is a boy, the one I don’t know is a girl.
> 3. The one I know is a girl, the one I don’t know is a boy.
> 4. The one I know is a girl, the one I don’t know is a girl.

What if you don’t know either of them?

* * *

Here’s an even stranger example of how conditional probabilities depend on exactly what information you’re conditioning on. Suppose that we’re looking at families with two children, and we want to know the probability that a family has two boys given that they have at least one boy born on a Tuesday. As is standard, we assume that everything is uniformly distributed over the appropriate category and independent of everything else.

In this case, there are 196 different equally likely outcomes, so it’s not all that much fun to write them all out, but that’s what computers are for. Here’s R code to compute the desired probability:

```auto

days <- c("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")
sexes <- c("Boy", "Girl")
events <- data.frame(expand.grid(sexes, sexes, days, days))
names(events) <- c("Sex1", "Sex2", "Day1", "Day2")
index <- (events[, "Sex1"] == "Boy" & events[, "Day1"] == "Tuesday") | events[, "Sex2"] == "Boy" & events[, "Day2"] == "Tuesday"
events.good <- events[index,]
index2 <- events.good[, "Sex1"] == "Boy" & events.good[, "Sex2"] == "Boy"
p <- nrow(events.good[index2,]) / nrow(events.good)

```

p works out to be 13/27, or slightly more than 0.48.

---

<div class="post-metadata">

**Author:** ![Barkis\_is\_Willin](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@Barkis\_is\_Willin](https://boards.straightdope.com/u/Barkis_is_Willin)\
**Post date:** [July 19, 2012, 6:43pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/145 "2012-07-19T18:43:41Z")

</div>

> [@ultrafilter](#):
>
> What if you don’t know either of them?

Then call it “the one I know the gender of…”

---

<div class="post-metadata">

**Author:** ![zut](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/zut/32/2875_2.png) [@zut](https://boards.straightdope.com/u/zut)\
**Post date:** [July 19, 2012, 7:10pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/146 "2012-07-19T19:10:08Z")

</div>

I happen to know a family with two children, and I have verified that the two children are _not_ both girls.

So which of the two children do you know the gender of?

---

<div class="post-metadata">

**Author:** ![Barkis\_is\_Willin](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@Barkis\_is\_Willin](https://boards.straightdope.com/u/Barkis_is_Willin)\
**Post date:** [July 19, 2012, 7:18pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/147 "2012-07-19T19:18:10Z")

</div>

Since that’s just a convoluted way of saying that at least one is a boy, I know the gender of the one that is a boy.

---

<div class="post-metadata">

**Author:** ![Bytegeist](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@Bytegeist](https://boards.straightdope.com/u/Bytegeist)\
**Post date:** [July 19, 2012, 7:23pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/148 "2012-07-19T19:23:05Z")

</div>

> [@Barkis\_is\_Willin](#):
>
> Yes, but as \*\*BrianSK \*\*was alluding to upthread, we always have some form of identifying information.

You don’t necessarily have identifying information, and the tricky bit of the problem is that it isn’t giving you any, despite appearances.

> [@](#):
>
> What’s the difference between the following two sets? […]

No important difference. The problems are that (1) there’s no promise that the children are distinguishable by any attribute other than sex, and even then it would only distinguish them if they happen to be different, and (2) even if there is some such attribute, you haven’t been given any information tying “the one with attribute X” with his or her sex.

In particular, there is no “child that you know”. The language of the original problem that we’re talking about (if it’s the one I think) is: _You have been told this family has a daughter._ It’s tempting to imagine there’s one particular child — the oldest one, the blond one, the one whose name begins with a vowel, something — being revealed as a girl. But in fact the sentence only means, “the number of girls is at least 1”.

---

<div class="post-metadata">

**Author:** ![zut](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/zut/32/2875_2.png) [@zut](https://boards.straightdope.com/u/zut)\
**Post date:** [July 19, 2012, 7:42pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/149 "2012-07-19T19:42:34Z")

</div>

> [@zut](#):
>
> I happen to know a family with two children, and I have verified that the two children are _not_ both girls.
> 
> So which of the two children do you know the gender of?

> [@Barkis\_is\_Willin](#):
>
> Since that’s just a convoluted way of saying that at least one is a boy, I know the gender of the one that is a boy.

But you have no way of differentiating the two children, so there is no “that one” to refer to.

It’s sometimes easier to think in terms of absolute sets rather than probablities, so try this one on for size:

There are exactly 1000 families with two children in my hometown. I have indeed verified that in exactly 750 of them, the two children are _not_ both girls. Of those 750 families, how many do you think contain two boys?

---

<div class="post-metadata">

**Author:** ![Barkis\_is\_Willin](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@Barkis\_is\_Willin](https://boards.straightdope.com/u/Barkis_is_Willin)\
**Post date:** [July 19, 2012, 7:59pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/150 "2012-07-19T19:59:15Z")

</div>

> [@Bytegeist](#):
>
> …The language of the original problem that we’re talking about (if it’s the one I think) is: _You have been told this family has a daughter._ It’s tempting to imagine there’s one particular child — the oldest one, the blond one, the one whose name begins with a vowel, something — being revealed as a girl. But in fact the sentence only means, “the number of girls is at least 1”.

Right, and if the daughter, whose gender you have revealed, has been selected randomly, then birth order or hair color or whatever else plays no part in the equation. Thus, I break it down as follows.

1. The child whose gender I know is a girl, the other child is a boy.
2. The child whose gender I know is a girl, the other child is a girl.
3. The child whose gender I know is a boy, the other child is a boy.
4. The child whose gender I know is a boy, the other child is a girl.

And the probability of the other child being a boy is 0.5

Only if the child whose gender you reveal was NOT chosen randomly can you come up with a probability of 1/3 for the second child being a boy.

The [wiki article](http://en.wikipedia.org/wiki/Boy_or_Girl_paradox)actually has an explanation of the assumptions necessary for conditional probability to apply to this problem.

---

<div class="post-metadata">

**Author:** ![W0X0F](https://avatars.discourse-cdn.com/v4/letter/w/b77776/32.png) [@W0X0F](https://boards.straightdope.com/u/W0X0F)\
**Post date:** [July 19, 2012, 8:24pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/151 "2012-07-19T20:24:37Z")

</div>

Yes, you can break it down that way, but the four possibilities **don’t** have equal probabilities. Say the child whose gender you know is a boy, then you’ve eliminated 1 and 2 and you’re left with 3 and 4. But 3 and 4 are not equally likely, i.e. 50-50. 4 is twice as likely as 3, because there are two ways for 4 to be true (boy oldest, then girl, or girl oldest, then boy), but only one way for 3 to be true.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [July 19, 2012, 8:37pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/152 "2012-07-19T20:37:00Z")

</div>

> [@Barkis\_is\_Willin](#):
>
> Right, and if the daughter, whose gender you have revealed…

I haven’t revealed the gender of any child. All I’ve told you is that they’re not both boys. This is a subtle distinction, but it’s at the heart of the problem.

Try this experiment on for size: Take two quarters and flip them. Write down the number of heads. After you repeat this about 100 times, look at the ratio of times you wrote “one” to times you wrote “two”. It will be pretty damn close to 2 with very high probability.

If you don’t want to do it by hand, here’s the R code for an equivalent experiment:

```auto

M <- matrix(runif(2 * 100) < 0.5, ncol = 2)
N <- apply(M, 1, sum)
ratio <- length(N[N == 1]) / length(N[N == 2])

```

I ran this a thousand times, and the average ratio was 2.07. Only 10% of the ratios were less than 1.5. If the true value were one, that basically wouldn’t happen.

---

<div class="post-metadata">

**Author:** ![Barkis\_is\_Willin](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@Barkis\_is\_Willin](https://boards.straightdope.com/u/Barkis_is_Willin)\
**Post date:** [July 20, 2012, 1:49pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/153 "2012-07-20T13:49:10Z")

</div>

You’re still not framing the question in a way that would lead one to conclude 1/3 probability in the boy/girl case. As per the wiki linked to previously, the question should be stated like this:

> [@](#):
>
> From all families with two children, at least one of whom is a boy, a family is chosen at random. This would yield the answer of 1/3.
> 
> From all families with two children, one child is selected at random, and the sex of that child is specified. This would yield an answer of 1/2.

So, to get your 1/3 probability you have to remove some of the randomization, which you have never done in your single family boy/girl problem. You did do in your quarter tossing experiment and your village of 1000 families where you narrowed it down to 750 who had at least one boy. However, even in the 1000 families problem, if you take the probability of a family having 2 boys _only among the 750 families who have at least one boy_, it’s going to be 1/2.

---

<div class="post-metadata">

**Author:** ![zut](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/zut/32/2875_2.png) [@zut](https://boards.straightdope.com/u/zut)\
**Post date:** [July 20, 2012, 2:10pm UTC](https://boards.straightdope.com/t/monty-hall-redux/506012/154 "2012-07-20T14:10:43Z")

</div>

> [@Barkis\_is\_Willin](#):
>
> However, even in the 1000 families problem, if you take the probability of a family having 2 boys _only among the 750 families who have at least one boy_, it’s going to be 1/2.

Your conclusion here is that out of 1000 families with two children, 250 have two girls, 375 have two boys, and 375 have a boy and a girl. I’m not sure how you could have concluded that, particularly given the obvious asymmetry.

You don’t think that, among all two-child families, 1/3 have two boys, 1/3 have two girls, and 1/3 have a boy and a girl, do you?

[Previous page](https://boards.straightdope.com/t/monty-hall-redux/506012.md?page=7)
