Introduction to Regression Methods
Learn the basics of linear, regularization, polynomial, and logistic regression.
Regression refers to the task of predicting a continuous class variable, given some input features. We’ll discuss linear regression as the main method frequently used for regression, and some other more advanced techniques in this chapter.
For the sake of consistency, we are going to use the following system of naming:
- are the input variables.
- is an input instance, in which input variable takes on value . To denote different input instances, we use , .
- Here, is the target/output/class variable and is a value can take.
- In case there are many class values to be discussed, we’ll use subscripts to differentiate them (e.g., or ). Similar to the input, we use , to denote corresponding target values of inputs , .
Linear regression
Linear regression is a regression method that models the relationship between a continuous class/target variable , called the dependent variable, and a set of input features , called independent variables. A dependent variable is what we are measuring (or predicting in this case) and an independent variable is what we are controlling or manipulating (or have as an input in this case). Note that we also call the input features, , feature vector, since it comprises multiple variables, each corresponding to one dimension in the vector space formed by the features. As such, we are going to use data points and data vectors interchangeably in this chapter.
Back to the method at hand, linear regression assumes a linear relationship between the variables. The dependent variable can be expressed as a linear combination of independent variables , as illustrated in the below figure.
Get hands-on with 1400+ tech skills courses.