I'm reading The Insignificance of Null Hypothesis Significance Testing and on page 654, the author states that most people incorrectly think that the null hypothesis significance test produces $\mathbb{P}(H_0|D)$: the probability of $H_0$ being true given the observed data.
But the test actually produces $\mathbb{P}(D|H_0)$. And by Bayes law, these two are not the same unless $\mathbb{P}(H_0) = \mathbb{P}(D)$. What is the intuitive meaning of this result?
Can someone give me an example where using typical hypothesis i.e. $H_0: \mu = 0$ and $H_1: \mu \ne 0$, $\bar{X}$ (sample mean) test statistic and the normal distribution, where hypothesis tests start to fail?