2.8 Exercises
Jeffreys-Lindley’s Paradox
The Jeffreys-Lindley’s paradox (H. Jeffreys 1961; Dennis V. Lindley 1957) represents an apparent disagreement between the Bayesian and Frequentist frameworks in a hypothesis testing scenario.
In particular, assume that in a city, 49,581 boys and 48,870 girls have been born over 20 years. Assume that the male births follow a Binomial distribution with probability θ. We wish to test the null hypothesis H0: θ=0.5 versus the alternative hypothesis H1: θ≠0.5.
- Show that the posterior model probability for the null model is approximately 0.95. Assume π(H0)=π(H1)=0.5, and that π(θ) follows a uniform distribution, i.e., U(0,1), under H1.
- Show that the p-value for this hypothesis test is 0.0235 using the normal approximation, Y∼N(N×θ,N×θ×(1−θ)).
We want to test H0: μ=μ0 versus H1: μ≠μ0 given Yiiid∼N(μ,σ2).
Assume π(H0)=π(H1)=0.5, and that π(μ,σ)∝1/σ under the alternative hypothesis.
Show that
p(y|M1)=π−N/22Γ(N/2)2N/2(1αnˆσ2)N/2(Nαnˆσ2)−1/2Γ(1/2)Γ(αn/2)Γ((αn+1)/2)and p(y|M0)=(2π)−N/2[2Γ(N/2)(N2∑Ni=1(yi−μ0)2N)N/2]−1.
Then, the posterior odds ratio is:
PO01=p(y|M0)p(y|M1)=Γ((αn+1)/2)Γ(1/2)Γ(αn/2)(αnˆσ2/N)−1/2[1+(μ0−ˉy)2αnˆσ2/N]−(αn+12),where αn=N−1 and ˆσ2=∑Ni=1(yi−ˉy)2N−1.
Find the relationship between the posterior odds ratio and the classical test statistic for the null hypothesis.
Math Test Continues
Using the setting of the Example: Math Test in Subsection 2.6, test H0: μ=μ0 versus H1: μ≠μ0 where μ0={100,100.5,101,101.5,102}.
- What is the p-value for these hypothesis tests?
- Find the posterior model probability of the null model for each μ0.