STAT100B_HW4S

STAT100B_HW4S - STAT 100B: Homework 4 Solutions Denise Tsai...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
STAT 100B: Homework 4 Solutions Denise Tsai February 24, 2011 1. For the simplest regression model y i = βx i + ± i , i = 1 ,...,n , derive the least squares estimate of β . Solution: We can find ˆ β by minimizing R ( β ) = n X i =1 ± 2 i = n X i =1 ( y i - βx i ) 2 Set the derivative of R with respect to β equal to zero: R 0 ( β ) = 2 n X i =1 ( y i - βx i )( - x i ) = 0 Then, n X i =1 x i y i = β n X i =1 ( x i ) 2 ˆ β = n i =1 x i y i n i =1 x 2 i (1) 2. For the simple regression y i = β 0 + β 1 x i + ± i , i = 1 ,...,n , derive the least squares estimates of β 0 and β 1 . Show that the least squares problem for the simple regression can be transformed into the least squares problem for the simplest regression. Solution: We can find ˆ β 0 and ˆ β 1 by minimizing R ( β 0 1 ) = n X i =1 ± 2 i = n X i =1 [ y i - ( β 0 + βx i )] 2 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Set the partial derivative of R with respect to β 0 equal to zero: ∂R ∂β 0 = 2 n X i =1 ( y i - β 0 - β 1 x i )( - 1) = 0 Then, n X i =1 y i =
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/20/2011 for the course STAT 100B taught by Professor Wu during the Winter '11 term at UCLA.

Page1 / 5

STAT100B_HW4S - STAT 100B: Homework 4 Solutions Denise Tsai...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online