Community Blog Scorecard Credit Scoring on Alibaba Cloud's Machine Learning Platform

Scorecard Credit Scoring on Alibaba Cloud's Machine Learning Platform

We will develop a simple credit scoring by machine learning algorithm based on credit card consumption records using Alibaba Cloud Machine Learning Platform for AI.

By Garvin Li

Scorecard is a common method used in the credit risk assessment and Internet financing industries. Scorecard doesn't simply correspond to a specific machine learning algorithm, but is a universal modeling framework. It divides the original data into bins, performs data feature engineering, and then applies data in linear models for modeling.

The scorecard modeling principle is applied in various credit assessment fields, such as credit card risk assessment and loan issuance. In addition, scorecard is often used for score assessment in scenarios such as customer service scoring and Zhima Credit scoring (Alipay credit scoring). This article uses a specific case to explain how to use the finance components of the Alibaba Cloud Machine Learning Platform for AI to establish a scorecard modeling scenario.

Click Load More to establish the scorecard experiment directly from a template, as shown in the following screenshot. This template contains the processes and data of the whole experiment.


Dataset Introduction


The preceding screenshot shows an open source dataset from a foreign institution, with 30,000 pieces of data included. The dataset includes user properties such as gender, education level, marital status, and age as well as each user's credit card consumption records and bills over a past period of time. payment_next_month is the target queue, indicating whether a user repays the credit card bill (1 represents the bill has been repaid; 0 represents the bill has not been repaid).

The dataset can be downloaded from https://www.kaggle.com/uciml/default-of-credit-card-clients-dataset

Experiment Process

The following diagram shows the experiment process.


Step 1: Splitting

Split the input dataset into two parts: one part is used to train the model, and the other is used to perform evaluation prediction.

Step 2: Binning

The binning component is similar to one-hot encoding and can map data according to its distribution into features with higher dimensions. Take the "age" field for example. The binning component can perform binning according to the data distribution in different intervals. The following screenshot shows the binning results.


The final output of the binning component is shown in the following screenshot. Each field is binned to multiple intervals.


Step 3: Population Stability Index (PSI)

PSI is an important metric to measure offsets due to sample changes. PSI is usually used to evaluate sample stability. For example, whether sample changes between two months are stable. In general, a variable PSI value lower than 0.1 indicates insignificant changes; a PSI value between 0.1 and 0.25 indicates significant changes; a PSI value greater than 0.25 indicates exceptionally significant changes that may require special attention.

In this case, by comparing PSI values before and after data splitting as well as PSI values of binning results, the PSI value of each feature is returned as shown in the following screenshot.


Step 4: Scorecard Training

The results of scorecard training is shown in the following screenshot.


The essence of scorecard is the representation of complex model weights in the form of scores that meet the business standards.

  1. intercepy: the intercept
  2. Unscaled: original weight values.
  3. Scaled: the metric for changing scores. For example, if the "pay_0" feature falls into the (-1,0] interval, its score will be reduced by 29; if the feature falls into the £¨0£¬1] interval, its scores will add 27.
  4. Importance: the influence of each feature on the result. The bigger the value, the greater the influence.

Step 5: Scorecard Prediction

The final scores of each prediction result (users' credit scores in this case).



Based on users' credit card consumption records, each user's final credit score is obtained by using scorecard model training and scorecard prediction. These final credit scores can be applied in credit investigation fields related to loans or finances.

Visit the Alibaba Cloud Machine Learning Platform for AI page to experience Alibaba Cloud's machine learning capabilities today!

0 0 0
Share on


14 posts | 2 followers

You may also like



14 posts | 2 followers

Related Products