Professional Documents
Culture Documents
Cost Functions
1-parameter model: yn ≈ w0
2-parameter model: yn ≈ w0 + w1xn1
1 2 3 4 5 6 7
y1 = 1
y2 = 2
y3 = 3
y4 = 4
MSE(w) · N
y5 = 20
MSE(w) · N
.
Some help: 192 = 361, 182 = 324, 172 = 289, 162 = 256, 152 = 225, 142 = 196, 132 = 169
Outliers
Outliers are data examples that are
far away from most of the other
examples. Unfortunately, they
occur more often in reality than you
would want them to!
(a) Original speed of light data done (b) Histogram showing out-
by Simon Newcomb. liers.
N
1 X
MAE(w) := yn − fw (xn)
N n=1
1 2 3 4 5 6 7
y1 = 1
y2 = 2
y3 = 3
y4 = 4
MAE(w) · N
y5 = 20
MAE(w) · N
Importance of convexity
A strictly convex function has a
unique global minimum w?. For
convex functions, every local mini-
mum is a global minimum.