SlideShare a Scribd company logo
Pragmatic
Algorithmic Auditing 1.0
2020 Copyright QuantUniversity LLC.
Presented By:
Sri Krishnamurthy, CFA, CAP
sri@quantuniversity.com
www.quantuniversity.com
Data Club
Northeastern University
2
Speaker bio
• Advisory and Consultancy for Financial
Analytics
• Prior Experience at MathWorks, Citigroup
and Endeca and 25+ financial services and
energy customers.
• Columnist for the Wilmott Magazine
• Author of forthcoming book
“Pragmatic AI and ML in Finance”
• Teaches AI/ML and Fintech Related topics in
the MS and MBA programs at Northeastern
University, Boston
• Reviewer: Journal of Asset Management
Sri Krishnamurthy
Founder and CEO
QuantUniversity
3
QuantUniversity
• Boston-based Data Science, Quant
Finance and Machine Learning
training and consulting advisory
• Trained more than 1000 students in
Quantitative methods, Data Science
and Big Data Technologies using
MATLAB, Python and R
• Building a platform for AI
and Machine Learning
Experimentation
1. Key trends in AI, Machine Learning & Fintech
2. Algorithmic Auditing – Introduction
3. 5 things to note when auditing an algorithm
1. Use case
2. Data
3. Model
4. Environment
5. Process
Agenda
AI and Machine Learning in Finance
6
The 4th Industrial revolution is Here!
Source: Christoph Roser at AllAboutLean.com
As per Wikipedia*, “The 4th Industrial Revolution ….. marked by emerging technology breakthroughs in a
number of fields, including robotics, artificial intelligence, nanotechnology, quantum computing, biotechnology,
the Internet of Things, the Industrial Internet of Things (IIoT), decentralized consensus, fifth-generation wireless
technologies (5G), additive manufacturing/3D printing and fully autonomous vehicles.”
* https://en.wikipedia.org/wiki/Fourth_Industrial_Revolution
7
Scientists are disrupting the way we live!
Source: https://www.ladn.eu/tech-a-suivre/mobilite-2030-vehicules-volants-open-data/
8
Interest in Machine learning continues to grow
https://www.wipo.int/edocs/pubdocs/en/wipo_pub_1055.pdf
9
MACHINE LEARNING AND AI IS REVOLUTIONIZING FINANCE
10
11
Algorithm Audits in the news
Algorithmic auditing 1.0
13
• Machine learning is the scientific study of algorithms and statistical
models that computer systems use to effectively perform a specific task
without using explicit instructions, relying on patterns and inference
instead1
• Artificial intelligence is intelligence demonstrated by machines, in
contrast to the natural intelligence displayed by humans and animals1
Defining Machine Learning and AI
13
1. https://en.wikipedia.org/wiki/Machine_learning
2. Figure Source: http://www.fsb.org/wp-content/uploads/P011117.pdf
14
Machine Learning & AI in finance: A paradigm shift
14
Stochastic
Models
Factor Models
Optimization
Risk Factors
P/Q Quants
Derivative pricing
Trading Strategies
Simulations
Distribution
fitting
Quant
Real-time analytics
Predictive analytics
Machine Learning
RPA
NLP
Deep Learning
Computer Vision
Graph Analytics
Chatbots
Sentiment Analysis
Alternative Data
Data Scientist
15
The Virtuous Circle of
Machine Learning and AI
15
Smart
Algorithms
Hardware
Data
16
The rise of Big Data and Data Science
16
Image Source: http://www.ibmbigdatahub.com/sites/default/files/infographic_file/4-Vs-of-big-data.jpg
17
Smart Algorithms
17
Distributing Computing Frameworks Deep Learning Frameworks
1. Our labeled datasets were thousands of times too
small.
2. Our computers were millions of times too slow.
3. We initialized the weights in a stupid way.
4. We used the wrong type of non-linearity.
- Geoff Hinton
“Capital One was able to determine fraudulent credit
card applications in 100 milliseconds”*
* http://go.databricks.com/hubfs/pdfs/Databricks-for-FinTech-170306.pdf
18
Hardware
Speed up calculations with
1000s of processors
Scale computations with
infinite compute power
Machine Learning Workflow
Data Scraping/
Ingestion
Data
Exploration
Data Cleansing
and Processing
Feature
Engineering
Model
Evaluation
& Tuning
Model
Selection
Model
Deployment/
Inference
Supervised
Unsupervised
Modeling
Data Engineer, Dev Ops Engineer
Data Scientist/Quants
Software/Web Engineer
• AutoML
• Model Validation
• Interpretability
Robotic Process Automation (RPA) (Microservices, Pipelines )
• SW: Web/ Rest API
• HW: GPU, Cloud
• Monitoring
• Regression
• KNN
• Decision Trees
• Naive Bayes
• Neural Networks
• Ensembles
• Clustering
• PCA
• Autoencoder
• RMS
• MAPS
• MAE
• Confusion Matrix
• Precision/Recall
• ROC
• Hyper-parameter
tuning
• Parameter Grids
Risk Management/ Compliance(All stages)
Analysts
&
Decision
Makers
20
21
• Algorithmic auditing is a structured process conducted internally or
by a qualified independent third party that involves:
▫ Verifying and/or validating the working of the algorithm along with the
data, model, environment, process contextual to the use-cases in which
the algorithm is supposed to be used.
▫ Identification of issues that are clearly articulated and scoped for the
algorithm.
– Examples include : bias, discrimination, explainability, interpretability etc.
▫ Documentation of the understanding of the algorithm’s behavior, uses
as observed and evaluated by a qualified individual.
▫ Recommendations for mitigation, control and elimination of noted
risks.
Algorithmic Auditing
22
Review this:
https://www2.deloitte.com/content/dam/insights/us/articles/
4767_FoW-in-govt/DI_Algorithm-auditor.pdf
23
24
Questions to ask:
• Do we really need this algorithm?
• How will this algorithm be used?
• Who/What will it affect?
1. Use cases are important
25
Things to think about:
• How much data do we
have?
• How will this affect the
model?
• Do we have enough data?
• Are their privacy concerns?
2. Don’t forget the data
26
All scenarios haven’t
played out
• Stress scenarios
• What-if scenarios
Challenges with real datasets
Figure ref: http://www.actuaries.org/CTTEES_SOLV/Documents/StressTestingPaper.pdf
27
28
Questions to ask
• Blackbox/Whitebox
• Does the model work?
• How do we handle imbalanced
classes?
• Is it fair/biased?
• Can you explain the model?
3. Model Audit
29
4. Environment Audit :
Where will the model run?
5.0 Process audit
Data Scraping/
Ingestion
Data
Exploration
Data Cleansing
and Processing
Feature
Engineering
Model
Evaluation
& Tuning
Model
Selection
Model
Deployment/
Inference
Supervised
Unsupervised
Modeling
Data Engineer, Dev Ops Engineer
Data Scientist/Quants
Software/Web Engineer
• AutoML
• Model Validation
• Interpretability
Robotic Process Automation (RPA) (Microservices, Pipelines )
• SW: Web/ Rest API
• HW: GPU, Cloud
• Monitoring
• Regression
• KNN
• Decision Trees
• Naive Bayes
• Neural Networks
• Ensembles
• Clustering
• PCA
• Autoencoder
• RMS
• MAPS
• MAE
• Confusion Matrix
• Precision/Recall
• ROC
• Hyper-parameter
tuning
• Parameter Grids
Risk Management/ Compliance(All stages)
Analysts
&
Decision
Makers
Register at
https://algoauditing.splashthat.com/
Classes start
April 1st 2021
31
Thank you!
Sri Krishnamurthy, CFA, CAP
Founder and CEO
QuantUniversity LLC.
srikrishnamurthy
www.qu.academy
Contact
Information, data and drawings embodied in this presentation are strictly a property of QuantUniversity LLC. and shall not be
distributed or used in any other publication without the prior written consent of QuantUniversity LLC.
32

More Related Content

PDF
AI Explainability and Model Risk Management
PDF
Machine Learning: Considerations for Fairly and Transparently Expanding Acces...
PDF
Bayesian Portfolio Allocation
PDF
Synthetic Data Generation with DoppelGanger
PDF
achine Learning and Model Risk
PDF
Ml master class northeastern university
PDF
Machine Learning and AI: An Intuitive Introduction - CFA Institute Masterclass
PDF
Ml master class for CFA Dallas
AI Explainability and Model Risk Management
Machine Learning: Considerations for Fairly and Transparently Expanding Acces...
Bayesian Portfolio Allocation
Synthetic Data Generation with DoppelGanger
achine Learning and Model Risk
Ml master class northeastern university
Machine Learning and AI: An Intuitive Introduction - CFA Institute Masterclass
Ml master class for CFA Dallas

What's hot (20)

PDF
Qwafafew meeting 5
PDF
Quant university MRM and machine learning
PDF
Ai in finance
PDF
Machine learning for factor investing
PDF
Ml master class cfa poland
PDF
QuantUniversity Machine Learning in Finance Course
PDF
Qu speaker series:Ethical Use of AI in Financial Markets
PDF
Rapid prototyping quant research ml models using the qu sandbox
PDF
Modular Machine Learning for Model Validation
PDF
Python for Data science
PDF
Qu speaker series 14: Synthetic Data Generation in Finance
PDF
Time series analysis : Refresher and Innovations
PDF
Ml master class
PDF
CFA-NY Workshop - Final slides
PDF
QCon conference 2019
PDF
Synthetic data generation for machine learning
PDF
An introduction to ML, AI and Analytics
PDF
Blockchain workshop Intro
PDF
10 Key Considerations for AI/ML Model Governance
Qwafafew meeting 5
Quant university MRM and machine learning
Ai in finance
Machine learning for factor investing
Ml master class cfa poland
QuantUniversity Machine Learning in Finance Course
Qu speaker series:Ethical Use of AI in Financial Markets
Rapid prototyping quant research ml models using the qu sandbox
Modular Machine Learning for Model Validation
Python for Data science
Qu speaker series 14: Synthetic Data Generation in Finance
Time series analysis : Refresher and Innovations
Ml master class
CFA-NY Workshop - Final slides
QCon conference 2019
Synthetic data generation for machine learning
An introduction to ML, AI and Analytics
Blockchain workshop Intro
10 Key Considerations for AI/ML Model Governance
Ad

Similar to Algorithmic auditing 1.0 (20)

PDF
Qu for India - QuantUniversity FundRaiser
PDF
ML and AI in Finance: Master Class
PDF
Machine Learning and AI in Risk Management
PDF
Machine Learning for Finance Master Class
PDF
Careers in analytics
PDF
Ml conference slides boston june 2019
PDF
Model governance in the age of data science & AI
PDF
ML master class
PDF
Algorithmic auditing 1.0
PDF
Adopting Data Science and Machine Learning in the financial enterprise
PDF
Ds for finance day1
PPTX
Explainability for Natural Language Processing
PPTX
Explainability for Natural Language Processing
PDF
Explainability for Natural Language Processing
PDF
Varied encounters with data science (slide share)
PDF
Practical model management in the age of Data science and ML
PDF
Minne analytics presentation 2018 12 03 final compressed
PDF
Pistoia Alliance Demystifying AI & ML part 2
PDF
Machine learning and big data
PDF
The Research Blueprint: Excelling in Data science, Data Analysis and AI
Qu for India - QuantUniversity FundRaiser
ML and AI in Finance: Master Class
Machine Learning and AI in Risk Management
Machine Learning for Finance Master Class
Careers in analytics
Ml conference slides boston june 2019
Model governance in the age of data science & AI
ML master class
Algorithmic auditing 1.0
Adopting Data Science and Machine Learning in the financial enterprise
Ds for finance day1
Explainability for Natural Language Processing
Explainability for Natural Language Processing
Explainability for Natural Language Processing
Varied encounters with data science (slide share)
Practical model management in the age of Data science and ML
Minne analytics presentation 2018 12 03 final compressed
Pistoia Alliance Demystifying AI & ML part 2
Machine learning and big data
The Research Blueprint: Excelling in Data science, Data Analysis and AI
Ad

More from QuantUniversity (18)

PDF
AI in Finance and Retirement Systems: Insights from the EBRI-Milken Institute...
PDF
Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitig...
PDF
EU Artificial Intelligence Act 2024 passed !
PDF
Managing-the-Risks-of-LLMs-in-FS-Industry-Roundtable-TruEra-QuantU.pdf
PDF
PYTHON AND DATA SCIENCE FOR INVESTMENT PROFESSIONALS
PDF
Towards Fairer Datasets: Filtering and Balancing the Distribution of the Peop...
PDF
Seeing what a gan cannot generate: paper review
PDF
Machine Learning in Finance: 10 Things You Need to Know in 2021
PDF
The API Jungle
PDF
Explainable AI Workshop
PDF
Constructing Private Asset Benchmarks
PDF
Machine Learning Interpretability
PDF
Responsible AI in Action
PDF
Fintech in the Post-Covid Age
PDF
Master Class: GANS with Applications in Synthetic Data Generation
PDF
Qwafafew meeting 4
PDF
Synthetic data in finance
PDF
Frontiers in Alternative Data : Techniques and Use Cases
AI in Finance and Retirement Systems: Insights from the EBRI-Milken Institute...
Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitig...
EU Artificial Intelligence Act 2024 passed !
Managing-the-Risks-of-LLMs-in-FS-Industry-Roundtable-TruEra-QuantU.pdf
PYTHON AND DATA SCIENCE FOR INVESTMENT PROFESSIONALS
Towards Fairer Datasets: Filtering and Balancing the Distribution of the Peop...
Seeing what a gan cannot generate: paper review
Machine Learning in Finance: 10 Things You Need to Know in 2021
The API Jungle
Explainable AI Workshop
Constructing Private Asset Benchmarks
Machine Learning Interpretability
Responsible AI in Action
Fintech in the Post-Covid Age
Master Class: GANS with Applications in Synthetic Data Generation
Qwafafew meeting 4
Synthetic data in finance
Frontiers in Alternative Data : Techniques and Use Cases

Recently uploaded (20)

PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
Business Acumen Training GuidePresentation.pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
Computer network topology notes for revision
PDF
Fluorescence-microscope_Botany_detailed content
PDF
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
PDF
Foundation of Data Science unit number two notes
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Introduction to Knowledge Engineering Part 1
Data_Analytics_and_PowerBI_Presentation.pptx
Clinical guidelines as a resource for EBP(1).pdf
Business Acumen Training GuidePresentation.pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
Computer network topology notes for revision
Fluorescence-microscope_Botany_detailed content
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
Foundation of Data Science unit number two notes
Introduction-to-Cloud-ComputingFinal.pptx
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
STUDY DESIGN details- Lt Col Maksud (21).pptx
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
Reliability_Chapter_ presentation 1221.5784
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb

Algorithmic auditing 1.0

  • 1. Pragmatic Algorithmic Auditing 1.0 2020 Copyright QuantUniversity LLC. Presented By: Sri Krishnamurthy, CFA, CAP sri@quantuniversity.com www.quantuniversity.com Data Club Northeastern University
  • 2. 2 Speaker bio • Advisory and Consultancy for Financial Analytics • Prior Experience at MathWorks, Citigroup and Endeca and 25+ financial services and energy customers. • Columnist for the Wilmott Magazine • Author of forthcoming book “Pragmatic AI and ML in Finance” • Teaches AI/ML and Fintech Related topics in the MS and MBA programs at Northeastern University, Boston • Reviewer: Journal of Asset Management Sri Krishnamurthy Founder and CEO QuantUniversity
  • 3. 3 QuantUniversity • Boston-based Data Science, Quant Finance and Machine Learning training and consulting advisory • Trained more than 1000 students in Quantitative methods, Data Science and Big Data Technologies using MATLAB, Python and R • Building a platform for AI and Machine Learning Experimentation
  • 4. 1. Key trends in AI, Machine Learning & Fintech 2. Algorithmic Auditing – Introduction 3. 5 things to note when auditing an algorithm 1. Use case 2. Data 3. Model 4. Environment 5. Process Agenda
  • 5. AI and Machine Learning in Finance
  • 6. 6 The 4th Industrial revolution is Here! Source: Christoph Roser at AllAboutLean.com As per Wikipedia*, “The 4th Industrial Revolution ….. marked by emerging technology breakthroughs in a number of fields, including robotics, artificial intelligence, nanotechnology, quantum computing, biotechnology, the Internet of Things, the Industrial Internet of Things (IIoT), decentralized consensus, fifth-generation wireless technologies (5G), additive manufacturing/3D printing and fully autonomous vehicles.” * https://en.wikipedia.org/wiki/Fourth_Industrial_Revolution
  • 7. 7 Scientists are disrupting the way we live! Source: https://www.ladn.eu/tech-a-suivre/mobilite-2030-vehicules-volants-open-data/
  • 8. 8 Interest in Machine learning continues to grow https://www.wipo.int/edocs/pubdocs/en/wipo_pub_1055.pdf
  • 9. 9 MACHINE LEARNING AND AI IS REVOLUTIONIZING FINANCE
  • 10. 10
  • 13. 13 • Machine learning is the scientific study of algorithms and statistical models that computer systems use to effectively perform a specific task without using explicit instructions, relying on patterns and inference instead1 • Artificial intelligence is intelligence demonstrated by machines, in contrast to the natural intelligence displayed by humans and animals1 Defining Machine Learning and AI 13 1. https://en.wikipedia.org/wiki/Machine_learning 2. Figure Source: http://www.fsb.org/wp-content/uploads/P011117.pdf
  • 14. 14 Machine Learning & AI in finance: A paradigm shift 14 Stochastic Models Factor Models Optimization Risk Factors P/Q Quants Derivative pricing Trading Strategies Simulations Distribution fitting Quant Real-time analytics Predictive analytics Machine Learning RPA NLP Deep Learning Computer Vision Graph Analytics Chatbots Sentiment Analysis Alternative Data Data Scientist
  • 15. 15 The Virtuous Circle of Machine Learning and AI 15 Smart Algorithms Hardware Data
  • 16. 16 The rise of Big Data and Data Science 16 Image Source: http://www.ibmbigdatahub.com/sites/default/files/infographic_file/4-Vs-of-big-data.jpg
  • 17. 17 Smart Algorithms 17 Distributing Computing Frameworks Deep Learning Frameworks 1. Our labeled datasets were thousands of times too small. 2. Our computers were millions of times too slow. 3. We initialized the weights in a stupid way. 4. We used the wrong type of non-linearity. - Geoff Hinton “Capital One was able to determine fraudulent credit card applications in 100 milliseconds”* * http://go.databricks.com/hubfs/pdfs/Databricks-for-FinTech-170306.pdf
  • 18. 18 Hardware Speed up calculations with 1000s of processors Scale computations with infinite compute power
  • 19. Machine Learning Workflow Data Scraping/ Ingestion Data Exploration Data Cleansing and Processing Feature Engineering Model Evaluation & Tuning Model Selection Model Deployment/ Inference Supervised Unsupervised Modeling Data Engineer, Dev Ops Engineer Data Scientist/Quants Software/Web Engineer • AutoML • Model Validation • Interpretability Robotic Process Automation (RPA) (Microservices, Pipelines ) • SW: Web/ Rest API • HW: GPU, Cloud • Monitoring • Regression • KNN • Decision Trees • Naive Bayes • Neural Networks • Ensembles • Clustering • PCA • Autoencoder • RMS • MAPS • MAE • Confusion Matrix • Precision/Recall • ROC • Hyper-parameter tuning • Parameter Grids Risk Management/ Compliance(All stages) Analysts & Decision Makers
  • 20. 20
  • 21. 21 • Algorithmic auditing is a structured process conducted internally or by a qualified independent third party that involves: ▫ Verifying and/or validating the working of the algorithm along with the data, model, environment, process contextual to the use-cases in which the algorithm is supposed to be used. ▫ Identification of issues that are clearly articulated and scoped for the algorithm. – Examples include : bias, discrimination, explainability, interpretability etc. ▫ Documentation of the understanding of the algorithm’s behavior, uses as observed and evaluated by a qualified individual. ▫ Recommendations for mitigation, control and elimination of noted risks. Algorithmic Auditing
  • 23. 23
  • 24. 24 Questions to ask: • Do we really need this algorithm? • How will this algorithm be used? • Who/What will it affect? 1. Use cases are important
  • 25. 25 Things to think about: • How much data do we have? • How will this affect the model? • Do we have enough data? • Are their privacy concerns? 2. Don’t forget the data
  • 26. 26 All scenarios haven’t played out • Stress scenarios • What-if scenarios Challenges with real datasets Figure ref: http://www.actuaries.org/CTTEES_SOLV/Documents/StressTestingPaper.pdf
  • 27. 27
  • 28. 28 Questions to ask • Blackbox/Whitebox • Does the model work? • How do we handle imbalanced classes? • Is it fair/biased? • Can you explain the model? 3. Model Audit
  • 29. 29 4. Environment Audit : Where will the model run?
  • 30. 5.0 Process audit Data Scraping/ Ingestion Data Exploration Data Cleansing and Processing Feature Engineering Model Evaluation & Tuning Model Selection Model Deployment/ Inference Supervised Unsupervised Modeling Data Engineer, Dev Ops Engineer Data Scientist/Quants Software/Web Engineer • AutoML • Model Validation • Interpretability Robotic Process Automation (RPA) (Microservices, Pipelines ) • SW: Web/ Rest API • HW: GPU, Cloud • Monitoring • Regression • KNN • Decision Trees • Naive Bayes • Neural Networks • Ensembles • Clustering • PCA • Autoencoder • RMS • MAPS • MAE • Confusion Matrix • Precision/Recall • ROC • Hyper-parameter tuning • Parameter Grids Risk Management/ Compliance(All stages) Analysts & Decision Makers
  • 32. Thank you! Sri Krishnamurthy, CFA, CAP Founder and CEO QuantUniversity LLC. srikrishnamurthy www.qu.academy Contact Information, data and drawings embodied in this presentation are strictly a property of QuantUniversity LLC. and shall not be distributed or used in any other publication without the prior written consent of QuantUniversity LLC. 32