<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/data-science-accelerator-for-credit-risk-prediction/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://blog.revolutionanalytics.com/2017/07/credit-risk-prediction.html"> Revolutions</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<p><em>by Fang Zhou, Data Scientist; Graham Williams, Director of Data Science, all at Microsoft</em></p>
<p>Credit Risk Scoring is a classic but increasingly important operation in banking as banks are becoming far more risk careful when lending for mortgages, credit card payments or other commercial purposes, in an industry known for fierce competition and the global financial crisis. With an accurate credit risk scoring model, a bank is able to predict the likelihood of default on a transaction. This will in turn help evaluate the potential risk posed by lending money to consumers and to mitigate losses due to bad debt, as well as determine who qualifies for a loan, at what interest rate, and what credit limits, and even determine which customers are likely to bring in the most revenue through a variety of products.</p>
<p><a rel="nofollow" href="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01bb09adb3c0970d-pi" target="_blank"><img border="0" src="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01bb09adb3c0970d-800wi" alt="Creditrisk-300x200" title="Creditrisk-300x200"></a></p>
<p>Many banks nowadays are driving innovation to enhance risk management. For example, a largest bank in one of the Asian countries by market capitalization is exploring opportunities to segment a million of active credit card customer population to improve risk scoring to then identify opportunities to offer increased limits. Using advanced analytics for credit risk scoring involves <a rel="nofollow" href="https://www.statsoft.com/Textbook/Credit-Scoring" target="_blank">traditional scorecard building and modelling</a>, and extends to <a rel="nofollow" href="http://trap.ncirl.ie/2495/" target="_blank">machine learning and ensemble</a>, but will also pursue an innovation on customer oriented aggregation of transactions, multi-dimensional customer segmentation and conceptual clustering to identify multiple segments across which to understand bank customers.</p>
<p>In the data-driven credit risk prediction model, normally two types of data are taken into consideration.</p>
<ol>
<li><strong>Transaction data</strong>Transaction records cover transaction id, account id, transaction date, transaction amount, merchant industry, etc. This transaction-level data could be dynamically aggregated and then provide transaction statistics and financial behavior information at account level.</li>
<li><strong>Demographic and bank account information</strong>This type of data show the characteristics of individual customer or account credit bureau, such as age, sex, income, and credit limit. They are static and never change or solely increment deterministically over time.</li>
</ol>
<p>The following graphic shows the data schema and the workflow for credit card fraud risk prediction.</p>
<p><a rel="nofollow" href="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01bb09adb3ca970d-pi" target="_blank"><img border="0" alt="Creditrisk2" title="Creditrisk2" src="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01bb09adb3ca970d-800wi"></a></p>
<p>In recent years, R has been gaining in popularity over SAS among statisticians and data scientists in solving variety of industrial business problems, including Financial Services and Risk Management. A data science accelerator for credit risk prediction is now shared in the <a rel="nofollow" href="https://github.com/Microsoft/acceleratoRs/tree/master/CreditRiskPrediction" target="_blank">github repository</a>. This accelerator consists of four R templates which walk through the process of model development, scale-up and speed-up, deployment, and application development.</p>
<p><strong><a rel="nofollow" href="https://github.com/Microsoft/acceleratoRs/blob/master/CreditRiskPrediction/Code/CreditRiskPrediction.Rmd" target="_blank">CreditRiskPrediction</a>:</strong> Data-driven credit risk prediction in R, covering techniques of exploratory analytics, data aggregation, merging and cleansing, feature engineering, but more importantly, model building and evaluation.</p>
<p><a rel="nofollow" href="https://github.com/Microsoft/acceleratoRs/blob/master/CreditRiskPrediction/Code/CreditRiskScale.Rmd" target="_blank"><strong>CreditRiskScale</strong></a>: Faster and scalable credit risk models with <a rel="nofollow" href="https://msdn.microsoft.com/en-us/microsoft-r/rserver" target="_blank">Microsoft R Server</a> , using the state-of-the-art machine learning algorithms provided by the <a rel="nofollow" href="https://msdn.microsoft.com/en-us/microsoft-r/microsoftml-get-started" target="_blank">MicrosoftML</a>.</p>
<p><a rel="nofollow" href="https://github.com/Microsoft/acceleratoRs/blob/master/CreditRiskPrediction/Code/CreditRiskScale2.Rmd" target="_blank"><strong>CreditRiskScale</strong></a> (part 2): Train multiple ML models with hyper-parameter selection in parallel by using <a rel="nofollow" href="https://docs.microsoft.com/en-us/r-server/r-reference/revoscaler/rxexec" target="_blank">rxExec()</a>.</p>
<p><a rel="nofollow" href="https://github.com/Microsoft/acceleratoRs/blob/master/CreditRiskPrediction/Code/CreditRiskDeploy.Rmd" target="_blank"><strong>CreditRiskDeploy</strong></a>: Deploy a credit risk model as a web service with <a rel="nofollow" href="https://msdn.microsoft.com/en-us/microsoft-r/operationalize/about" target="_blank">R Server Operationalization</a>, leveraging the <a rel="nofollow" href="https://msdn.microsoft.com/en-us/microsoft-r/operationalize/quickstart-publish-web-service" target="_blank">mrsdeploy</a> package.</p>
<p><a rel="nofollow" href="https://github.com/Microsoft/acceleratoRs/blob/master/CreditRiskPrediction/Code/CreditRiskShinyApp.Rmd" target="_blank"><strong>CreditRiskShinyApp</strong></a>: Credit risk application through REST API, with integration with the <em>Shiny </em>framework.</p>
<p><a rel="nofollow" href="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01b7c90a7aac970b-pi" target="_blank"><img border="0" alt="Creditrisk3" title="Creditrisk3" src="http://revolution-computing.typepad.com/.a/6a010534b1db25970b01b7c90a7aac970b-800wi"></a></p>
<p>You can find the <a rel="nofollow" href="https://github.com/Microsoft/acceleratoRs/tree/master/CreditRiskPrediction" target="_blank">data science accelerator for credit risk prediction</a> on GitHub. The R scripts are provided as R markdown files, which you can use to generate documents in formats including PDF, html, and Word. By no means is this the endpoint of the data science journey. The accelerator is under regular revision and improvement and we welcome feedback via pull requests and issues.</p>
<p>Github (Microsoft): <a rel="nofollow" href="https://github.com/Microsoft/acceleratoRs/tree/master/CreditRiskPrediction" target="_blank">Data Science Accelerator – Credit Risk Prediction</a> </p>
</div>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://blog.revolutionanalytics.com/2017/07/credit-risk-prediction.html"> Revolutions</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/iuS0FBX81J8" height="1"></a></div>