官术网_书友最值得收藏!

Different types of regression

The power of regression techniques is due to the quality of their algorithms, which have been improved and updated over the years. These are divided into several main types, depending on the nature of the dependent and independent variables used or the shape of the regression line.

The reason for such a wide range of regression techniques is the variety of cases to be analyzed. Each case is based on data with specific characteristics, and each analysis is characterized by specific objectives. These specifications require the use of different types of regression techniques to obtain the best results.

How do we distinguish between different types of regression techniques? Previously, we said that a first distinction can be made based on the form of the regression line. Based on this feature, regression analysis is divided into linear regression and nonlinear regression, as shown in the following diagram:

Linear regression on the left and nonlinear quadratic regression on the right

It's clear that the shape of the regression line is dependent on the distribution of data. There are cases where a straight line is the regression line that best approximates the data, while in other cases you need to fall into a curve to get the best approximation. That said, it is easy to understand that a visual analysis of the distribution of data we are going to analyze is a good practice to be done in advance. By summarizing the shape of distribution, we can distinguish the type of regression between the following:

  • Linear regression
  • Nonlinear regression

The difference between the two models lies in the type of relationships existing between the variables: linear and nonlinear. Let's analyze the nature of the variables involved. In this regard, a question arises spontaneously: Can the number of explanatory variables affect the choice of regression technique? The answer to this question is surely positive. For example, in the case of linear regression, if there is only one input variable, then we will do simple linear regression. Alternatively, if the input variables are two or more, we will need to perform multiple linear regression.

By summarizing a simple linear regression, it shows the relationship between a dependent variable Y and an independent variable X. A multiple regression model shows the relationship between a dependent variable Y and multiple independent variables X. In the following diagram, we can see the types of regression imposed from the Number of the explanatory variables:

Another question that arises is, what if we have multiple response variables rather than explanatory variables? In that case, we move from univariate models to multivariate models. As suggested by the name itself, multivariate regression is a technique with the help of which a single regression model can be estimated with more than one response variable. When there is more than one explanatory variable in a multivariate regression model, the model is a multivariate multiple regression.

Finally, let's see what happens when we analyze the type of variables. Usually, regression analysis is used when you want to predict a continuous response variable from a number of explanatory variables, which are also continuous. But this is not a limitation of regression, in the sense that such an analysis is also applicable when categorical variables are at stake.

In the case of a dichotomous explanatory variable (which takes a value of zero or one), the solution is immediate. There are already two numbers (zero and one) associated with this variable, so the regression is immediately applicable. Categorical explanatory variables with more than two values can also be used in regression analyses; however, before they can be used, they need to be converted into variables that have only two levels (such as zero and one). This is called dummy coding or indicator variables. Logistic regression should be used if the response variable is dichotomous.

主站蜘蛛池模板: 太谷县| 林口县| 安阳市| 平阴县| 永平县| 南岸区| 通河县| 石柱| 武冈市| 诸暨市| 鄯善县| 龙陵县| 罗山县| 长武县| 乐清市| 巴马| 东源县| 丰台区| 洛阳市| 武陟县| 防城港市| 洪江市| 荃湾区| 五寨县| 肇源县| 平武县| 米脂县| 大姚县| 华阴市| 云南省| 永年县| 香港 | 南丹县| 云南省| 尖扎县| 两当县| 观塘区| 巴里| 鹤山市| 眉山市| 封丘县|