Recall that the goal of classification is to learn a mapping from the feature space,
, to a label space,
. This mapping,
, is called a
classifier . For example, we might have
We can measure the loss of our classifier using
loss;
i.e.,
Recalling that risk is defined to be the expected value of the loss function, we have
The performance of a given classifier can be evaluated in terms of how close its risk is to the Bayes' risk.
(Bayes' Risk)
The Bayes' risk is the infimum of the risk for all classifiers:
We can prove that the Bayes risk is achieved by the Bayes classifier.
Bayes Classifier
The Bayes classifier is the following mapping:
where
Note that for any
,
is the value of
that maximizes
.
Theorem
Risk of the bayes classifier
Let
be any classifier. We will show that
For any
,
Next consider the difference
where the second equality follows by noting that
.
Next recall
For
such that
, we have
and for
such that
, we have
which implies
or
Note that while the Bayes classifier achieves the Bayes risk, in practice this classifier is not realizable because we do not know the distribution
and so cannot construct
.
Regression
The goal of regression is to learn a mapping from the input space,
,
to the output space,
. This mapping,
, is called a
estimator . For example, we might have
We can measure the loss of our estimator using squared error loss;
i.e.,
Recalling that risk is defined to be the expected value of the loss function, we have
The performance of a given estimator can be evaluated in terms of how close the risk is to the infimum of the risk for all estimator under consideration:
Theorem
Minimum risk under squared error loss (mse)
Let
Thus if
, then
, as desired.
Empirical risk minimization
Empirical Risk
Let
be a collection of training data.
Then the empirical risk is defined as
Empirical risk minimization is the process of choosing a learning rule which minimizes the empirical risk;
i.e.,
Pattern classification
Let the set of possible classifiers be
and let the feature space,
, be
or
. If we use the notation
, then the set of classifiers can be alternatively represented as
In this case, the classifier which minimizes the empirical risk is
Regression
Let the feature space be
and let the set of possible estimators be
In this case, the classifier which minimizes the empirical risk is
Suppose
, our collection of candidate functions, is very large. We can always make
smaller by increasing the cardinality of
, thereby providing more possibilities to fit to the data.
Consider this extreme example: Let
be all measurable functions. Then every function
for which
has zero empirical risk (
). However, clearly this
could be a very poor predictor of
for a new input
.
Classification overfitting
Consider the classifier in
[link] ; this demonstrates overfitting in classification. If the data were in fact generated from two Gaussian distributions centered in the upper left and lower right quadrants of the feature space domain, then the optimal estimator would be the linear estimator in
[link] ; the overfitting would result in a higher probability of error for predicting classes of future observations.
Regression overfitting
Below is an m-file that simulates the polynomial fitting. Feel free to play around with it to get an idea of the overfitting problem.
% poly fitting
% rob nowak 1/24/04clear
close all
% generate and plot "true" functiont = (0:.001:1)';
f = exp(-5*(t-.3).^2)+.5*exp(-100*(t-.5).^2)+.5*exp(-100*(t-.75).^2);figure(1)
plot(t,f)
% generate n training data & plot
n = 10;sig = 0.1; % std of noise
x = .97*rand(n,1)+.01;y = exp(-5*(x-.3).^2)+.5*exp(-100*(x-.5).^2)+.5*exp(-100*(x-.75).^2)+sig*randn(size(x));
figure(1)clf
plot(t,f)hold on
plot(x,y,'.')
% fit with polynomial of order k (poly degree up to k-1)k=3;
for i=1:k V(:,i) = x.^(i-1);
endp = inv(V'*V)*V'*y;
for i=1:k
Vt(:,i) = t.^(i-1);end
yh = Vt*p;figure(1)
clfplot(t,f)
hold onplot(x,y,'.')
plot(t,yh,'m')
Questions & Answers
A golfer on a fairway is 70 m away from the green, which sits below the level of the fairway by 20 m. If the golfer hits the ball at an angle of 40° with an initial speed of 20 m/s, how close to the green does she come?
A mouse of mass 200 g falls 100 m down a vertical mine shaft and lands at the bottom with a speed of 8.0 m/s. During its fall, how much work is done on the mouse by air resistance
Chemistry is a branch of science that deals with the study of matter,it composition,it structure and the changes it undergoes
Adjei
please, I'm a physics student and I need help in physics
Adjanou
chemistry could also be understood like the sexual attraction/repulsion of the male and female elements. the reaction varies depending on the energy differences of each given gender. + masculine -female.
Pedro
A ball is thrown straight up.it passes a 2.0m high window 7.50 m off the ground on it path up and takes 1.30 s to go past the window.what was the ball initial velocity
2. A sled plus passenger with total mass 50 kg is pulled 20 m across the snow (0.20) at constant velocity by a force directed 25° above the horizontal. Calculate (a) the work of the applied force, (b) the work of friction, and (c) the total work.
you have been hired as an espert witness in a court case involving an automobile accident. the accident involved car A of mass 1500kg which crashed into stationary car B of mass 1100kg. the driver of car A applied his brakes 15 m before he skidded and crashed into car B. after the collision, car A s
can someone explain to me, an ignorant high school student, why the trend of the graph doesn't follow the fact that the higher frequency a sound wave is, the more power it is, hence, making me think the phons output would follow this general trend?
Nevermind i just realied that the graph is the phons output for a person with normal hearing and not just the phons output of the sound waves power, I should read the entire thing next time
Joseph
Follow up question, does anyone know where I can find a graph that accuretly depicts the actual relative "power" output of sound over its frequency instead of just humans hearing
Joseph
"Generation of electrical energy from sound energy | IEEE Conference Publication | IEEE Xplore" ***ieeexplore.ieee.org/document/7150687?reload=true
A string is 3.00 m long with a mass of 5.00 g. The string is held taut with a tension of 500.00 N applied to the string. A pulse is sent down the string. How long does it take the pulse to travel the 3.00 m of the string?