Module 3
Module 3
Content/quotes from “Prediction Machines: The Simple Economics of Artificial Intelligence ” by Ajay Agrawal, Avi Goldfarb, and Joshua Gans
Images: https://visualmodo.com/6-security-tips-protect-ecommerce-site/, https://icons8.com/icons/set/phone, https://www.vecteezy.com/vector-art/383180-
illustration-of-scissors-cutting-a-credit-card
Credit Card Fraud
Early fraud detection with ML can help prevent fraud and save banks a lot of money
Content/quotes from: “A Human’s Guide to Machine Intelligence” by Kartik Hosanagar, Images: https://visualmodo.com/6-security-tips-protect-ecommerce-
site/, https://medium.com/@fenjiro/data-mining-for-banking-loan-approval-use-case-e7c2bc3ece3, https://icons8.com/icons/set/phone,
https://www.vecteezy.com/vector-art/383180-illustration-of-scissors-cutting-a-credit-card
ML Model Accuracy is Crucial
Requires input data for training (usually historical data of two types):
• “Properties that can be ‘read off’ a single credit card payment
• Country the card was issued in, IP address of payment, user’s email
domain, etc.
• Behavioral data (provides “some of the most predictive signals”)
• Number of countries the card was used recently
Supervised Learning Example (cont.)
Requires input data for training (usually historical data of two types):
• “Properties that can be ‘read off’ a single credit card payment
• Behavioral data (provides “some of the most predictive signals”)
Sample Training Data*
• Supervised Learning: From this (very limited) data, the model would learn a
unique pattern of fraud
• If >$20 & from Canada, 100% chance of fraud
• If <$20 & from >2 countries, 100% chance of fraud
• If >$20 & not from CA, or <$20 & from <2 countries, not sure
• Unsupervised Learning: Detecting transactions that appear like anomalies
• A transaction is for an exceptionally high amount + in a country where
this person has not transacted before + in the past, foreign transactions
were preceded by flight purchase to that country unlike this time =
Anomaly
• ML can improve security through more than just detecting fraud patterns,
and it also provides new methods of improving identity verification
Traditional Verification ML-Based Verification
• Passwords • Biometric authentication
• PIN numbers using facial and voice
recognition technologies
• One biometric use case would be when new accounts are opened and
customers need to provide multiple forms of ID
• Customers could instead provide “selfies” or voice prints, facial
recognition and voice recognition technologies can be used to verify
identity based on the images/audio provided
• ATMs in China are starting to use face recognition
Content/quotes from “Section 2: Known Applications of AI”
Identity Verification & Authentication (cont.)
Benefits Limitations
Benefits Limitations
• Banks want to retain customers/prevent churn and can apply ML to this goal
• In much the same way as with fraud models, the customer data that banks
have can be used to “create churn models based on customer attributes or
features of those who did or did not churn for another competitor”
Key Benefits & Limitations of Churn Models
Benefits Limitations
• Predictions from churn models are • Predictions about who might churn
actionable b/c knowing in advance don’t necessarily provide insight
which customers might churn into what is causing them to leave
allows banks to make extra efforts and how best to retain them
to improve those customers’
satisfaction
Content/quotes from “Section 2: Known Applications of AI”
Three Additional Examples of ML in Finance
Customer Experience
• Conversational AI platforms are being used to service customers via chat or
over the phone to improve responsiveness and reduce costs
Personal Finance
• Personalized portfolios
Financial Forecasting
• Ability to predict company financials or budgeting needs in the future
• Portfolio management
• Algorithmic trading
• Fraud detection
• Customer retention
• Returns forecasting
• Earnings forecasting
• Credit analysis
What Are We Going to Do?
• Focus on an application
• Corporate credit risk
• Emphasize process
• Scientific method
• Data science workflow
• Emphasize economics
• Avoid common pitfalls with models
• Illustrate stylized machine learning problem
• Imputing credit ratings
How Are We Going to Do it?
• Informal delivery
• Unscripted
• Dynamic
• Working together at computer
• Thought process is important
Goals
1. Emphasize importance of
• Process
• Data
• Economic and institutional details
Balance 1 and 2
AI Applications in Marketing and Finance
Process: Scientific Method
4. Communication* 1
2
3
AI Applications in Marketing and Finance
Corporate Credit Risk
• What is it?
• Inability of firms to repay financial obligations
• Why it’s important
• Affects availability and price of credit
• For whom is it important?
• Investors
• Employees
• Customers
• Suppliers
• Taxpayers
Outline
• Data preparation
• EDA
Data Science Workflow
Data Science Workflow
Data Science Workflow
Data Science Workflow
Data Science Workflow
Data Science Workflow
Data Science Workflow
Data Science Workflow
Data Science Workflow
Data Science Workflow
AI Applications in Marketing and Finance
Credit Risk - Model Prep
• Inspect
• (Probability) confusion matrix and model score
• Precision, recall, F1 score
• What matters depends on the goal set forth at the outset
AI Applications in Marketing and Finance
Credit Risk - Models vs. Data
• Inspect errors!
Where’d We Go Wrong?
• Inspect errors!
Where’d We Go Wrong?
• Inspect errors!
Where’d We Go Wrong?
• Inspect errors!
Where’d We Go Wrong?
• Inspect errors!
Where’d We Go Wrong?
• Inspect errors!
Where’d We Go Wrong?
• Inspect errors!
Where’d We Go Wrong?
• Inspect errors!
AI Applications in Marketing and Finance
Credit Risk - Concluding Thoughts