Solution

ID: past-exam-of-the-statistics-course-of-the-university-of-oxford/2023/2/a/ii/solution

The Neyman-Pearson lemma states that a test which rejects where the joint likelihood ratio is largest is a most powerful test of its size: its power is at least that of any test with no larger size. More precisely, choose a threshold and reject if , accept if it is smaller, and if necessary randomize on equality to attain the specified size.
For an independent and identically distributed statistical sample, take
The are independent and identically distributed random variables under either simple hypothesis, and the log joint ratio is their sum. Thus the nonrandomized threshold form can be written
with , using either strict or non-strict inequality when the boundary has probability zero. The usual finite-log expression assumes positive common support; zero densities can instead be handled by the extended likelihood ratio on the relevant supports. Continuous observations alone do not ensure a continuous likelihood-ratio statistic: ties may require the boundary randomization in the lemma. This qualification preserves the exact-size formulation.

New to topics? Read the docs here!