/Loan-prediction-using-Machine-Learning-and-Python

To design a predictive model using xgboost and voting ensembling techniques and extract insights from the data using pandas, seaborn and matplotlib

Primary LanguageJupyter Notebook

Loan-prediction-using-Machine-Learning-and-Python

Aim

Our aim from the project is to make use of pandas, matplotlib, & seaborn libraries from python to extract insights from the data and xgboost, & scikit-learn libraries for machine learning.

Secondly, to learn how to hypertune the parameters using grid search cross validation for the xgboost machine learning model.

And in the end, to predict whether the loan applicant can replay the loan or not using voting ensembling techniques of combining the predictions from multiple machine learning algorithms.

Attributes in the dataset

Loan id, Gender, Married, Dependents, Education, Self Employed, Applicant income, Coapplicant income, Loan Amount,Credit History, Property_Area, Loan_Status

Major observation from the data

  1. Applicants who are male and married tends to have more applicant income whereas applicant who are female and married have least applicant income

  2. Applicants who are male and are graduated have more applicant income over the applicants who have not graduated.

  3. Again the applicants who are married and graduated have the more applicant income.

  4. Applicants who are not self employed have more applicant income than the applicants who are self employed.

  5. Applicants who have more dependents have least applicant income whereas applicants which have no dependents have maximum applicant income.

  6. Applicants who have property in urban and have credit history have maximum applicant income

  7. Applicants who are graduate and have credit history have more applicant income.

  8. Loan Amount is linearly dependent on Applicant income

  9. From heatmaps, applicant income and loan amount are highly positively correlated.

  10. Male applicants are more than female applicants.

  11. No of applicants who are married are more than no of applicants who are not married.

  12. Applicants with no dependents are maximum.

  13. Applicants with graduation are more than applicants whith no graduation.

  14. Property area is to be find more in semi urban areas and minimum in rural areas.