Lec05.Matrix2 - Matrix Algebra and Regression KNNL Ch. 5 X...

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

View Full Document Right Arrow Icon
Matrix Algebra and Regression KNNL Ch. 5
Background image of page 1

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

View Full DocumentRight Arrow Icon
X Matrix = - n n X X X X 1 1 1 1 1 2 1 X attach(sparrow) Xmat = cbind(    rep(1,length(age.days)),          age.days) Xmat integer matrix: 13 rows, 2  columns.       [,1] [,2]  [1,]    1    3 [2,]    1    4 [3,]    1    5 [4,]    1    6 [5,]    1    8 [6,]    1    9 . . .
Background image of page 2
Product of X Matrix = = - - 2 1 2 1 1 2 1 1 1 1 1 1 1 1 1 ' i i i n n n n X X X n X X X X X X X X X X
Background image of page 3

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

View Full DocumentRight Arrow Icon
Slope and Intercept = = - - - = n i i n i i i X X Y Y X X b 1 2 1 1 ) ( ) )( ( X b Y b 1 0 - =
Background image of page 4
Variance of Regression Estimators - + = = 2 1 2 0 2 ) ( 1 ) ( n i i X X X n MSE b s 2 1 1 2 ) ( 1 ) ( = - = n i i X X MSE b s
Background image of page 5

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

View Full DocumentRight Arrow Icon
X Matrix = - n n X X X X 1 1 1 1 1 2 1 X attach(sparrow) Xmat = cbind(    rep(1,length(age.days)),          age.days) Xmat integer matrix: 13 rows, 2  columns.       [,1] [,2]  [1,]    1    3 [2,]    1    4 [3,]    1    5 [4,]    1    6 [5,]    1    8 [6,]    1    9 . . .
Background image of page 6
Y Matrix = - n n Y Y Y Y 1 2 1 Y attach(sparrow) Ymat = wing.length Ymat  1.4 
Background image of page 7

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

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 28

Lec05.Matrix2 - Matrix Algebra and Regression KNNL Ch. 5 X...

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

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