Skip to content

aashisharora13/BINARY-CLASSIFICATION-MODELING-USING-ALTERYX

Repository files navigation

BINARY CLASSIFICATION MODELING

Problem Statement: - Whether the hotel customer will redeem the yearly subscription or not ? I have used Alteryx to develop Logistic Regression, Step wise Logistic Regression and Decision Tree Model to predict binary outcomes by analyzing the outcome’s relationship with one or more predictor variables. Before starting applying the algorithms on the given hotel loyalty data set, I have created the estimation and validation sample.

image

1. Building Logistic Regression Model

image

image

The above process is bit of a manual process which requires selecting and deselecting variables of interest. I will use Stepwise Logistic Regression Model to automate the above process.

2. Logistic Regression - Stepwise

For building Stepwise Logistic Regression Model I have selected all the possible variables. The Stepwise Regression tool in Alteryx automatically figures out all the possible variables it can calculate first and it takes this list of possible variables from the Logistic Regression Tool as an output. After running the stepwise logistic regression model, we will be able to reduce much of the unnecessary variables.

image

3. Decision Tree Model Using Alteryx

image

image

image

4. Comparing Logistic Regression Model with Decision Tree Model

On Comparing the Logistic Regression Model against Decision Tree Model, the accuracy of Logistic Regression is better as compared to Decision Tree Model.

image

image

image

Result shows that the Logistic Regression Step Wise Model seems to perform better than the Decision Tree model.

5. Scoring the Model

The model in this case Stepwise Logistic Regression is scored against a new dataset to make predictions. This dataset have all the predictor variable values, which are passed through the model to predict the unknown target variable value. The prediction will be a number between 0 and 1, representing the likelihood of positive outcome.

image

image

6. Visualization

image