A statistic cannot contain more information than the random sample that it summarises. The degree to which a statistic encodes information about the distribution of a random sample is referred to as sufficiency.
Given a random sample X of size n from the population PX;θ, a statistic T is a sufficient statistic for the parameter θ if:
P(X∣T,θ)=P(X∣T).
That is, the conditional distribution of the random sample given the value of the statistic T is independent of the parameter θ.
If the population PX;θ is continuous with joint pdf of the random sample given by fX(x∣θ) and the pdf of a statistic T=t(X) is given by fT(t∣θ) then T is a sufficient statistic for θ if and only if the ratio of pdfs
fT(t(x)∣θ)fX(x∣θ)
does not depend on θ (it is constant as a function of θ) ∀x∈Sn.
The factorisation theorem states that a statistic T=t(X) is a sufficient statistic for θ if and only if there exist functions u(t∣θ) and v(x) such that the joint pdf of the random sample can be factored:
fX(x∣θ)=u(t(x)∣θ)v(x)∀x∈Sn,θ∈Θ.
The tests for sufficient statistics are also true for discrete random samples using the corresponding pmfs instead.