Bayes' Rule broken?!?!

The problem is that seeing heads changes your estimate of the probability that you have seen the $HH$ or $HT$ coins.

To see this intuitively, suppose that, instead of coins, you had a pair of trillion sided dice. Say one die has all $H's$ and the other has one $H$ and all the rest $T$. You choose a die uniformly at random and toss $H$. Which die do you have? While it is possible that you have the one with a single $H$, that is astonishingly unlikely.

To the given problem, I've always thought that the easiest way to see the answer was to note that, when you toss a randomly selected coin, each side (of all the coins) is equally likely to come up. Given that you see a $H$, it's equally likely that it's any given $H$ side. There are $4$ $H$ sides that come from $HH$ coins, and $2$ that come from $HT$ coins, hence the answer is $$\frac 4{4+2}=\frac 23$$

Applying this logic to the trillion sided dice we see that the probability that you have the all $H$ die is $$\frac {10^{12}}{10^{12}+1}\approx 1-10^{-12}$$


The probability space is composed of heads that might be witnessed after the selection and toss.   Every head is equally likely to be witnessed.   If you like, think of each head as being labelled with a unique mark in invisible ink.

There are six heads that the witness could be viewing after the toss, and four of them have another head on the other side of their coin, while two do not.   So the probability that a double sided coin had been selected when given that a head was witnessed is $2/3$.


The probability that there is a head on the upper side of the first coin and a tail on the lower side is not the probability that the first coin is normal, but half as much. Indeed if the first coin is normal, then there is an equal chance that the upper side of the first coin be a head or a rail. That corrects your closing computation.

As was said in the comments, while it’s true that there are four outcomes in the probability space of coins, given that the first flip was a head, the outcomes are not all equally likely!