Lecture 11
Lecture 11
Regression
Dr. Frank Wood
remember
because
is a random matrix
0.04
0.02
0
10
2
10
0
8
6
-2
4
-4 2
0
-6 -2
-4
y -8
-8
-6
Run multivariate_normal_plots.m
-10 x
-10
Frank Wood, [email protected] Linear Regression Models Lecture 11, Slide 10
Matrix Simple Linear Regression
• Nothing new – only matrix formalism for
previous results
• Remember the normal error regression model
• This implies
• This is because
where
and
with
and since
we have
Frank Wood, [email protected] Linear Regression Models Lecture 11, Slide 17
Least Squares Solution
• The matrix normal equations can be derived
directly from the minimization of
w.r.t. to β
Do this on board.
demonstrate on board
where
• We have
and this
• Simplified
do on board
Frank Wood, [email protected] Linear Regression Models Lecture 11, Slide 28
Quadratic Forms
• In general, a quadratic form is defined by
which yields
and thus
since