Proof (Fisher-Neyman factorisation theorem)

We will restrict to the discrete case.

Factorisation $\implies$ sufficiency

Suppose $\prob_θ(X=x) = g(T(x), θ) \cdot h(x)$. Then $$ \begin{align*} \prob_θ(X = x\mid T = t) ={}& \frac{\prob_θ(X=x, T = t)}{\sum_{x'} \prob(X=x', T=t)} \\ ={}& \frac{\prob_θ(X=x) \, \mathbb{1}_{\set{T(x) = t}}}{\sum_{x'} \prob_θ(X=x') \, \mathbb{1}_{\set{T(x') = t}}} \\ ={}& \frac{g(t, θ)\, h(x) \, \mathbb{1}_{\set{T(x)=t}}}{\sum_{x'} g(t, θ)\,h(x')\, \mathbb{1}_{\set{T(x') = t}}} \\ ={}& \frac{h(x) \mathbb{1}_{\set{T(x) = t}}}{\sum_{x'} h(x') \, \mathbb{1}_{\set{T(x') = t}}} \end{align*} $$ which does not depend on $θ$.

Sufficiency $\implies$ factorisation

If $T$ is sufficient, then $$ \begin{align*} \prob_θ(X = x) ={}& \prob_θ(X=x, T(X) = T(x)) \\ ={}& \underbrace{\prob_θ(X=x\mid T(X) = T(x))}_{h(x)} \cdot \underbrace{\prob_θ(T(X) = T(x))}_{g(T(x), θ)} \end{align*} $$ where the first factor does not depend on $θ$ by definition of sufficiency.