Docsity

Statistical Aspects of Machine Learning I - Study Notes | STAT 616, Study notes of Statistics

Toggle sidebar
bg1
Test for MVN assumption:
We know that for MVN observations:
(yi−µ)0Σ−1(yi−µ0)∼χ2
p.
Law of Large Numbers and CLT imply:
(yi−y)0S−1(yi−y)∼χ2
p,
for n“large”.
Graphic based on χ2−plot:
1) Obtain ti= (yi−y)0S−1(yi−y) and the ordered
t(1) ≤t(n).
2) Graph the pair (t(i), χ2
i) where χ2
iis the 100(i−
.5)/n percentile of the χ2
pdistribution.
Plot should show a straight line for Normal observations.
More formal tests based on Skewness of variates ti.
More in: Mardia (Sections 1.8, 5.7) and D’Agostino and
Stephens (1986)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Statistical Aspects of Machine Learning I - Study Notes | STAT 616 and more Study notes Statistics in PDF only on Docsity!

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:

  1. Obtain t i

= (y i

− y)

′ S

− 1 (y i

− y) and the ordered

t (1)

≤ t (n)

  1. Graph the pair (t (i)

, χ

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:

  1. Tests for μ with unknown Σ and

  2. 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

Y

i

y

′

i 1

y

′

i 2

y

′

i,ni

where yij ∼ Np(μi, Σi), j = 1, ..., ni, i = 1, ..., I.

  1. Main Hypothesis to Test: Equality of Means

H

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

S

i

− 1

I ∑

i=

n i

(y i

− y)(y i

− y)

′

= W

− 1

B.

Compare LRT and UIT:

|B + W|/|W| = |I + W

− 1 B|

We see: LRT and UIT not the same for general I.

They were the same when I = 1 (Hotelling T

2 ).

  1. Special case of MANOVA:

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.

  1. Test for equality of Variances

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:

H

0

1

I

Under H 0

MLE of Σ i

is pooled S =

I

i=

n i

S

i

/n.

Under H 1

MLE’s are Σ i

= S

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

S|

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

− 1

q

i=

β

2

i

/n i

Distribution:

T

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:

H

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).

  1. Behren’s Fisher Problem:

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

  • s

2

2

/n 2

Approximate T-test:

t n

:= n

1 / 2 (x 1

− x 2

)/(s

2

1

/n 1

  • s

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:

H

0

: μ 1

= ... = μ I

given Σ 1

I

H

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

(X

′

1

X

1

− 1

X 1

′

.

Proof:

Need to show that if a

′ X 2

′

RX 2

= 0 then a = 0.

But a

′ X

′

2

R

′ RX 2

a = a

′ X

′

2

RX

2

a = 0 ⇒ RX 2

a = 0. So

X

2

a = X 1

(X

′

1

X

1

− 1 X

′

1

X

2

a = X 1

b, say, which implies

a = 0 (and b = 0 ).

Two Stage Least Squares:

Rewrite the Model as:

Y = XB + E,

where X = (X 1

, X

2

) and B = (B

′

1

, B

′

2

′

. Let

B

1

and

B

2

denote the estimators of B 1

and B 2

in the full model.

B

1

denotes the estimator of B 1

in the submodel B 2

Using Geometry we have that the projection of X 1

B

1

X

2

B

2

by I − R onto the span of X 1

is X 1

B

1

. In matri-

ces:

X

1

(X

′

1

X

1

− 1

X

′

1

[X

1

B

1

+ X

2

B

2

] = X

1

B

1

or

X

1

B

1

+ X

1

(X

′

1

X

1

− 1

X

′

1

X

2

B

2

= X

1

B

1

Thus, we have:

B

1

B

1

− (X

′

1

X

1

− 1

X

′

1

X

2

B

2

Note:

X

2

B

2

− X

1

(X

′

1

X

1

)X

′

1

X

2

B

2

+ Y − X

B = Y − X

B

1

Now, premultiply by X 2

′

, note that Y − X

B is or-

thogonal to X 2

so that

[X

2

′

RX 2

]

B

2

= X

2

′

RY.

Now use the Lemma to obtain:

B 2 = [X 2

′

RX 2 ]

− 1

X 2

′

RY

We have:

B

1

= (X

′

1

X

1

− 1 X

′

1

Y when B 2

= 0 and

B

1

and

B

2

as given above in the full model.

So the LRT is the F-test:

[(RSS

H

− RSS)/r]/[RSS/(n − q − r)] ∼ F r,n−q−r

under H 1

H

2

: Aβ 1

Recall X = (X 1 , X 2 ), then put ( A 0 )

β 1

β 2

= A 0 φ.

φ = (X

′ X)

− 1 Xy and

(A 0

φ)

′

[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

B

1

B

1

B

2

as before. and let:

E = (Y − X

1

B

1

− X

2

B

2

′ (Y − X 1

B

1

− X

2

B

2

B) Tests of hypotheses

H

1

: B

2

E = Y

′

RY − (X 2

B

2

′

RY,

H = (X

2

B

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.

H

2

: AB

1

As before X = (X 1 , X 2 ), then put ( A 0 )

B

1

B

2

A

0

Φ = (X

′ X)

− 1 X

′ Y and

H = (A 0

′

[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

E[Z

0 k

Z

0 k

]

2

=

E[Z

2

0 k

n ∑

i=

p ∑

j=

λ ij

Z

0 k

Z

ij

n ∑

i=

p ∑

j=

n ∑

i

′

p ∑

j

′

λ ij

λ i

′ j

′ Z

ij

Z

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

′ C

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:

G

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:

C(0, 0) − 2

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

Z

0

n ∑

i=

λ i

Z

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.