A man speaks the truth $8$ out of $10$ times. A fair die is thrown. The man says that the number on the upper face is $5$. Find the probability that the original number on the upper face is $5$.
While solving I find two ways (shown in the image). I think one of them is correct and other one is incorrect. Please tell me which is the correct one and why.
Any advice on solving tricky problems (on Bayes theorem) is welcome.
Your first one is false. $P(X \mid T)$ is $1$, not $\frac{1}{6}$. Given that the man speaks the truth, the die definitely showed $5$.
Your second method is much more natural, and it is correct (assuming you plugged the numbers in correctly).