Let's assume that as time between observations increases, they become less correlated. Precisely, let's assume that when the time between observations is greater than q that covariance goes to zero. In math, ∣t−s∣>q⟹Cov(xt,xs)=0.
What happened to dividing by T? In this case, we're technically summing over a set containing a single variable so we're dividing by 1.
Though our long formula for Var(Xˉ) is easy to visualize with the matrix analogy, we don't have a concise way of writing this down yet. We define a couple variables to help us rewrite our verbose formula in a more compact form.
γ^v=(1/T)t=v+1∑T(Xt−Xˉ)(Xt−v−Xˉ)
See that v determines how far off the diagonal we're summing up the elements, and that the numbers from v+1 to T count the elements. This formula would get one side of the off-diagonal while the following formula will get us the other side.
γ^−v=(1/T)t=v+1∑T(Xt−v−Xˉ)(Xt−Xˉ)
Note that the special case v=0⟺γ^0 will sum up all the diagonal elements (the variance terms).
Using our large expression for Var(Xˉ) and our definition for γ^ we can finally rewrite Var(Xˉ).
Var(Xˉ)=(1/T)[γ^0+v=1∑q(γ^v+γ^−v)]
Correcting for undesirable small sample problems
Though our formula for σ^Xˉ2 is consistent (converges to the truth as n→∞), it is not always positive for small sample sizes. The following formula preserves the asymptotic properties and allows variance to always be positive