Regression Models

INFO

providing predictive insights across various industries

  • selecting the right regression model depends on
    • data characteristics
    • business objectives
    • computational constraints

Linear Regression

The technique for creating linear models

Simple Linear Regression

  • Considers samples of a single variable and describes the relationship between the variable and the response with the model:

  • The relationship between the variable and the response are described with a straight line.

  • The constant

    • Necessary to not force the model to pass through the origin .
    • Equals to the value at which the line crosses the y-axis.
    • Not interpretable
      • For example, if we have the regression between
        • does not make sense to interpret the value of when the height is 0

Multiple Linear Regression

The objective of performing a regression is to build a model to express the relation between the response and a combination of one or more (independent) variables .

  • The model allows us to predict the response from the predictors.
  • The simplest model which can be considered is a linear model, where the response depends linearly on the predictors :

Where:

  • = parameters = coefficients of the model
  • = intercept = the constant term

This equation can be rewritten in a more compact (matricial) form: , where

In the matricial form we add a constant term by changing the matrix to .

Polynomial Regression, Ridge, and Lasso Regression

  • enhance performance when dealing with non-linearity and multicollinearity

ElasticNet

  • balances feature selection and regularization
  • ideal for high-dimensional data

Logistic Regression

  • fundamental classification tasks approach

Multivariate Regression

  • valuable when predicting multiple outcomes simultaneously

SVR, Decision Trees, Random Forest

  • provide sophisticated solutions for complex problems