Lably
Skip to content

Empirical risk minimization

Principle in statistical learning theory

  • 5 min read
  • 4 chapters

Related on Lably

Through Machine learning, Random variable and Loss function

Background

The following situation is a general setting of many supervised learning problems. There are two spaces of objects X and Y and we would like to learn a function h:X→Y (often called hypothesis) which outputs an object y∈Y, given x∈X. To do so, there is a training set of n examples (x1,y1),…,(xn,yn) where xi∈X is an input and yi∈Y is the corresponding response that is desired from h(xi).

To put it more formally, assuming that there is a joint probability distribution P(x,y) over X and Y, and that the training set consists of n instances (x1,y1),…,(xn,yn) drawn i.i.d. from P(x,y). The assumption of a joint probability distribution allows for the modelling of uncertainty in predictions (e.g. from noise in data) because y is not a deterministic function of x, but rather a random variable with conditional distribution P(y|x) for a fixed x.

It is also assumed that there is a non-negative real-valued loss function L(y^,y) which measures how different the prediction y^ of a hypothesis is from the true outcome y. For classification tasks, these loss functions can be scoring rules. The risk associated with hypothesis h(x) is then defined as the expectation of the loss function:

R(h)=E[L(h(x),y)]=∫L(h(x),y)dP(x,y).

A loss function commonly used in theory is the 0-1 loss function: L(y^,y)={1 if y^≠y0 if y^=y.

The ultimate goal of a learning algorithm is to find a hypothesis h∗ among a fixed class of functions H for which the risk R(h) is minimal:

h∗=argminh∈HR(h).

For classification problems, the Bayes classifier is defined to be the classifier minimizing the risk defined with the 0–1 loss function.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Computing and communication