In this article, we explain that a statistic is a way of compressing information contained in the data, and we show how it can be used for inference.
Let →Y=(Y1,...,Yn) be a random vector. Suppose the joint distribution of →Y is F(→y;θ) for some unknown parameter θ∈Θ.
We observe a sample →y=(y1,...,yn) drawn from Y. What conclusions about θ can we make on the sole basis of our observations →y? And what is the uncertainty associated with these conclusions?
We will study the sample →y through numerical summaries T(→y). Such a summary is called a statistic.
- Definition: statistic
- A statistic is any function T of the sample that does not depend on the unknown parameters θ. For example, the sample average avg(→y)=1n∑yi is a statistic.
To understand what good a given statistic T is, we need to understand its behavior when the parameter θ changes. While T(→y) is a fixed number associated with the fixed observation →y, we have that T(→Y) is a random variable. To understand how the statistic T behaves when θ changes, we need to study this random variable.
- Definition: sampling distribution
- The sampling distribution of T under the distribution F(→y;θ) of →Y is the distribution of the random variable T(→Y):
The key observation here is that the sampling distribution of T depends on the unknown parameter θ. The more it depends on θ, the more information T conveys about it.
The result T(→Y) of a deterministic transformation T applied to →Y can not convey more information than →Y. So it is a form of compression. How much we can compress the sample without loosing interesting information about θ?
Let’s define a name for statistics that carry no information about the parameter.
- Definition: ancillary statistic
- A statistic T is ancillary for the parameter θ if its sampling distribution does not functionally depend on θ. Consequence: such statistics carry no information about θ.
So, what information is lost when we use T to compress the sample? To answer this question, we need to understand what different samples →y1 and →y2 are compressed into the same value t=T(→y1)=T(→y2).
- Definition: level set
- The level sets of T are the sets:
This sets are of interest because all the observations of →Y that falls in a given level set Lt are equivalent as far as T is concerned. They all reduce to the same value t.
Let’s look at the distribution F→Y∣T=t of →Y conditional on a given level set Lt of T.
- When F→Y∣T=t changes depending on θ, we are loosing the information conveyed by this dependence.
- When F→Y∣T=t is functionally independent of θ, then →Y contains no information about θ on the set Lt and we are not loosing any information on this set.
- If this is true for all possible values t of T(→y), then our statistic contains the same information about θ as →y itself does. In other words, knowing the exact value of →y does not convey more information than knowing T(→y). Let’s define a name for this.
- Definition: sufficient statistic
- A statistic T is said to be sufficient for the parameter θ if F→Y∣T(→Y)=t does not depend on θ.
- Example: coin tossing
- We model n toss of a biased coin using an i.i.d. sample from the MBernoulli(θ) distribution, where the probability θ to obtain head is unknown. Let T(→y)=∑ni=1yi be the number of heads among the n toss.
And we see that T is sufficient for θ: knowing which tosses came heads is irrelevant in deciding the probability of head. Only the number of observed heads matters.
While sufficient statistics are incredibly usefull, the definition is hard to verify in practice. The Fisher-Neyman factorization theorem provides an easier way to identify sufficient statistics.
- Fisher-Neyman factorization theorem
- Let →Y be a random vector with joint density function f(→y;θ). A statistic T is sufficient for θ if and only if there exists functions g and h such that:
So, sufficient statistics compress data without information loss about the parameter θ of interest. Still, some sufficient statistic might contain more data than necessary. How much can we compress?
- Definition: minimally sufficient statistic
- A statistic T is said to be minimally sufficient for the parameter θ if it is sufficient for θ and for any other sufficient statistic S there exists a function g(⋅) such that:
Since the deterministic function g can only reduce the amount of conveyed information and not increase it, we see that T is the sufficient statistic that contains the less information.
So, statistics compress the sample and contain information about the unknown parameter. How do we retrieve this parameter? We use a point estimator.
Let’s see an example.
Gaussian Sufficient Statistics
Let a sample →Yi.i.d.∼N(μ,σ2) of size n. Define the following statistics:
avg(→Y)=1nn∑i=1YiS2(→Y)=1n−1n∑i=1(Yi−avg(Y))2The pair (avg(→Y),S2(→Y)) is minimally sufficient for (μ,σ2) and we have:
avg(→Y)∼N(μ,σ2/n)n−1σ2S2∼X2n−1Using convergence results, we can conclude that as the sample size n increases, avg(→y) converges to μ at the speed of O(1√n). Likewise, S2(→y) converges to σ2:
avg(→Y)→μS2(→Y)→σ2