Chapter-3-Linear Models For Regression
Chapter-3-Linear Models For Regression
确定映射关系
Sum-of-Squares Error Function
确定目标函数
确定 w 使目标函数最小化
0th Order Polynomial
1st Order Polynomial
3rd Order Polynomial
9th Order Polynomial
where
最大化似然函数
Maximum Likelihood and Least Squares (2)
在高斯噪声下,才能写成该形
Taking the logarithm, we get 式,此时最小均方误差和最大
似然估计等价
where
where
N-dimensional
M-dimensional
S is spanned by .
wML minimizes the distance
between t and its orthogonal
projection on S, i.e. y.
Y 的每一个值为 M 个向量的线型组合
Sequential Learning
Data items considered one at a time (a.k.a.
online learning); use stochastic (sequential)
gradient descent:
¸ is called the
which is minimized by regularization
coefficient.
Regularized Least Squares (1)
Is it true that or
Regularized Least Squares (2)
With a more general regularizer, we have
Lasso Quadratic
Regularized Least Squares (3)
Lasso tends to generate sparser solutions than a
quadratic
regularizer.
Understanding Lasso Regularizer
where
偏差描述与真实值之间的差距
方差描述与观测值均值之间的差距
The Bias-Variance Decomposition (4)
Thus we can write
where
Bias-Variance Tradeoff
The Bias-Variance Decomposition (5)
Example: 25 data sets from the sinusoidal, varying
the degree of regularization, ¸.
The Bias-Variance Decomposition (6)
Example: 25 data sets from the sinusoidal, varying
the degree of regularization, ¸.
The Bias-Variance Decomposition (7)
Example: 25 data sets from the sinusoidal, varying
the degree of regularization, ¸.
The Bias-Variance Trade-off
From these plots, we note
that an over-regularized
model (large ¸) will have a
high bias, while an under-
regularized model (small ¸)
will have a high variance.
Bayesian Linear Regression (1)
Define a conjugate prior over w
where
Bayesian Linear Regression (2)
A common choice for the prior is
for which
where
Predictive Distribution (1)
How to compute the predictive distribution ?
Predictive Distribution (2)
Example: Sinusoidal data, 9 Gaussian basis functions,
1 data point
Predictive Distribution (3)
Example: Sinusoidal data, 9 Gaussian basis functions,
2 data points
Predictive Distribution (4)
Example: Sinusoidal data, 9 Gaussian basis functions,
4 data points
Predictive Distribution (5)
Example: Sinusoidal data, 9 Gaussian basis functions,
25 data points
Salesman’s Problem
Given
• a consumer a described by a vector x
• a product b to sell with base cost c
• estimated price distribution of b in the mind
of a is Pr(t|x, w) = N(xTw, 2)
Negative