In 100 tosses of a coin, 60 heads appear. What is the result of a likelihood-ratio test of H0:p=0.5 at the 5% level, using Wilks' theorem (critical value 3.84), and how does it compare with the z-test?

Probability and statistics, Hypothesis testing
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can build the likelihood-ratio statistic from the maximised likelihoods and know its asymptotic law.

Key idea

The statistic is Λ=L(p0)L(p^). By Wilks' theorem, −2ln⁡Λ→χd2 under H0, where d is the number of parameters that H0 fixes.

Steps

  1. The log-likelihood for k heads in n tosses is ℓ(p)=kln⁡p+(n−k)ln⁡(1−p). The MLE is p^=k/n=0.6.
  2. The statistic is −2ln⁡Λ=2[ℓ(p^)−ℓ(0.5)]=2[kln⁡p^p0+(n−k)ln⁡1−p^1−p0].
  3. Plug in: 2[60ln⁡1.2+40ln⁡0.8]=2[60(0.1823)+40(−0.2231)]=2[10.94−8.93]=4.03.
  4. Here H0 fixes one parameter, so d=1. The critical value is 3.84 and 4.03>3.84, so reject at 5% (the p-value is about 0.045).
  5. Compare with the z-test: z=0.6−0.50.25/100=2, so z2=4 and the p-value is 0.0455. The two agree closely, because the LRT and the squared Wald statistic are asymptotically equivalent.

Common mistakes

How long your answer should be

Half a page, 5 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: Eight tests give the p-values 0.001,0.008,0.012,0.024,0.041,0.049,0.20,0.60. Which hypotheses are rejected by (a) Bonferroni, (b) Holm and (c) Benjamini–Hochberg at level 0.05, and what error rate does each control?
Next in Probability and statistics: For a bivariate Gaussian (X,Y) with correlation ρ, show that I(X;Y)=−12ln⁡(1−ρ2). What is the value for ρ=0.8, and what happens as ρ→0 and ρ→1?