Docsity

Finding β and Statistical Accuracy in Least-Squares Regression, Study notes of Statistics

Partial preview of the text

Download Finding β and Statistical Accuracy in Least-Squares Regression and more Study notes Statistics in PDF only on Docsity!

Visualizing Correlations in β

Dr. Scott, Stat 410

October 13, 2005

For our model Y = Xβ + 

min

β

SS(β) = 

t

 = (Y − Xβ)

T

(Y − Xβ)

= Y

t

Y − 2 β

t

X

t

Y + β

t

X

t

Xβ

The least-squares coefficient solves

β

SS = 0 − 2 X

t

Y + 2X

t

Xβ

β = (X

t

X)

− 1

X

t

Y

Hessian = ∇∇

t

SS = 2X

t

X

which is pos. def. ⇒ minimizer!!

Cute Example

V ar(ˆβ

k

) = V ar

         

[0 · · · 0 1 0 · · · 0]

         

β 0

β 1

β

k

β p− 1

                   

= V ar(e

t

k

AY )

= σ

2



e

t

k

AA

t

e k

= σ

2



e

t

k

(X

t

X)

− 1

e k

= σ

2



(X

t

X)

− 1

kk

as we have seen before.

Familiar Example p = 1

Y = Xβ +  with X =

Thus

β = (X

t

X)

− 1

︸ ︷︷ ︸

n

− 1

X

t

Y

︸ ︷︷ ︸

ny¯

= ¯y

σ

2

(ˆβ) = σ

2

(¯y) = σ

2



(X

t

X)

− 1

σ

2



n

as usual.

Note:

∑

(y i

− β)

2

∑

(y i

β + ˆβ − β)

2

∑ [

(y

i

β)

2

  • 2(ˆβ − β)(y

i

β) + (ˆβ − β)

2

]

∑

(y i

− ¯y)

2

  • 0 + n(ˆβ − β)

2

exactly!!

Dual: n = 100 and n = 400 (see sketches)

Tentative conclusion:

steeper criterion ⇒ more accurate parameters

Multivariate β

g(β) = 

t

Y = Xβ + 

β ∼ N (β, σ

2



(X

t

X)

− 1

Multivariate Taylor’s series:

g(β) = g(ˆβ)+(β −

β)

t

∇g(ˆβ)+

(β −

β)

t

2

g(ˆβ)(β −

β) + · · ·

For our least-squares problem:

g(β) = g(ˆβ) + 0 +

(β −

β)

t

2(X

t

X)(β −

β)

= Y

t

(I − H)Y + (β −

β)

t

(X

t

X)(β −

β)

(see sketch)

Facts about Positive Definite Matrices

A = X

t

X symmetric

Look at the quadratic form

y

t

A y = y

t

X

t

X y

︸︷︷︸

w

= w

t

w ≥ 0 ∀y

Look at eigenvalues/eigenvectors:

A v k

= λ k

v k

k = 1,... , p

and

v

t

k

v

k

= 1 v

t

k

v

`

= 0 k 6 = `.

Assume λ 1

λ 2

· · · > λ p

. Consider

v

t

k

(A v

k

) = v

t

k

(λ

k

v

k

) = λ

k

(v

t

k

v

k

) = λ

k

so, in fact, all the λ k

Level Sets

g(β) = g(ˆβ) + (β −

β)

t

A (β −

β)

Find values of β satisfying

(β −

β)

t

A (β −

β) = c

(see sketch)

Suppose A =

a 1

0 a 2

0 0 · · · a p

By inspection, A e k

= a k

e k

, so eigenvectors

are the coordinate axes. Level sets satisfy

y

t

A y =

p

∑

k=

a

k

y

2

k

p

∑

k=

y

2

k

1 /a k

= c

which is an ellipse.

(see sketch)

Next, find point, y, on the level set in the

direction, v 1

; thus y has the form α v 1

y

t

A y = c

α

2

v

t

1

A v 1

︸ ︷︷ ︸

λ 1

v 1

︸ ︷︷ ︸

λ 1

= c

so that

α

2

c

λ 1

Since λ 1

is the largest eigenvalue, this is the

shortest axis of the ellipse. Also, changes in

β in that direction give the quickest increase

in the criterion function, BUT most accurate

in that direction.

In general, points y

k

= α

k

v

k

on the level set

satisfy

α

2

k

v

t

k

A v

k

= c ⇒ α

k

√

c

λ

k

y k

√

c

λ

k

v k

or get same result by recalling

β −

β ∼ N (0, σ

2



(X

t

X)

− 1

has level sets

(β −

β)

t

− 1

(β −

β) = c

Look in the direction β −

β = α

k

v

k

, then

α

2

k

v

t

k

(

σ

2



(X

t

X)

− 1

)

− 1

v

k

= c

α

2

k

σ

2



v

t

k

(X

t

X) v

k

︸ ︷︷ ︸

λ k

= c

so

α

2

k

σ

2



c

λ k

⇒ α k

= σ 

√

c

λ k

(see sketch).... note the same orientation in

the end.

THE END

Well, now for the computer demos...