Default Loan Prediction Based On Customer Behavior Using Machine Learning And Deep Learning With Python


Download Default Loan Prediction Based On Customer Behavior Using Machine Learning And Deep Learning With Python PDF/ePub or read online books in Mobi eBooks. Click Download or Read Online button to get Default Loan Prediction Based On Customer Behavior Using Machine Learning And Deep Learning With Python book now. This website allows unlimited access to, at the time of writing, more than 1.5 million titles, including hundreds of thousands of titles in various foreign languages.

Download

DEFAULT LOAN PREDICTION BASED ON CUSTOMER BEHAVIOR Using Machine Learning and Deep Learning with Python


DEFAULT LOAN PREDICTION BASED ON CUSTOMER BEHAVIOR Using Machine Learning and Deep Learning with Python

Author: Vivian Siahaan

language: en

Publisher: BALIGE PUBLISHING

Release Date: 2023-07-13


DOWNLOAD





In this project, we aim to predict the risk of defaulting on a loan based on customer behavior using machine learning and deep learning techniques. We start by exploring the dataset and understanding its structure and contents. The dataset contains various features related to customer behavior, such as credit history, income, employment status, loan amount, and more. We analyze the distribution of these features to gain insights into their characteristics and potential impact on loan default. Next, we preprocess the data by handling missing values, encoding categorical variables, and normalizing numerical features. This ensures that the data is in a suitable format for training machine learning models. To predict the risk flag for loan default, we apply various machine learning models. We start with logistic regression, which models the relationship between the input features and the probability of loan default. We evaluate the model's performance using metrics such as accuracy, precision, recall, and F1-score. Next, we employ decision tree-based algorithms, such as random forest and gradient boosting, which can capture non-linear relationships and interactions among features. These models provide better predictive power and help identify important features that contribute to loan default. Additionally, we explore support vector machines (SVM), which aim to find an optimal hyperplane that separates the loan default and non-default instances in a high-dimensional feature space. SVMs can handle complex data distributions and can be tuned to optimize the classification performance. After evaluating the performance of these machine learning models, we turn our attention to deep learning techniques. We design and train an Artificial Neural Network (ANN) to predict the risk flag for loan default. The ANN consists of multiple layers of interconnected neurons that learn hierarchical representations of the input features. We configure the ANN with several hidden layers, each containing a varying number of neurons. We use the ReLU activation function to introduce non-linearity and ensure the model's ability to capture complex relationships. Dropout layers are incorporated to prevent overfitting and improve generalization. We compile the ANN using the Adam optimizer and the binary cross-entropy loss function. We train the model using the preprocessed dataset, splitting it into training and validation sets. The model is trained for a specific number of epochs, with a defined batch size. Throughout the training process, we monitor the model's performance using metrics such as loss and accuracy on both the training and validation sets. We make use of early stopping to prevent overfitting and save the best model based on the validation performance. Once the ANN is trained, we evaluate its performance on a separate test set. We calculate metrics such as accuracy, precision, recall, and F1-score to assess the model's predictive capabilities in identifying loan default risk. In conclusion, this project involves the exploration of a loan dataset, preprocessing of the data, and the application of various machine learning models and a deep learning ANN to predict the risk flag for loan default. The machine learning models, including logistic regression, decision trees, SVM, and ensemble methods, provide insights into feature importance and achieve reasonable predictive performance. The deep learning ANN, with its ability to capture complex relationships, offers the potential for improved accuracy in predicting loan default risk. By combining these approaches, we can assist financial institutions in making informed decisions and managing loan default risks more effectively.

ANALYSIS AND PREDICTION PROJECTS USING MACHINE LEARNING AND DEEP LEARNING WITH PYTHON


ANALYSIS AND PREDICTION PROJECTS USING MACHINE LEARNING AND DEEP LEARNING WITH PYTHON

Author: Vivian Siahaan

language: en

Publisher: BALIGE PUBLISHING

Release Date: 2022-02-17


DOWNLOAD





PROJECT 1: DEFAULT LOAN PREDICTION BASED ON CUSTOMER BEHAVIOR Using Machine Learning and Deep Learning with Python In finance, default is failure to meet the legal obligations (or conditions) of a loan, for example when a home buyer fails to make a mortgage payment, or when a corporation or government fails to pay a bond which has reached maturity. A national or sovereign default is the failure or refusal of a government to repay its national debt. The dataset used in this project belongs to a Hackathon organized by "Univ.AI". All values were provided at the time of the loan application. Following are the features in the dataset: Income, Age, Experience, Married/Single, House_Ownership, Car_Ownership, Profession, CITY, STATE, CURRENT_JOB_YRS, CURRENT_HOUSE_YRS, and Risk_Flag. The Risk_Flag indicates whether there has been a default in the past or not. The machine learning models used in this project are K-Nearest Neighbor, Random Forest, Naive Bayes, Logistic Regression, Decision Tree, Support Vector Machine, Adaboost, LGBM classifier, Gradient Boosting, XGB classifier, MLP classifier, and CNN 1D. Finally, you will plot boundary decision, ROC, distribution of features, feature importance, cross validation score, and predicted values versus true values, confusion matrix, learning curve, performance of the model, scalability of the model, training loss, and training accuracy. PROJECT 2: AIRLINE PASSENGER SATISFACTION Analysis and Prediction Using Machine Learning and Deep Learning with Python The dataset used in this project contains an airline passenger satisfaction survey. In this case, you will determine what factors are highly correlated to a satisfied (or dissatisfied) passenger and predict passenger satisfaction. Below are the features in the dataset: Gender: Gender of the passengers (Female, Male); Customer Type: The customer type (Loyal customer, disloyal customer); Age: The actual age of the passengers; Type of Travel: Purpose of the flight of the passengers (Personal Travel, Business Travel); Class: Travel class in the plane of the passengers (Business, Eco, Eco Plus); Flight distance: The flight distance of this journey; Inflight wifi service: Satisfaction level of the inflight wifi service (0:Not Applicable;1-5); Departure/Arrival time convenient: Satisfaction level of Departure/Arrival time convenient; Ease of Online booking: Satisfaction level of online booking; Gate location: Satisfaction level of Gate location; Food and drink: Satisfaction level of Food and drink; Online boarding: Satisfaction level of online boarding; Seat comfort: Satisfaction level of Seat comfort; Inflight entertainment: Satisfaction level of inflight entertainment; On-board service: Satisfaction level of On-board service; Leg room service: Satisfaction level of Leg room service; Baggage handling: Satisfaction level of baggage handling; Check-in service: Satisfaction level of Check-in service; Inflight service: Satisfaction level of inflight service; Cleanliness: Satisfaction level of Cleanliness; Departure Delay in Minutes: Minutes delayed when departure; Arrival Delay in Minutes: Minutes delayed when Arrival; and Satisfaction: Airline satisfaction level (Satisfaction, neutral or dissatisfaction) The machine learning models used in this project are K-Nearest Neighbor, Random Forest, Naive Bayes, Logistic Regression, Decision Tree, Support Vector Machine, LGBM classifier, Gradient Boosting, XGB classifier, MLP classifier, and CNN 1D. Finally, you will plot boundary decision, ROC, distribution of features, feature importance, cross validation score, and predicted values versus true values, confusion matrix, learning curve, performance of the model, scalability of the model, training loss, and training accuracy. PROJECT 3: CREDIT CARD CHURNING CUSTOMER ANALYSIS AND PREDICTION USING MACHINE LEARNING AND DEEP LEARNING WITH PYTHON The dataset used in this project consists of more than 10,000 customers mentioning their age, salary, marital_status, credit card limit, credit card category, etc. There are 20 features in the dataset. In the dataset, there are only 16.07% of customers who have churned. Thus, it's a bit difficult to train our model to predict churning customers. Following are the features in the dataset: 'Attrition_Flag', 'Customer_Age', 'Gender', 'Dependent_count', 'Education_Level', 'Marital_Status', 'Income_Category', 'Card_Category', 'Months_on_book', 'Total_Relationship_Count', 'Months_Inactive_12_mon', 'Contacts_Count_12_mon', 'Credit_Limit', 'Total_Revolving_Bal', 'Avg_Open_To_Buy', 'Total_Amt_Chng_Q4_Q1', 'Total_Trans_Amt', 'Total_Trans_Ct', 'Total_Ct_Chng_Q4_Q1', and 'Avg_Utilization_Ratio',. The target variable is 'Attrition_Flag'. The machine learning models used in this project are K-Nearest Neighbor, Random Forest, Naive Bayes, Logistic Regression, Decision Tree, Support Vector Machine, LGBM classifier, Gradient Boosting, XGB classifier, MLP classifier, and CNN 1D. Finally, you will plot boundary decision, ROC, distribution of features, feature importance, cross validation score, and predicted values versus true values, confusion matrix, learning curve, performance of the model, scalability of the model, training loss, and training accuracy. PROJECT 4: MARKETING ANALYSIS AND PREDICTION USING MACHINE LEARNING AND DEEP LEARNING WITH PYTHON This data set was provided to students for their final project in order to test their statistical analysis skills as part of a MSc. in Business Analytics. It can be utilized for EDA, Statistical Analysis, and Visualizations. Following are the features in the dataset: ID = Customer's unique identifier; Year_Birth = Customer's birth year; Education = Customer's education level; Marital_Status = Customer's marital status; Income = Customer's yearly household income; Kidhome = Number of children in customer's household; Teenhome = Number of teenagers in customer's household; Dt_Customer = Date of customer's enrollment with the company; Recency = Number of days since customer's last purchase; MntWines = Amount spent on wine in the last 2 years; MntFruits = Amount spent on fruits in the last 2 years; MntMeatProducts = Amount spent on meat in the last 2 years; MntFishProducts = Amount spent on fish in the last 2 years; MntSweetProducts = Amount spent on sweets in the last 2 years; MntGoldProds = Amount spent on gold in the last 2 years; NumDealsPurchases = Number of purchases made with a discount; NumWebPurchases = Number of purchases made through the company's web site; NumCatalogPurchases = Number of purchases made using a catalogue; NumStorePurchases = Number of purchases made directly in stores; NumWebVisitsMonth = Number of visits to company's web site in the last month; AcceptedCmp3 = 1 if customer accepted the offer in the 3rd campaign, 0 otherwise; AcceptedCmp4 = 1 if customer accepted the offer in the 4th campaign, 0 otherwise; AcceptedCmp5 = 1 if customer accepted the offer in the 5th campaign, 0 otherwise; AcceptedCmp1 = 1 if customer accepted the offer in the 1st campaign, 0 otherwise; AcceptedCmp2 = 1 if customer accepted the offer in the 2nd campaign, 0 otherwise; Response = 1 if customer accepted the offer in the last campaign, 0 otherwise; Complain = 1 if customer complained in the last 2 years, 0 otherwise; and Country = Customer's location. The machine and deep learning models used in this project are K-Nearest Neighbor, Random Forest, Naive Bayes, Logistic Regression, Decision Tree, Support Vector Machine, LGBM classifier, Gradient Boosting, XGB classifier, MLP classifier, and CNN 1D. Finally, you will plot boundary decision, ROC, distribution of features, feature importance, cross validation score, and predicted values versus true values, confusion matrix, learning curve, performance of the model, scalability of the model, training loss, and training accuracy. PROJECT 5: METEOROLOGICAL DATA ANALYSIS AND PREDICTION USING MACHINE LEARNING WITH PYTHON Meteorological phenomena are described and quantified by the variables of Earth's atmosphere: temperature, air pressure, water vapour, mass flow, and the variations and interactions of these variables, and how they change over time. Different spatial scales are used to describe and predict weather on local, regional, and global levels. The dataset used in this project consists of meteorological data with 96453 total number of data points and with 11 attributes/columns. Following are the columns in the dataset: Formatted Date; Summary; Precip Type; Temperature (C); Apparent Temperature (C); Humidity; Wind Speed (km/h); Wind Bearing (degrees); Visibility (km); Pressure (millibars); and Daily Summary. The machine learning models used in this project are K-Nearest Neighbor, Random Forest, Naive Bayes, Logistic Regression, Decision Tree, Support Vector Machine, LGBM classifier, Gradient Boosting, XGB classifier, and MLP classifier. Finally, you will plot boundary decision, distribution of features, feature importance, cross validation score, and predicted values versus true values, confusion matrix, learning curve, performance of the model, scalability of the model, training loss, and training accuracy.

Business Analytics and Business Intelligence Machine Learning Model to Predict Bank Loan Defaults


Business Analytics and Business Intelligence Machine Learning Model to Predict Bank Loan Defaults

Author: dr. V.V.L.N. Sastry

language: en

Publisher: Idea Publishing

Release Date: 2020-05-29


DOWNLOAD





Predictive Analytics offers a unique opportunity to identify future trends and allows organizations to act upon them. In this book we are dealing with ‘loan default’ which is always a threat to banks and financial institutions and should be predicted in advance based on various features of the borrowers or applicants. In this book we aim at applying machine learning models to classify the borrowers with and without loan default from a group of predicting variables and evaluate their performance. As a part of building a model to predict loan default, we have submitted in detail the introduction of the problem, exploratory data analysis (EDA), data cleaning and pre-processing, model building, interpretation, model tuning, model validation, and final interpretation & recommendations. Under the current project of loan default forming part of predictive analytics of business analytics and intelligence, we have studied research-based review parameters in detail which have also been annexed for ready reference as Annexure I. Data dictionary has been annexed as Annexure-2. R. Code for the same is provided at the URL which can be downloaded from www.drvvlnsastry.com/businessanalytics/data The study finds out that logistic regression is the best model to classify those applicants with loan default.