Midterm Exam 2 Information | Regression Analysis | STATS 0100C, Exams of Statistics

Material Type: Exam; Class: REGRESSION ANALYSIS; Subject: Statistics; University: University of California - Los Angeles; Term: Spring 2009;

Typology: Exams

Pre 2010

Uploaded on 08/26/2009

koofers-user-48h
koofers-user-48h 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
STATS 100C Midterm Exam 2 Information (Spring 2009)
Midterm exam 2: Monday, May 18, 2-2:50pm in MS 5128.
This is a closed-book exam, but you can use a calculator and the formulas provided.
The z, t and F tables will be provided if necessary.
Material: Chapters 1-4, HW 1-6.
Formulas for STATS 100C Midterm Exam 2 (Spring 2009)
Chapter 2: Simple Linear Regression
The pdf of N(µ, σ2) is f(x) = 1
2πσ exp[(xµ)2
2σ2].
Model: yi=β0+β1xi+#i. LSE: ˆ
β1=sxy
sxx ,ˆ
β0= ¯yˆ
β1¯x, ˆµ0=ˆ
β0+ˆ
β1x0.
Variance: V(ˆ
β1) = σ2/sxx,V(ˆ
β0) = σ2(1
n+¯x2
sxx ), Vµ0) = σ2(1
n+(x0¯x)2
sxx ).
Notation: r=sxy/sxx syy ,sxx =!(xi¯x)2=!x2
i1
n(!xi)2
sxy =!(xi¯x)(yi¯y) = !(xi¯x)yi=!xiyi1
n(!xi)(!yi)
SST =!(yi¯y)2,SSR =!µi¯y)2=ˆ
β2
1sxx and SSE =!(yiˆµi)2.
Chapter 3: Random Vectors Suppose E(y) = µand V(y) = Σ.
E(Ay +b) = +b, V (Ay +b) = AΣA#, V (y) = E[(yµ)(yµ)#], cov(a#y, b#y) = a#Σb.
The pdf of a n-variate normal distribution N(µ, Σ) is
f(x) = (2π)n
2|Σ|1
2exp[1
2(xµ)#Σ1(xµ)]
Chapter 4: Multiple Linear Regression Model
Model: y=Xβ+#,#N(0,σ2I)
LSE ˆ
β= (X#X)1X#y,s2=S(ˆ
β)/(np1) = (yXˆ
β)#(yXˆ
β)/(np1).
Fitted values ˆµ=Xˆ
β=Hy; residuals e=yˆµ=yHy = (IH)y; where H=X(X#X)1X#.
Variance V(ˆ
β) = σ2(X#X)1,Vµ) = σ2H,V(e) = σ2(IH), V(a#ˆ
β) = σ2a#(X#X)1a.
Properties: ˆ
βand eare independent; S(ˆ
β)/σ2=e#e/σ2χ2
np1; LSE is BLUE.
CI for βi:ˆ
βi±t(1 α/2, n p1)svii ; CI for a#β:a#ˆ
β±t(1 α/2, n p1)s"a#(X#X)1a
F statistic for testing H0:Aβ= 0:
F=$ˆµˆµA$2/l
S(ˆ
β)/(np1) =(S(ˆ
βA)S(ˆ
β))/l
S(ˆ
β)/(np1)
Joint confidence region for β: ( ˆ
ββ)#(X#X)( ˆ
ββ)/[(p+ 1)s2]F(1 α, p + 1, n p1).
SST =!(yi¯y)2,SSE =!(yiˆµi)2,SSR =!µi¯y)2=ˆ
β#X#yn¯y2=ˆ
β#X#Xˆ
βn¯y2.
R2=SSR/SST = 1 SSE/SST
3

Partial preview of the text

Download Midterm Exam 2 Information | Regression Analysis | STATS 0100C and more Exams Statistics in PDF only on Docsity!

STATS 100C Midterm Exam 2 Information (Spring 2009)

  • Midterm exam 2: Monday, May 18, 2-2:50pm in MS 5128.
  • This is a closed-book exam, but you can use a calculator and the formulas provided.
  • The z, t and F tables will be provided if necessary.
  • Material: Chapters 1-4, HW 1-6.

Formulas for STATS 100C Midterm Exam 2 (Spring 2009)

Chapter 2: Simple Linear Regression

The pdf of N (μ, σ

2 ) is f (x) =

1 √

2 πσ

exp[−

(x−μ)

2

2 σ

2

].

Model: y i

= β 0

  • β 1

x i

i

. LSE:

β 1

s (^) xy

s (^) xx

β 0

= ¯y −

β 1

x¯, ˆμ 0

β 0

β 1

x 0

Variance: V (

β 1

) = σ

2 /s xx

, V (

β 0

) = σ

2 (

1

n

¯x

2

s (^) xx

), V (ˆμ 0

) = σ

2 (

1

n

(x 0 −x¯)

2

s (^) xx

Notation: r = s xy

s xx

s yy

, s xx

(x i

− x¯)

2

x

2

i

1

n

x i

2

sxy =

(xi − x¯)(y (^) i − y¯) =

(xi − x¯)y (^) i =

xi y (^) i −

1

n

xi )(

y (^) i )

SST =

(y (^) i − y¯)

2 , SSR =

(ˆμi − y¯)

2

β

2

1

sxx and SSE =

(y (^) i − μˆi )

2 .

Chapter 3: Random Vectors Suppose E(y) = μ and V (y) = Σ.

E(Ay + b) = Aμ + b, V (Ay + b) = AΣA

′ , V (y) = E[(y − μ)(y − μ)

′ ], cov(a

′ y, b

′ y) = a

′ Σb.

The pdf of a n-variate normal distribution N (μ, Σ) is

f (x) = (2π)

n

(^2) |Σ|

1

(^2) exp[−

(x − μ)

′ Σ

− 1 (x − μ)]

Chapter 4: Multiple Linear Regression Model

Model: y = Xβ + #, # ∼ N (0, σ

2 I)

LSE

β = (X

′ X)

− 1 X

′ y, s

2 = S(

β)/(n − p − 1) = (y − X

β)

′ (y − X

β)/(n − p − 1).

Fitted values ˆμ = X

β = Hy; residuals e = y − μˆ = y − Hy = (I − H)y; where H = X(X

′ X)

− 1 X

′ .

Variance V (

β) = σ

2 (X

′ X)

− 1 , V (ˆμ) = σ

2 H, V (e) = σ

2 (I − H), V (a

β) = σ

2 a

′ (X

′ X)

− 1 a.

Properties:

β and e are independent; S(

β)/σ

2 = e

′ e/σ

2 ∼ χ

2

n−p− 1

; LSE is BLUE.

CI for βi :

βi ± t(1 − α/ 2 , n − p − 1)s

vii ; CI for a

′ β: a

β ± t(1 − α/ 2 , n − p − 1)s

a

′ (X

′ X)

− 1 a

F statistic for testing H 0 : Aβ = 0:

F =

‖ˆμ − μˆ A

2 /l

S(

β)/(n − p − 1)

(S(

β A

) − S(

β))/l

S(

β)/(n − p − 1)

Joint confidence region for β: (

β − β)

′ (X

′ X)(

β − β)/[(p + 1)s

2 ] ≤ F (1 − α, p + 1, n − p − 1).

SST =

(y i

− y¯)

2 , SSE =

(y i

− μˆ i

2 , SSR =

(ˆμ i

− y¯)

2

β

′ X

′ y − ny¯

2

β

′ X

′ X

β − ny¯

2 .

R

2 = SSR/SST = 1 − SSE/SST