Title: Ordinary Least-Squares
1Ordinary Least-Squares
2Outline
- Linear regression
- Geometry of least-squares
- Discussion of the Gauss-Markov theorem
3One-dimensional regression
4One-dimensional regression
Find a line that represent the best linear
relationship
5One-dimensional regression
- Problem the data does not go through a line
6One-dimensional regression
- Problem the data does not go through a line
- Find the line that minimizes the sum
7One-dimensional regression
- Problem the data does not go through a line
- Find the line that minimizes the sum
- We are looking for that minimizes
8Matrix notation
- Using the following notations
- and
9Matrix notation
- Using the following notations
- and
- we can rewrite the error function using linear
algebra as
10Matrix notation
- Using the following notations
- and
- we can rewrite the error function using linear
algebra as
11Multidimentional linear regression
- Using a model with m parameters
12Multidimentional linear regression
- Using a model with m parameters
13Multidimentional linear regression
- Using a model with m parameters
14Multidimentional linear regression
- Using a model with m parameters
- and n measurements
15Multidimentional linear regression
- Using a model with m parameters
- and n measurements
16(No Transcript)
17(No Transcript)
18parameter 1
19parameter 1
measurement n
20Minimizing
21Minimizing
22Minimizing
is flat at
23Minimizing
is flat at
24Minimizing
is flat at
does not go down around
25Minimizing
is flat at
does not go down around
26Positive semi-definite
In 1-D
In 2-D
27Minimizing
28Minimizing
29Minimizing
30Minimizing
Always true
31Minimizing
The normal equation
Always true
32Geometric interpretation
33Geometric interpretation
34Geometric interpretation
- b is a vector in Rn
- The columns of A define a vector space range(A)
35Geometric interpretation
- b is a vector in Rn
- The columns of A define a vector space range(A)
- Ax is an arbitrary vector in range(A)
36Geometric interpretation
- b is a vector in Rn
- The columns of A define a vector space range(A)
- Ax is an arbitrary vector in range(A)
37Geometric interpretation
- is the orthogonal projection of b onto
range(A)
38The normal equation
39The normal equation
- Existence has always a
solution
40The normal equation
- Existence has always a
solution - Uniqueness the solution is unique if the columns
of A are linearly independent
41The normal equation
- Existence has always a
solution - Uniqueness the solution is unique if the columns
of A are linearly independent
42Under-constrained problem
43Under-constrained problem
44Under-constrained problem
45Under-constrained problem
- Poorly selected data
- One or more of the
- parameters are redundant
46Under-constrained problem
- Poorly selected data
- One or more of the
- parameters are redundant
- Add constraints
47How good is the least-squares criteria?
- Optimality the Gauss-Markov theorem
48How good is the least-squares criteria?
- Optimality the Gauss-Markov theorem
- Let and be two sets of random variables
- and define
49How good is the least-squares criteria?
- Optimality the Gauss-Markov theorem
- Let and be two sets of random variables
- and define
- If
50How good is the least-squares criteria?
- Optimality the Gauss-Markov theorem
- Let and be two sets of random variables
- and define
- If
- Then is the
- best unbiased linear estimator
51b
ei
a
no errors in ai
52b
b
ei
ei
a
a
errors in ai
no errors in ai
53b
a
homogeneous errors
54b
b
a
a
homogeneous errors
non-homogeneous errors
55b
a
no outliers
56outliers
b
b
a
a
outliers
no outliers