02 Vector and Matrix Representation* Flashcards
1
Q
linear model assumptions
A
- there exits a relationship between x and y
- this relationship is linear
- this relationship will continue into the future
2
Q
variables
A
attribute: x
targets: y or t
3
Q
linear model
A
t = w0 + w1(x)
where w0 is the bias
w1 is the gradient
4
Q
loss in linear
A
mean square error
1. after drawing a straight line, calculate error from line to X
2. square the error
3. sum all errors and get mean
5
Q
limitations
A
- relationship is not perfectly linear
- relationship might not be linear forever
6
Q
polynomial models **
A
t = w0 + w1x1 + w2x2 ….
can be represented in matrix
[w0, w1, w3] @ [1, x, xsquare, xcube]…
loss = 1/N . (t-xw)T (t-xw)
w = (xT. x)-1 . xTt
to predict new t, use updated x with old w
then update w with the new t