Population
A population of size N with values x1,…,xN (or pairs (xi,yi)),
μ=N1i=1∑Nxi,τ=i=1∑Nxi=Nμ,σ2=N1i=1∑N(xi−μ)2=N1i=1∑Nxi2−μ2,σxy=N1i=1∑N(xi−μx)(yi−μy)
For a dichotomous population (xi∈{0,1}), μ=p and σ2=p(1−p).
Simple Random Sampling
Draw X1,…,Xn. With replacement they are IID. Without replacement they are not independent, but they are identically distributed and exchangeable: if ξ is a value taken by nξ members of the population, P(Xi=ξ)=Nnξ. A particular ordered sample has probability Nn1 with replacement and N!(N−n)! without.
Sample Mean and Total
Xˉ=n1i=1∑nXi,T=NXˉ,E[Xˉ]=μ,E[T]=τ
with Xˉ=p^ in the dichotomous case. Without replacement, Cov(Xi,Xj)=−N−1σ2 for i=j, so
Var(Xˉ)=n21i=1∑nj=1∑nCov(Xi,Xj)={nσ2nσ2(1−N−1n−1)with replacementwithout replacement
with Nn the sampling fraction. Var(T)=N2Var(Xˉ), and Var(p^)≤4n1. For pairs, Cov(Xi,Yi)=σxy, Cov(Xi,Yj)=−N−1σxy for i=j without replacement, and
Cov(Xˉ,Yˉ)=nσxy(1−N−1n−1)
Consistency By Chebyshev, P(∣Xˉ−μ∣>δ)≤δ2Var(Xˉ)→0 as n→∞.
Estimating the Variance
σ^2=n1∑i=1n(Xi−Xˉ)2=n1∑i=1nXi2−Xˉ2 is biased. Without replacement,
E[σ^2]=n1i=1∑nE[Xi2]−E[Xˉ2]=n1i=1∑n(σ2+μ2)−nσ2(1−N−1n−1)−μ2=σ2(nn−1)N−1N
i.e. E[σ^2]=σ2−Var(Xˉ). Multiplying by the reciprocal of the bias factor gives unbiased estimates. With s2=n−11∑i=1n(Xi−Xˉ)2=n−1nσ^2, E[s2]=N−1Nσ2, so (1−N1)s2 is unbiased for σ2, and
sXˉ2=ns2(1−Nn),sT2=N2sXˉ2,sp^2=n−1p^(1−p^)(1−Nn)
are unbiased for Var(Xˉ), Var(T) and Var(p^). In the dichotomous case s2=n−1np^(1−p^).
Normal Approximation
P(σXˉXˉn−μ≤z)→Φ(z),P(∣Xˉ−μ∣≤δ)≈2Φ(σXˉδ)−1
since Φ(−z)=1−Φ(z). A 100(1−α)% confidence interval is Xˉ±z(α/2)sXˉ, with z(α/2) the point with area α/2 of the standard normal to its right.
Ratio Estimation
Expanding g around the means,
g(X,Y)≈g(μx,μy)+∂x∂g(X−μx)+∂y∂g(Y−μy)+21∂x2∂2g(X−μx)2+21∂y2∂2g(Y−μy)2+∂x∂y∂2g(X−μx)(Y−μy)
(derivatives at (μx,μy)). In one variable, E[g(X)]≈g(μ)+2g′′(μ)Var(X). For the ratio R=Yˉ/Xˉ estimating r=μy/μx,
E[XˉYˉ]≈μxμy+μx3μyVar(Xˉ)−μx21σXˉYˉ,Var(XˉYˉ)≈μx21(r2σXˉ2+σYˉ2−2rσXˉYˉ)