A Comparative Analysis of Income Level Prediction
ESAD KOPRU
Table of Contents
Data
Data Exploration
NA Values
Data Exploration
Income level vs. age, education num, marital status; married people earns higher than single or widowed.
, occupation
Income Level vs. Occupation, Marital Status
Data Exploration
Income Level vs. Race, Gender
Divide dataset into Training and Test
Logistic Regression Model
Logistic Regression Model 2
Final Logistic Regression model
Final logistic regression model VIF
Logistic Regression model Evaluation
Misclassification => 818+377/7788 = 0.153
Tree based Classification
Pruning Tree
Tree Evaluation
Misclassification => 291+964/7788 = 0.1611
Random Forest Classification
The gini index shows that age, education, and the relationship are all important variables.
Random Forest Tuning
Random forest Variable Importance Plot
Random Forest Evaluation
Misclassification => 439+692/7788 = 0.1452
SVM Classification, Linear
SVM Evaluation, Linear
Misclassification => 818+377/7788 = 0.1534
Comparison
| |
Logistic Regression | |
Pruned Tree | |
Optimized Random Forest | |
Linear SVM | |
Misclassification => 818+377/7788 = 0.1534
Misclassification => 439+692/7788 = 0.1452
Misclassification => 291+964/7788 = 0.1611
Misclassification => 818+377/7788 = 0.153
Discussion and Conclusion