Professional Documents
Culture Documents
Applied Linear Algebra - Boyd Slides Part 2
Applied Linear Algebra - Boyd Slides Part 2
Linear functions
Outline
Taylor approximation
Regression model
f (x) = aT x = a1 x1 + a2 x2 + · · · + an xn
f (↵x + y) = aT (↵x + y)
= aT (↵x) + aT ( y)
= ↵(aT x) + (aT y)
= ↵f (x) + f (y)
I suppose f : Rn ! R is linear
I specifically: ai = f (ei )
I follows from
f (x) = f (x1 e1 + x2 e2 + · · · + xn en )
= x1 f (e1 ) + x2 f (e2 ) + · · · + xn f (en )
f (x) g(x)
x x
Taylor approximation
Regression model
I suppose f : Rn ! R
I first-order Taylor approximation of f , near point z:
@f @f
f̂ (x) = f (z) + (z)(x1 z1 ) + · · · + (z)(xn zn )
@x1 @xn
I f̂ (x) is very close to f (x) when xi are all near zi
I f̂ is an affine function of x
I can write using inner product as
f (x)
f̂ (x)
Taylor approximation
Regression model
ŷ = xT +v
I y is selling price of house in $1000 (in some location, over some period)
I regressor is
x = (house area, # bedrooms)
(house area in 1000 sq.ft.)