streamlining financial modeling - matlab & simulink · streamlining financial modelling: from...

34
1 © 2018 The MathWorks, Inc. Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks

Upload: others

Post on 06-Oct-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

1© 2018 The MathWorks, Inc.

Streamlining Financial Modelling:

From Development to Approval to Production

with MATLAB

David Sampson

MathWorks

Page 2: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

2

Workflows

• How they work

• Why they work

Technology

• Environment

• Toolboxes

• Integrations

Landscape

• Requirements

• Challenges

Page 3: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

3

Workflows

• How they work

• Why they work

Technology

• Environment

• Toolboxes

• Integrations

Landscape

• Requirements

• Challenges

Page 4: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

4

Model risk management regulations

2000

OCC 2000-16First regulatory definition of models and risk

2006

CEBS GL10Basel 2, new validation requirements

2011

OCC/FED SR11-7First comprehensive supervisory guidance on model risk management

2013-14

CRDIV – CRR

EBA SREP

CP/2014/14

Model risk integrated as part of Pillar 2 (Europe)

2016

TRIM

RTS2016/03

3 Lines of Defence

Page 5: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

5

Risk Management

Definition

Framework

Development

Review

Page 6: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

6

Regulator requirements

Risk Management

Definition

Framework

Development

Review

Page 7: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

7

Definition

Development

ValidationApproval

Deployment

Monitoring

Backtesting

Alerts

Inventory

Scope

Internal

Independent

Management

Regulator

Integration

Testing

Assumptions

Limitations

Page 8: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

8

Institution challenges

Definition

Development

ValidationApproval

Deployment

Monitoring

Page 9: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

9

Workflows

• How they work

• Why they work

Technology

• Environment

• Toolboxes

• Integrations

Landscape

• Requirements

• Challenges

Page 10: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

10

Page 11: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

11

In the beginning…

Read more at

Cleve's Corner

Page 12: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

12

Desktop

Page 13: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

13

Editor Debug

me!

Page 14: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

14

Graphics

Generate

code!

Page 15: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

15

Toolboxes

Page 16: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

16

Documentation Browser

Page 17: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

17

Variable Editor

Page 18: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

18

Live Editor

Change

me!

Page 19: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

19

Apps

Generate

code!

Page 20: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

20

Toolbox Packaging

Page 21: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

21

Report Generator

Page 22: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

22

Parallel

▪ High-level: parfor, gpuArray

▪ Low-level: batch, createJob, createTask

▪ Big data: tall, mapreduce

GPU

Multi-core CPU

Page 23: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

23

Enterprise integration

Preprocess DataDevelop Predictive

Models

Integrate Analytics

with Systems

MATLAB

MDCS

Request

Broker

MATLAB Production Server

Azure

IoT Hub

PI System

AWS

Kinesis

Azure

Blob

PI System

Databases

Cloud Storage

Cosmos

DB

Big Data / OT

Access and Explore

Data

Streaming

OT Platforms

Dashboards

Page 24: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

24

Page 25: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

25

Workflows

• How they work

• Why they work

Technology

• Environment

• Toolboxes

• Integrations

Landscape

• Requirements

• Challenges

Page 26: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

26

Integrate Analytics

with Systems

Desktop Apps

Enterprise Scale

Systems

Embedded Devices

and Hardware

Files

Databases

Sensors

Access and Explore

Data

Develop Predictive

Models

Model Creation e.g.

Machine Learning

Model

Validation

Parameter

Optimization

Preprocess Data

Working with

Messy Data

Data Reduction/

Transformation

Feature

Extraction

Page 27: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

27

Page 28: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

28

Page 29: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

29

Data preparation

Assemble a sufficient volume of clean data of known provenance.

>> importdata

Page 30: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

30

Model generation

Create models with the required accuracy and reach, while driving insight.

Page 31: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

31

Documentation generation

Generate an accurate, insightful description of the study in a timely manner.

Page 32: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

32

Model review

Provide an accurate, thorough view of the study that allows others to engage.

Documents

Models

Examples

Toolbox code

Page 33: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

33

Provide approved, accurate, current models for use throughout the business.

Model deployment

Page 34: Streamlining Financial Modeling - MATLAB & Simulink · Streamlining Financial Modelling: From Development to Approval to Production with MATLAB David Sampson MathWorks. 2 Workflows

34