Measurements are compared by a set of units instead
Pair comparisions:
Suppose a set of p reponses comes from each of n units for 2 different experiment conditions
Both experiments are provided identical set of units
For the j units X1j1 is the first variable of the response of experiment 1 and X2j1 is for experiment 2
Define Dji=X1ji−X2ji for i=1,...,p as the paired-difference random variables
Define Dj⊺=[Dj1,...,Djp] for j=1,..,n as random variable of difference in reponses of 2 experiments
E(Dj)=δ=δ1..δp and Cov(Dj)=Σd
If D1,...,Dn are independent Np(δ,Σd), inferences about the vector of mean differences δ can be based upon a T-squared Statistic, T2=n(Dˉ−δ)⊺Sd−1(Dˉ−δ) where:
Dˉ=n1Σj=1nDj and Sd=n−11j=1∑n(Dj−Dˉ)(Dj−Dˉ)⊺
Let the differences D1,...,Dn be a random sample from a population Np(δ,Σd). Then T2∼n−p(n−1)pFp,n−p whatever true δ and Σd
if n and n−p are both large, T2 is approximately distributed as a χp2 random variable, regardless of the form of the underlying population of differences.
Test for mean difference is 0, δ=0
Given the observed differences dj⊺=[dj1,...,djp] corresponding to the random variables Djp, an α level test of H0:δ=0 vs H1
For an Np(δ,Σd) population, reject H0 if the observerd T2=ndˉ⊺Sd−1dˉ>n−p(n−1)pFp,n−p(α)
A 100(1−α)% confidence region for δ consists of all δ such that (dˉ−δ)⊺Sd−1(dˉ−δ)≤n(n−p)(n−1)pFp,n−p(α)
Indivisual mean differences δi‘s confidence intervals are given by δi:dˉi∓n−p(n−1)pFp,n−p(α)nsdi2
For n−p large, n−p(n−1)pFp,n−p(α)≐χp2(α) and normality need not to be assumed
Consider a random sample of size n1 1 from population 1 and a sample of size n2 from population 2. We want to make inferences about μ1−μ2
We need the following assumptions.
The sample X11,...,X1n1 is a random sample of size n1 from a p-variate population with mean vector μ1 and covariance matrix Σ
The sample X21,...,X2n2 is a random sample of size n2 from a p-variate population with mean vector μ2 and covariance matrix Σ
X11,...,X1n1 are independent of X21,...,X2n2
Further, both populations are multivariate normal and Σ1=Σ2
The matrix Spooled=n1+n2−2n1−1S1+n1+n2−2n2−1S2
As Spooled is an estimate for Σ,(n11+n21)Spooled is an estimator of Cov(Xˉ1−Xˉ2)
The likelihood ratio test of H0:μ1−μ2=δ0 is based on the square of the statistical distance T2
reject H0 if T2=(xˉ1−xˉ2−δ0)⊺[(n11+n21)Spooled]−1(xˉ1−xˉ2−δ0)>c2 where the critical distance c2 is determined from the distribution of the two-sample T2-statistics T-squared Statistic
Proposition: If X11,...,X1n1 is a random sample of size n1 from Np(μ1,Σ) and X21,...,X2n2 is a random sample of size n2 from Np(μ2,Σ) then T2=[Xˉ1−Xˉ2−(μ1−μ2)]⊺[(n11+n21)Spooled]−1[Xˉ1−Xˉ2−(μ1−μ2)] is distrbuted as n1+n2−p−1(n1+n2−2)pFp,n1+n2−p−1
where c2=n1+n2−p−1(n1+n2−2)pFp,n1+n2−p−1(α)
Simultaneous confidence intervals:
Let c2=[(n1+n2−2)p/(n1+n2−p−1)]Fp,n1+n2−p−1(α).
With probability 1−α, aT(X1−X2)∓caT(n11+n21)Spooled a will cover aT(μ1−μ2) for all a. In particular, μ1i−μ2i will be covered by (Xˉ1i−Xˉ2i)∓c(n11+n21)sii, pooled i=1,…,p
The two-sample situation when Σ1=Σ2
Let the sample sizes be such that n1−p and n2−p are large.
Then, an approximate 100(1−α)% confidence ellipsoid for μ1−μ2 is given by all μ1−μ2 satisfying:
where χp2(α) is the upper (100α)-th percentile of a chi-square distribution with p d.f.
Also, 100(1−α)% simultaneous confidence intervals for all linear combinations aT(μ1−μ2) are provided by aT(μ1−μ2) belongs to aT(xˉ1−xˉ2)∓χρ2(α)aT(n11S1+n21S2)a