Question (previously asked here)
You know there are 3 boys and an unknown number of girls in a nursery at a hospital. Then a woman gives birth a baby, but you do not know its gender, and it is placed in the nursery. Then a nurse comes in a picks up a baby and it is a boy. Given that the nurse picks up a boy, what is the probability that the woman gave birth to a boy?
Assume that - in this question's universe - the unconditional probabiilty that any newly born baby is a boy or a girl is exactly half.
Short solution
Let number of girls be $k$. Event A is the newborn is a boy, Event B is that nurse picks up a boy. So, we are asked $P(A|B)$.
$$P(A|B) = \frac{P(B|A)P(A)}{P(B)} = \frac{\frac 4{k+4}\frac 12}{\frac 4{k+4}\frac 12 + \frac 3{k+4}\frac 12} = \frac 47$$
My question
Why is the probability constant? I would have expected the probability to change with respect to the number of girls. More specifically, I would have expected the probability to increase as the value of $k$ increases, and decrease if $k$ was less. Why so? Because we are already given the claim that we have selected a boy. If we have infinite girls, then the newborn has to almost surely be a boy to help support that observed claim. Because initially there are only three boys, the more help they could get in supporting the claim, the better.
Of course, this is not a very rigorous argument, but the point here is that in many such questions there is a natural expectation for the probability to vary with the variable. And it does do in many, say for example the generalized monty hall problem.
I do know that technically the $k$ does not matter because it gets cancelled out in the denominator, but intuitively that is not a very helpful explanation. Can anyone give an intuitive explanation for why the probability answer in this question is a constant?
I imagine the argument may go like this...
Let's assume you have two identical wards A and B in the hospital, both having nurseries, in each nursery there are $3$ boys and $k$ girls. Then a woman in ward A gives birth to a boy and another woman in ward B gives birth to a girl. Now there are $4$ boys in ward A's nursery, but still $3$ boys in ward B's.
Imagine now you (not having the wards clearly labelled, as it often happens in hospitals) randomly (with probabilities $50\%$ each) enter one of the wards and see a nurse holding a boy from the nursery. What is the probability you'd entered ward A?
This is the same problem as the original one, but has the obvious solution $4/7$. Namely, each child (out of all $8+2k$ children) is picked with equal probability, so knowing that it was a boy, it could've been one of $7$ equally likely boys. However, $4$ of them are from ward A, so the odds that you'd strolled into ward A are $4/7$.