Theorem (confidence interval and simple test)
Suppose $X\sim p(x; θ)$ where $θ\in Θ$ is unknown. Consider $T: Θ\times \mathcal{X}\to \set{0,1}$ and $I: \mathcal{X}\to \mathcal{P}(Θ)$ satisfying $$ \begin{align*} I(X) = \sb{θ\in Θ}{T(θ, X) = 0} \end{align*} $$ or equivalently $$ \begin{align*} T(θ, X) = \mathbb{1}_{\set{θ\not\in I(X)}}. \end{align*} $$
The following are equivalent:
-
$T(θ_0, X)$ is a size $α$ test for $H: θ=θ_0$ for all $θ_0\in Θ$.
-
$I(X)$ is a $(1-α)$-confidence set for $θ$.