Data Analytics in Bioinformatics. Группа авторов

Читать онлайн книгу.

Data Analytics in Bioinformatics - Группа авторов


Скачать книгу
Index: 0.5: No Discriminant, 0.6–0.8: Can be considered accepted, 0.8–0.9: Excellent, >0.9: Outstanding

       1.4.2 Difference between Linear & Logistic Regression

      Linear and Logistics regression are two common types of regression used for prediction. The result of the prediction is represented with the help of numeric variables. The difference between linear and logistic regression is depicted in Table 1.3 for easy understanding.

      Linear regression is used to model the data by using a straight line whereas the logistic regression deals with the modeling of probability of events in a bi-variate manner that is occurring as a linear function of dependent variables. Few other types of regression analysis are depicted by different scientists and listed below.

S. No. Parameter Linear regression Logistic regression
1 Purpose Used for solving regression problems. Used for solving classification problems.
2 Variables Involved Continuous Variables Categorical Variables
3 Objective Finding of best-fit-line and predicting the output. Finding of s-curve and classifying the samples.
4 Output Continuous Variables such as age, price, etc. Categorical Values such as 0 & 1, Yes & No.
5 Collinearity There may be collinearity between independent attributes. There should not be collinearity between independent attributes.
6 Relationship The relationship between a dependent variable and the independent variable must be linear. The relationship between a dependent variable and an independent variable may not be linear.
7 Estimation Method Used Least Square Estimation Maximum Likelihood Estimation

       Polynomial Regression: It is used for curvilinear data [57–58].

       Stepwise Regression: It works with predictive models [59–60].

       Ridge Regression: Used for multiple regression data [61–62].

       Lasso Regression: Used for the purpose of variable selection & regularization [63–64].

       Elastic Net Regression: Used when the penalties of lasso and ridge method are combined [65].

      The Random Forest was first invented by Tim Kan Ho [66]. Random Forest is a supervised ensemble learning method, which solves regression and classification problems. It is a method of ensemble learning (i.e. bagging algorithm) and works by averaging the result and by reducing overfitting [67–71]. It is a flexible method and a ready to use in the machine learning algorithm. The Random Forest can be used for the process of regression and known as Regression Forests [72]. It can cope up with the missing values but deals with complexity as well as a longer training period. There are two specific causes for naming it as Random that are:

       When building trees, then a random sampling of training data sets is followed.

       When Splitting nodes, then a random subset of features is considered.

      The functioning of random forests is illustrated in Figure 1.12.

      In the above figure, five forests are there and each one representing a disease, such as blue represents liver disease, orange represents heart disease, the green tree represents stomach disease, yellow represents lung disease. It was observed that as per the majority of color, Orange is the winner.

Schematic illustration of a few tree diagrams representing random forest.

      Figure 1.12 Random forest.

       Bagging: The Data on which the decision trees are trained are very sensitive. This means a small change in the data can bring diverse effects in the model. Because of this, the structure of the tree can completely change. They take benefit of it by allowing each tree to randomly sample the dataset with a replacement that results in different trees. This is called bagging or bootstrap aggregation [74–75].

       Random Feature Selection: Normally, when we split a node, every possible feature is considered. The one that produces the most separation is considered. Whereas, in the random forest scenario we can consider a random subset of features. This allows more variation in the model and results in a greater diversification. [76]

      The Concept of Random Forest took place in the heart disease dataset also. The low correlation is the key, between the models. The Area under the ROC Curve (AUC) characteristic of Random Forest performed in python (Google Colab) is shown in Table 1.4 and Figure 1.13.

      In the above table, the area under the receiver operating characteristic curve (AUC) is mentioned.

      AUC measures the degree of separability. The obtained value of Training Data is 1.0000000 that attains an outstanding remark and the value of the testing data is 1.0000000 that attains an outstanding remark in the AUC score. The result indicates that the used models perform outstandingly on the heart disease dataset.

      Table 1.4 AUC: Random forest.

Parameter Data Value Result
The area under the ROC Curve (AUC) Training Data 1.0000000 Outstanding
Test Data 1.0000000 Outstanding
Index: 0.5: No Discriminant, 0.6–0.8: Can be considered accepted, 0.8–0.9: Excellent, >0.9: Outstanding