











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












Test for MVN assumption:
We know that for MVN observations:
(yi − μ)
′ Σ
− 1 (yi − μ 0 ) ∼ χ
2
p
Law of Large Numbers and CLT imply:
(y i
− y)
′
S
− 1
(y i
− y) ∼ χ
2
p
for n “large”.
Graphic based on χ
2 − plot:
= (y i
− y)
′ S
− 1 (y i
− y) and the ordered
t (1)
≤ t (n)
, χ
2
i
) where χ
2
i
is the 100(i −
.5)/n percentile of the χ
2
p
distribution.
Plot should show a straight line for Normal observations.
More formal tests based on Skewness of variates t i
More in: Mardia (Sections 1.8, 5.7) and D’Agostino and
Stephens (1986)
More Examples of the Multivariate General Linear Model
We did:
Tests for μ with unknown Σ and
Tests for Σ with unknown μ.
MANOVA (Multivariate Analysis of Variance)
Why is it ANOVA, MANOVA? We’re testing means,
not variability. Should it be ANOME, MANOME?
Denote I normal data matrices by
i
y
′
i 1
y
′
i 2
y
′
i,ni
where yij ∼ Np(μi, Σi), j = 1, ..., ni, i = 1, ..., I.
0
: μ 1
= ... = μ I
given Σ 1
I
This is Multivariate ANOVA (MANOVA)
How to Test?
b) UIT
Univariate ANOVA rejects equal means if:
I ∑
i=
n i
(x i
− x)
2
/
I ∑
i=
n i
s
2
i
is large.
So we reject H 0 a
if
I ∑
i=
n i
[a
′
(y i
− y)]
2
/
I ∑
i=
n i
a
′
S i
a
is large.
The maximum value over a is the largest eigenvalue of
I ∑
i=
n i
i
− 1
I ∑
i=
n i
(y i
− y)(y i
− y)
′
= W
− 1
B.
Compare LRT and UIT:
− 1 B|
We see: LRT and UIT not the same for general I.
They were the same when I = 1 (Hotelling T
2 ).
I = 2, LRT gives the Two sample Hotelling T
2 test.
UIT also reduces to Two sample Hotelling T
2 test.
So: LRT and UIT same for I = 1, 2, not in general.
Recall Bartlett’s univariate test of σ
2
1
= ... = σ
2
I
Reject the null if nln(s
2 ) −
I
i=
n i
ln(s
2
i
) is large.
Multivariate Extension:
0
1
I
Under H 0
MLE of Σ i
is pooled S =
I
i=
n i
i
/n.
Under H 1
MLE’s are Σ i
i
. We have:
λ(Y) = |S|
n/ 2 /(|S 1
n 1 / 2 ...|S I
nI / 2 ).
So:
2 ln[λ(Y)] = nln|S| −
I
i=
niln|Si| =
I
i=
niln|S
− 1
i
Distribution?
For large samples, χ
2
p(p+1)(I−1)/ 2
Small sample adjustment: “Box’s M-Test”
where S is the unbiased pooled estimator of Σ and c
q
i=
β
2
i
/n i
Distribution:
2
∼ T
2
(p, n − q)
Critical values from the F −distribution.
b) Comparing components of the mean vector
E.g., Compare several competing treatments to a
control or placebo. This is testing: H 0
: μ 1
−μ I
, ..., μ I− 1
μ I
This is a special case of:
0
: Aμ = c,
where A is a r × p matrix and c is a given r-vector.
In this case the test statistic is the Hotelling T
2 based
on:
[(n − r)/r](Ay − c)
′ (ASA
′
)
− 1 (Ay − c) ∼ F (r, n − r).
Univariate data, how to test μ 1
= μ 2
from indepen-
dent normal obs.?
MLE of μ 1
− μ 2
is x 1
− x 2
V ar(x 1
− x 2
) = σ
2
1
/n 1
2
2
/n 2
estimated by s
2
1
/n 1
2
2
/n 2
Approximate T-test:
t n
:= n
1 / 2 (x 1
− x 2
)/(s
2
1
/n 1
2
2
/n 2
1 / 2
For large samples t n
∼ N (0, 1), for small samples
Welch (1949) Biometrika gives approximate d.f.
Multivariate K-Sample (Behren’s Fisher) Problem
Test:
0
: μ 1
= ... = μ I
given Σ 1
I
1
: μ 1
= ... 6 = μ I
given Σ 1
I
Approach to test:
Lemma:
Assume X 1
and X 2
are full rank, and their columns
are linearly independent. Then, X
′
2
RX 2 is nonsingular
where R = I − X 1
′
1
1
− 1
X 1
′
.
Proof:
Need to show that if a
′ X 2
′
RX 2
= 0 then a = 0.
But a
′ X
′
2
′ RX 2
a = a
′ X
′
2
2
a = 0 ⇒ RX 2
a = 0. So
2
a = X 1
′
1
1
− 1 X
′
1
2
a = X 1
b, say, which implies
a = 0 (and b = 0 ).
Two Stage Least Squares:
Rewrite the Model as:
where X = (X 1
2
) and B = (B
′
1
′
2
′
. Let
1
and
2
denote the estimators of B 1
and B 2
in the full model.
1
denotes the estimator of B 1
in the submodel B 2
Using Geometry we have that the projection of X 1
1
2
2
by I − R onto the span of X 1
is X 1
1
. In matri-
ces:
1
′
1
1
− 1
X
′
1
1
1
2
2
1
1
or
1
1
1
′
1
1
− 1
X
′
1
2
2
1
1
Thus, we have:
1
1
′
1
1
− 1
X
′
1
2
2
Note:
2
2
1
′
1
1
′
1
2
2
1
Now, premultiply by X 2
′
, note that Y − X
B is or-
thogonal to X 2
so that
2
′
RX 2
2
2
′
RY.
Now use the Lemma to obtain:
′
RX 2 ]
− 1
X 2
′
RY
We have:
1
′
1
1
− 1 X
′
1
Y when B 2
= 0 and
1
and
2
as given above in the full model.
So the LRT is the F-test:
H
− RSS)/r]/[RSS/(n − q − r)] ∼ F r,n−q−r
under H 1
2
: Aβ 1
Recall X = (X 1 , X 2 ), then put ( A 0 )
β 1
β 2
= A 0 φ.
φ = (X
′ X)
− 1 Xy and
φ)
′
[A 0 (X
′
X)
− 1
A
′
0
− 1
(A 0
φ) ∼ Fa,n−q−r under H 2.
For Multivariate observations:
Replace y by Y
A) Parameter estimates
1
1
2
as before. and let:
1
1
2
2
′ (Y − X 1
1
2
2
B) Tests of hypotheses
1
2
′
RY − (X 2
2
′
RY,
2
2
′
RY
E ∼ Wp(Σ, n − q − r) and H ∼ Wp(Σ, r)
are independent. As before:
F = |E|/|E + H| ∼ ∆(p, n − q − r, r) under H 1
and p-values come from the Chi-squared or F dist.
2
1
As before X = (X 1 , X 2 ), then put ( A 0 )
1
2
0
′ X)
− 1 X
′ Y and
′
[A 0 (X
′
X)
− 1
A
′
0
− 1
(A 0
Φ) ∼ Wp(Σ, a)
and again
F = |E|/|E + H| ∼ ∆(p, n − q − r, a) under H 2
Now assume μ j
= 0 for j = 1, ..., p
0 k
0 k
2
=
2
0 k
n ∑
i=
p ∑
j=
λ ij
0 k
ij
n ∑
i=
p ∑
j=
n ∑
i
p ∑
j
λ ij
λ i
′ j
ij
i
′ j
= Ckk(0, 0) − 2
n
i=
p
j=
λij Cjk(0, i)+
n
i=
p
j=
n
i
p
j
λ ij
λ i
′ j
jj
′ (^) (i, i
′ ) =
F (λ ij
), say.
So: Minimize
F (λij )
subject to
n ∑
i=
λik = 1 and
n ∑
i=
λij = 0 for j 6 = k
How?
La Grange Multipliers.
Define:
k
(λ ij
n ∑
i=
λ ik
− 1 and G j
(λ ij
n ∑
i=
λ ij
for j 6 = k,
G = (G 1 , ..., Gp)
′
and:
H(λ ij
) = F (λ ij
) − m
′ G
Take derivatives w.r.t. λij ’s and m. Get np + p
equations, have np + p unknowns.
Unique Solution.
Simpler: p = 1:
Minimize:
n ∑
i=
λ i
C(0, i) +
n ∑
i=
n ∑
i
λ i
λ i
′ (^) C(i, i
′
) =
F (λ i
, i = 1, ..., n)
subject to
G(λ i
, i = 1, ..., n) :=
n ∑
i=
λ i
Compactly:
Cλ = c 0
We have:
λ = C
− 1
c 0
These are the “Kriging” weights and
0
n ∑
i=
λ i
i
is the Kriging Predictor of Z 0
Practical issue:
How to get the Covariance function [needed for C ij
p variables situation is called “Co-Kriging”.
Need to estimate and model all
p
2
covariance func-
tions.