Regression is just like classification except the response variable is continuous.

Here are some examples of real-word regression problems.

  • Predict tomorrow’s stock market price given current market conditions and other possible side information,
  • Predict age of a viewer watching a given video on youtube,
  • Predict the location in 3D space of a robot arm end effector, given control signals (torques) sent to its various motors,
  • Predict the amount of prostate specific antigen (PSA) in the body as a function of a number of different clinical measurements,
  • Predict the temperature at any location inside a building using weather data, time, door sensors, etc.

Linear Regression

Widely used. This asserts that the response is a linear function of the inputs.

,where:

  • represents the inner or scalar product between the input vector and the model’s weight vector , and is the residual error between our linear predictions and the true response.

We often assume that has a Gaussian or normal distribution. So we can rewrite the model in the following form:

In the simplest case, we assume that is a linear function of , so , and that the noise is fixed, . In this case, are the params of the model.

For example, suppose the input is 1 dimensional. We can represent the expected response as follows:

,where is the intercept or bias term, is the slope, and where we have defined the vector .